@cyberskill/cyber-editor 3.8.9 → 3.9.1

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.
Files changed (177) hide show
  1. package/README.md +3 -3
  2. package/dist/_tsup-dts-rollup.d.cts +196 -0
  3. package/dist/_tsup-dts-rollup.d.ts +196 -0
  4. package/dist/index.cjs +1 -0
  5. package/dist/index.d.cts +20 -0
  6. package/dist/index.d.ts +20 -0
  7. package/dist/index.js +1 -0
  8. package/dist/modules/accordion/accordion-extension.cjs +1 -0
  9. package/dist/modules/accordion/accordion-extension.d.cts +1 -0
  10. package/dist/modules/accordion/accordion-extension.d.ts +1 -0
  11. package/dist/modules/accordion/accordion-extension.js +1 -0
  12. package/dist/modules/accordion/accordion-view.component.cjs +1 -0
  13. package/dist/modules/accordion/accordion-view.component.d.cts +1 -0
  14. package/dist/modules/accordion/accordion-view.component.d.ts +1 -0
  15. package/dist/modules/accordion/accordion-view.component.js +1 -0
  16. package/dist/modules/accordion/accordion-view.type.cjs +1 -0
  17. package/dist/modules/accordion/accordion-view.type.d.cts +2 -0
  18. package/dist/modules/accordion/accordion-view.type.d.ts +2 -0
  19. package/dist/modules/accordion/accordion-view.type.js +0 -0
  20. package/dist/modules/accordion/index.cjs +1 -0
  21. package/dist/modules/accordion/index.d.cts +4 -0
  22. package/dist/modules/accordion/index.d.ts +4 -0
  23. package/dist/modules/accordion/index.js +1 -0
  24. package/dist/modules/color-picker/color-picker.component.cjs +1 -0
  25. package/dist/modules/color-picker/color-picker.component.d.cts +1 -0
  26. package/dist/modules/color-picker/color-picker.component.d.ts +1 -0
  27. package/dist/modules/color-picker/color-picker.component.js +1 -0
  28. package/dist/modules/color-picker/color-picker.type.cjs +1 -0
  29. package/dist/modules/color-picker/color-picker.type.d.cts +1 -0
  30. package/dist/modules/color-picker/color-picker.type.d.ts +1 -0
  31. package/dist/modules/color-picker/color-picker.type.js +0 -0
  32. package/dist/modules/color-picker/index.cjs +1 -0
  33. package/dist/modules/color-picker/index.d.cts +2 -0
  34. package/dist/modules/color-picker/index.d.ts +2 -0
  35. package/dist/modules/color-picker/index.js +1 -0
  36. package/dist/modules/editor/editor.component.cjs +1 -0
  37. package/dist/modules/editor/editor.component.d.cts +1 -0
  38. package/dist/modules/editor/editor.component.d.ts +1 -0
  39. package/dist/modules/editor/editor.component.js +1 -0
  40. package/dist/modules/editor/editor.constant.cjs +1 -0
  41. package/dist/modules/editor/editor.constant.d.cts +1 -0
  42. package/dist/modules/editor/editor.constant.d.ts +1 -0
  43. package/dist/modules/editor/editor.constant.js +1 -0
  44. package/dist/modules/editor/editor.module.d.cts +1 -0
  45. package/dist/modules/editor/editor.module.d.ts +1 -0
  46. package/dist/modules/editor/editor.module.scss +313 -0
  47. package/dist/modules/editor/editor.type.cjs +1 -0
  48. package/dist/modules/editor/editor.type.d.cts +1 -0
  49. package/dist/modules/editor/editor.type.d.ts +1 -0
  50. package/dist/modules/editor/editor.type.js +0 -0
  51. package/dist/modules/editor/index.cjs +1 -0
  52. package/dist/modules/editor/index.d.cts +3 -0
  53. package/dist/modules/editor/index.d.ts +3 -0
  54. package/dist/modules/editor/index.js +1 -0
  55. package/dist/modules/heading/heading.component.cjs +1 -0
  56. package/dist/modules/heading/heading.component.d.cts +1 -0
  57. package/dist/modules/heading/heading.component.d.ts +1 -0
  58. package/dist/modules/heading/heading.component.js +1 -0
  59. package/dist/modules/heading/heading.type.cjs +1 -0
  60. package/dist/modules/heading/heading.type.d.cts +1 -0
  61. package/dist/modules/heading/heading.type.d.ts +1 -0
  62. package/dist/modules/heading/heading.type.js +0 -0
  63. package/dist/modules/heading/index.cjs +1 -0
  64. package/dist/modules/heading/index.d.cts +2 -0
  65. package/dist/modules/heading/index.d.ts +2 -0
  66. package/dist/modules/heading/index.js +1 -0
  67. package/dist/modules/home/home.page.cjs +1 -0
  68. package/dist/modules/home/home.page.d.cts +1 -0
  69. package/dist/modules/home/home.page.d.ts +1 -0
  70. package/dist/modules/home/home.page.js +1 -0
  71. package/dist/modules/home/index.cjs +1 -0
  72. package/dist/modules/home/index.d.cts +1 -0
  73. package/dist/modules/home/index.d.ts +1 -0
  74. package/dist/modules/home/index.js +1 -0
  75. package/dist/modules/image/image-view.component.cjs +1 -0
  76. package/dist/modules/image/image-view.component.d.cts +1 -0
  77. package/dist/modules/image/image-view.component.d.ts +1 -0
  78. package/dist/modules/image/image-view.component.js +1 -0
  79. package/dist/modules/image/image-view.type.cjs +1 -0
  80. package/dist/modules/image/image-view.type.d.cts +2 -0
  81. package/dist/modules/image/image-view.type.d.ts +2 -0
  82. package/dist/modules/image/image-view.type.js +0 -0
  83. package/dist/modules/image/image.cjs +1 -0
  84. package/dist/modules/image/image.d.cts +1 -0
  85. package/dist/modules/image/image.d.ts +1 -0
  86. package/dist/modules/image/image.js +1 -0
  87. package/dist/modules/image/index.cjs +1 -0
  88. package/dist/modules/image/index.d.cts +4 -0
  89. package/dist/modules/image/index.d.ts +4 -0
  90. package/dist/modules/image/index.js +1 -0
  91. package/dist/modules/index.cjs +1 -0
  92. package/dist/modules/index.d.cts +20 -0
  93. package/dist/modules/index.d.ts +20 -0
  94. package/dist/modules/index.js +1 -0
  95. package/dist/modules/table/index.cjs +1 -0
  96. package/dist/modules/table/index.d.cts +2 -0
  97. package/dist/modules/table/index.d.ts +2 -0
  98. package/dist/modules/table/index.js +1 -0
  99. package/dist/modules/table/table.component.cjs +1 -0
  100. package/dist/modules/table/table.component.d.cts +1 -0
  101. package/dist/modules/table/table.component.d.ts +1 -0
  102. package/dist/modules/table/table.component.js +1 -0
  103. package/dist/modules/table/table.type.cjs +1 -0
  104. package/dist/modules/table/table.type.d.cts +1 -0
  105. package/dist/modules/table/table.type.d.ts +1 -0
  106. package/dist/modules/table/table.type.js +0 -0
  107. package/dist/modules/toolbar/index.cjs +1 -0
  108. package/dist/modules/toolbar/index.d.cts +2 -0
  109. package/dist/modules/toolbar/index.d.ts +2 -0
  110. package/dist/modules/toolbar/index.js +1 -0
  111. package/dist/modules/toolbar/toolbar.component.cjs +1 -0
  112. package/dist/modules/toolbar/toolbar.component.d.cts +1 -0
  113. package/dist/modules/toolbar/toolbar.component.d.ts +1 -0
  114. package/dist/modules/toolbar/toolbar.component.js +1 -0
  115. package/dist/modules/toolbar/toolbar.custom.component.cjs +1 -0
  116. package/dist/modules/toolbar/toolbar.custom.component.d.cts +1 -0
  117. package/dist/modules/toolbar/toolbar.custom.component.d.ts +1 -0
  118. package/dist/modules/toolbar/toolbar.custom.component.js +1 -0
  119. package/dist/shared/component/color-picker/color-picker.component.cjs +1 -0
  120. package/dist/shared/component/color-picker/color-picker.component.d.cts +1 -0
  121. package/dist/shared/component/color-picker/color-picker.component.d.ts +1 -0
  122. package/dist/shared/component/color-picker/color-picker.component.js +1 -0
  123. package/dist/shared/component/color-picker/color-picker.type.cjs +1 -0
  124. package/dist/shared/component/color-picker/color-picker.type.d.cts +1 -0
  125. package/dist/shared/component/color-picker/color-picker.type.d.ts +1 -0
  126. package/dist/shared/component/color-picker/color-picker.type.js +0 -0
  127. package/dist/shared/component/color-picker/index.cjs +1 -0
  128. package/dist/shared/component/color-picker/index.d.cts +2 -0
  129. package/dist/shared/component/color-picker/index.d.ts +2 -0
  130. package/dist/shared/component/color-picker/index.js +1 -0
  131. package/dist/shared/component/index.cjs +1 -0
  132. package/dist/shared/component/index.d.cts +4 -0
  133. package/dist/shared/component/index.d.ts +4 -0
  134. package/dist/shared/component/index.js +1 -0
  135. package/dist/shared/component/modal-edit/index.cjs +1 -0
  136. package/dist/shared/component/modal-edit/index.d.cts +2 -0
  137. package/dist/shared/component/modal-edit/index.d.ts +2 -0
  138. package/dist/shared/component/modal-edit/index.js +1 -0
  139. package/dist/shared/component/modal-edit/modal-edit.component.cjs +1 -0
  140. package/dist/shared/component/modal-edit/modal-edit.component.d.cts +1 -0
  141. package/dist/shared/component/modal-edit/modal-edit.component.d.ts +1 -0
  142. package/dist/shared/component/modal-edit/modal-edit.component.js +1 -0
  143. package/dist/shared/component/modal-edit/modal-edit.type.cjs +1 -0
  144. package/dist/shared/component/modal-edit/modal-edit.type.d.cts +1 -0
  145. package/dist/shared/component/modal-edit/modal-edit.type.d.ts +1 -0
  146. package/dist/shared/component/modal-edit/modal-edit.type.js +0 -0
  147. package/dist/shared/style/global.css +2 -0
  148. package/dist/shared/style/global.d.cts +1 -0
  149. package/dist/shared/style/global.d.ts +1 -0
  150. package/dist/shared/typescript/style.d.cjs +1 -0
  151. package/dist/shared/typescript/style.d.d.cts +1 -0
  152. package/dist/shared/typescript/style.d.d.ts +1 -0
  153. package/dist/shared/typescript/style.d.js +0 -0
  154. package/package.json +43 -33
  155. package/dist/client/_commonjsHelpers-C6fGbg64.js +0 -6
  156. package/dist/client/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  157. package/dist/client/assets/manifest-e1ae6e39.js +0 -1
  158. package/dist/client/chunk-D4RADZKF-CqCYZIAv.js +0 -6257
  159. package/dist/client/chunk-D4RADZKF-sLhgGPy5.cjs +0 -56
  160. package/dist/client/cyber-editor.cjs.js +0 -259
  161. package/dist/client/cyber-editor.cjs2.js +0 -1
  162. package/dist/client/cyber-editor.cjs3.js +0 -1
  163. package/dist/client/cyber-editor.cjs4.js +0 -604
  164. package/dist/client/cyber-editor.cjs5.js +0 -1
  165. package/dist/client/cyber-editor.css +0 -1
  166. package/dist/client/cyber-editor.es.js +0 -25364
  167. package/dist/client/cyber-editor.es2.js +0 -55
  168. package/dist/client/cyber-editor.es3.js +0 -11
  169. package/dist/client/cyber-editor.es4.js +0 -46769
  170. package/dist/client/cyber-editor.es5.js +0 -11
  171. package/dist/client/index-HJNgKdvE.cjs +0 -5
  172. package/dist/client/index-rkLJDvut.js +0 -156
  173. package/dist/client/index.html +0 -6
  174. package/dist/client/with-props-Ba4118z_.js +0 -27
  175. package/dist/client/with-props-CuGIah2q.cjs +0 -1
  176. /package/{dist/client → public}/assets/icons/index.ts +0 -0
  177. /package/{dist/client → public}/favicon.svg +0 -0
