@lofcz/pptist 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/RELEASE.md CHANGED
@@ -1,47 +1,47 @@
1
- # Releasing `@lofcz/pptist`
2
-
3
- PPTist publishes the embed package through npm trusted publishing, matching the release model used by `@lofcz/edix`.
4
-
5
- ## One-Time npm Setup
6
-
7
- In npm, configure trusted publishing for `@lofcz/pptist`:
8
-
9
- - Package: `@lofcz/pptist`
10
- - Repository owner/name: `lofcz/PPTist`
11
- - Workflow filename: `release.yml`
12
- - Environment: leave empty unless the repository later adds a protected environment
13
-
14
- No `NPM_TOKEN` secret is needed. The GitHub Actions workflow uses OIDC with `id-token: write` and publishes with provenance.
15
-
16
- ## Release Flow
17
-
18
- 1. Ensure the working branch is merged to the release branch.
19
- 2. Open GitHub Actions.
20
- 3. Run **Release and Publish to npm** manually.
21
- 4. Choose `patch`, `minor`, or `major`.
22
-
23
- The workflow:
24
-
25
- 1. Installs with `npm ci`.
26
- 2. Runs `npm run test:agentic-bridge`.
27
- 3. Runs `npm run type-check`.
28
- 4. Runs `npm run build:embed`.
29
- 5. Verifies package contents with `npm pack --dry-run`.
30
- 6. Bumps `package.json` / `package-lock.json`.
31
- 7. Publishes with `npm publish --provenance --access public`.
32
- 8. Pushes the release commit/tag and creates a GitHub release.
33
-
34
- ## Consumer Install
35
-
36
- ```bash
37
- npm install @lofcz/pptist
38
- ```
39
-
40
- Use:
41
-
42
- ```ts
43
- import { mountPptist } from '@lofcz/pptist/embed'
44
- import type { PptistController } from '@lofcz/pptist/embed'
45
- ```
46
-
47
- Load `pptist-embed.css` and copy/serve the package's `dist/embed` folder as application assets. Do not import the CSS into the host bundler.
1
+ # Releasing `@lofcz/pptist`
2
+
3
+ PPTist publishes the embed package through npm trusted publishing, matching the release model used by `@lofcz/edix`.
4
+
5
+ ## One-Time npm Setup
6
+
7
+ In npm, configure trusted publishing for `@lofcz/pptist`:
8
+
9
+ - Package: `@lofcz/pptist`
10
+ - Repository owner/name: `lofcz/PPTist`
11
+ - Workflow filename: `release.yml`
12
+ - Environment: leave empty unless the repository later adds a protected environment
13
+
14
+ No `NPM_TOKEN` secret is needed. The GitHub Actions workflow uses OIDC with `id-token: write` and publishes with provenance.
15
+
16
+ ## Release Flow
17
+
18
+ 1. Ensure the working branch is merged to the release branch.
19
+ 2. Open GitHub Actions.
20
+ 3. Run **Release and Publish to npm** manually.
21
+ 4. Choose `patch`, `minor`, or `major`.
22
+
23
+ The workflow:
24
+
25
+ 1. Installs with `npm ci`.
26
+ 2. Runs `npm run test:agentic-bridge`.
27
+ 3. Runs `npm run type-check`.
28
+ 4. Runs `npm run build:embed`.
29
+ 5. Verifies package contents with `npm pack --dry-run`.
30
+ 6. Bumps `package.json` / `package-lock.json`.
31
+ 7. Publishes with `npm publish --provenance --access public`.
32
+ 8. Pushes the release commit/tag and creates a GitHub release.
33
+
34
+ ## Consumer Install
35
+
36
+ ```bash
37
+ npm install @lofcz/pptist
38
+ ```
39
+
40
+ Use:
41
+
42
+ ```ts
43
+ import { mountPptist } from '@lofcz/pptist/embed'
44
+ import type { PptistController } from '@lofcz/pptist/embed'
45
+ ```
46
+
47
+ Load `pptist-embed.css` and copy/serve the package's `dist/embed` folder as application assets. Do not import the CSS into the host bundler.
package/package.json CHANGED
@@ -1,127 +1,129 @@
1
- {
2
- "name": "@lofcz/pptist",
3
- "version": "2.0.0",
4
- "description": "PPTist presentation editor embed bundle with a typed agentic bridge.",
5
- "type": "module",
6
- "main": "dist/embed/pptist-embed.js",
7
- "module": "dist/embed/pptist-embed.js",
8
- "types": "dist/types/embed/index.d.ts",
9
- "files": [
10
- "dist/embed",
11
- "dist/types",
12
- "docs/EMBED.md",
13
- "docs/AGENTIC_BRIDGE.md",
14
- "docs/RELEASE.md"
15
- ],
16
- "exports": {
17
- ".": {
18
- "types": "./dist/types/embed/index.d.ts",
19
- "import": "./dist/embed/pptist-embed.js",
20
- "default": "./dist/embed/pptist-embed.js"
21
- },
22
- "./embed": {
23
- "types": "./dist/types/embed/index.d.ts",
24
- "import": "./dist/embed/pptist-embed.js",
25
- "default": "./dist/embed/pptist-embed.js"
26
- },
27
- "./embed.css": {
28
- "import": "./dist/embed/pptist-embed.css",
29
- "default": "./dist/embed/pptist-embed.css"
30
- },
31
- "./package.json": "./package.json"
32
- },
33
- "publishConfig": {
34
- "access": "public"
35
- },
36
- "sideEffects": [
37
- "*.css",
38
- "dist/embed/pptist-embed.css"
39
- ],
40
- "scripts": {
41
- "dev": "vp dev",
42
- "build": "run-p type-check \"build-only {@}\" --",
43
- "build:embed": "npm run i18n:build && npm run build:types && vp build --config vite.config.embed.ts && node scripts/scope-embed-css.mjs && node scripts/extract-embed-fonts.mjs && node scripts/copy-embed-public.mjs",
44
- "build:types": "node -e \"require('node:fs').rmSync('dist/types',{recursive:true,force:true})\" && vue-tsc -p tsconfig.types.json && node scripts/rewrite-embed-types.mjs",
45
- "preview": "vp preview",
46
- "build-only": "vp build",
47
- "type-check": "vue-tsc --build --force",
48
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
49
- "prepare": "husky install",
50
- "i18n": "typesafe-i18n",
51
- "i18n:build": "typesafe-i18n --no-watch",
52
- "test:agentic-bridge": "node scripts/check-agentic-bridge.mjs"
53
- },
54
- "author": "pipipi_pikachu@163.com",
55
- "license": "MIT",
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/lofcz/PPTist.git"
59
- },
60
- "bugs": {
61
- "url": "https://github.com/lofcz/PPTist/issues"
62
- },
63
- "homepage": "https://github.com/lofcz/PPTist#readme",
64
- "dependencies": {
65
- "animate.css": "^4.1.1",
66
- "axios": "^1.7.9",
67
- "clipboard": "^2.0.11",
68
- "crypto-js": "^4.2.0",
69
- "dexie": "^4.0.11",
70
- "echarts": "^6.0.0",
71
- "file-saver": "^2.0.5",
72
- "hfmath": "^0.0.2",
73
- "html-to-image": "^1.11.13",
74
- "jsonrepair": "^3.13.2",
75
- "lodash": "^4.17.21",
76
- "mitt": "^3.0.1",
77
- "nanoid": "^5.0.7",
78
- "number-precision": "^1.6.0",
79
- "pinia": "^3.0.2",
80
- "pptxgenjs": "^3.12.0",
81
- "pptxtojson": "^2.0.3",
82
- "prosemirror-commands": "^1.6.0",
83
- "prosemirror-dropcursor": "^1.8.1",
84
- "prosemirror-gapcursor": "^1.3.2",
85
- "prosemirror-history": "^1.3.2",
86
- "prosemirror-inputrules": "^1.4.0",
87
- "prosemirror-keymap": "^1.2.2",
88
- "prosemirror-model": "^1.22.2",
89
- "prosemirror-schema-basic": "^1.2.3",
90
- "prosemirror-schema-list": "^1.4.1",
91
- "prosemirror-state": "^1.4.3",
92
- "prosemirror-view": "^1.33.9",
93
- "svg-pathdata": "^7.1.0",
94
- "tinycolor2": "^1.6.0",
95
- "tippy.js": "^6.3.7",
96
- "vue": "^3.5.17",
97
- "vuedraggable": "^4.1.0"
98
- },
99
- "devDependencies": {
100
- "@commitlint/cli": "^18.4.3",
101
- "@commitlint/config-conventional": "^18.4.3",
102
- "@iconify-json/icon-park-outline": "^1.2.4",
103
- "@iconify-json/icon-park-solid": "^1.2.4",
104
- "@rushstack/eslint-patch": "^1.3.3",
105
- "@tsconfig/node18": "^18.2.2",
106
- "@types/crypto-js": "^4.2.1",
107
- "@types/file-saver": "^2.0.7",
108
- "@types/lodash": "^4.14.202",
109
- "@types/node": "^25.9.1",
110
- "@types/tinycolor2": "^1.4.6",
111
- "@vitejs/plugin-vue": "^6.0.7",
112
- "@vue/eslint-config-typescript": "^12.0.0",
113
- "@vue/tsconfig": "^0.9.1",
114
- "eslint": "^8.49.0",
115
- "eslint-plugin-vue": "^9.17.0",
116
- "husky": "^8.0.3",
117
- "npm-run-all2": "^6.1.1",
118
- "sass": "^1.100.0",
119
- "typesafe-i18n": "^5.27.1",
120
- "typescript": "^6.0.3",
121
- "unplugin-icons": "^22.5.0",
122
- "unplugin-vue-components": "^30.0.0",
123
- "vite": "npm:@voidzero-dev/vite-plus-core@^0.1.23",
124
- "vite-plus": "^0.1.23",
125
- "vue-tsc": "^3.3.3"
126
- }
127
- }
1
+ {
2
+ "name": "@lofcz/pptist",
3
+ "version": "2.0.2",
4
+ "description": "PPTist presentation editor embed bundle with a typed agentic bridge.",
5
+ "type": "module",
6
+ "main": "dist/embed/pptist-embed.js",
7
+ "module": "dist/embed/pptist-embed.js",
8
+ "types": "dist/types/embed/index.d.ts",
9
+ "files": [
10
+ "dist/embed",
11
+ "dist/types",
12
+ "docs/EMBED.md",
13
+ "docs/AGENTIC_BRIDGE.md",
14
+ "docs/RELEASE.md"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/types/embed/index.d.ts",
19
+ "import": "./dist/embed/pptist-embed.js",
20
+ "default": "./dist/embed/pptist-embed.js"
21
+ },
22
+ "./embed": {
23
+ "types": "./dist/types/embed/index.d.ts",
24
+ "import": "./dist/embed/pptist-embed.js",
25
+ "default": "./dist/embed/pptist-embed.js"
26
+ },
27
+ "./embed.css": {
28
+ "import": "./dist/embed/pptist-embed.css",
29
+ "default": "./dist/embed/pptist-embed.css"
30
+ },
31
+ "./agentic-manifest.json": "./dist/embed/agentic-manifest.json",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "sideEffects": [
38
+ "*.css",
39
+ "dist/embed/pptist-embed.css"
40
+ ],
41
+ "scripts": {
42
+ "dev": "vp dev",
43
+ "build": "run-p type-check \"build-only {@}\" --",
44
+ "build:embed": "npm run i18n:build && npm run build:types && vp build --config vite.config.embed.ts && node scripts/scope-embed-css.mjs && node scripts/extract-embed-fonts.mjs && node scripts/copy-embed-public.mjs && node scripts/generate-agentic-manifest.mjs",
45
+ "agentic:manifest": "node scripts/generate-agentic-manifest.mjs",
46
+ "build:types": "node -e \"require('node:fs').rmSync('dist/types',{recursive:true,force:true})\" && vue-tsc -p tsconfig.types.json && node scripts/rewrite-embed-types.mjs",
47
+ "preview": "vp preview",
48
+ "build-only": "vp build",
49
+ "type-check": "vue-tsc --build --force",
50
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
51
+ "prepare": "husky install",
52
+ "i18n": "typesafe-i18n",
53
+ "i18n:build": "typesafe-i18n --no-watch",
54
+ "test:agentic-bridge": "node scripts/check-agentic-bridge.mjs"
55
+ },
56
+ "author": "pipipi_pikachu@163.com",
57
+ "license": "MIT",
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/lofcz/PPTist.git"
61
+ },
62
+ "bugs": {
63
+ "url": "https://github.com/lofcz/PPTist/issues"
64
+ },
65
+ "homepage": "https://github.com/lofcz/PPTist#readme",
66
+ "dependencies": {
67
+ "animate.css": "^4.1.1",
68
+ "axios": "^1.7.9",
69
+ "clipboard": "^2.0.11",
70
+ "crypto-js": "^4.2.0",
71
+ "dexie": "^4.0.11",
72
+ "echarts": "^6.0.0",
73
+ "file-saver": "^2.0.5",
74
+ "hfmath": "^0.0.2",
75
+ "html-to-image": "^1.11.13",
76
+ "jsonrepair": "^3.13.2",
77
+ "lodash": "^4.17.21",
78
+ "mitt": "^3.0.1",
79
+ "nanoid": "^5.0.7",
80
+ "number-precision": "^1.6.0",
81
+ "pinia": "^3.0.2",
82
+ "pptxgenjs": "^3.12.0",
83
+ "pptxtojson": "^2.0.3",
84
+ "prosemirror-commands": "^1.6.0",
85
+ "prosemirror-dropcursor": "^1.8.1",
86
+ "prosemirror-gapcursor": "^1.3.2",
87
+ "prosemirror-history": "^1.3.2",
88
+ "prosemirror-inputrules": "^1.4.0",
89
+ "prosemirror-keymap": "^1.2.2",
90
+ "prosemirror-model": "^1.22.2",
91
+ "prosemirror-schema-basic": "^1.2.3",
92
+ "prosemirror-schema-list": "^1.4.1",
93
+ "prosemirror-state": "^1.4.3",
94
+ "prosemirror-view": "^1.33.9",
95
+ "svg-pathdata": "^7.1.0",
96
+ "tinycolor2": "^1.6.0",
97
+ "tippy.js": "^6.3.7",
98
+ "vue": "^3.5.17",
99
+ "vuedraggable": "^4.1.0"
100
+ },
101
+ "devDependencies": {
102
+ "@commitlint/cli": "^18.4.3",
103
+ "@commitlint/config-conventional": "^18.4.3",
104
+ "@iconify-json/icon-park-outline": "^1.2.4",
105
+ "@iconify-json/icon-park-solid": "^1.2.4",
106
+ "@rushstack/eslint-patch": "^1.3.3",
107
+ "@tsconfig/node18": "^18.2.2",
108
+ "@types/crypto-js": "^4.2.1",
109
+ "@types/file-saver": "^2.0.7",
110
+ "@types/lodash": "^4.14.202",
111
+ "@types/node": "^25.9.1",
112
+ "@types/tinycolor2": "^1.4.6",
113
+ "@vitejs/plugin-vue": "^6.0.7",
114
+ "@vue/eslint-config-typescript": "^12.0.0",
115
+ "@vue/tsconfig": "^0.9.1",
116
+ "eslint": "^8.49.0",
117
+ "eslint-plugin-vue": "^9.17.0",
118
+ "husky": "^8.0.3",
119
+ "npm-run-all2": "^6.1.1",
120
+ "sass": "^1.100.0",
121
+ "typesafe-i18n": "^5.27.1",
122
+ "typescript": "^6.0.3",
123
+ "unplugin-icons": "^22.5.0",
124
+ "unplugin-vue-components": "^30.0.0",
125
+ "vite": "npm:@voidzero-dev/vite-plus-core@^0.1.23",
126
+ "vite-plus": "^0.1.23",
127
+ "vue-tsc": "^3.3.3"
128
+ }
129
+ }