@aatulwork/customform-renderer 1.3.0 → 1.5.0
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/README.md +22 -0
- package/dist/vite-plugin.js +50 -0
- package/dist/vite-plugin.js.map +1 -0
- package/dist/vite-plugin.mjs +45 -0
- package/dist/vite-plugin.mjs.map +1 -0
- package/package.json +34 -5
package/README.md
CHANGED
|
@@ -52,6 +52,27 @@ const { isReady } = useCKEditor({ autoLoad: true });
|
|
|
52
52
|
|
|
53
53
|
See [CKEditor Setup Guide](#ckeditor-setup) for more details.
|
|
54
54
|
|
|
55
|
+
### Using with Vite
|
|
56
|
+
|
|
57
|
+
**You do not need any Vite config** to use this package. The package ships correct `module` and `exports` so Vite resolves it without aliases.
|
|
58
|
+
|
|
59
|
+
- **Dependencies:** The package installs `@emotion/react`, `@emotion/styled`, and `@mui/system`; you only need to install the [peer dependencies](#peer-dependencies) (React, MUI, react-hook-form, etc.).
|
|
60
|
+
|
|
61
|
+
If you use **SSR** or see module resolution / pre-bundling issues, add the optional plugin (one line):
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
// vite.config.ts
|
|
65
|
+
import { defineConfig } from 'vite';
|
|
66
|
+
import react from '@vitejs/plugin-react';
|
|
67
|
+
import { customformRendererVite } from '@aatulwork/customform-renderer/vite';
|
|
68
|
+
|
|
69
|
+
export default defineConfig({
|
|
70
|
+
plugins: [react(), customformRendererVite()],
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The plugin applies `optimizeDeps.include`, `ssr.noExternal`, and excludes the package’s CKEditor script from pre-bundling. You can pass options: `customformRendererVite({ excludeCkeditorFromOptimize: false })` if you load CKEditor only via a script tag.
|
|
75
|
+
|
|
55
76
|
## Package Exports
|
|
56
77
|
|
|
57
78
|
The package exports the following:
|
|
@@ -63,6 +84,7 @@ The package exports the following:
|
|
|
63
84
|
- **Utils:** `getAllFields`, `normalizeInitialValues`, `transformFormValues`, `getDefaultValue`, `formatFileSize`, `validateFile`, `buildFieldRules`, `normalizeOptions`
|
|
64
85
|
- **CKEditor:** `loadCKEditor`, `isCKEditorAvailable`, `waitForCKEditor`, `useCKEditor`
|
|
65
86
|
- **Default services:** `defaultFileUploadService`, `defaultFormReferenceService`, `defaultApiReferenceService`, `defaultDateFormatterService` (throw if used without override; provide your own via `services`)
|
|
87
|
+
- **Vite:** `customformRendererVite` from `@aatulwork/customform-renderer/vite` (optional plugin for SSR / optimizeDeps)
|
|
66
88
|
|
|
67
89
|
## Quick Start
|
|
68
90
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
// src/vite-plugin.ts
|
|
6
|
+
var PACKAGE_NAME = "@aatulwork/customform-renderer";
|
|
7
|
+
function customformRendererVite(options = {}) {
|
|
8
|
+
const { excludeCkeditorFromOptimize = true } = options;
|
|
9
|
+
return {
|
|
10
|
+
name: "vite-plugin-customform-renderer",
|
|
11
|
+
config(config, _env) {
|
|
12
|
+
const optimizeDeps = config.optimizeDeps ?? {};
|
|
13
|
+
const include = Array.isArray(optimizeDeps.include) ? [...optimizeDeps.include] : [];
|
|
14
|
+
if (!include.includes(PACKAGE_NAME)) {
|
|
15
|
+
include.push(PACKAGE_NAME);
|
|
16
|
+
}
|
|
17
|
+
const exclude = Array.isArray(optimizeDeps.exclude) ? [...optimizeDeps.exclude] : [];
|
|
18
|
+
if (excludeCkeditorFromOptimize) {
|
|
19
|
+
const ckEditorPath = `${PACKAGE_NAME}/lib/ckeditor/ckeditor.js`;
|
|
20
|
+
if (!exclude.includes(ckEditorPath)) {
|
|
21
|
+
exclude.push(ckEditorPath);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const ssr = config.ssr ?? {};
|
|
25
|
+
const noExternal = ssr.noExternal;
|
|
26
|
+
const noExternalList = Array.isArray(noExternal) ? [...noExternal] : noExternal === true ? true : [PACKAGE_NAME];
|
|
27
|
+
if (Array.isArray(noExternalList) && !noExternalList.includes(PACKAGE_NAME)) {
|
|
28
|
+
noExternalList.push(PACKAGE_NAME);
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
...config,
|
|
32
|
+
optimizeDeps: {
|
|
33
|
+
...optimizeDeps,
|
|
34
|
+
include,
|
|
35
|
+
...exclude.length > 0 ? { exclude } : {}
|
|
36
|
+
},
|
|
37
|
+
ssr: {
|
|
38
|
+
...ssr,
|
|
39
|
+
noExternal: noExternalList
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var vite_plugin_default = customformRendererVite;
|
|
46
|
+
|
|
47
|
+
exports.customformRendererVite = customformRendererVite;
|
|
48
|
+
exports.default = vite_plugin_default;
|
|
49
|
+
//# sourceMappingURL=vite-plugin.js.map
|
|
50
|
+
//# sourceMappingURL=vite-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/vite-plugin.ts"],"names":[],"mappings":";;;;;AAOA,IAAM,YAAA,GAAe,gCAAA;AAmBd,SAAS,sBAAA,CAAuB,OAAA,GAA+C,EAAC,EAAW;AAChG,EAAA,MAAM,EAAE,2BAAA,GAA8B,IAAA,EAAK,GAAI,OAAA;AAE/C,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,iCAAA;AAAA,IACN,MAAA,CAAO,QAAoB,IAAA,EAAiB;AAC1C,MAAA,MAAM,YAAA,GAAe,MAAA,CAAO,YAAA,IAAgB,EAAC;AAC7C,MAAA,MAAM,OAAA,GAAU,KAAA,CAAM,OAAA,CAAQ,YAAA,CAAa,OAAO,CAAA,GAAI,CAAC,GAAG,YAAA,CAAa,OAAO,CAAA,GAAI,EAAC;AACnF,MAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAS,YAAY,CAAA,EAAG;AACnC,QAAA,OAAA,CAAQ,KAAK,YAAY,CAAA;AAAA,MAC3B;AACA,MAAA,MAAM,OAAA,GAAU,KAAA,CAAM,OAAA,CAAQ,YAAA,CAAa,OAAO,CAAA,GAAI,CAAC,GAAG,YAAA,CAAa,OAAO,CAAA,GAAI,EAAC;AACnF,MAAA,IAAI,2BAAA,EAA6B;AAC/B,QAAA,MAAM,YAAA,GAAe,GAAG,YAAY,CAAA,yBAAA,CAAA;AACpC,QAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAS,YAAY,CAAA,EAAG;AACnC,UAAA,OAAA,CAAQ,KAAK,YAAY,CAAA;AAAA,QAC3B;AAAA,MACF;AACA,MAAA,MAAM,GAAA,GAAM,MAAA,CAAO,GAAA,IAAO,EAAC;AAC3B,MAAA,MAAM,aAAa,GAAA,CAAI,UAAA;AACvB,MAAA,MAAM,cAAA,GAAiB,KAAA,CAAM,OAAA,CAAQ,UAAU,CAAA,GAC3C,CAAC,GAAG,UAAU,CAAA,GACd,UAAA,KAAe,IAAA,GACb,IAAA,GACA,CAAC,YAAY,CAAA;AACnB,MAAA,IAAI,KAAA,CAAM,QAAQ,cAAc,CAAA,IAAK,CAAC,cAAA,CAAe,QAAA,CAAS,YAAY,CAAA,EAAG;AAC3E,QAAA,cAAA,CAAe,KAAK,YAAY,CAAA;AAAA,MAClC;AAEA,MAAA,OAAO;AAAA,QACL,GAAG,MAAA;AAAA,QACH,YAAA,EAAc;AAAA,UACZ,GAAG,YAAA;AAAA,UACH,OAAA;AAAA,UACA,GAAI,OAAA,CAAQ,MAAA,GAAS,IAAI,EAAE,OAAA,KAAY;AAAC,SAC1C;AAAA,QACA,GAAA,EAAK;AAAA,UACH,GAAG,GAAA;AAAA,UACH,UAAA,EAAY;AAAA;AACd,OACF;AAAA,IACF;AAAA,GACF;AACF;AAEA,IAAO,mBAAA,GAAQ","file":"vite-plugin.js","sourcesContent":["/**\r\n * Optional Vite plugin for @aatulwork/customform-renderer.\r\n * Use only if you need SSR or dependency optimization workarounds (e.g. \"module not found\" in SSR).\r\n * With the package's fixed exports, most Vite projects work with zero config.\r\n */\r\nimport type { Plugin, UserConfig, ConfigEnv } from 'vite';\r\n\r\nconst PACKAGE_NAME = '@aatulwork/customform-renderer';\r\n\r\nexport interface CustomFormRendererVitePluginOptions {\r\n /** Exclude CKEditor script from pre-bundling (default: true). Set false if you load CKEditor via HTML only. */\r\n excludeCkeditorFromOptimize?: boolean;\r\n}\r\n\r\n/**\r\n * Vite plugin that applies recommended settings for @aatulwork/customform-renderer:\r\n * - optimizeDeps.include: pre-bundle the package for faster dev startup\r\n * - ssr.noExternal: bundle the package in SSR instead of externalizing it\r\n * - optimizeDeps.exclude: optionally exclude the package's CKEditor build from pre-bundling\r\n *\r\n * Usage in vite.config.ts:\r\n * import { customformRendererVite } from '@aatulwork/customform-renderer/vite';\r\n * export default defineConfig({\r\n * plugins: [react(), customformRendererVite()],\r\n * });\r\n */\r\nexport function customformRendererVite(options: CustomFormRendererVitePluginOptions = {}): Plugin {\r\n const { excludeCkeditorFromOptimize = true } = options;\r\n\r\n return {\r\n name: 'vite-plugin-customform-renderer',\r\n config(config: UserConfig, _env: ConfigEnv) {\r\n const optimizeDeps = config.optimizeDeps ?? {};\r\n const include = Array.isArray(optimizeDeps.include) ? [...optimizeDeps.include] : [];\r\n if (!include.includes(PACKAGE_NAME)) {\r\n include.push(PACKAGE_NAME);\r\n }\r\n const exclude = Array.isArray(optimizeDeps.exclude) ? [...optimizeDeps.exclude] : [];\r\n if (excludeCkeditorFromOptimize) {\r\n const ckEditorPath = `${PACKAGE_NAME}/lib/ckeditor/ckeditor.js`;\r\n if (!exclude.includes(ckEditorPath)) {\r\n exclude.push(ckEditorPath);\r\n }\r\n }\r\n const ssr = config.ssr ?? {};\r\n const noExternal = ssr.noExternal;\r\n const noExternalList = Array.isArray(noExternal)\r\n ? [...noExternal]\r\n : noExternal === true\r\n ? true\r\n : [PACKAGE_NAME];\r\n if (Array.isArray(noExternalList) && !noExternalList.includes(PACKAGE_NAME)) {\r\n noExternalList.push(PACKAGE_NAME);\r\n }\r\n\r\n return {\r\n ...config,\r\n optimizeDeps: {\r\n ...optimizeDeps,\r\n include,\r\n ...(exclude.length > 0 ? { exclude } : {}),\r\n },\r\n ssr: {\r\n ...ssr,\r\n noExternal: noExternalList,\r\n },\r\n };\r\n },\r\n };\r\n}\r\n\r\nexport default customformRendererVite;\r\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// src/vite-plugin.ts
|
|
2
|
+
var PACKAGE_NAME = "@aatulwork/customform-renderer";
|
|
3
|
+
function customformRendererVite(options = {}) {
|
|
4
|
+
const { excludeCkeditorFromOptimize = true } = options;
|
|
5
|
+
return {
|
|
6
|
+
name: "vite-plugin-customform-renderer",
|
|
7
|
+
config(config, _env) {
|
|
8
|
+
const optimizeDeps = config.optimizeDeps ?? {};
|
|
9
|
+
const include = Array.isArray(optimizeDeps.include) ? [...optimizeDeps.include] : [];
|
|
10
|
+
if (!include.includes(PACKAGE_NAME)) {
|
|
11
|
+
include.push(PACKAGE_NAME);
|
|
12
|
+
}
|
|
13
|
+
const exclude = Array.isArray(optimizeDeps.exclude) ? [...optimizeDeps.exclude] : [];
|
|
14
|
+
if (excludeCkeditorFromOptimize) {
|
|
15
|
+
const ckEditorPath = `${PACKAGE_NAME}/lib/ckeditor/ckeditor.js`;
|
|
16
|
+
if (!exclude.includes(ckEditorPath)) {
|
|
17
|
+
exclude.push(ckEditorPath);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const ssr = config.ssr ?? {};
|
|
21
|
+
const noExternal = ssr.noExternal;
|
|
22
|
+
const noExternalList = Array.isArray(noExternal) ? [...noExternal] : noExternal === true ? true : [PACKAGE_NAME];
|
|
23
|
+
if (Array.isArray(noExternalList) && !noExternalList.includes(PACKAGE_NAME)) {
|
|
24
|
+
noExternalList.push(PACKAGE_NAME);
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
...config,
|
|
28
|
+
optimizeDeps: {
|
|
29
|
+
...optimizeDeps,
|
|
30
|
+
include,
|
|
31
|
+
...exclude.length > 0 ? { exclude } : {}
|
|
32
|
+
},
|
|
33
|
+
ssr: {
|
|
34
|
+
...ssr,
|
|
35
|
+
noExternal: noExternalList
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
var vite_plugin_default = customformRendererVite;
|
|
42
|
+
|
|
43
|
+
export { customformRendererVite, vite_plugin_default as default };
|
|
44
|
+
//# sourceMappingURL=vite-plugin.mjs.map
|
|
45
|
+
//# sourceMappingURL=vite-plugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/vite-plugin.ts"],"names":[],"mappings":";AAOA,IAAM,YAAA,GAAe,gCAAA;AAmBd,SAAS,sBAAA,CAAuB,OAAA,GAA+C,EAAC,EAAW;AAChG,EAAA,MAAM,EAAE,2BAAA,GAA8B,IAAA,EAAK,GAAI,OAAA;AAE/C,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,iCAAA;AAAA,IACN,MAAA,CAAO,QAAoB,IAAA,EAAiB;AAC1C,MAAA,MAAM,YAAA,GAAe,MAAA,CAAO,YAAA,IAAgB,EAAC;AAC7C,MAAA,MAAM,OAAA,GAAU,KAAA,CAAM,OAAA,CAAQ,YAAA,CAAa,OAAO,CAAA,GAAI,CAAC,GAAG,YAAA,CAAa,OAAO,CAAA,GAAI,EAAC;AACnF,MAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAS,YAAY,CAAA,EAAG;AACnC,QAAA,OAAA,CAAQ,KAAK,YAAY,CAAA;AAAA,MAC3B;AACA,MAAA,MAAM,OAAA,GAAU,KAAA,CAAM,OAAA,CAAQ,YAAA,CAAa,OAAO,CAAA,GAAI,CAAC,GAAG,YAAA,CAAa,OAAO,CAAA,GAAI,EAAC;AACnF,MAAA,IAAI,2BAAA,EAA6B;AAC/B,QAAA,MAAM,YAAA,GAAe,GAAG,YAAY,CAAA,yBAAA,CAAA;AACpC,QAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAS,YAAY,CAAA,EAAG;AACnC,UAAA,OAAA,CAAQ,KAAK,YAAY,CAAA;AAAA,QAC3B;AAAA,MACF;AACA,MAAA,MAAM,GAAA,GAAM,MAAA,CAAO,GAAA,IAAO,EAAC;AAC3B,MAAA,MAAM,aAAa,GAAA,CAAI,UAAA;AACvB,MAAA,MAAM,cAAA,GAAiB,KAAA,CAAM,OAAA,CAAQ,UAAU,CAAA,GAC3C,CAAC,GAAG,UAAU,CAAA,GACd,UAAA,KAAe,IAAA,GACb,IAAA,GACA,CAAC,YAAY,CAAA;AACnB,MAAA,IAAI,KAAA,CAAM,QAAQ,cAAc,CAAA,IAAK,CAAC,cAAA,CAAe,QAAA,CAAS,YAAY,CAAA,EAAG;AAC3E,QAAA,cAAA,CAAe,KAAK,YAAY,CAAA;AAAA,MAClC;AAEA,MAAA,OAAO;AAAA,QACL,GAAG,MAAA;AAAA,QACH,YAAA,EAAc;AAAA,UACZ,GAAG,YAAA;AAAA,UACH,OAAA;AAAA,UACA,GAAI,OAAA,CAAQ,MAAA,GAAS,IAAI,EAAE,OAAA,KAAY;AAAC,SAC1C;AAAA,QACA,GAAA,EAAK;AAAA,UACH,GAAG,GAAA;AAAA,UACH,UAAA,EAAY;AAAA;AACd,OACF;AAAA,IACF;AAAA,GACF;AACF;AAEA,IAAO,mBAAA,GAAQ","file":"vite-plugin.mjs","sourcesContent":["/**\r\n * Optional Vite plugin for @aatulwork/customform-renderer.\r\n * Use only if you need SSR or dependency optimization workarounds (e.g. \"module not found\" in SSR).\r\n * With the package's fixed exports, most Vite projects work with zero config.\r\n */\r\nimport type { Plugin, UserConfig, ConfigEnv } from 'vite';\r\n\r\nconst PACKAGE_NAME = '@aatulwork/customform-renderer';\r\n\r\nexport interface CustomFormRendererVitePluginOptions {\r\n /** Exclude CKEditor script from pre-bundling (default: true). Set false if you load CKEditor via HTML only. */\r\n excludeCkeditorFromOptimize?: boolean;\r\n}\r\n\r\n/**\r\n * Vite plugin that applies recommended settings for @aatulwork/customform-renderer:\r\n * - optimizeDeps.include: pre-bundle the package for faster dev startup\r\n * - ssr.noExternal: bundle the package in SSR instead of externalizing it\r\n * - optimizeDeps.exclude: optionally exclude the package's CKEditor build from pre-bundling\r\n *\r\n * Usage in vite.config.ts:\r\n * import { customformRendererVite } from '@aatulwork/customform-renderer/vite';\r\n * export default defineConfig({\r\n * plugins: [react(), customformRendererVite()],\r\n * });\r\n */\r\nexport function customformRendererVite(options: CustomFormRendererVitePluginOptions = {}): Plugin {\r\n const { excludeCkeditorFromOptimize = true } = options;\r\n\r\n return {\r\n name: 'vite-plugin-customform-renderer',\r\n config(config: UserConfig, _env: ConfigEnv) {\r\n const optimizeDeps = config.optimizeDeps ?? {};\r\n const include = Array.isArray(optimizeDeps.include) ? [...optimizeDeps.include] : [];\r\n if (!include.includes(PACKAGE_NAME)) {\r\n include.push(PACKAGE_NAME);\r\n }\r\n const exclude = Array.isArray(optimizeDeps.exclude) ? [...optimizeDeps.exclude] : [];\r\n if (excludeCkeditorFromOptimize) {\r\n const ckEditorPath = `${PACKAGE_NAME}/lib/ckeditor/ckeditor.js`;\r\n if (!exclude.includes(ckEditorPath)) {\r\n exclude.push(ckEditorPath);\r\n }\r\n }\r\n const ssr = config.ssr ?? {};\r\n const noExternal = ssr.noExternal;\r\n const noExternalList = Array.isArray(noExternal)\r\n ? [...noExternal]\r\n : noExternal === true\r\n ? true\r\n : [PACKAGE_NAME];\r\n if (Array.isArray(noExternalList) && !noExternalList.includes(PACKAGE_NAME)) {\r\n noExternalList.push(PACKAGE_NAME);\r\n }\r\n\r\n return {\r\n ...config,\r\n optimizeDeps: {\r\n ...optimizeDeps,\r\n include,\r\n ...(exclude.length > 0 ? { exclude } : {}),\r\n },\r\n ssr: {\r\n ...ssr,\r\n noExternal: noExternalList,\r\n },\r\n };\r\n },\r\n };\r\n}\r\n\r\nexport default customformRendererVite;\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aatulwork/customform-renderer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A powerful, reusable form renderer component for React with Material-UI support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./lib/ckeditor/ckeditor.js": "./lib/ckeditor/ckeditor.js",
|
|
15
|
+
"./vite": {
|
|
16
|
+
"types": "./dist/vite-plugin.d.ts",
|
|
17
|
+
"import": "./dist/vite-plugin.mjs",
|
|
18
|
+
"require": "./dist/vite-plugin.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
8
21
|
"files": [
|
|
9
22
|
"dist",
|
|
10
23
|
"lib",
|
|
@@ -38,10 +51,21 @@
|
|
|
38
51
|
"material-ui",
|
|
39
52
|
"react-hook-form",
|
|
40
53
|
"dynamic-forms",
|
|
41
|
-
"form-builder"
|
|
54
|
+
"form-builder",
|
|
55
|
+
"json-schema",
|
|
56
|
+
"dynamic-form",
|
|
57
|
+
"mui"
|
|
42
58
|
],
|
|
43
59
|
"author": "aatulwork",
|
|
44
60
|
"license": "MIT",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/aatulwork/custom-form-renderer"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/aatulwork/custom-form-renderer#readme",
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/aatulwork/custom-form-renderer/issues"
|
|
68
|
+
},
|
|
45
69
|
"peerDependencies": {
|
|
46
70
|
"react": "^18.0.0",
|
|
47
71
|
"react-dom": "^18.0.0",
|
|
@@ -53,14 +77,19 @@
|
|
|
53
77
|
"dayjs": "^1.11.0",
|
|
54
78
|
"@ckeditor/ckeditor5-react": "^11.0.0"
|
|
55
79
|
},
|
|
80
|
+
"optionalPeerDependencies": {
|
|
81
|
+
"vite": ">=4.0.0"
|
|
82
|
+
},
|
|
56
83
|
"dependencies": {
|
|
57
84
|
"@emotion/react": "^11.14.0",
|
|
58
|
-
"@emotion/styled": "^11.14.1"
|
|
85
|
+
"@emotion/styled": "^11.14.1",
|
|
86
|
+
"@mui/system": "^6.0.0"
|
|
59
87
|
},
|
|
60
88
|
"devDependencies": {
|
|
61
89
|
"@types/react": "^18.2.0",
|
|
62
90
|
"@types/react-dom": "^18.2.0",
|
|
63
91
|
"typescript": "^5.2.0",
|
|
64
|
-
"tsup": "^8.0.0"
|
|
92
|
+
"tsup": "^8.0.0",
|
|
93
|
+
"vite": "^5.0.0"
|
|
65
94
|
}
|
|
66
95
|
}
|