package/package.json CHANGED
@@ -1,43 +1,44 @@
1
1
  {
2
2
  "name": "@cyberskill/cyber-editor",
3
3
  "type": "module",
4
- "version": "3.8.9",
5
- "description": "Update version tailwind v4",
4
+ "version": "3.9.1",
5
+ "description": "Cyber Editor",
6
+ "author": "Stephen Cheng",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/cyberskill-world/cyber-editor#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/cyberskill-world/cyber-editor.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/cyberskill-world/cyber-editor/issues"
15
+ },
6
16
  "exports": {
7
17
  ".": {
8
18
  "types": "./dist/index.d.ts",
9
- "import": "./dist/cyber-editor.es.js",
10
- "require": "./dist/cyber-editor.cjs.js"
11
- },
12
- "./index.css": "./dist/cyber-editor.css"
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
+ }
13
22
  },
14
- "main": "dist/cyber-editor.cjs.js",
15
- "module": "dist/cyber-editor.es.js",
16
- "types": "dist/index.d.ts",
17
23
  "files": [
18
- "dist"
24
+ "dist",
25
+ "public"
19
26
  ],
20
27
  "scripts": {
21
- "build": "dotenvx run -- react-router build",
22
- "build:types": "tsc -p tsconfig.types.json",
23
- "build:publish": "npm run build && npm publish",
24
- "dev": "run-s prepare start:dev",
28
+ "build": "tsup",
29
+ "dev": "tsup --watch",
25
30
  "lint": "cyberskill lint",
26
31
  "lint:fix": "cyberskill lint:fix",
27
32
  "lint:inspect": "cyberskill lint:inspect",
28
33
  "reset": "cyberskill reset",
29
34
  "prepare": "cyberskill prepare",
30
35
  "inspect": "cyberskill inspect",
31
- "start:dev": "dotenvx run -- react-router dev",
32
- "start": "dotenvx run -- react-router-serve ./build/server/index.js"
36
+ "storybook": "storybook dev -p 6006",
37
+ "build-storybook": "storybook build"
33
38
  },
