intlayer-editor 5.1.6 → 5.1.8

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.
@@ -5,8 +5,8 @@
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-8yK-YcC6.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-BexP9EQD.css">
8
+ <script type="module" crossorigin src="/assets/index-BD12_mCE.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-B5IENYfY.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer-editor",
3
- "version": "5.1.6",
3
+ "version": "5.1.8",
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": "^19.0.0",
73
73
  "react-router-dom": "^7.1.1",
74
74
  "rimraf": "^6.0.1",
75
- "@intlayer/core": "5.1.6",
76
- "@intlayer/config": "5.1.6",
77
- "@intlayer/editor": "5.1.6",
78
- "@intlayer/editor-react": "5.1.6",
79
- "@intlayer/design-system": "5.1.6",
80
- "@intlayer/api": "5.1.6",
81
- "react-intlayer": "5.1.6",
82
- "vite-intlayer": "5.1.6"
75
+ "@intlayer/api": "5.1.8",
76
+ "@intlayer/editor": "5.1.8",
77
+ "@intlayer/editor-react": "5.1.8",
78
+ "react-intlayer": "5.1.8",
79
+ "@intlayer/core": "5.1.8",
80
+ "@intlayer/config": "5.1.8",
81
+ "vite-intlayer": "5.1.8",
82
+ "@intlayer/design-system": "5.1.8"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@tailwindcss/vite": "^4.0.8",
@@ -95,11 +95,12 @@
95
95
  "globals": "^15.14.0",
96
96
  "tailwindcss": "^4.0.8",
97
97
  "tsup": "^8.3.5",
98
+ "tsx": "^4.19.2",
98
99
  "typescript": "~5.6.2",
99
100
  "typescript-eslint": "^8.18.2",
100
101
  "vite": "^6.0.11",
101
102
  "vitest": "^3.0.5",
102
- "@intlayer/backend": "5.1.6"
103
+ "@intlayer/backend": "5.1.8"
103
104
  },
104
105
  "peerDependencies": {
105
106
  "@types/compression": "^1.7.5",
@@ -110,14 +111,14 @@
110
111
  "react-dom": ">=16.0.0",
111
112
  "react-router-dom": ">=6.0.0",
112
113
  "tailwind-merge": "^3.0.2",
113
- "@intlayer/config": "5.1.6",
114
- "@intlayer/core": "5.1.6",
115
- "@intlayer/design-system": "5.1.6",
116
- "@intlayer/editor": "5.1.6",
117
- "@intlayer/editor-react": "5.1.6",
118
- "intlayer": "5.1.6",
119
- "react-intlayer": "5.1.6",
120
- "vite-intlayer": "5.1.6"
114
+ "@intlayer/config": "5.1.8",
115
+ "@intlayer/design-system": "5.1.8",
116
+ "@intlayer/editor": "5.1.8",
117
+ "react-intlayer": "5.1.8",
118
+ "@intlayer/editor-react": "5.1.8",
119
+ "intlayer": "5.1.8",
120
+ "@intlayer/core": "5.1.8",
121
+ "vite-intlayer": "5.1.8"
121
122
  },
122
123
  "engines": {
123
124
  "node": ">=14.18"
@@ -142,6 +143,6 @@
142
143
  "reset:server": "pnpm clean:server && pnpm build:server",
143
144
  "start": "node server/dist/index.mjs",
144
145
  "start:client": "vite preview --config ./client/vite.config.ts",
145
- "start:server": "node --watch ./server/dist/esm/index.mjs"
146
+ "start:server": "node --watch ./server/dist/index.mjs"
146
147
  }
