UNPKG

@contentstack/live-preview-utils

Version:

Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.

122 lines (121 loc) 3.98 kB
{ "name": "@contentstack/live-preview-utils", "version": "3.4.0", "description": "Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.", "type": "module", "types": "dist/legacy/index.d.ts", "main": "dist/legacy/index.cjs", "module": "dist/legacy/index.js", "exports": { ".": { "import": { "types": "./dist/modern/index.d.ts", "default": "./dist/modern/index.js" }, "require": { "types": "./dist/modern/index.d.cts", "default": "./dist/modern/index.cjs" } }, "./package.json": "./package.json" }, "files": [ "dist" ], "sideEffects": false, "scripts": { "build": "NODE_OPTIONS='--max-old-space-size=16384' tsup", "test": "vitest", "test:once": "vitest run", "test:coverage": "vitest --coverage", "dev": "NODE_OPTIONS='--max-old-space-size=16384' tsup --watch", "prepare": "husky", "lint": "eslint src", "lint:fix": "eslint --fix", "prettier": "prettier src --check", "prettier:fix": "prettier src --write", "format": "npm run prettier:fix && npm run lint:fix", "docs": "typedoc --out docs --entryPointStrategy expand ./src", "version": "auto-changelog -p && git add CHANGELOG.md" }, "keywords": [ "live-preview" ], "author": "Contentstack", "license": "MIT", "devDependencies": { "@commitlint/cli": "^16.3.0", "@commitlint/config-conventional": "^16.2.4", "@contentstack/advanced-post-message": "^0.0.2", "@eslint/js": "^9.10.0", "@testing-library/jest-dom": "^6.5.0", "@testing-library/preact": "^3.2.4", "@testing-library/user-event": "^14.5.2", "@types/jsdom": "^21.1.6", "@types/lodash-es": "^4.17.12", "@types/mustache": "^4.2.2", "@types/react": "^18.2.57", "@types/react-dom": "^18.2.19", "@types/ssri": "^7.1.5", "@types/uuid": "^8.3.1", "@vitest/coverage-v8": "^2.1.2", "@vitest/ui": "^2.1.2", "auto-changelog": "^2.5.0", "esbuild-plugin-file-path-extensions": "^2.1.0", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-react": "^7.36.0", "globals": "^15.9.0", "husky": "^8.0.3", "jsdom": "^25.0.0", "prettier": "^3.3.3", "prettier-eslint": "^15.0.1", "ssri": "^11.0.0", "ts-node": "^10.9.2", "tsc": "^2.0.4", "tsup": "^8.0.1", "tsx": "^4.19.1", "typedoc": "^0.25.13", "typescript": "^5.4.5", "typescript-eslint": "^8.5.0", "vitest": "^2.1.0" }, "repository": { "type": "git", "url": "https://github.com/contentstack/live-preview-sdk.git" }, "dependencies": { "@floating-ui/dom": "^1.7.2", "@preact/compat": "17.1.2", "@preact/signals": "1.2.2", "classnames": "^2.5.1", "dayjs": "^1.11.13", "deepsignal": "^1.5.0", "dompurify": "^3.2.3", "get-xpath": "^3.2.0", "goober": "^2.1.14", "lodash-es": "^4.17.21", "mustache": "^4.2.0", "preact": "10.19.5", "uuid": "^8.3.2" }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.9.5" }, "lint-staged": { "src/**/*.{ts,css,md}": [ "npm run lint:fix" ] }, "auto-changelog": { "commitLimit": false, "template": "changelog-template.hbs", "tagPattern": "^v?[0-9]+\\.[0-9]+\\.[0-9]+$" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] } }