34
39
  "dependencies": {
35
- "@cyberskill/shared": "1.169.0",
36
- "@dotenvx/dotenvx": "1.44.0",
37
- "@react-router/dev": "7.6.0",
38
- "@react-router/node": "7.6.0",
39
- "@react-router/serve": "7.6.0",
40
- "@tailwindcss/vite": "4.1.7",
40
+ "@cyberskill/shared": "1.173.0",
41
+ "@microsoft/api-extractor": "7.52.8",
41
42
  "@tiptap/core": "2.12.0",
42
43
  "@tiptap/extension-color": "2.12.0",
43
44
  "@tiptap/extension-heading": "2.12.0",
@@ -58,30 +59,39 @@
58
59
  "@tiptap/react": "2.12.0",
59
60
  "@tiptap/starter-kit": "2.12.0",
60
61
  "antd": "5.25.2",
61
- "classnames": "2.5.1",
62
- "envalid": "8.0.0",
63
- "isbot": "^5",
62
+ "clsx": "2.1.1",
64
63
  "lucide-react": "0.511.0",
65
- "npm-run-all2": "8.0.2",
66
64
  "react": "19.1.0",
67
65
  "react-dom": "19.1.0",
68
66
  "react-icons": "5.5.0",
69
- "react-resizable": "3.0.5",
70
- "react-router": "7.6.0",
67
+ "react-router": "7.6.1",
71
68
  "tailwindcss": "4.1.7",
72
- "typescript": "5.8.3",
73
- "vite": "6.3.5"
69
+ "tsup": "8.5.0",
70
+ "typescript": "5.8.3"
74
71
  },
