@intlayer/editor-react 7.0.8 → 7.0.9-canary.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/README.md +6 -5
- package/dist/cjs/CommunicatorContext.cjs +2 -2
- package/dist/cjs/CommunicatorContext.cjs.map +1 -1
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
- package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/built.cjs +8 -0
- package/dist/cjs/config/dist/esm/built.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
- package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs +69 -0
- package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
- package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs +15 -0
- package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs +54 -0
- package/dist/cjs/config/dist/esm/defaultValues/content.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs +7 -0
- package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs +23 -0
- package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +14 -0
- package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs +10 -0
- package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +11 -0
- package/dist/cjs/config/dist/esm/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs +26 -0
- package/dist/cjs/config/dist/esm/loadEnvFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +47 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
- package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/logger.cjs +47 -0
- package/dist/cjs/config/dist/esm/logger.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
- package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
- package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs +261 -0
- package/dist/cjs/config/dist/esm/utils/cache.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
- package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +17 -0
- package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.cjs +60 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.cjs +17 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.cjs +38 -0
- package/dist/cjs/core/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.cjs.map +1 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs +25 -0
- package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/cjs/editor/dist/esm/compareUrls.cjs +39 -0
- package/dist/cjs/editor/dist/esm/compareUrls.cjs.map +1 -0
- package/dist/cjs/editor/dist/esm/mergeIframeClick.cjs +22 -0
- package/dist/cjs/editor/dist/esm/mergeIframeClick.cjs.map +1 -0
- package/dist/cjs/editor/dist/esm/messagesKeys.cjs +19 -0
- package/dist/cjs/editor/dist/esm/messagesKeys.cjs.map +1 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs +25 -0
- package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
- package/dist/esm/CommunicatorContext.mjs +2 -2
- package/dist/esm/CommunicatorContext.mjs.map +1 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +8 -0
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
- package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/built.mjs +8 -0
- package/dist/esm/config/dist/esm/built.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
- package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
- package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
- package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
- package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
- package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
- package/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
- package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
- package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
- package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
- package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
- package/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
- package/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
- package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
- package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
- package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/config/dist/esm/logger.mjs +45 -0
- package/dist/esm/config/dist/esm/logger.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
- package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
- package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
- package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
- package/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
- package/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +60 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs +17 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/getContentNodeByKeyPath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs +38 -0
- package/dist/esm/core/dist/esm/dictionaryManipulator/renameContentNodeByKeyPath.mjs.map +1 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs +24 -0
- package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/esm/editor/dist/esm/compareUrls.mjs +38 -0
- package/dist/esm/editor/dist/esm/compareUrls.mjs.map +1 -0
- package/dist/esm/editor/dist/esm/mergeIframeClick.mjs +21 -0
- package/dist/esm/editor/dist/esm/mergeIframeClick.mjs.map +1 -0
- package/dist/esm/editor/dist/esm/messagesKeys.mjs +18 -0
- package/dist/esm/editor/dist/esm/messagesKeys.mjs.map +1 -0
- package/dist/esm/types/dist/esm/nodeType.mjs +24 -0
- package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
- package/dist/types/CommunicatorContext.d.ts.map +1 -1
- package/dist/types/ConfigurationContext.d.ts +2 -2
- package/dist/types/EditorEnabledContext.d.ts +2 -2
- package/dist/types/useCrossURLPathState.d.ts +3 -3
- package/dist/types/useEditorLocale.d.ts +2 -2
- package/dist/types/useFocusUnmergedDictionary.d.ts +2 -2
- package/package.json +19 -17
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region ../config/dist/esm/defaultValues/content.mjs
|
|
2
|
+
const FILE_EXTENSIONS = [
|
|
3
|
+
".content.ts",
|
|
4
|
+
".content.js",
|
|
5
|
+
".content.cjs",
|
|
6
|
+
".content.cjx",
|
|
7
|
+
".content.mjs",
|
|
8
|
+
".content.mjx",
|
|
9
|
+
".content.json",
|
|
10
|
+
".content.tsx",
|
|
11
|
+
".content.jsx"
|
|
12
|
+
];
|
|
13
|
+
const EXCLUDED_PATHS = [
|
|
14
|
+
"**/node_modules/**",
|
|
15
|
+
"**/dist/**",
|
|
16
|
+
"**/build/**",
|
|
17
|
+
"**/.intlayer/**",
|
|
18
|
+
"**/.next/**",
|
|
19
|
+
"**/.nuxt/**",
|
|
20
|
+
"**/.expo/**",
|
|
21
|
+
"**/.vercel/**",
|
|
22
|
+
"**/.turbo/**",
|
|
23
|
+
"**/.tanstack/**"
|
|
24
|
+
];
|
|
25
|
+
const CONTENT_DIR = ["."];
|
|
26
|
+
const MAIN_DIR = ".intlayer/main";
|
|
27
|
+
const DICTIONARIES_DIR = ".intlayer/dictionary";
|
|
28
|
+
const REMOTE_DICTIONARIES_DIR = ".intlayer/remote_dictionary";
|
|
29
|
+
const UNMERGED_DICTIONARIES_DIR = ".intlayer/unmerged_dictionary";
|
|
30
|
+
const DYNAMIC_DICTIONARIES_DIR = ".intlayer/dynamic_dictionary";
|
|
31
|
+
const FETCH_DICTIONARIES_DIR = ".intlayer/fetch_dictionary";
|
|
32
|
+
const TYPES_DIR = ".intlayer/types";
|
|
33
|
+
const MODULE_AUGMENTATION_DIR = ".intlayer/types";
|
|
34
|
+
const CONFIG_DIR = ".intlayer/config";
|
|
35
|
+
const CACHE_DIR = ".intlayer/cache";
|
|
36
|
+
const WATCH = true;
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { CACHE_DIR, CONFIG_DIR, CONTENT_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, EXCLUDED_PATHS, FETCH_DICTIONARIES_DIR, FILE_EXTENSIONS, MAIN_DIR, MODULE_AUGMENTATION_DIR, REMOTE_DICTIONARIES_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR, WATCH };
|
|
40
|
+
//# sourceMappingURL=content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.mjs","names":[],"sources":["../../../../../../../config/dist/esm/defaultValues/content.mjs"],"sourcesContent":["import { __export } from \"../_virtual/rolldown_runtime.mjs\";\n\n//#region src/defaultValues/content.ts\nvar content_exports = /* @__PURE__ */ __export({\n\tCACHE_DIR: () => CACHE_DIR,\n\tCONFIG_DIR: () => CONFIG_DIR,\n\tCONTENT_DIR: () => CONTENT_DIR,\n\tDICTIONARIES_DIR: () => DICTIONARIES_DIR,\n\tDYNAMIC_DICTIONARIES_DIR: () => DYNAMIC_DICTIONARIES_DIR,\n\tEXCLUDED_PATHS: () => EXCLUDED_PATHS,\n\tFETCH_DICTIONARIES_DIR: () => FETCH_DICTIONARIES_DIR,\n\tFILE_EXTENSIONS: () => FILE_EXTENSIONS,\n\tI18NEXT_DICTIONARIES_DIR: () => I18NEXT_DICTIONARIES_DIR,\n\tMAIN_DIR: () => MAIN_DIR,\n\tMASKS_DIR: () => MASKS_DIR,\n\tMODULE_AUGMENTATION_DIR: () => MODULE_AUGMENTATION_DIR,\n\tREACT_INTL_MESSAGES_DIR: () => REACT_INTL_MESSAGES_DIR,\n\tREMOTE_DICTIONARIES_DIR: () => REMOTE_DICTIONARIES_DIR,\n\tTYPES_DIR: () => TYPES_DIR,\n\tUNMERGED_DICTIONARIES_DIR: () => UNMERGED_DICTIONARIES_DIR,\n\tWATCH: () => WATCH\n});\nconst FILE_EXTENSIONS = [\n\t\".content.ts\",\n\t\".content.js\",\n\t\".content.cjs\",\n\t\".content.cjx\",\n\t\".content.mjs\",\n\t\".content.mjx\",\n\t\".content.json\",\n\t\".content.tsx\",\n\t\".content.jsx\"\n];\nconst EXCLUDED_PATHS = [\n\t\"**/node_modules/**\",\n\t\"**/dist/**\",\n\t\"**/build/**\",\n\t\"**/.intlayer/**\",\n\t\"**/.next/**\",\n\t\"**/.nuxt/**\",\n\t\"**/.expo/**\",\n\t\"**/.vercel/**\",\n\t\"**/.turbo/**\",\n\t\"**/.tanstack/**\"\n];\nconst CONTENT_DIR = [\".\"];\nconst MAIN_DIR = \".intlayer/main\";\nconst DICTIONARIES_DIR = \".intlayer/dictionary\";\nconst MASKS_DIR = \".intlayer/mask\";\nconst REMOTE_DICTIONARIES_DIR = \".intlayer/remote_dictionary\";\nconst UNMERGED_DICTIONARIES_DIR = \".intlayer/unmerged_dictionary\";\nconst DYNAMIC_DICTIONARIES_DIR = \".intlayer/dynamic_dictionary\";\nconst FETCH_DICTIONARIES_DIR = \".intlayer/fetch_dictionary\";\nconst TYPES_DIR = \".intlayer/types\";\nconst MODULE_AUGMENTATION_DIR = \".intlayer/types\";\nconst I18NEXT_DICTIONARIES_DIR = \"i18next_resources\";\nconst REACT_INTL_MESSAGES_DIR = \"intl_messages\";\nconst CONFIG_DIR = \".intlayer/config\";\nconst CACHE_DIR = \".intlayer/cache\";\nconst WATCH = true;\n\n//#endregion\nexport { CACHE_DIR, CONFIG_DIR, CONTENT_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, EXCLUDED_PATHS, FETCH_DICTIONARIES_DIR, FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR, MAIN_DIR, MASKS_DIR, MODULE_AUGMENTATION_DIR, REACT_INTL_MESSAGES_DIR, REMOTE_DICTIONARIES_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR, WATCH, content_exports };\n//# sourceMappingURL=content.mjs.map"],"mappings":";AAsBA,MAAM,kBAAkB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,MAAM,iBAAiB;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,MAAM,cAAc,CAAC,IAAI;AACzB,MAAM,WAAW;AACjB,MAAM,mBAAmB;AAEzB,MAAM,0BAA0B;AAChC,MAAM,4BAA4B;AAClC,MAAM,2BAA2B;AACjC,MAAM,yBAAyB;AAC/B,MAAM,YAAY;AAClB,MAAM,0BAA0B;AAGhC,MAAM,aAAa;AACnB,MAAM,YAAY;AAClB,MAAM,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.mjs","names":[],"sources":["../../../../../../../config/dist/esm/defaultValues/dictionary.mjs"],"sourcesContent":["//#region src/defaultValues/dictionary.ts\nconst FILL = true;\n\n//#endregion\nexport { FILL };\n//# sourceMappingURL=dictionary.mjs.map"],"mappings":";AACA,MAAM,OAAO"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../config/dist/esm/defaultValues/editor.mjs
|
|
2
|
+
const APPLICATION_URL = "";
|
|
3
|
+
const EDITOR_URL = "http://localhost:8000";
|
|
4
|
+
const CMS_URL = "https://intlayer.org";
|
|
5
|
+
const PORT = 8e3;
|
|
6
|
+
const BACKEND_URL = "https://back.intlayer.org";
|
|
7
|
+
const IS_ENABLED = true;
|
|
8
|
+
const LIVE_SYNC = true;
|
|
9
|
+
const DICTIONARY_PRIORITY_STRATEGY = "local_first";
|
|
10
|
+
const LIVE_SYNC_PORT = 4e3;
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT };
|
|
14
|
+
//# sourceMappingURL=editor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.mjs","names":[],"sources":["../../../../../../../config/dist/esm/defaultValues/editor.mjs"],"sourcesContent":["import { __export } from \"../_virtual/rolldown_runtime.mjs\";\n\n//#region src/defaultValues/editor.ts\nvar editor_exports = /* @__PURE__ */ __export({\n\tAPPLICATION_URL: () => APPLICATION_URL,\n\tBACKEND_URL: () => BACKEND_URL,\n\tCMS_URL: () => CMS_URL,\n\tDICTIONARY_PRIORITY_STRATEGY: () => DICTIONARY_PRIORITY_STRATEGY,\n\tEDITOR_URL: () => EDITOR_URL,\n\tIS_ENABLED: () => IS_ENABLED,\n\tLIVE_SYNC: () => LIVE_SYNC,\n\tLIVE_SYNC_PORT: () => LIVE_SYNC_PORT,\n\tPORT: () => PORT\n});\nconst APPLICATION_URL = \"\";\nconst EDITOR_URL = \"http://localhost:8000\";\nconst CMS_URL = \"https://intlayer.org\";\nconst PORT = 8e3;\nconst BACKEND_URL = \"https://back.intlayer.org\";\nconst IS_ENABLED = true;\nconst LIVE_SYNC = true;\nconst DICTIONARY_PRIORITY_STRATEGY = \"local_first\";\nconst LIVE_SYNC_PORT = 4e3;\n\n//#endregion\nexport { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT, editor_exports };\n//# sourceMappingURL=editor.mjs.map"],"mappings":";AAcA,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,UAAU;AAChB,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,YAAY;AAClB,MAAM,+BAA+B;AACrC,MAAM,iBAAiB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { locales_exports } from "../types/dist/esm/locales.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../config/dist/esm/defaultValues/internationalization.mjs
|
|
4
|
+
const LOCALES = [locales_exports.ENGLISH];
|
|
5
|
+
const REQUIRED_LOCALES = [];
|
|
6
|
+
const DEFAULT_LOCALE = locales_exports.ENGLISH;
|
|
7
|
+
const STRICT_MODE = "inclusive";
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DEFAULT_LOCALE, LOCALES, REQUIRED_LOCALES, STRICT_MODE };
|
|
11
|
+
//# sourceMappingURL=internationalization.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internationalization.mjs","names":[],"sources":["../../../../../../../config/dist/esm/defaultValues/internationalization.mjs"],"sourcesContent":["import { __export } from \"../_virtual/rolldown_runtime.mjs\";\nimport { locales_exports } from \"../types/dist/esm/locales.mjs\";\n\n//#region src/defaultValues/internationalization.ts\nvar internationalization_exports = /* @__PURE__ */ __export({\n\tDEFAULT_LOCALE: () => DEFAULT_LOCALE,\n\tLOCALES: () => LOCALES,\n\tREQUIRED_LOCALES: () => REQUIRED_LOCALES,\n\tSTRICT_MODE: () => STRICT_MODE\n});\nconst LOCALES = [locales_exports.ENGLISH];\nconst REQUIRED_LOCALES = [];\nconst DEFAULT_LOCALE = locales_exports.ENGLISH;\nconst STRICT_MODE = \"inclusive\";\n\n//#endregion\nexport { DEFAULT_LOCALE, LOCALES, REQUIRED_LOCALES, STRICT_MODE, internationalization_exports };\n//# sourceMappingURL=internationalization.mjs.map"],"mappings":";;;AAUA,MAAM,UAAU,CAAC,gBAAgB,QAAQ;AACzC,MAAM,mBAAmB,EAAE;AAC3B,MAAM,iBAAiB,gBAAgB;AACvC,MAAM,cAAc"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ANSIColors } from "../logger.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../config/dist/esm/defaultValues/log.mjs
|
|
4
|
+
const MODE = "default";
|
|
5
|
+
const PREFIX = `${ANSIColors.GREY_DARK}[intlayer] ${ANSIColors.RESET}`;
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { MODE, PREFIX };
|
|
9
|
+
//# sourceMappingURL=log.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.mjs","names":[],"sources":["../../../../../../../config/dist/esm/defaultValues/log.mjs"],"sourcesContent":["import { __export } from \"../_virtual/rolldown_runtime.mjs\";\nimport { ANSIColors } from \"../logger.mjs\";\n\n//#region src/defaultValues/log.ts\nvar log_exports = /* @__PURE__ */ __export({\n\tMODE: () => MODE,\n\tPREFIX: () => PREFIX\n});\nconst MODE = \"default\";\nconst PREFIX = `${ANSIColors.GREY_DARK}[intlayer] ${ANSIColors.RESET}`;\n\n//#endregion\nexport { MODE, PREFIX, log_exports };\n//# sourceMappingURL=log.mjs.map"],"mappings":";;;AAQA,MAAM,OAAO;AACb,MAAM,SAAS,GAAG,WAAW,UAAU,aAAa,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.mjs","names":[],"sources":["../../../../../../../config/dist/esm/defaultValues/routing.mjs"],"sourcesContent":["import { __export } from \"../_virtual/rolldown_runtime.mjs\";\n\n//#region src/defaultValues/routing.ts\nvar routing_exports = /* @__PURE__ */ __export({\n\tBASE_PATH: () => BASE_PATH,\n\tCOOKIE_NAME: () => COOKIE_NAME,\n\tHEADER_NAME: () => HEADER_NAME,\n\tLOCALE_STORAGE_NAME: () => LOCALE_STORAGE_NAME,\n\tROUTING_MODE: () => ROUTING_MODE,\n\tSERVER_SET_COOKIE: () => SERVER_SET_COOKIE,\n\tSTORAGE: () => STORAGE\n});\nconst HEADER_NAME = \"x-intlayer-locale\";\nconst COOKIE_NAME = \"INTLAYER_LOCALE\";\nconst LOCALE_STORAGE_NAME = \"INTLAYER_LOCALE\";\nconst BASE_PATH = \"\";\nconst SERVER_SET_COOKIE = \"always\";\nconst ROUTING_MODE = \"prefix-no-default\";\nconst STORAGE = [\"cookie\", \"header\"];\n\n//#endregion\nexport { BASE_PATH, COOKIE_NAME, HEADER_NAME, LOCALE_STORAGE_NAME, ROUTING_MODE, SERVER_SET_COOKIE, STORAGE, routing_exports };\n//# sourceMappingURL=routing.mjs.map"],"mappings":";AAeA,MAAM,YAAY;AAElB,MAAM,eAAe;AACrB,MAAM,UAAU,CAAC,UAAU,SAAS"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import dotenv from "dotenv";
|
|
3
|
+
|
|
4
|
+
//#region ../config/dist/esm/loadEnvFile.mjs
|
|
5
|
+
const DEFAULT_ENV = "development";
|
|
6
|
+
const loadEnvFile = (options) => {
|
|
7
|
+
const env = options?.env ?? DEFAULT_ENV;
|
|
8
|
+
const envFiles = options?.envFile ? [options.envFile] : [
|
|
9
|
+
`.env.${env}.local`,
|
|
10
|
+
`.env.${env}`,
|
|
11
|
+
".env.local",
|
|
12
|
+
".env"
|
|
13
|
+
];
|
|
14
|
+
const result = {};
|
|
15
|
+
dotenv.config({
|
|
16
|
+
path: envFiles,
|
|
17
|
+
processEnv: result
|
|
18
|
+
});
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { loadEnvFile };
|
|
24
|
+
//# sourceMappingURL=loadEnvFile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadEnvFile.mjs","names":[],"sources":["../../../../../../config/dist/esm/loadEnvFile.mjs"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport dotenv from \"dotenv\";\n\n//#region src/loadEnvFile.ts\nconst DEFAULT_ENV = \"development\";\nconst getEnvFilePath = (env = \"development\", envFile) => {\n\treturn (envFile ? [envFile] : [\n\t\t`.env.${env}.local`,\n\t\t`.env.${env}`,\n\t\t\".env.local\",\n\t\t\".env\"\n\t]).find(existsSync);\n};\nconst loadEnvFile = (options) => {\n\tconst env = options?.env ?? DEFAULT_ENV;\n\tconst envFiles = options?.envFile ? [options.envFile] : [\n\t\t`.env.${env}.local`,\n\t\t`.env.${env}`,\n\t\t\".env.local\",\n\t\t\".env\"\n\t];\n\tconst result = {};\n\tdotenv.config({\n\t\tpath: envFiles,\n\t\tprocessEnv: result\n\t});\n\treturn result;\n};\n\n//#endregion\nexport { getEnvFilePath, loadEnvFile };\n//# sourceMappingURL=loadEnvFile.mjs.map"],"mappings":";;;;AAIA,MAAM,cAAc;AASpB,MAAM,eAAe,YAAY;CAChC,MAAM,MAAM,SAAS,OAAO;CAC5B,MAAM,WAAW,SAAS,UAAU,CAAC,QAAQ,QAAQ,GAAG;EACvD,QAAQ,IAAI;EACZ,QAAQ;EACR;EACA;EACA;CACD,MAAM,SAAS,EAAE;AACjB,QAAO,OAAO;EACb,MAAM;EACN,YAAY;EACZ,CAAC;AACF,QAAO"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { dirname, extname } from "node:path";
|
|
2
|
+
import { buildSync } from "esbuild";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
4
|
+
|
|
5
|
+
//#region ../config/dist/esm/loadExternalFile/bundleFile.mjs
|
|
6
|
+
const getLoader = (extension) => {
|
|
7
|
+
switch (extension) {
|
|
8
|
+
case ".js": return "js";
|
|
9
|
+
case ".jsx": return "jsx";
|
|
10
|
+
case ".mjs": return "js";
|
|
11
|
+
case ".ts": return "ts";
|
|
12
|
+
case ".tsx": return "tsx";
|
|
13
|
+
case ".cjs": return "js";
|
|
14
|
+
case ".json": return "json";
|
|
15
|
+
case ".md": return "text";
|
|
16
|
+
case ".mdx": return "text";
|
|
17
|
+
default: return "js";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { getLoader };
|
|
23
|
+
//# sourceMappingURL=bundleFile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundleFile.mjs","names":[],"sources":["../../../../../../../config/dist/esm/loadExternalFile/bundleFile.mjs"],"sourcesContent":["import { dirname, extname } from \"node:path\";\nimport { build, buildSync } from \"esbuild\";\nimport { pathToFileURL } from \"node:url\";\n\n//#region src/loadExternalFile/bundleFile.ts\nconst getLoader = (extension) => {\n\tswitch (extension) {\n\t\tcase \".js\": return \"js\";\n\t\tcase \".jsx\": return \"jsx\";\n\t\tcase \".mjs\": return \"js\";\n\t\tcase \".ts\": return \"ts\";\n\t\tcase \".tsx\": return \"tsx\";\n\t\tcase \".cjs\": return \"js\";\n\t\tcase \".json\": return \"json\";\n\t\tcase \".md\": return \"text\";\n\t\tcase \".mdx\": return \"text\";\n\t\tdefault: return \"js\";\n\t}\n};\nconst getTransformationOptions = (filePath) => ({\n\tloader: {\n\t\t\".js\": \"js\",\n\t\t\".jsx\": \"jsx\",\n\t\t\".mjs\": \"js\",\n\t\t\".ts\": \"ts\",\n\t\t\".tsx\": \"tsx\",\n\t\t\".cjs\": \"js\",\n\t\t\".json\": \"json\",\n\t\t\".md\": \"text\",\n\t\t\".mdx\": \"text\"\n\t},\n\tformat: \"cjs\",\n\ttarget: \"node16\",\n\tplatform: \"neutral\",\n\twrite: false,\n\tpackages: \"bundle\",\n\texternal: [\"esbuild\"],\n\tbundle: true,\n\tdefine: { \"import.meta.url\": JSON.stringify(pathToFileURL(filePath).href) }\n});\nconst bundleFileSync = (code, filePath, options) => {\n\treturn buildSync({\n\t\tstdin: {\n\t\t\tcontents: code,\n\t\t\tloader: getLoader(extname(filePath)),\n\t\t\tresolveDir: dirname(filePath),\n\t\t\tsourcefile: filePath\n\t\t},\n\t\t...getTransformationOptions(filePath),\n\t\t...options\n\t}).outputFiles?.[0].text;\n};\nconst bundleFile = async (code, filePath, options) => {\n\treturn (await build({\n\t\tstdin: {\n\t\t\tcontents: code,\n\t\t\tloader: getLoader(extname(filePath)),\n\t\t\tresolveDir: dirname(filePath),\n\t\t\tsourcefile: filePath\n\t\t},\n\t\t...getTransformationOptions(filePath),\n\t\t...options\n\t})).outputFiles?.[0].text;\n};\n\n//#endregion\nexport { bundleFile, bundleFileSync, getLoader };\n//# sourceMappingURL=bundleFile.mjs.map"],"mappings":";;;;;AAKA,MAAM,aAAa,cAAc;AAChC,SAAQ,WAAR;EACC,KAAK,MAAO,QAAO;EACnB,KAAK,OAAQ,QAAO;EACpB,KAAK,OAAQ,QAAO;EACpB,KAAK,MAAO,QAAO;EACnB,KAAK,OAAQ,QAAO;EACpB,KAAK,OAAQ,QAAO;EACpB,KAAK,QAAS,QAAO;EACrB,KAAK,MAAO,QAAO;EACnB,KAAK,OAAQ,QAAO;EACpB,QAAS,QAAO"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { logger } from "../logger.mjs";
|
|
2
|
+
import { getProjectRequire } from "../utils/ESMxCJSHelpers.mjs";
|
|
3
|
+
import { parseFileContent } from "./parseFileContent.mjs";
|
|
4
|
+
import { transpileTSToMJSSync } from "./transpileTSToMJS.mjs";
|
|
5
|
+
import { extname } from "node:path";
|
|
6
|
+
import "node:fs/promises";
|
|
7
|
+
import { readFileSync } from "node:fs";
|
|
8
|
+
|
|
9
|
+
//#region ../config/dist/esm/loadExternalFile/loadExternalFile.mjs
|
|
10
|
+
/**
|
|
11
|
+
* Load the content declaration from the given path
|
|
12
|
+
*
|
|
13
|
+
* Accepts JSON, JS, MJS and TS files as configuration
|
|
14
|
+
*/
|
|
15
|
+
const loadExternalFileSync = (filePath, options) => {
|
|
16
|
+
const fileExtension = extname(filePath);
|
|
17
|
+
const safeProjectRequire = options?.projectRequire ?? getProjectRequire();
|
|
18
|
+
try {
|
|
19
|
+
if (fileExtension === "json") {
|
|
20
|
+
delete safeProjectRequire.cache[safeProjectRequire.resolve(filePath)];
|
|
21
|
+
return safeProjectRequire(filePath);
|
|
22
|
+
}
|
|
23
|
+
const moduleResultString = transpileTSToMJSSync(readFileSync(filePath, "utf-8"), filePath);
|
|
24
|
+
if (!moduleResultString) {
|
|
25
|
+
logger("File could not be loaded.", { level: "error" });
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const fileContent = parseFileContent(moduleResultString, {
|
|
29
|
+
projectRequire: options?.projectRequire,
|
|
30
|
+
envVarOptions: options?.envVarOptions,
|
|
31
|
+
additionalEnvVars: options?.additionalEnvVars,
|
|
32
|
+
mocks: options?.mocks,
|
|
33
|
+
aliases: options?.aliases
|
|
34
|
+
});
|
|
35
|
+
if (typeof fileContent === "undefined") {
|
|
36
|
+
logger(`File file could not be loaded. Path : ${filePath}`);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
return fileContent;
|
|
40
|
+
} catch (error) {
|
|
41
|
+
logger([`Error: ${error.message} - `, JSON.stringify(error.stack, null, 2)], { level: "error" });
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { loadExternalFileSync };
|
|
47
|
+
//# sourceMappingURL=loadExternalFile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadExternalFile.mjs","names":[],"sources":["../../../../../../../config/dist/esm/loadExternalFile/loadExternalFile.mjs"],"sourcesContent":["import { colorizePath, logger } from \"../logger.mjs\";\nimport { getProjectRequire } from \"../utils/ESMxCJSHelpers.mjs\";\nimport { parseFileContent } from \"./parseFileContent.mjs\";\nimport { transpileTSToMJS, transpileTSToMJSSync } from \"./transpileTSToMJS.mjs\";\nimport { extname } from \"node:path\";\nimport { readFile } from \"node:fs/promises\";\nimport { readFileSync } from \"node:fs\";\n\n//#region src/loadExternalFile/loadExternalFile.ts\n/**\n* Load the content declaration from the given path\n*\n* Accepts JSON, JS, MJS and TS files as configuration\n*/\nconst loadExternalFileSync = (filePath, options) => {\n\tconst fileExtension = extname(filePath);\n\tconst safeProjectRequire = options?.projectRequire ?? getProjectRequire();\n\ttry {\n\t\tif (fileExtension === \"json\") {\n\t\t\tdelete safeProjectRequire.cache[safeProjectRequire.resolve(filePath)];\n\t\t\treturn safeProjectRequire(filePath);\n\t\t}\n\t\tconst moduleResultString = transpileTSToMJSSync(readFileSync(filePath, \"utf-8\"), filePath);\n\t\tif (!moduleResultString) {\n\t\t\tlogger(\"File could not be loaded.\", { level: \"error\" });\n\t\t\treturn;\n\t\t}\n\t\tconst fileContent = parseFileContent(moduleResultString, {\n\t\t\tprojectRequire: options?.projectRequire,\n\t\t\tenvVarOptions: options?.envVarOptions,\n\t\t\tadditionalEnvVars: options?.additionalEnvVars,\n\t\t\tmocks: options?.mocks,\n\t\t\taliases: options?.aliases\n\t\t});\n\t\tif (typeof fileContent === \"undefined\") {\n\t\t\tlogger(`File file could not be loaded. Path : ${filePath}`);\n\t\t\treturn;\n\t\t}\n\t\treturn fileContent;\n\t} catch (error) {\n\t\tlogger([`Error: ${error.message} - `, JSON.stringify(error.stack, null, 2)], { level: \"error\" });\n\t}\n};\n/**\n* Load the content declaration from the given path\n*\n* Accepts JSON, JS, MJS and TS files as configuration\n*/\nconst loadExternalFile = async (filePath, options) => {\n\tconst fileExtension = extname(filePath);\n\tconst safeProjectRequire = options?.projectRequire ?? getProjectRequire();\n\ttry {\n\t\tif (fileExtension === \"json\") {\n\t\t\tdelete safeProjectRequire.cache[safeProjectRequire.resolve(filePath)];\n\t\t\treturn safeProjectRequire(filePath);\n\t\t}\n\t\tconst moduleResultString = await transpileTSToMJS(await readFile(filePath, \"utf-8\"), filePath, options?.buildOptions);\n\t\tif (!moduleResultString) {\n\t\t\tlogger(\"File could not be loaded.\", { level: \"error\" });\n\t\t\treturn;\n\t\t}\n\t\tconst fileContent = parseFileContent(moduleResultString, {\n\t\t\tprojectRequire: options?.projectRequire,\n\t\t\tenvVarOptions: options?.envVarOptions,\n\t\t\tadditionalEnvVars: options?.additionalEnvVars,\n\t\t\tmocks: options?.mocks,\n\t\t\taliases: options?.aliases\n\t\t});\n\t\tif (typeof fileContent === \"undefined\") {\n\t\t\tlogger(`File file could not be loaded. Path : ${colorizePath(filePath)}`);\n\t\t\treturn;\n\t\t}\n\t\treturn fileContent;\n\t} catch (error) {\n\t\tlogger([`Error: ${error.message} - `, JSON.stringify(error.stack, null, 2)], { level: \"error\" });\n\t}\n};\n\n//#endregion\nexport { loadExternalFile, loadExternalFileSync };\n//# sourceMappingURL=loadExternalFile.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,wBAAwB,UAAU,YAAY;CACnD,MAAM,gBAAgB,QAAQ,SAAS;CACvC,MAAM,qBAAqB,SAAS,kBAAkB,mBAAmB;AACzE,KAAI;AACH,MAAI,kBAAkB,QAAQ;AAC7B,UAAO,mBAAmB,MAAM,mBAAmB,QAAQ,SAAS;AACpE,UAAO,mBAAmB,SAAS;;EAEpC,MAAM,qBAAqB,qBAAqB,aAAa,UAAU,QAAQ,EAAE,SAAS;AAC1F,MAAI,CAAC,oBAAoB;AACxB,UAAO,6BAA6B,EAAE,OAAO,SAAS,CAAC;AACvD;;EAED,MAAM,cAAc,iBAAiB,oBAAoB;GACxD,gBAAgB,SAAS;GACzB,eAAe,SAAS;GACxB,mBAAmB,SAAS;GAC5B,OAAO,SAAS;GAChB,SAAS,SAAS;GAClB,CAAC;AACF,MAAI,OAAO,gBAAgB,aAAa;AACvC,UAAO,yCAAyC,WAAW;AAC3D;;AAED,SAAO;UACC,OAAO;AACf,SAAO,CAAC,UAAU,MAAM,QAAQ,MAAM,KAAK,UAAU,MAAM,OAAO,MAAM,EAAE,CAAC,EAAE,EAAE,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { getProjectRequire } from "../utils/ESMxCJSHelpers.mjs";
|
|
2
|
+
import { loadEnvFile } from "../loadEnvFile.mjs";
|
|
3
|
+
import { runInNewContext } from "node:vm";
|
|
4
|
+
import * as esbuild from "esbuild";
|
|
5
|
+
|
|
6
|
+
//#region ../config/dist/esm/loadExternalFile/parseFileContent.mjs
|
|
7
|
+
const getSandBoxContext = (options) => {
|
|
8
|
+
const { envVarOptions, projectRequire, additionalEnvVars, mocks, aliases } = options ?? {};
|
|
9
|
+
let additionalGlobalVar = {};
|
|
10
|
+
const baseRequire = typeof projectRequire === "function" ? projectRequire : getProjectRequire();
|
|
11
|
+
const mockedRequire = (() => {
|
|
12
|
+
const mockTable = Object.assign({ esbuild }, mocks);
|
|
13
|
+
const aliasTable = Object.assign({}, aliases);
|
|
14
|
+
const wrappedRequire = function mockableRequire(id) {
|
|
15
|
+
const target = aliasTable?.[id] ? aliasTable[id] : id;
|
|
16
|
+
if (mockTable && Object.hasOwn(mockTable, target)) return mockTable[target];
|
|
17
|
+
if (target !== id && mockTable && Object.hasOwn(mockTable, id)) return mockTable[id];
|
|
18
|
+
return baseRequire(target);
|
|
19
|
+
};
|
|
20
|
+
wrappedRequire.resolve = baseRequire.resolve.bind(baseRequire);
|
|
21
|
+
wrappedRequire.main = baseRequire.main;
|
|
22
|
+
wrappedRequire.extensions = baseRequire.extensions;
|
|
23
|
+
wrappedRequire.cache = baseRequire.cache;
|
|
24
|
+
return wrappedRequire;
|
|
25
|
+
})();
|
|
26
|
+
try {
|
|
27
|
+
additionalGlobalVar = { React: baseRequire("react") };
|
|
28
|
+
} catch (_err) {}
|
|
29
|
+
const sandboxContext = {
|
|
30
|
+
exports: { default: {} },
|
|
31
|
+
module: { exports: {} },
|
|
32
|
+
process: {
|
|
33
|
+
...process,
|
|
34
|
+
env: {
|
|
35
|
+
...process.env,
|
|
36
|
+
...loadEnvFile(envVarOptions),
|
|
37
|
+
...additionalEnvVars
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
console,
|
|
41
|
+
require: mockedRequire,
|
|
42
|
+
...additionalGlobalVar
|
|
43
|
+
};
|
|
44
|
+
Object.getOwnPropertyNames(globalThis).forEach((key) => {
|
|
45
|
+
if (!(key in sandboxContext)) sandboxContext[key] = globalThis[key];
|
|
46
|
+
});
|
|
47
|
+
return sandboxContext;
|
|
48
|
+
};
|
|
49
|
+
const parseFileContent = (fileContentString, options) => {
|
|
50
|
+
const sandboxContext = getSandBoxContext(options);
|
|
51
|
+
runInNewContext(`"use strict";\n${fileContentString}`, sandboxContext);
|
|
52
|
+
const candidates = [
|
|
53
|
+
sandboxContext.exports?.default,
|
|
54
|
+
sandboxContext.module?.exports?.defaults,
|
|
55
|
+
sandboxContext.module?.exports?.default,
|
|
56
|
+
sandboxContext.module?.exports
|
|
57
|
+
];
|
|
58
|
+
for (const candidate of candidates) if (candidate && typeof candidate === "object" && Object.keys(candidate).length > 0) return candidate;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { parseFileContent };
|
|
63
|
+
//# sourceMappingURL=parseFileContent.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseFileContent.mjs","names":[],"sources":["../../../../../../../config/dist/esm/loadExternalFile/parseFileContent.mjs"],"sourcesContent":["import { getProjectRequire } from \"../utils/ESMxCJSHelpers.mjs\";\nimport { loadEnvFile } from \"../loadEnvFile.mjs\";\nimport { runInNewContext } from \"node:vm\";\nimport * as esbuild from \"esbuild\";\n\n//#region src/loadExternalFile/parseFileContent.ts\nconst getSandBoxContext = (options) => {\n\tconst { envVarOptions, projectRequire, additionalEnvVars, mocks, aliases } = options ?? {};\n\tlet additionalGlobalVar = {};\n\tconst baseRequire = typeof projectRequire === \"function\" ? projectRequire : getProjectRequire();\n\tconst mockedRequire = (() => {\n\t\tconst mockTable = Object.assign({ esbuild }, mocks);\n\t\tconst aliasTable = Object.assign({}, aliases);\n\t\tconst wrappedRequire = function mockableRequire(id) {\n\t\t\tconst target = aliasTable?.[id] ? aliasTable[id] : id;\n\t\t\tif (mockTable && Object.hasOwn(mockTable, target)) return mockTable[target];\n\t\t\tif (target !== id && mockTable && Object.hasOwn(mockTable, id)) return mockTable[id];\n\t\t\treturn baseRequire(target);\n\t\t};\n\t\twrappedRequire.resolve = baseRequire.resolve.bind(baseRequire);\n\t\twrappedRequire.main = baseRequire.main;\n\t\twrappedRequire.extensions = baseRequire.extensions;\n\t\twrappedRequire.cache = baseRequire.cache;\n\t\treturn wrappedRequire;\n\t})();\n\ttry {\n\t\tadditionalGlobalVar = { React: baseRequire(\"react\") };\n\t} catch (_err) {}\n\tconst sandboxContext = {\n\t\texports: { default: {} },\n\t\tmodule: { exports: {} },\n\t\tprocess: {\n\t\t\t...process,\n\t\t\tenv: {\n\t\t\t\t...process.env,\n\t\t\t\t...loadEnvFile(envVarOptions),\n\t\t\t\t...additionalEnvVars\n\t\t\t}\n\t\t},\n\t\tconsole,\n\t\trequire: mockedRequire,\n\t\t...additionalGlobalVar\n\t};\n\tObject.getOwnPropertyNames(globalThis).forEach((key) => {\n\t\tif (!(key in sandboxContext)) sandboxContext[key] = globalThis[key];\n\t});\n\treturn sandboxContext;\n};\nconst parseFileContent = (fileContentString, options) => {\n\tconst sandboxContext = getSandBoxContext(options);\n\trunInNewContext(`\"use strict\";\\n${fileContentString}`, sandboxContext);\n\tconst candidates = [\n\t\tsandboxContext.exports?.default,\n\t\tsandboxContext.module?.exports?.defaults,\n\t\tsandboxContext.module?.exports?.default,\n\t\tsandboxContext.module?.exports\n\t];\n\tfor (const candidate of candidates) if (candidate && typeof candidate === \"object\" && Object.keys(candidate).length > 0) return candidate;\n};\n\n//#endregion\nexport { getSandBoxContext, parseFileContent };\n//# sourceMappingURL=parseFileContent.mjs.map"],"mappings":";;;;;;AAMA,MAAM,qBAAqB,YAAY;CACtC,MAAM,EAAE,eAAe,gBAAgB,mBAAmB,OAAO,YAAY,WAAW,EAAE;CAC1F,IAAI,sBAAsB,EAAE;CAC5B,MAAM,cAAc,OAAO,mBAAmB,aAAa,iBAAiB,mBAAmB;CAC/F,MAAM,uBAAuB;EAC5B,MAAM,YAAY,OAAO,OAAO,EAAE,SAAS,EAAE,MAAM;EACnD,MAAM,aAAa,OAAO,OAAO,EAAE,EAAE,QAAQ;EAC7C,MAAM,iBAAiB,SAAS,gBAAgB,IAAI;GACnD,MAAM,SAAS,aAAa,MAAM,WAAW,MAAM;AACnD,OAAI,aAAa,OAAO,OAAO,WAAW,OAAO,CAAE,QAAO,UAAU;AACpE,OAAI,WAAW,MAAM,aAAa,OAAO,OAAO,WAAW,GAAG,CAAE,QAAO,UAAU;AACjF,UAAO,YAAY,OAAO;;AAE3B,iBAAe,UAAU,YAAY,QAAQ,KAAK,YAAY;AAC9D,iBAAe,OAAO,YAAY;AAClC,iBAAe,aAAa,YAAY;AACxC,iBAAe,QAAQ,YAAY;AACnC,SAAO;KACJ;AACJ,KAAI;AACH,wBAAsB,EAAE,OAAO,YAAY,QAAQ,EAAE;UAC7C,MAAM;CACf,MAAM,iBAAiB;EACtB,SAAS,EAAE,SAAS,EAAE,EAAE;EACxB,QAAQ,EAAE,SAAS,EAAE,EAAE;EACvB,SAAS;GACR,GAAG;GACH,KAAK;IACJ,GAAG,QAAQ;IACX,GAAG,YAAY,cAAc;IAC7B,GAAG;IACH;GACD;EACD;EACA,SAAS;EACT,GAAG;EACH;AACD,QAAO,oBAAoB,WAAW,CAAC,SAAS,QAAQ;AACvD,MAAI,EAAE,OAAO,gBAAiB,gBAAe,OAAO,WAAW;GAC9D;AACF,QAAO;;AAER,MAAM,oBAAoB,mBAAmB,YAAY;CACxD,MAAM,iBAAiB,kBAAkB,QAAQ;AACjD,iBAAgB,kBAAkB,qBAAqB,eAAe;CACtE,MAAM,aAAa;EAClB,eAAe,SAAS;EACxB,eAAe,QAAQ,SAAS;EAChC,eAAe,QAAQ,SAAS;EAChC,eAAe,QAAQ;EACvB;AACD,MAAK,MAAM,aAAa,WAAY,KAAI,aAAa,OAAO,cAAc,YAAY,OAAO,KAAK,UAAU,CAAC,SAAS,EAAG,QAAO"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { getPackageJsonPath } from "../utils/getPackageJsonPath.mjs";
|
|
2
|
+
import { getLoader } from "./bundleFile.mjs";
|
|
3
|
+
import { dirname, extname, join } from "node:path";
|
|
4
|
+
import { buildSync } from "esbuild";
|
|
5
|
+
import { pathToFileURL } from "node:url";
|
|
6
|
+
|
|
7
|
+
//#region ../config/dist/esm/loadExternalFile/transpileTSToMJS.mjs
|
|
8
|
+
const getTransformationOptions = (filePath) => ({
|
|
9
|
+
loader: {
|
|
10
|
+
".js": "js",
|
|
11
|
+
".jsx": "jsx",
|
|
12
|
+
".mjs": "js",
|
|
13
|
+
".ts": "ts",
|
|
14
|
+
".tsx": "tsx",
|
|
15
|
+
".cjs": "js",
|
|
16
|
+
".json": "json",
|
|
17
|
+
".md": "text",
|
|
18
|
+
".mdx": "text"
|
|
19
|
+
},
|
|
20
|
+
format: "cjs",
|
|
21
|
+
target: "node20",
|
|
22
|
+
platform: "node",
|
|
23
|
+
write: false,
|
|
24
|
+
packages: "external",
|
|
25
|
+
bundle: true,
|
|
26
|
+
tsconfig: join(getPackageJsonPath(dirname(filePath)).baseDir, "tsconfig.json"),
|
|
27
|
+
define: { "import.meta.url": JSON.stringify(pathToFileURL(filePath).href) }
|
|
28
|
+
});
|
|
29
|
+
const transpileTSToMJSSync = (code, filePath, options) => {
|
|
30
|
+
return buildSync({
|
|
31
|
+
stdin: {
|
|
32
|
+
contents: code,
|
|
33
|
+
loader: getLoader(extname(filePath)),
|
|
34
|
+
resolveDir: dirname(filePath),
|
|
35
|
+
sourcefile: filePath
|
|
36
|
+
},
|
|
37
|
+
...getTransformationOptions(filePath),
|
|
38
|
+
...options
|
|
39
|
+
}).outputFiles?.[0].text;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { transpileTSToMJSSync };
|
|
44
|
+
//# sourceMappingURL=transpileTSToMJS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transpileTSToMJS.mjs","names":[],"sources":["../../../../../../../config/dist/esm/loadExternalFile/transpileTSToMJS.mjs"],"sourcesContent":["import { getPackageJsonPath } from \"../utils/getPackageJsonPath.mjs\";\nimport { getLoader } from \"./bundleFile.mjs\";\nimport { dirname, extname, join } from \"node:path\";\nimport { build, buildSync } from \"esbuild\";\nimport { pathToFileURL } from \"node:url\";\n\n//#region src/loadExternalFile/transpileTSToMJS.ts\nconst getTransformationOptions = (filePath) => ({\n\tloader: {\n\t\t\".js\": \"js\",\n\t\t\".jsx\": \"jsx\",\n\t\t\".mjs\": \"js\",\n\t\t\".ts\": \"ts\",\n\t\t\".tsx\": \"tsx\",\n\t\t\".cjs\": \"js\",\n\t\t\".json\": \"json\",\n\t\t\".md\": \"text\",\n\t\t\".mdx\": \"text\"\n\t},\n\tformat: \"cjs\",\n\ttarget: \"node20\",\n\tplatform: \"node\",\n\twrite: false,\n\tpackages: \"external\",\n\tbundle: true,\n\ttsconfig: join(getPackageJsonPath(dirname(filePath)).baseDir, \"tsconfig.json\"),\n\tdefine: { \"import.meta.url\": JSON.stringify(pathToFileURL(filePath).href) }\n});\nconst transpileTSToMJSSync = (code, filePath, options) => {\n\treturn buildSync({\n\t\tstdin: {\n\t\t\tcontents: code,\n\t\t\tloader: getLoader(extname(filePath)),\n\t\t\tresolveDir: dirname(filePath),\n\t\t\tsourcefile: filePath\n\t\t},\n\t\t...getTransformationOptions(filePath),\n\t\t...options\n\t}).outputFiles?.[0].text;\n};\nconst transpileTSToMJS = async (code, filePath, options) => {\n\treturn (await build({\n\t\tstdin: {\n\t\t\tcontents: code,\n\t\t\tloader: getLoader(extname(filePath)),\n\t\t\tresolveDir: dirname(filePath),\n\t\t\tsourcefile: filePath\n\t\t},\n\t\t...getTransformationOptions(filePath),\n\t\t...options\n\t})).outputFiles?.[0].text;\n};\n\n//#endregion\nexport { transpileTSToMJS, transpileTSToMJSSync };\n//# sourceMappingURL=transpileTSToMJS.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,4BAA4B,cAAc;CAC/C,QAAQ;EACP,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,OAAO;CACP,UAAU;CACV,QAAQ;CACR,UAAU,KAAK,mBAAmB,QAAQ,SAAS,CAAC,CAAC,SAAS,gBAAgB;CAC9E,QAAQ,EAAE,mBAAmB,KAAK,UAAU,cAAc,SAAS,CAAC,KAAK,EAAE;CAC3E;AACD,MAAM,wBAAwB,MAAM,UAAU,YAAY;AACzD,QAAO,UAAU;EAChB,OAAO;GACN,UAAU;GACV,QAAQ,UAAU,QAAQ,SAAS,CAAC;GACpC,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACZ;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACH,CAAC,CAAC,cAAc,GAAG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region ../config/dist/esm/logger.mjs
|
|
2
|
+
const logger = (content, details) => {
|
|
3
|
+
const isVerbose = details?.isVerbose ?? false;
|
|
4
|
+
const mode = details?.config?.mode ?? "default";
|
|
5
|
+
const level = details?.level ?? "info";
|
|
6
|
+
const prefix = details?.config?.prefix ? details?.config?.prefix : void 0;
|
|
7
|
+
const log = details?.config?.log ?? console.log;
|
|
8
|
+
const info = details?.config?.info ?? console.info;
|
|
9
|
+
const warn = details?.config?.warn ?? console.warn;
|
|
10
|
+
const error = details?.config?.error ?? console.error;
|
|
11
|
+
const debug = details?.config?.debug ?? console.debug;
|
|
12
|
+
if (mode === "disabled") return;
|
|
13
|
+
if (isVerbose && mode !== "verbose") return;
|
|
14
|
+
const flatContent = prefix ? [prefix, ...[content].flat()] : [content].flat();
|
|
15
|
+
if (level === "debug") return debug(...flatContent);
|
|
16
|
+
if (level === "info") return info(...flatContent);
|
|
17
|
+
if (level === "warn") return warn(...flatContent);
|
|
18
|
+
if (level === "error") return error(...flatContent);
|
|
19
|
+
log(...flatContent);
|
|
20
|
+
};
|
|
21
|
+
let ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {
|
|
22
|
+
ANSIColors$1["RESET"] = "\x1B[0m";
|
|
23
|
+
ANSIColors$1["GREY"] = "\x1B[90m";
|
|
24
|
+
ANSIColors$1["GREY_DARK"] = "\x1B[38;5;239m";
|
|
25
|
+
ANSIColors$1["GREY_LIGHT"] = "\x1B[38;5;252m";
|
|
26
|
+
ANSIColors$1["BLUE"] = "\x1B[34m";
|
|
27
|
+
ANSIColors$1["RED"] = "\x1B[31m";
|
|
28
|
+
ANSIColors$1["GREEN"] = "\x1B[32m";
|
|
29
|
+
ANSIColors$1["YELLOW"] = "\x1B[38;5;226m";
|
|
30
|
+
ANSIColors$1["MAGENTA"] = "\x1B[35m";
|
|
31
|
+
ANSIColors$1["BEIGE"] = "\x1B[38;5;3m";
|
|
32
|
+
ANSIColors$1["ORANGE"] = "\x1B[38;5;208m";
|
|
33
|
+
ANSIColors$1["CYAN"] = "\x1B[36m";
|
|
34
|
+
ANSIColors$1["WHITE"] = "\x1B[37m";
|
|
35
|
+
ANSIColors$1["BOLD"] = "\x1B[1m";
|
|
36
|
+
return ANSIColors$1;
|
|
37
|
+
}({});
|
|
38
|
+
const colorize = (s, color, reset) => color ? `${color}${s}${reset ? typeof reset === "boolean" ? ANSIColors.RESET : reset : ANSIColors.RESET}` : s;
|
|
39
|
+
const x = colorize("✗", ANSIColors.RED);
|
|
40
|
+
const v = colorize("✓", ANSIColors.GREEN);
|
|
41
|
+
const clock = colorize("⏲", ANSIColors.BLUE);
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { ANSIColors, logger };
|
|
45
|
+
//# sourceMappingURL=logger.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.mjs","names":[],"sources":["../../../../../../config/dist/esm/logger.mjs"],"sourcesContent":["//#region src/logger.ts\nconst logger = (content, details) => {\n\tconst isVerbose = details?.isVerbose ?? false;\n\tconst mode = details?.config?.mode ?? \"default\";\n\tconst level = details?.level ?? \"info\";\n\tconst prefix = details?.config?.prefix ? details?.config?.prefix : void 0;\n\tconst log = details?.config?.log ?? console.log;\n\tconst info = details?.config?.info ?? console.info;\n\tconst warn = details?.config?.warn ?? console.warn;\n\tconst error = details?.config?.error ?? console.error;\n\tconst debug = details?.config?.debug ?? console.debug;\n\tif (mode === \"disabled\") return;\n\tif (isVerbose && mode !== \"verbose\") return;\n\tconst flatContent = prefix ? [prefix, ...[content].flat()] : [content].flat();\n\tif (level === \"debug\") return debug(...flatContent);\n\tif (level === \"info\") return info(...flatContent);\n\tif (level === \"warn\") return warn(...flatContent);\n\tif (level === \"error\") return error(...flatContent);\n\tlog(...flatContent);\n};\nlet ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {\n\tANSIColors$1[\"RESET\"] = \"\\x1B[0m\";\n\tANSIColors$1[\"GREY\"] = \"\\x1B[90m\";\n\tANSIColors$1[\"GREY_DARK\"] = \"\\x1B[38;5;239m\";\n\tANSIColors$1[\"GREY_LIGHT\"] = \"\\x1B[38;5;252m\";\n\tANSIColors$1[\"BLUE\"] = \"\\x1B[34m\";\n\tANSIColors$1[\"RED\"] = \"\\x1B[31m\";\n\tANSIColors$1[\"GREEN\"] = \"\\x1B[32m\";\n\tANSIColors$1[\"YELLOW\"] = \"\\x1B[38;5;226m\";\n\tANSIColors$1[\"MAGENTA\"] = \"\\x1B[35m\";\n\tANSIColors$1[\"BEIGE\"] = \"\\x1B[38;5;3m\";\n\tANSIColors$1[\"ORANGE\"] = \"\\x1B[38;5;208m\";\n\tANSIColors$1[\"CYAN\"] = \"\\x1B[36m\";\n\tANSIColors$1[\"WHITE\"] = \"\\x1B[37m\";\n\tANSIColors$1[\"BOLD\"] = \"\\x1B[1m\";\n\treturn ANSIColors$1;\n}({});\nconst spinnerFrames = [\n\t\"⠋\",\n\t\"⠙\",\n\t\"⠹\",\n\t\"⠸\",\n\t\"⠼\",\n\t\"⠴\",\n\t\"⠦\",\n\t\"⠧\",\n\t\"⠇\",\n\t\"⠏\"\n];\n/**\n* The appLogger function takes the logger and merges it with the configuration from the intlayer config file.\n* It allows overriding the default configuration by passing a config object in the details parameter.\n* The configuration is merged with the default configuration from the intlayer config file.\n*/\nconst getAppLogger = (configuration, globalDetails) => (content, details) => logger(content, {\n\t...details ?? {},\n\tconfig: {\n\t\t...configuration?.log,\n\t\t...globalDetails?.config,\n\t\t...details?.config ?? {}\n\t}\n});\nconst colorize = (s, color, reset) => color ? `${color}${s}${reset ? typeof reset === \"boolean\" ? ANSIColors.RESET : reset : ANSIColors.RESET}` : s;\nconst colorizeLocales = (locales, color = ANSIColors.GREEN, reset = ANSIColors.RESET) => [locales].flat().map((locale) => colorize(locale, color, reset)).join(`, `);\nconst colorizeKey = (keyPath, color = ANSIColors.BEIGE, reset = ANSIColors.RESET) => [keyPath].flat().map((key) => colorize(key, color, reset)).join(`, `);\nconst colorizePath = (path, color = ANSIColors.GREY, reset = ANSIColors.RESET) => [path].flat().map((p) => colorize(p, color, reset)).join(`, `);\n/**\n* Colorize numeric value using Intl.NumberFormat and optional ANSI colors.\n*\n* Examples:\n* colorizeNumber(2, [{ pluralRule: 'one' , color: ANSIColors.GREEN}, { pluralRule: 'other' , color: ANSIColors.RED}]) // \"'\\x1b[31m2\\x1b[0m\"\n*/\nconst colorizeNumber = (number, options = {\n\tzero: ANSIColors.BLUE,\n\tone: ANSIColors.BLUE,\n\ttwo: ANSIColors.BLUE,\n\tfew: ANSIColors.BLUE,\n\tmany: ANSIColors.BLUE,\n\tother: ANSIColors.BLUE\n}) => {\n\tif (number === 0) {\n\t\tconst color$1 = options.zero ?? ANSIColors.GREEN;\n\t\treturn colorize(number.toString(), color$1);\n\t}\n\tconst color = options[new Intl.PluralRules(\"en\").select(number)];\n\treturn colorize(number.toString(), color);\n};\nconst removeColor = (text) => text.replace(/\\x1b\\[[0-9;]*m/g, \"\");\nconst getLength = (length) => {\n\tlet value = 0;\n\tif (typeof length === \"number\") value = length;\n\tif (typeof length === \"string\") value = length.length;\n\tif (Array.isArray(length) && length.every((l) => typeof l === \"string\")) value = Math.max(...length.map((str) => str.length));\n\tif (Array.isArray(length) && length.every((l) => typeof l === \"number\")) value = Math.max(...length);\n\treturn Math.max(value, 0);\n};\nconst defaultColonOptions = {\n\tcolSize: 0,\n\tminSize: 0,\n\tmaxSize: Infinity,\n\tpad: \"right\",\n\tpadChar: \"0\"\n};\n/**\n* Create a string of spaces of a given length.\n*\n* @param colSize - The length of the string to create.\n* @returns A string of spaces.\n*/\nconst colon = (text, options) => [text].flat().map((text$1) => {\n\tconst { colSize, minSize, maxSize, pad, padChar } = {\n\t\t...defaultColonOptions,\n\t\t...options ?? {}\n\t};\n\tconst length = getLength(colSize);\n\tconst spacesLength = Math.max(minSize, Math.min(maxSize, length - removeColor(text$1).length));\n\tif (pad === \"left\") return `${\" \".repeat(spacesLength)}${text$1}`;\n\treturn `${text$1}${\" \".repeat(spacesLength)}`;\n}).join(\"\");\nconst x = colorize(\"✗\", ANSIColors.RED);\nconst v = colorize(\"✓\", ANSIColors.GREEN);\nconst clock = colorize(\"⏲\", ANSIColors.BLUE);\n\n//#endregion\nexport { ANSIColors, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, getAppLogger, logger, removeColor, spinnerFrames, v, x };\n//# sourceMappingURL=logger.mjs.map"],"mappings":";AACA,MAAM,UAAU,SAAS,YAAY;CACpC,MAAM,YAAY,SAAS,aAAa;CACxC,MAAM,OAAO,SAAS,QAAQ,QAAQ;CACtC,MAAM,QAAQ,SAAS,SAAS;CAChC,MAAM,SAAS,SAAS,QAAQ,SAAS,SAAS,QAAQ,SAAS,KAAK;CACxE,MAAM,MAAM,SAAS,QAAQ,OAAO,QAAQ;CAC5C,MAAM,OAAO,SAAS,QAAQ,QAAQ,QAAQ;CAC9C,MAAM,OAAO,SAAS,QAAQ,QAAQ,QAAQ;CAC9C,MAAM,QAAQ,SAAS,QAAQ,SAAS,QAAQ;CAChD,MAAM,QAAQ,SAAS,QAAQ,SAAS,QAAQ;AAChD,KAAI,SAAS,WAAY;AACzB,KAAI,aAAa,SAAS,UAAW;CACrC,MAAM,cAAc,SAAS,CAAC,QAAQ,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM;AAC7E,KAAI,UAAU,QAAS,QAAO,MAAM,GAAG,YAAY;AACnD,KAAI,UAAU,OAAQ,QAAO,KAAK,GAAG,YAAY;AACjD,KAAI,UAAU,OAAQ,QAAO,KAAK,GAAG,YAAY;AACjD,KAAI,UAAU,QAAS,QAAO,MAAM,GAAG,YAAY;AACnD,KAAI,GAAG,YAAY;;AAEpB,IAAI,aAA6B,yBAAS,cAAc;AACvD,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB,cAAa,eAAe;AAC5B,cAAa,gBAAgB;AAC7B,cAAa,UAAU;AACvB,cAAa,SAAS;AACtB,cAAa,WAAW;AACxB,cAAa,YAAY;AACzB,cAAa,aAAa;AAC1B,cAAa,WAAW;AACxB,cAAa,YAAY;AACzB,cAAa,UAAU;AACvB,cAAa,WAAW;AACxB,cAAa,UAAU;AACvB,QAAO;EACN,EAAE,CAAC;AA0BL,MAAM,YAAY,GAAG,OAAO,UAAU,QAAQ,GAAG,QAAQ,IAAI,QAAQ,OAAO,UAAU,YAAY,WAAW,QAAQ,QAAQ,WAAW,UAAU;AAyDlJ,MAAM,IAAI,SAAS,KAAK,WAAW,IAAI;AACvC,MAAM,IAAI,SAAS,KAAK,WAAW,MAAM;AACzC,MAAM,QAAQ,SAAS,KAAK,WAAW,KAAK"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __export = (all) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __export };
|
|
14
|
+
//# sourceMappingURL=rolldown_runtime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rolldown_runtime.mjs","names":[],"sources":["../../../../../../../../../../config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs"],"sourcesContent":["//#region ../types/dist/esm/_virtual/rolldown_runtime.mjs\nvar __defProp = Object.defineProperty;\nvar __export = (all) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\treturn target;\n};\n\n//#endregion\nexport { __export };\n//# sourceMappingURL=rolldown_runtime.mjs.map"],"mappings":";AACA,IAAI,YAAY,OAAO;AACvB,IAAI,YAAY,QAAQ;CACvB,IAAI,SAAS,EAAE;AACf,MAAK,IAAI,QAAQ,IAAK,WAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;EACZ,CAAC;AACF,QAAO"}
|