intlayer-editor 4.1.11 → 5.0.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/client/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Intlayer Editor</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-OAGTgF2r.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-neFUT_SC.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.",
|
|
6
6
|
"keywords": [
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"react-dom": "^18.3.1",
|
|
73
73
|
"react-router-dom": "^7.1.1",
|
|
74
74
|
"rimraf": "^6.0.1",
|
|
75
|
-
"@intlayer/api": "
|
|
76
|
-
"@intlayer/
|
|
77
|
-
"@intlayer/
|
|
78
|
-
"@intlayer/
|
|
79
|
-
"@intlayer/editor": "
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"vite-intlayer": "^
|
|
75
|
+
"@intlayer/api": "5.0.0",
|
|
76
|
+
"@intlayer/config": "5.0.0",
|
|
77
|
+
"@intlayer/core": "5.0.0",
|
|
78
|
+
"@intlayer/editor": "5.0.0",
|
|
79
|
+
"@intlayer/editor-react": "5.0.0",
|
|
80
|
+
"react-intlayer": "^5.0.0",
|
|
81
|
+
"@intlayer/design-system": "5.0.0",
|
|
82
|
+
"vite-intlayer": "^5.0.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@types/cors": "^2.8.17",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"typescript-eslint": "^8.18.2",
|
|
100
100
|
"vite": "^6.0.11",
|
|
101
101
|
"vitest": "^2.1.8",
|
|
102
|
-
"@intlayer/backend": "
|
|
102
|
+
"@intlayer/backend": "5.0.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"@types/compression": "^1.7.5",
|
|
@@ -110,14 +110,14 @@
|
|
|
110
110
|
"react-dom": ">=16.0.0",
|
|
111
111
|
"react-router-dom": ">=6.0.0",
|
|
112
112
|
"tailwind-merge": "^2.6.0",
|
|
113
|
-
"@intlayer/config": "
|
|
114
|
-
"@intlayer/core": "
|
|
115
|
-
"@intlayer/design-system": "
|
|
116
|
-
"@intlayer/editor": "
|
|
117
|
-
"@intlayer/editor-react": "
|
|
118
|
-
"intlayer": "
|
|
119
|
-
"
|
|
120
|
-
"
|
|
113
|
+
"@intlayer/config": "5.0.0",
|
|
114
|
+
"@intlayer/core": "5.0.0",
|
|
115
|
+
"@intlayer/design-system": "5.0.0",
|
|
116
|
+
"@intlayer/editor": "5.0.0",
|
|
117
|
+
"@intlayer/editor-react": "5.0.0",
|
|
118
|
+
"react-intlayer": "^5.0.0",
|
|
119
|
+
"vite-intlayer": "^5.0.0",
|
|
120
|
+
"intlayer": "5.0.0"
|
|
121
121
|
},
|
|
122
122
|
"engines": {
|
|
123
123
|
"node": ">=14.18"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/controllers/dictionary.controller.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { getConfiguration } from '@intlayer/config';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/controllers/dictionary.controller.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { getConfiguration } from '@intlayer/config';\nimport { type Dictionary } from '@intlayer/core';\nimport { DictionaryStatus } from '@intlayer/editor';\nimport { writeContentDeclaration as writeContentDeclarationEditor } from '@intlayer/editor/server';\nimport { formatResponse, ResponseData } from '@utils/responseData';\nimport type { NextFunction, Request, Response } from 'express';\n\nexport type WriteContentDeclarationBody = Dictionary;\ntype WriteContentDeclarationResultData = {\n status: DictionaryStatus;\n path: string;\n};\nexport type WriteContentDeclarationResult =\n ResponseData<WriteContentDeclarationResultData>;\n\n/**\n * Adds a new dictionary to the database.\n */\nexport const writeContentDeclaration = async (\n req: Request<any, any, WriteContentDeclarationBody>,\n res: Response<WriteContentDeclarationResult>,\n _next: NextFunction\n): Promise<void> => {\n try {\n const dictionaryData = req.body;\n\n // Clear unused schema\n if (dictionaryData['$schema']) {\n delete dictionaryData['$schema'];\n }\n\n const config = getConfiguration();\n\n const result = await writeContentDeclarationEditor(dictionaryData, config);\n\n const formattedResponse = formatResponse<WriteContentDeclarationResultData>(\n {\n data: result,\n }\n );\n\n res.json(formattedResponse);\n return;\n } catch (err) {\n const errorMessage =\n (err as { message?: string; status?: number }) ?? 'Internal Server Error';\n\n const formattedErrorResponse =\n formatResponse<WriteContentDeclarationResultData>({\n error: {\n message: errorMessage.message ?? 'Internal Server Error',\n code: 'INTERNAL_SERVER_ERROR',\n title: 'Internal Server Error',\n },\n status: errorMessage.status ?? 500,\n });\n\n res.json(formattedErrorResponse);\n return;\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAiC;AAGjC,oBAAyE;AACzE,0BAA6C;AActC,MAAM,0BAA0B,OACrC,KACA,KACA,UACkB;AAClB,MAAI;AACF,UAAM,iBAAiB,IAAI;AAG3B,QAAI,eAAe,SAAS,GAAG;AAC7B,aAAO,eAAe,SAAS;AAAA,IACjC;AAEA,UAAM,aAAS,gCAAiB;AAEhC,UAAM,SAAS,UAAM,cAAAA,yBAA8B,gBAAgB,MAAM;AAEzE,UAAM,wBAAoB;AAAA,MACxB;AAAA,QACE,MAAM;AAAA,MACR;AAAA,IACF;AAEA,QAAI,KAAK,iBAAiB;AAC1B;AAAA,EACF,SAAS,KAAK;AACZ,UAAM,eACH,OAAiD;AAEpD,UAAM,6BACJ,oCAAkD;AAAA,MAChD,OAAO;AAAA,QACL,SAAS,aAAa,WAAW;AAAA,QACjC,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,QAAQ,aAAa,UAAU;AAAA,IACjC,CAAC;AAEH,QAAI,KAAK,sBAAsB;AAC/B;AAAA,EACF;AACF;","names":["writeContentDeclarationEditor"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/controllers/dictionary.controller.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { getConfiguration } from '@intlayer/config';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/controllers/dictionary.controller.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { getConfiguration } from '@intlayer/config';\nimport { type Dictionary } from '@intlayer/core';\nimport { DictionaryStatus } from '@intlayer/editor';\nimport { writeContentDeclaration as writeContentDeclarationEditor } from '@intlayer/editor/server';\nimport { formatResponse, ResponseData } from '@utils/responseData';\nimport type { NextFunction, Request, Response } from 'express';\n\nexport type WriteContentDeclarationBody = Dictionary;\ntype WriteContentDeclarationResultData = {\n status: DictionaryStatus;\n path: string;\n};\nexport type WriteContentDeclarationResult =\n ResponseData<WriteContentDeclarationResultData>;\n\n/**\n * Adds a new dictionary to the database.\n */\nexport const writeContentDeclaration = async (\n req: Request<any, any, WriteContentDeclarationBody>,\n res: Response<WriteContentDeclarationResult>,\n _next: NextFunction\n): Promise<void> => {\n try {\n const dictionaryData = req.body;\n\n // Clear unused schema\n if (dictionaryData['$schema']) {\n delete dictionaryData['$schema'];\n }\n\n const config = getConfiguration();\n\n const result = await writeContentDeclarationEditor(dictionaryData, config);\n\n const formattedResponse = formatResponse<WriteContentDeclarationResultData>(\n {\n data: result,\n }\n );\n\n res.json(formattedResponse);\n return;\n } catch (err) {\n const errorMessage =\n (err as { message?: string; status?: number }) ?? 'Internal Server Error';\n\n const formattedErrorResponse =\n formatResponse<WriteContentDeclarationResultData>({\n error: {\n message: errorMessage.message ?? 'Internal Server Error',\n code: 'INTERNAL_SERVER_ERROR',\n title: 'Internal Server Error',\n },\n status: errorMessage.status ?? 500,\n });\n\n res.json(formattedErrorResponse);\n return;\n }\n};\n"],"mappings":"AACA,SAAS,wBAAwB;AAGjC,SAAS,2BAA2B,qCAAqC;AACzE,SAAS,sBAAoC;AActC,MAAM,0BAA0B,OACrC,KACA,KACA,UACkB;AAClB,MAAI;AACF,UAAM,iBAAiB,IAAI;AAG3B,QAAI,eAAe,SAAS,GAAG;AAC7B,aAAO,eAAe,SAAS;AAAA,IACjC;AAEA,UAAM,SAAS,iBAAiB;AAEhC,UAAM,SAAS,MAAM,8BAA8B,gBAAgB,MAAM;AAEzE,UAAM,oBAAoB;AAAA,MACxB;AAAA,QACE,MAAM;AAAA,MACR;AAAA,IACF;AAEA,QAAI,KAAK,iBAAiB;AAC1B;AAAA,EACF,SAAS,KAAK;AACZ,UAAM,eACH,OAAiD;AAEpD,UAAM,yBACJ,eAAkD;AAAA,MAChD,OAAO;AAAA,QACL,SAAS,aAAa,WAAW;AAAA,QACjC,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,QAAQ,aAAa,UAAU;AAAA,IACjC,CAAC;AAEH,QAAI,KAAK,sBAAsB;AAC/B;AAAA,EACF;AACF;","names":[]}
|