75
72
  "devDependencies": {
73
+ "@chromatic-com/storybook": "^3.2.6",
76
74
  "@commitlint/cli": "19.8.1",
77
75
  "@commitlint/config-conventional": "19.8.1",
78
76
  "@eslint/config-inspector": "1.0.2",
79
- "@types/react": "19.1.4",
77
+ "@storybook/addon-essentials": "^8.6.14",
78
+ "@storybook/addon-onboarding": "^8.6.14",
79
+ "@storybook/blocks": "^8.6.14",
80
+ "@storybook/react": "^8.6.14",
81
+ "@storybook/react-vite": "^8.6.14",
82
+ "@storybook/test": "^8.6.14",
83
+ "@types/react": "19.1.5",
80
84
  "@types/react-dom": "19.1.5",
81
- "@types/react-resizable": "3.0.8",
82
85
  "eslint": "9.27.0",
86
+ "eslint-plugin-storybook": "0.12.0",
83
87
  "lint-staged": "16.0.0",
84
88
  "node-modules-inspector": "0.6.8",
85
- "simple-git-hooks": "2.13.0"
89
+ "simple-git-hooks": "2.13.0",
90
+ "storybook": "^8.6.14"
91
+ },
92
+ "eslintConfig": {
93
+ "extends": [
94
+ "plugin:storybook/recommended"
95
+ ]
86
96
  }