147
148
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { existsSync, lstatSync } from 'node:fs';\nimport path, { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getConfiguration } from '@intlayer/config';\nimport { configurationRouter } from '@routes/config.routes';\nimport { dictionaryRouter } from '@routes/dictionary.routes';\nimport compression from 'compression';\nimport cookieParser from 'cookie-parser';\nimport cors, { type CorsOptions } from 'cors';\nimport express, { type Express } from 'express';\nimport helmet from 'helmet';\nimport mime from 'mime';\n\nconst app: Express = express();\n\nconst FALLBACK_PORT = 8000;\nconst config = getConfiguration();\nconst port = config.editor.port ?? FALLBACK_PORT;\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst clientDistPath = resolve(__dirname, '../../client/dist');\n\nconst corsOptions: CorsOptions = {\n origin: '*',\n credentials: true,\n};\n\nconst startServer = async (app: Express) => {\n app.disable('x-powered-by'); // Disabled to prevent attackers from knowing that the app is running Express\n app.use(\n helmet({\n contentSecurityPolicy: false,\n })\n );\n\n app.use(cors(corsOptions));\n\n // Compress all HTTP responses\n app.use(compression());\n\n app.use(express.json());\n\n app.use(cookieParser());\n\n // Parse incoming requests with urlencoded payloads\n app.use(express.urlencoded({ extended: true }));\n\n app.use('/api/dictionary', dictionaryRouter);\n\n app.use('/api/config', configurationRouter);\n\n app.use(express.static(clientDistPath));\n\n // For single-page applications, redirect all unmatched routes to index.html\n app.get(/(.*)/, (req, res) => {\n const requestedPath = path.join(clientDistPath, req.url); // Full path of the requested file\n\n if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {\n // If the requested file exists, determine its MIME type and serve it\n const mimeType =\n mime.getType(requestedPath) ?? 'application/octet-stream';\n res.setHeader('Content-Type', mimeType);\n res.sendFile(requestedPath);\n } else {\n // Otherwise, serve the index.html for React Router fallback\n res.sendFile(resolve(clientDistPath, 'index.html'));\n }\n });\n\n app.listen(port, () => {\n console.log(`Intlayer editor running at http://localhost:${port}`);\n });\n};\n\n// Start it up!\nstartServer(app);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAsC;AACtC,uBAAuC;AACvC,sBAA8B;AAC9B,oBAAiC;AACjC,IAAAA,iBAAoC;AACpC,wBAAiC;AACjC,yBAAwB;AACxB,2BAAyB;AACzB,kBAAuC;AACvC,qBA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AgB,YAAY,CAAC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,EAAAN,KAAI,OAAO,MAAM,MAAM;AACrB,YAAQ,IAAI,+CAA+C,IAAI,EAAE;AAAA,EACnE,CAAC;AACH;AAGA,YAAY,GAAG;","names":["import_config","express","app","helmet","cors","compression","cookieParser","path","mime"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { existsSync, lstatSync } from 'node:fs';\nimport path, { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getConfiguration } from '@intlayer/config';\nimport { configurationRouter } from '@routes/config.routes';\nimport { dictionaryRouter } from '@routes/dictionary.routes';\nimport compression from 'compression';\nimport cookieParser from 'cookie-parser';\nimport cors, { type CorsOptions } from 'cors';\nimport express, { type Express } from 'express';\nimport helmet from 'helmet';\nimport mime from 'mime';\n\nconst app: Express = express();\n\nconst FALLBACK_PORT = 8000;\nconst config = getConfiguration();\nconst port = config.editor.port ?? FALLBACK_PORT;\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst clientDistPath = resolve(__dirname, '../../client/dist');\n\nconst corsOptions: CorsOptions = {\n origin: '*',\n credentials: true,\n};\n\nconst startServer = async (app: Express) => {\n app.disable('x-powered-by'); // Disabled to prevent attackers from knowing that the app is running Express\n app.use(\n helmet({\n contentSecurityPolicy: false,\n })\n );\n\n app.use(cors(corsOptions));\n\n // Compress all HTTP responses\n app.use(compression());\n\n app.use(express.json());\n\n app.use(cookieParser());\n\n // Parse incoming requests with urlencoded payloads\n app.use(express.urlencoded({ extended: true }));\n\n app.use('/api/dictionary', dictionaryRouter);\n app.use('/api/config', configurationRouter);\n\n app.use(express.static(clientDistPath));\n\n // For single-page applications, redirect all unmatched routes to index.html\n app.get(/(.*)/, (req, res) => {\n const requestedPath = path.join(clientDistPath, req.url); // Full path of the requested file\n\n if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {\n // If the requested file exists, determine its MIME type and serve it\n const mimeType =\n mime.getType(requestedPath) ?? 'application/octet-stream';\n res.setHeader('Content-Type', mimeType);\n res.sendFile(requestedPath);\n } else {\n // Otherwise, serve the index.html for React Router fallback\n res.sendFile(resolve(clientDistPath, 'index.html'));\n }\n });\n\n app.listen(port, () => {\n console.log(`Intlayer editor running at http://localhost:${port}`);\n });\n};\n\n// Start it up!\nstartServer(app);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAsC;AACtC,uBAAuC;AACvC,sBAA8B;AAC9B,oBAAiC;AACjC,IAAAA,iBAAoC;AACpC,wBAAiC;AACjC,yBAAwB;AACxB,2BAAyB;AACzB,kBAAuC;AACvC,qBAAsC;AACtC,oBAAmB;AACnB,kBAAiB;AAXjB;AAaA,MAAM,UAAe,eAAAC,SAAQ;AAE7B,MAAM,gBAAgB;AACtB,MAAM,aAAS,gCAAiB;AAChC,MAAM,OAAO,OAAO,OAAO,QAAQ;AAEnC,MAAM,gBAAY,8BAAQ,+BAAc,YAAY,GAAG,CAAC;AACxD,MAAM,qBAAiB,0BAAQ,WAAW,mBAAmB;AAE7D,MAAM,cAA2B;AAAA,EAC/B,QAAQ;AAAA,EACR,aAAa;AACf;AAEA,MAAM,cAAc,OAAOC,SAAiB;AAC1C,EAAAA,KAAI,QAAQ,cAAc;AAC1B,EAAAA,KAAI;AAAA,QACF,cAAAC,SAAO;AAAA,MACL,uBAAuB;AAAA,IACzB,CAAC;AAAA,EACH;AAEA,EAAAD,KAAI,QAAI,YAAAE,SAAK,WAAW,CAAC;AAGzB,EAAAF,KAAI,QAAI,mBAAAG,SAAY,CAAC;AAErB,EAAAH,KAAI,IAAI,eAAAD,QAAQ,KAAK,CAAC;AAEtB,EAAAC,KAAI,QAAI,qBAAAI,SAAa,CAAC;AAGtB,EAAAJ,KAAI,IAAI,eAAAD,QAAQ,WAAW,EAAE,UAAU,KAAK,CAAC,CAAC;AAE9C,EAAAC,KAAI,IAAI,mBAAmB,kCAAgB;AAC3C,EAAAA,KAAI,IAAI,eAAe,kCAAmB;AAE1C,EAAAA,KAAI,IAAI,eAAAD,QAAQ,OAAO,cAAc,CAAC;AAGtC,EAAAC,KAAI,IAAI,QAAQ,CAAC,KAAK,QAAQ;AAC5B,UAAM,gBAAgB,iBAAAK,QAAK,KAAK,gBAAgB,IAAI,GAAG;AAEvD,YAAI,2BAAW,aAAa,SAAK,0BAAU,aAAa,EAAE,OAAO,GAAG;AAElE,YAAM,WACJ,YAAAC,QAAK,QAAQ,aAAa,KAAK;AACjC,UAAI,UAAU,gBAAgB,QAAQ;AACtC,UAAI,SAAS,aAAa;AAAA,IAC5B,OAAO;AAEL,UAAI,aAAS,0BAAQ,gBAAgB,YAAY,CAAC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,EAAAN,KAAI,OAAO,MAAM,MAAM;AACrB,YAAQ,IAAI,+CAA+C,IAAI,EAAE;AAAA,EACnE,CAAC;AACH;AAGA,YAAY,GAAG;","names":["import_config","express","app","helmet","cors","compression","cookieParser","path","mime"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { existsSync, lstatSync } from 'node:fs';\nimport path, { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getConfiguration } from '@intlayer/config';\nimport { configurationRouter } from '@routes/config.routes';\nimport { dictionaryRouter } from '@routes/dictionary.routes';\nimport compression from 'compression';\nimport cookieParser from 'cookie-parser';\nimport cors, { type CorsOptions } from 'cors';\nimport express, { type Express } from 'express';\nimport helmet from 'helmet';\nimport mime from 'mime';\n\nconst app: Express = express();\n\nconst FALLBACK_PORT = 8000;\nconst config = getConfiguration();\nconst port = config.editor.port ?? FALLBACK_PORT;\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst clientDistPath = resolve(__dirname, '../../client/dist');\n\nconst corsOptions: CorsOptions = {\n origin: '*',\n credentials: true,\n};\n\nconst startServer = async (app: Express) => {\n app.disable('x-powered-by'); // Disabled to prevent attackers from knowing that the app is running Express\n app.use(\n helmet({\n contentSecurityPolicy: false,\n })\n );\n\n app.use(cors(corsOptions));\n\n // Compress all HTTP responses\n app.use(compression());\n\n app.use(express.json());\n\n app.use(cookieParser());\n\n // Parse incoming requests with urlencoded payloads\n app.use(express.urlencoded({ extended: true }));\n\n app.use('/api/dictionary', dictionaryRouter);\n\n app.use('/api/config', configurationRouter);\n\n app.use(express.static(clientDistPath));\n\n // For single-page applications, redirect all unmatched routes to index.html\n app.get(/(.*)/, (req, res) => {\n const requestedPath = path.join(clientDistPath, req.url); // Full path of the requested file\n\n if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {\n // If the requested file exists, determine its MIME type and serve it\n const mimeType =\n mime.getType(requestedPath) ?? 'application/octet-stream';\n res.setHeader('Content-Type', mimeType);\n res.sendFile(requestedPath);\n } else {\n // Otherwise, serve the index.html for React Router fallback\n res.sendFile(resolve(clientDistPath, 'index.html'));\n }\n });\n\n app.listen(port, () => {\n console.log(`Intlayer editor running at http://localhost:${port}`);\n });\n};\n\n// Start it up!\nstartServer(app);\n"],"mappings":"AAAA,SAAS,YAAY,iBAAiB;AACtC,OAAO,QAAQ,SAAS,eAAe;AACvC,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;AACzB,OAAO,UAAgC;AACvC,OAAO,aAA+B;AACtC,OAAO,YAAY;AACnB,OAAO,UAAU;AAEjB,MAAM,MAAe,QAAQ;AAE7B,MAAM,gBAAgB;AACtB,MAAM,SAAS,iBAAiB;AAChC,MAAM,OAAO,OAAO,OAAO,QAAQ;AAEnC,MAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,MAAM,iBAAiB,QAAQ,WAAW,mBAAmB;AAE7D,MAAM,cAA2B;AAAA,EAC/B,QAAQ;AAAA,EACR,aAAa;AACf;AAEA,MAAM,cAAc,OAAOA,SAAiB;AAC1C,EAAAA,KAAI,QAAQ,cAAc;AAC1B,EAAAA,KAAI;AAAA,IACF,OAAO;AAAA,MACL,uBAAuB;AAAA,IACzB,CAAC;AAAA,EACH;AAEA,EAAAA,KAAI,IAAI,KAAK,WAAW,CAAC;AAGzB,EAAAA,KAAI,IAAI,YAAY,CAAC;AAErB,EAAAA,KAAI,IAAI,QAAQ,KAAK,CAAC;AAEtB,EAAAA,KAAI,IAAI,aAAa,CAAC;AAGtB,EAAAA,KAAI,IAAI,QAAQ,WAAW,EAAE,UAAU,KAAK,CAAC,CAAC;AAE9C,EAAAA,KAAI,IAAI,mBAAmB,gBAAgB;AAE3C,EAAAA,KAAI,IAAI,eAAe,mBAAmB;AAE1C,EAAAA,KAAI,IAAI,QAAQ,OAAO,cAAc,CAAC;AAGtC,EAAAA,KAAI,IAAI,QAAQ,CAAC,KAAK,QAAQ;AAC5B,UAAM,gBAAgB,KAAK,KAAK,gBAAgB,IAAI,GAAG;AAEvD,QAAI,WAAW,aAAa,KAAK,UAAU,aAAa,EAAE,OAAO,GAAG;AAElE,YAAM,WACJ,KAAK,QAAQ,aAAa,KAAK;AACjC,UAAI,UAAU,gBAAgB,QAAQ;AACtC,UAAI,SAAS,aAAa;AAAA,IAC5B,OAAO;AAEL,UAAI,SAAS,QAAQ,gBAAgB,YAAY,CAAC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,EAAAA,KAAI,OAAO,MAAM,MAAM;AACrB,YAAQ,IAAI,+CAA+C,IAAI,EAAE;AAAA,EACnE,CAAC;AACH;AAGA,YAAY,GAAG;","names":["app"]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { existsSync, lstatSync } from 'node:fs';\nimport path, { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { getConfiguration } from '@intlayer/config';\nimport { configurationRouter } from '@routes/config.routes';\nimport { dictionaryRouter } from '@routes/dictionary.routes';\nimport compression from 'compression';\nimport cookieParser from 'cookie-parser';\nimport cors, { type CorsOptions } from 'cors';\nimport express, { type Express } from 'express';\nimport helmet from 'helmet';\nimport mime from 'mime';\n\nconst app: Express = express();\n\nconst FALLBACK_PORT = 8000;\nconst config = getConfiguration();\nconst port = config.editor.port ?? FALLBACK_PORT;\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst clientDistPath = resolve(__dirname, '../../client/dist');\n\nconst corsOptions: CorsOptions = {\n origin: '*',\n credentials: true,\n};\n\nconst startServer = async (app: Express) => {\n app.disable('x-powered-by'); // Disabled to prevent attackers from knowing that the app is running Express\n app.use(\n helmet({\n contentSecurityPolicy: false,\n })\n );\n\n app.use(cors(corsOptions));\n\n // Compress all HTTP responses\n app.use(compression());\n\n app.use(express.json());\n\n app.use(cookieParser());\n\n // Parse incoming requests with urlencoded payloads\n app.use(express.urlencoded({ extended: true }));\n\n app.use('/api/dictionary', dictionaryRouter);\n app.use('/api/config', configurationRouter);\n\n app.use(express.static(clientDistPath));\n\n // For single-page applications, redirect all unmatched routes to index.html\n app.get(/(.*)/, (req, res) => {\n const requestedPath = path.join(clientDistPath, req.url); // Full path of the requested file\n\n if (existsSync(requestedPath) && lstatSync(requestedPath).isFile()) {\n // If the requested file exists, determine its MIME type and serve it\n const mimeType =\n mime.getType(requestedPath) ?? 'application/octet-stream';\n res.setHeader('Content-Type', mimeType);\n res.sendFile(requestedPath);\n } else {\n // Otherwise, serve the index.html for React Router fallback\n res.sendFile(resolve(clientDistPath, 'index.html'));\n }\n });\n\n app.listen(port, () => {\n console.log(`Intlayer editor running at http://localhost:${port}`);\n });\n};\n\n// Start it up!\nstartServer(app);\n"],"mappings":"AAAA,SAAS,YAAY,iBAAiB;AACtC,OAAO,QAAQ,SAAS,eAAe;AACvC,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;AACzB,OAAO,UAAgC;AACvC,OAAO,aAA+B;AACtC,OAAO,YAAY;AACnB,OAAO,UAAU;AAEjB,MAAM,MA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ACH;AAGA,YAAY,GAAG;","names":["app"]}
@@ -29,29 +29,29 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var config_routes_exports = {};
30
30
  __export(config_routes_exports, {
31
31
  configurationRouter: () => configurationRouter,
32
- configurationRoutes: () => configurationRoutes
32
+ getConfigurationRoutes: () => getConfigurationRoutes
33
33
  });
34
34
  module.exports = __toCommonJS(config_routes_exports);
35
35
  var configurationController = __toESM(require('./../controllers/configuration.controller.cjs'), 1);
36
- var import_client = require("@intlayer/config/client");
36
+ var import_config = require("@intlayer/config");
37
37
  var import_express = require("express");
38
38
  const configurationRouter = (0, import_express.Router)();
39
- const { editor } = (0, import_client.getConfiguration)();
40
- const baseURL = `${editor.editorURL}/api/dictionary`;
41
- const configurationRoutes = {
39
+ const { editor } = (0, import_config.getConfiguration)();
40
+ const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
41
+ const getConfigurationRoutes = () => ({
42
42
  getConfiguration: {
43
43
  urlModel: "/",
44
- url: baseURL,
44
+ url: getBaseURL(),
45
45
  method: "GET"
46
46
  }
47
- };
47
+ });
48
48
  configurationRouter.get(
49
- configurationRoutes.getConfiguration.urlModel,
49
+ getConfigurationRoutes().getConfiguration.urlModel,
50
50
  configurationController.getConfiguration
51
51
  );
52
52
  // Annotate the CommonJS export names for ESM import in node:
53
53
  0 && (module.exports = {
54
54
  configurationRouter,
55
- configurationRoutes
55
+ getConfigurationRoutes
56
56
  });
57
57
  //# sourceMappingURL=config.routes.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/routes/config.routes.ts"],"sourcesContent":["import * as configurationController from '@controllers/configuration.controller';\nimport { getConfiguration } from '@intlayer/config/client';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const configurationRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst baseURL = `${editor.editorURL}/api/dictionary`;\n\nexport const configurationRoutes = {\n getConfiguration: {\n urlModel: '/',\n url: baseURL,\n method: 'GET',\n },\n} satisfies Routes;\n\nconfigurationRouter.get(\n configurationRoutes.getConfiguration.urlModel,\n configurationController.getConfiguration\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyC;AACzC,oBAAiC;AACjC,qBAAuB;AAGhB,MAAM,0BAA8B,uBAAO;AAElD,MAAM,EAAE,OAAO,QAAI,gCAAiB;AAEpC,MAAM,UAAU,GAAG,OAAO,SAAS;AAE5B,MAAM,sBAAsB;AAAA,EACjC,kBAAkB;AAAA,IAChB,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF;AAEA,oBAAoB;AAAA,EAClB,oBAAoB,iBAAiB;AAAA,EACrC,wBAAwB;AAC1B;","names":[]}
1
+ {"version":3,"sources":["../../src/routes/config.routes.ts"],"sourcesContent":["import * as configurationController from '@controllers/configuration.controller';\nimport { getConfiguration } from '@intlayer/config';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const configurationRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst getBaseURL = () => `${editor.editorURL}/api/dictionary`;\n\nexport const getConfigurationRoutes = () =>\n ({\n getConfiguration: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'GET',\n },\n }) satisfies Routes;\n\nconfigurationRouter.get(\n getConfigurationRoutes().getConfiguration.urlModel,\n configurationController.getConfiguration\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAyC;AACzC,oBAAiC;AACjC,qBAAuB;AAGhB,MAAM,0BAA8B,uBAAO;AAElD,MAAM,EAAE,OAAO,QAAI,gCAAiB;AAEpC,MAAM,aAAa,MAAM,GAAG,OAAO,SAAS;AAErC,MAAM,yBAAyB,OACnC;AAAA,EACC,kBAAkB;AAAA,IAChB,UAAU;AAAA,IACV,KAAK,WAAW;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;AAEF,oBAAoB;AAAA,EAClB,uBAAuB,EAAE,iBAAiB;AAAA,EAC1C,wBAAwB;AAC1B;","names":[]}
@@ -1,22 +1,22 @@
1
1
  import * as configurationController from "./../controllers/configuration.controller.mjs";
2
- import { getConfiguration } from "@intlayer/config/client";
2
+ import { getConfiguration } from "@intlayer/config";
3
3
  import { Router } from "express";
4
4
  const configurationRouter = Router();
5
5
  const { editor } = getConfiguration();
6
- const baseURL = `${editor.editorURL}/api/dictionary`;
7
- const configurationRoutes = {
6
+ const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
7
+ const getConfigurationRoutes = () => ({
8
8
  getConfiguration: {
9
9
  urlModel: "/",
10
- url: baseURL,
10
+ url: getBaseURL(),
11
11
  method: "GET"
12
12
  }
13
- };
13
+ });
14
14
  configurationRouter.get(
15
- configurationRoutes.getConfiguration.urlModel,
15
+ getConfigurationRoutes().getConfiguration.urlModel,
16
16
  configurationController.getConfiguration
17
17
  );
18
18
  export {
19
19
  configurationRouter,
20
- configurationRoutes
20
+ getConfigurationRoutes
21
21
  };
22
22
  //# sourceMappingURL=config.routes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/routes/config.routes.ts"],"sourcesContent":["import * as configurationController from '@controllers/configuration.controller';\nimport { getConfiguration } from '@intlayer/config/client';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const configurationRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst baseURL = `${editor.editorURL}/api/dictionary`;\n\nexport const configurationRoutes = {\n getConfiguration: {\n urlModel: '/',\n url: baseURL,\n method: 'GET',\n },\n} satisfies Routes;\n\nconfigurationRouter.get(\n configurationRoutes.getConfiguration.urlModel,\n configurationController.getConfiguration\n);\n"],"mappings":"AAAA,YAAY,6BAA6B;AACzC,SAAS,wBAAwB;AACjC,SAAS,cAAc;AAGhB,MAAM,sBAA8B,OAAO;AAElD,MAAM,EAAE,OAAO,IAAI,iBAAiB;AAEpC,MAAM,UAAU,GAAG,OAAO,SAAS;AAE5B,MAAM,sBAAsB;AAAA,EACjC,kBAAkB;AAAA,IAChB,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF;AAEA,oBAAoB;AAAA,EAClB,oBAAoB,iBAAiB;AAAA,EACrC,wBAAwB;AAC1B;","names":[]}
1
+ {"version":3,"sources":["../../src/routes/config.routes.ts"],"sourcesContent":["import * as configurationController from '@controllers/configuration.controller';\nimport { getConfiguration } from '@intlayer/config';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const configurationRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst getBaseURL = () => `${editor.editorURL}/api/dictionary`;\n\nexport const getConfigurationRoutes = () =>\n ({\n getConfiguration: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'GET',\n },\n }) satisfies Routes;\n\nconfigurationRouter.get(\n getConfigurationRoutes().getConfiguration.urlModel,\n configurationController.getConfiguration\n);\n"],"mappings":"AAAA,YAAY,6BAA6B;AACzC,SAAS,wBAAwB;AACjC,SAAS,cAAc;AAGhB,MAAM,sBAA8B,OAAO;AAElD,MAAM,EAAE,OAAO,IAAI,iBAAiB;AAEpC,MAAM,aAAa,MAAM,GAAG,OAAO,SAAS;AAErC,MAAM,yBAAyB,OACnC;AAAA,EACC,kBAAkB;AAAA,IAChB,UAAU;AAAA,IACV,KAAK,WAAW;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;AAEF,oBAAoB;AAAA,EAClB,uBAAuB,EAAE,iBAAiB;AAAA,EAC1C,wBAAwB;AAC1B;","names":[]}
@@ -19,29 +19,29 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var dictionary_routes_exports = {};
20
20
  __export(dictionary_routes_exports, {
21
21
  dictionaryRouter: () => dictionaryRouter,
22
- dictionaryRoutes: () => dictionaryRoutes
22
+ getDictionaryRoutes: () => getDictionaryRoutes
23
23
  });
24
24
  module.exports = __toCommonJS(dictionary_routes_exports);
25
25
  var import_dictionary = require('./../controllers/dictionary.controller.cjs');
26
- var import_client = require("@intlayer/config/client");
26
+ var import_config = require("@intlayer/config");
27
27
  var import_express = require("express");
28
28
  const dictionaryRouter = (0, import_express.Router)();
29
- const { editor } = (0, import_client.getConfiguration)();
30
- const baseURL = `${editor.editorURL}/api/dictionary`;
31
- const dictionaryRoutes = {
29
+ const { editor } = (0, import_config.getConfiguration)();
30
+ const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
31
+ const getDictionaryRoutes = () => ({
32
32
  writeContentDeclaration: {
33
33
  urlModel: "/",
34
- url: baseURL,
34
+ url: getBaseURL(),
35
35
  method: "POST"
36
36
  }
37
- };
37
+ });
38
38
  dictionaryRouter.post(
39
- dictionaryRoutes.writeContentDeclaration.urlModel,
39
+ getDictionaryRoutes().writeContentDeclaration.urlModel,
40
40
  import_dictionary.writeContentDeclaration
41
41
  );
42
42
  // Annotate the CommonJS export names for ESM import in node:
43
43
  0 && (module.exports = {
44
44
  dictionaryRouter,
45
- dictionaryRoutes
45
+ getDictionaryRoutes
46
46
  });
47
47
  //# sourceMappingURL=dictionary.routes.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import { writeContentDeclaration } from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config/client';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst baseURL = `${editor.editorURL}/api/dictionary`;\n\nexport const dictionaryRoutes = {\n writeContentDeclaration: {\n urlModel: '/',\n url: baseURL,\n method: 'POST',\n },\n} satisfies Routes;\n\ndictionaryRouter.post(\n dictionaryRoutes.writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAwC;AACxC,oBAAiC;AACjC,qBAAuB;AAGhB,MAAM,uBAA2B,uBAAO;AAE/C,MAAM,EAAE,OAAO,QAAI,gCAAiB;AAEpC,MAAM,UAAU,GAAG,OAAO,SAAS;AAE5B,MAAM,mBAAmB;AAAA,EAC9B,yBAAyB;AAAA,IACvB,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF;AAEA,iBAAiB;AAAA,EACf,iBAAiB,wBAAwB;AAAA,EACzC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import { writeContentDeclaration } from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst getBaseURL = () => `${editor.editorURL}/api/dictionary`;\n\nexport const getDictionaryRoutes = () =>\n ({\n writeContentDeclaration: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'POST',\n },\n }) satisfies Routes;\n\ndictionaryRouter.post(\n getDictionaryRoutes().writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAwC;AACxC,oBAAiC;AACjC,qBAAuB;AAGhB,MAAM,uBAA2B,uBAAO;AAE/C,MAAM,EAAE,OAAO,QAAI,gCAAiB;AAEpC,MAAM,aAAa,MAAM,GAAG,OAAO,SAAS;AAErC,MAAM,sBAAsB,OAChC;AAAA,EACC,yBAAyB;AAAA,IACvB,UAAU;AAAA,IACV,KAAK,WAAW;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;AAEF,iBAAiB;AAAA,EACf,oBAAoB,EAAE,wBAAwB;AAAA,EAC9C;AACF;","names":[]}
@@ -1,22 +1,22 @@
1
1
  import { writeContentDeclaration } from "./../controllers/dictionary.controller.mjs";
2
- import { getConfiguration } from "@intlayer/config/client";
2
+ import { getConfiguration } from "@intlayer/config";
3
3
  import { Router } from "express";
4
4
  const dictionaryRouter = Router();
5
5
  const { editor } = getConfiguration();
6
- const baseURL = `${editor.editorURL}/api/dictionary`;
7
- const dictionaryRoutes = {
6
+ const getBaseURL = () => `${editor.editorURL}/api/dictionary`;
7
+ const getDictionaryRoutes = () => ({
8
8
  writeContentDeclaration: {
9
9
  urlModel: "/",
10
- url: baseURL,
10
+ url: getBaseURL(),
11
11
  method: "POST"
12
12
  }
13
- };
13
+ });
14
14
  dictionaryRouter.post(
15
- dictionaryRoutes.writeContentDeclaration.urlModel,
15
+ getDictionaryRoutes().writeContentDeclaration.urlModel,
16
16
  writeContentDeclaration
17
17
  );
18
18
  export {
19
19
  dictionaryRouter,
20
- dictionaryRoutes
20
+ getDictionaryRoutes
21
21
  };
22
22
  //# sourceMappingURL=dictionary.routes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import { writeContentDeclaration } from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config/client';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst baseURL = `${editor.editorURL}/api/dictionary`;\n\nexport const dictionaryRoutes = {\n writeContentDeclaration: {\n urlModel: '/',\n url: baseURL,\n method: 'POST',\n },\n} satisfies Routes;\n\ndictionaryRouter.post(\n dictionaryRoutes.writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":"AAAA,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,cAAc;AAGhB,MAAM,mBAA2B,OAAO;AAE/C,MAAM,EAAE,OAAO,IAAI,iBAAiB;AAEpC,MAAM,UAAU,GAAG,OAAO,SAAS;AAE5B,MAAM,mBAAmB;AAAA,EAC9B,yBAAyB;AAAA,IACvB,UAAU;AAAA,IACV,KAAK;AAAA,IACL,QAAQ;AAAA,EACV;AACF;AAEA,iBAAiB;AAAA,EACf,iBAAiB,wBAAwB;AAAA,EACzC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/routes/dictionary.routes.ts"],"sourcesContent":["import { writeContentDeclaration } from '@controllers/dictionary.controller';\nimport { getConfiguration } from '@intlayer/config';\nimport { Router } from 'express';\nimport type { Routes } from '@/types/Routes';\n\nexport const dictionaryRouter: Router = Router();\n\nconst { editor } = getConfiguration();\n\nconst getBaseURL = () => `${editor.editorURL}/api/dictionary`;\n\nexport const getDictionaryRoutes = () =>\n ({\n writeContentDeclaration: {\n urlModel: '/',\n url: getBaseURL(),\n method: 'POST',\n },\n }) satisfies Routes;\n\ndictionaryRouter.post(\n getDictionaryRoutes().writeContentDeclaration.urlModel,\n writeContentDeclaration\n);\n"],"mappings":"AAAA,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,cAAc;AAGhB,MAAM,mBAA2B,OAAO;AAE/C,MAAM,EAAE,OAAO,IAAI,iBAAiB;AAEpC,MAAM,aAAa,MAAM,GAAG,OAAO,SAAS;AAErC,MAAM,sBAAsB,OAChC;AAAA,EACC,yBAAyB;AAAA,IACvB,UAAU;AAAA,IACV,KAAK,WAAW;AAAA,IAChB,QAAQ;AAAA,EACV;AACF;AAEF,iBAAiB;AAAA,EACf,oBAAoB,EAAE,wBAAwB;AAAA,EAC9C;AACF;","names":[]}