Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

5.2 KB
Raw Blame
{
  "name": "@webstudio-is/sdk",
  "version": "0.0.0-webstudio-version",
  "description": "Webstudio project data schema",
  "author": "Webstudio <[email protected]>",
  "homepage": "https://webstudio.is",
  "license": "AGPL-3.0-or-later",
  "type": "module",
  "exports": {
    ".": {
      "webstudio": "./src/index.ts",
      "partykit": "./src/index.ts",
      "types": "./lib/types/index.d.ts",
      "import": "./lib/index.js"
    },
    "./runtime": {
      "webstudio": "./src/runtime.ts",
      "types": "./lib/types/runtime.d.ts",
      "import": "./lib/runtime.js"
    },
    "./managed-form-draft-graph": {
      "webstudio": "./src/managed-form-draft-graph.ts",
      "types": "./lib/types/managed-form-draft-graph.d.ts",
      "import": "./lib/managed-form-draft-graph.js"
    },
    "./form-fields": {
      "webstudio": "./src/form-fields.ts",
      "types": "./lib/types/form-fields.d.ts",
      "import": "./lib/form-fields.js"
    },
    "./form-submission": {
      "webstudio": "./src/form-submission.ts",
      "types": "./lib/types/form-submission.d.ts",
      "import": "./lib/form-submission.js"
    },
    "./form": {
      "webstudio": "./src/form/index.ts",
      "types": "./lib/types/form/index.d.ts",
      "import": "./lib/form/index.js"
    },
    "./form/browser": {
      "webstudio": "./src/form/browser.ts",
      "types": "./lib/types/form/browser.d.ts",
      "import": "./lib/form/browser.js"
    },
    "./form/server": {
      "webstudio": "./src/form/server.ts",
      "types": "./lib/types/form/server.d.ts",
      "import": "./lib/form/server.js"
    },
    "./to-string": {
      "webstudio": "./src/to-string.ts",
      "types": "./lib/types/to-string.d.ts",
      "import": "./lib/to-string.js"
    },
    "./protected-resource-fetch": {
      "webstudio": "./src/protected-resource-fetch.ts",
      "types": "./lib/types/protected-resource-fetch.d.ts",
      "import": "./lib/protected-resource-fetch.js"
    },
    "./protected-resource-fetch-node": {
      "webstudio": "./src/protected-resource-fetch-node.ts",
      "types": "./lib/types/protected-resource-fetch-node.d.ts",
      "import": "./lib/protected-resource-fetch-node.js"
    },
    "./asset-resource-limits": {
      "webstudio": "./src/asset-resource-limits.ts",
      "types": "./lib/types/asset-resource-limits.d.ts",
      "import": "./lib/asset-resource-limits.js"
    },
    "./schema-org": {
      "webstudio": "./src/schema-org.ts",
      "types": "./lib/types/schema-org.d.ts",
      "import": "./lib/schema-org.js"
    },
    "./link-utils": {
      "webstudio": "./src/link-utils.ts",
      "types": "./lib/types/link-utils.d.ts",
      "import": "./lib/link-utils.js"
    },
    "./schema": {
      "webstudio": "./src/schema.ts",
      "types": "./lib/types/schema.d.ts",
      "import": "./lib/schema.js"
    },
    "./normalize.css": {
      "webstudio": "./src/__generated__/normalize.css.ts",
      "types": "./lib/types/__generated__/normalize.css.d.ts",
      "import": "./lib/__generated__/normalize.css.js"
    },
    "./core-templates": {
      "webstudio": "./src/core-templates.tsx"
    },
    "./router-path-test-data": {
      "webstudio": "./src/router-path-test-data.ts"
    },
    "./testing": {
      "webstudio": "./src/testing.ts"
    }
  },
  "files": [
    "lib/*",
    "!*.{test,stories}.*"
  ],
  "sideEffects": false,
  "scripts": {
    "typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
    "test": "vitest run",
    "build:schema-org-data": "tsx scripts/schema-org-data.ts && oxfmt src/__generated__/schema-org-data.ts",
    "build:normalize.css": "tsx --conditions=webstudio ./scripts/normalize.css.ts && oxfmt src/__generated__/normalize.css.ts",
    "build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/managed-form-draft-graph.ts src/form-fields.ts src/form-submission.ts src/form/index.ts src/form/browser.ts src/form/server.ts src/to-string.ts src/protected-resource-fetch.ts src/protected-resource-fetch-node.ts src/asset-resource-limits.ts src/schema-org.ts src/link-utils.ts src/schema.ts src/__generated__/normalize.css.ts --outdir=lib --bundle --format=esm --packages=external",
    "dts": "tsc --project tsconfig.dts.json",
    "check:published-types": "pnpm dts && tsc --noEmit --project tsconfig.published-types.json",
    "check:form-browser-boundary": "node scripts/check-form-browser-boundary.mjs"
  },
  "dependencies": {
    "@emotion/hash": "^0.9.2",
    "@webstudio-is/content-engine": "workspace:*",
    "@webstudio-is/css-engine": "workspace:*",
    "@webstudio-is/expression": "workspace:*",
    "@webstudio-is/fonts": "workspace:*",
    "@webstudio-is/icons": "workspace:*",
    "@webstudio-is/query-builder": "workspace:*",
    "@webstudio-is/wsauth": "workspace:*",
    "change-case": "^5.4.4",
    "email-addresses": "^5.0.0",
    "ipaddr.js": "^1.9.1",
    "json-schema-typed": "^8.0.2",
    "nanoid": "^5.1.5",
    "reserved-identifiers": "^1.0.0",
    "tldts": "^7.0.28",
    "type-fest": "^4.37.0",
    "undici": "^7.29.0",
    "warn-once": "^0.1.1",
    "zod": "^4.4.3"
  },
  "devDependencies": {
    "@types/papaparse": "^5.5.2",
    "@webstudio-is/css-data": "workspace:*",
    "@webstudio-is/template": "workspace:*",
    "@webstudio-is/tsconfig": "workspace:*",
    "html-tags": "^4.0.0",
    "papaparse": "^5.5.3",
    "vitest": "^3.1.2"
  }
}