87
97
  }
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
4
- export {
5
- e as g
6
- };
@@ -1 +0,0 @@
1
- "use strict";function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
@@ -1 +0,0 @@
1
- window.__reactRouterManifest={"entry":{"module":"/cyber-editor.cjs.js","imports":["/chunk-D4RADZKF-sLhgGPy5.cjs","/_commonjsHelpers-DwGv2jUC.cjs"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/cyber-editor.cjs2.js","imports":["/chunk-D4RADZKF-sLhgGPy5.cjs","/_commonjsHelpers-DwGv2jUC.cjs","/with-props-CuGIah2q.cjs","/index-HJNgKdvE.cjs"],"css":[]},"shared/layout/blank/index":{"id":"shared/layout/blank/index","parentId":"root","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/cyber-editor.cjs3.js","imports":["/with-props-CuGIah2q.cjs","/chunk-D4RADZKF-sLhgGPy5.cjs"],"css":[]},"pages/home/index":{"id":"pages/home/index","parentId":"shared/layout/blank/index","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/cyber-editor.cjs4.js","imports":["/with-props-CuGIah2q.cjs","/chunk-D4RADZKF-sLhgGPy5.cjs","/index-HJNgKdvE.cjs","/_commonjsHelpers-DwGv2jUC.cjs"],"css":[]},"pages/error/404":{"id":"pages/error/404","parentId":"root","path":"*?","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasErrorBoundary":false,"module":"/cyber-editor.cjs5.js","imports":["/with-props-CuGIah2q.cjs","/chunk-D4RADZKF-sLhgGPy5.cjs"],"css":[]}},"url":"/assets/manifest-e1ae6e39.js","version":"e1ae6e39"};