@intlayer/config 8.3.0-canary.1 → 8.3.0-canary.3
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/dist/cjs/configFile/buildConfigurationFields.cjs +1 -1
- package/dist/cjs/defaultValues/build.cjs +1 -1
- package/dist/cjs/defaultValues/build.cjs.map +1 -1
- package/dist/cjs/defaultValues/editor.cjs +1 -1
- package/dist/cjs/defaultValues/editor.cjs.map +1 -1
- package/dist/esm/configFile/buildConfigurationFields.mjs +1 -1
- package/dist/esm/defaultValues/build.mjs +1 -1
- package/dist/esm/defaultValues/build.mjs.map +1 -1
- package/dist/esm/defaultValues/editor.mjs +1 -1
- package/dist/esm/defaultValues/editor.mjs.map +1 -1
- package/dist/types/defaultValues/build.d.ts.map +1 -1
- package/dist/types/defaultValues/editor.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../defaultValues/build.cjs`);require(`../defaultValues/compiler.cjs`);const n=require(`../defaultValues/content.cjs`);require(`../defaultValues/dictionary.cjs`),require(`../defaultValues/editor.cjs`);const r=require(`../defaultValues/internationalization.cjs`),i=require(`../defaultValues/log.cjs`),a=require(`../defaultValues/routing.cjs`);require(`../defaultValues/system.cjs`);const o=require(`../utils/normalizePath.cjs`),s=require(`../utils/ESMxCJSHelpers.cjs`);let c=require(`node:fs`),l=require(`node:path`),u=require(`@intlayer/types/package.json`);u=e.__toESM(u);let d;const f=e=>({locales:e?.locales??r.LOCALES,requiredLocales:e?.requiredLocales??e?.locales??r.REQUIRED_LOCALES,strictMode:e?.strictMode??`inclusive`,defaultLocale:e?.defaultLocale??r.DEFAULT_LOCALE}),p=e=>({mode:e?.mode??`prefix-no-default`,storage:e?.storage??a.STORAGE,basePath:e?.basePath??``,rewrite:e?.rewrite}),m=(e,t)=>{let n=e??process.cwd(),r=e=>{let t;try{t=s.getProjectRequire(n).resolve(e,{paths:[n]})}catch{t=(0,l.isAbsolute)(e)?e:(0,l.join)(n,e)}try{if((0,c.statSync)(t).isFile())return(0,l.dirname)(t)}catch{if(/\.[a-z0-9]+$/i.test(t))return(0,l.dirname)(t)}return t},i=r(t?.dictionariesDir??`.intlayer/dictionary`);return{baseDir:n,moduleAugmentationDir:r(t?.moduleAugmentationDir??`.intlayer/types`),unmergedDictionariesDir:r(t?.unmergedDictionariesDir??`.intlayer/unmerged_dictionary`),remoteDictionariesDir:r(t?.remoteDictionariesDir??`.intlayer/remote_dictionary`),dictionariesDir:i,dynamicDictionariesDir:r(t?.dynamicDictionariesDir??`.intlayer/dynamic_dictionary`),fetchDictionariesDir:r(t?.fetchDictionariesDir??`.intlayer/fetch_dictionary`),typesDir:r(t?.typesDir??`.intlayer/types`),mainDir:r(t?.mainDir??`.intlayer/main`),configDir:r(t?.configDir??`.intlayer/config`),cacheDir:r(t?.cacheDir??`.intlayer/cache`),tempDir:r(t?.tempDir??`.intlayer/tmp`),outputFilesPatternWithPath:`${o.normalizePath(i)}/**/*.json`}},h=(e,t)=>{let r=t?.fileExtensions??n.FILE_EXTENSIONS,i=t=>{let n;try{n=s.getProjectRequire(e.baseDir).resolve(t,{paths:[e.baseDir]})}catch{try{n=require.resolve(t,{paths:[e.baseDir]})}catch{n=(0,l.isAbsolute)(t)?t:(0,l.join)(e.baseDir,t)}}try{if((0,c.statSync)(n).isFile())return(0,l.dirname)(n)}catch{if(/\.[a-z0-9]+$/i.test(n))return(0,l.dirname)(n)}return n},a=(t?.contentDir??n.CONTENT_DIR).map(i);return{fileExtensions:r,contentDir:a,codeDir:(t?.codeDir??n.CODE_DIR).map(i),excludedPath:t?.excludedPath??n.EXCLUDED_PATHS,watch:t?.watch??!0,formatCommand:t?.formatCommand,watchedFilesPattern:r.map(e=>`/**/*${e}`),watchedFilesPatternWithPath:r.flatMap(e=>a.map(t=>`${o.normalizePath(t)}/**/*${e}`))}},g=e=>({applicationURL:e?.applicationURL||void 0,editorURL:e?.editorURL||`http://localhost:8000`,cmsURL:e?.cmsURL||`https://app.intlayer.org`,backendURL:e?.backendURL||`https://back.intlayer.org`,port:e?.port??8e3,enabled:e?.enabled??!
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../defaultValues/build.cjs`);require(`../defaultValues/compiler.cjs`);const n=require(`../defaultValues/content.cjs`);require(`../defaultValues/dictionary.cjs`),require(`../defaultValues/editor.cjs`);const r=require(`../defaultValues/internationalization.cjs`),i=require(`../defaultValues/log.cjs`),a=require(`../defaultValues/routing.cjs`);require(`../defaultValues/system.cjs`);const o=require(`../utils/normalizePath.cjs`),s=require(`../utils/ESMxCJSHelpers.cjs`);let c=require(`node:fs`),l=require(`node:path`),u=require(`@intlayer/types/package.json`);u=e.__toESM(u);let d;const f=e=>({locales:e?.locales??r.LOCALES,requiredLocales:e?.requiredLocales??e?.locales??r.REQUIRED_LOCALES,strictMode:e?.strictMode??`inclusive`,defaultLocale:e?.defaultLocale??r.DEFAULT_LOCALE}),p=e=>({mode:e?.mode??`prefix-no-default`,storage:e?.storage??a.STORAGE,basePath:e?.basePath??``,rewrite:e?.rewrite}),m=(e,t)=>{let n=e??process.cwd(),r=e=>{let t;try{t=s.getProjectRequire(n).resolve(e,{paths:[n]})}catch{t=(0,l.isAbsolute)(e)?e:(0,l.join)(n,e)}try{if((0,c.statSync)(t).isFile())return(0,l.dirname)(t)}catch{if(/\.[a-z0-9]+$/i.test(t))return(0,l.dirname)(t)}return t},i=r(t?.dictionariesDir??`.intlayer/dictionary`);return{baseDir:n,moduleAugmentationDir:r(t?.moduleAugmentationDir??`.intlayer/types`),unmergedDictionariesDir:r(t?.unmergedDictionariesDir??`.intlayer/unmerged_dictionary`),remoteDictionariesDir:r(t?.remoteDictionariesDir??`.intlayer/remote_dictionary`),dictionariesDir:i,dynamicDictionariesDir:r(t?.dynamicDictionariesDir??`.intlayer/dynamic_dictionary`),fetchDictionariesDir:r(t?.fetchDictionariesDir??`.intlayer/fetch_dictionary`),typesDir:r(t?.typesDir??`.intlayer/types`),mainDir:r(t?.mainDir??`.intlayer/main`),configDir:r(t?.configDir??`.intlayer/config`),cacheDir:r(t?.cacheDir??`.intlayer/cache`),tempDir:r(t?.tempDir??`.intlayer/tmp`),outputFilesPatternWithPath:`${o.normalizePath(i)}/**/*.json`}},h=(e,t)=>{let r=t?.fileExtensions??n.FILE_EXTENSIONS,i=t=>{let n;try{n=s.getProjectRequire(e.baseDir).resolve(t,{paths:[e.baseDir]})}catch{try{n=require.resolve(t,{paths:[e.baseDir]})}catch{n=(0,l.isAbsolute)(t)?t:(0,l.join)(e.baseDir,t)}}try{if((0,c.statSync)(n).isFile())return(0,l.dirname)(n)}catch{if(/\.[a-z0-9]+$/i.test(n))return(0,l.dirname)(n)}return n},a=(t?.contentDir??n.CONTENT_DIR).map(i);return{fileExtensions:r,contentDir:a,codeDir:(t?.codeDir??n.CODE_DIR).map(i),excludedPath:t?.excludedPath??n.EXCLUDED_PATHS,watch:t?.watch??!0,formatCommand:t?.formatCommand,watchedFilesPattern:r.map(e=>`/**/*${e}`),watchedFilesPatternWithPath:r.flatMap(e=>a.map(t=>`${o.normalizePath(t)}/**/*${e}`))}},g=e=>({applicationURL:e?.applicationURL||void 0,editorURL:e?.editorURL||`http://localhost:8000`,cmsURL:e?.cmsURL||`https://app.intlayer.org`,backendURL:e?.backendURL||`https://back.intlayer.org`,port:e?.port??8e3,enabled:e?.enabled??!1,clientId:e?.clientId??void 0,clientSecret:e?.clientSecret??void 0,dictionaryPriorityStrategy:e?.dictionaryPriorityStrategy??`local_first`,liveSync:e?.liveSync??!0,liveSyncPort:e?.liveSyncPort??4e3,liveSyncURL:e?.liveSyncURL??`http://localhost:${e?.liveSyncPort??4e3}`}),_=(e,t)=>({mode:e?.mode??`default`,prefix:e?.prefix??i.PREFIX,error:t?.error,log:t?.log,info:t?.info,warn:t?.warn}),v=e=>({provider:e?.provider,apiKey:e?.apiKey,model:e?.model,temperature:e?.temperature,applicationContext:e?.applicationContext,baseURL:e?.baseURL,dataSerialization:e?.dataSerialization}),y=e=>({mode:e?.mode??`auto`,optimize:e?.optimize,importMode:e?.importMode,traversePattern:e?.traversePattern??t.TRAVERSE_PATTERN,outputFormat:e?.outputFormat??t.OUTPUT_FORMAT,cache:e?.cache??!0,require:e?.require,checkTypes:e?.checkTypes??!1}),b=e=>({enabled:e?.enabled??!0,dictionaryKeyPrefix:e?.dictionaryKeyPrefix??`comp-`,transformPattern:e?.transformPattern,excludePattern:e?.excludePattern,outputDir:e?.outputDir,output:e?.output,noMetadata:e?.noMetadata??!1,saveComponents:e?.saveComponents??!1}),x=e=>{let t=e?.contentAutoTransformation??!1;return{fill:e?.fill??!0,contentAutoTransformation:typeof t==`object`?{markdown:t.markdown??!1,html:t.html??!1,insertion:t.insertion??!1}:t,location:e?.location??`local`,locale:e?.locale,title:e?.title,description:e?.description,tags:e?.tags,priority:e?.priority,importMode:e?.importMode??`static`,version:e?.version}},S=(e,t,n)=>{let r=f(e?.internationalization),i=p(e?.routing),a=m(t,e?.system);return d={internationalization:r,routing:i,content:h(a,e?.content),system:a,editor:g(e?.editor),log:_(e?.log,n),ai:v(e?.ai),build:y(e?.build),compiler:b(e?.compiler),dictionary:x(e?.dictionary),plugins:e?.plugins,schemas:e?.schemas,metadata:{name:`Intlayer`,version:u.default.version,doc:`https://intlayer.org/docs`}},d};exports.buildConfigurationFields=S;
|
|
2
2
|
//# sourceMappingURL=buildConfigurationFields.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=require(`../_virtual/_rolldown/runtime.cjs`).__exportAll({BUILD_MODE:()=>t,CACHE:()=>!0,OPTIMIZE:()=>void 0,OUTPUT_FORMAT:()=>r,TRAVERSE_PATTERN:()=>n,TYPE_CHECKING:()=>!1});const t=`auto`,n=[`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`,`!**/node_modules
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=require(`../_virtual/_rolldown/runtime.cjs`).__exportAll({BUILD_MODE:()=>t,CACHE:()=>!0,OPTIMIZE:()=>void 0,OUTPUT_FORMAT:()=>r,TRAVERSE_PATTERN:()=>n,TYPE_CHECKING:()=>!1});const t=`auto`,n=[`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`,`!**/node_modules/**`,`!**/*.config.*`,`!**/*.test.*`,`!**/*.spec.*`,`!**/*.stories.*`,`!**/*.d.ts`,`!**/*.d.ts.map`],r=[`esm`,`cjs`];exports.BUILD_MODE=t,exports.CACHE=!0,exports.OPTIMIZE=void 0,exports.OUTPUT_FORMAT=r,exports.TRAVERSE_PATTERN=n,exports.TYPE_CHECKING=!1,Object.defineProperty(exports,`build_exports`,{enumerable:!0,get:function(){return e}});
|
|
2
2
|
//# sourceMappingURL=build.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.cjs","names":[],"sources":["../../../src/defaultValues/build.ts"],"sourcesContent":["export const BUILD_MODE = 'auto';\n\nexport const OPTIMIZE = undefined;\n\nexport const TRAVERSE_PATTERN = [\n '**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}',\n '!**/node_modules/**',\n];\n\nexport const OUTPUT_FORMAT: ('cjs' | 'esm')[] = ['esm', 'cjs'];\n\nexport const CACHE = true;\n\nexport const TYPE_CHECKING = false;\n"],"mappings":"uPAAA,MAAa,EAAa,OAIb,EAAmB,CAC9B,+CACA,
|
|
1
|
+
{"version":3,"file":"build.cjs","names":[],"sources":["../../../src/defaultValues/build.ts"],"sourcesContent":["export const BUILD_MODE = 'auto';\n\nexport const OPTIMIZE = undefined;\n\nexport const TRAVERSE_PATTERN = [\n '**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}',\n '!**/node_modules/**',\n '!**/*.config.*',\n '!**/*.test.*',\n '!**/*.spec.*',\n '!**/*.stories.*',\n '!**/*.d.ts',\n '!**/*.d.ts.map',\n];\n\nexport const OUTPUT_FORMAT: ('cjs' | 'esm')[] = ['esm', 'cjs'];\n\nexport const CACHE = true;\n\nexport const TYPE_CHECKING = false;\n"],"mappings":"uPAAA,MAAa,EAAa,OAIb,EAAmB,CAC9B,+CACA,sBACA,iBACA,eACA,eACA,kBACA,aACA,iBACD,CAEY,EAAmC,CAAC,MAAO,MAAM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=require(`../_virtual/_rolldown/runtime.cjs`).__exportAll({APPLICATION_URL:()=>void 0,BACKEND_URL:()=>r,CMS_URL:()=>n,DICTIONARY_PRIORITY_STRATEGY:()=>a,EDITOR_URL:()=>t,IS_ENABLED:()=>!
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=require(`../_virtual/_rolldown/runtime.cjs`).__exportAll({APPLICATION_URL:()=>void 0,BACKEND_URL:()=>r,CMS_URL:()=>n,DICTIONARY_PRIORITY_STRATEGY:()=>a,EDITOR_URL:()=>t,IS_ENABLED:()=>!1,LIVE_SYNC:()=>!0,LIVE_SYNC_PORT:()=>o,PORT:()=>i});const t=`http://localhost:8000`,n=`https://app.intlayer.org`,r=`https://back.intlayer.org`,i=8e3,a=`local_first`,o=4e3;exports.APPLICATION_URL=void 0,exports.BACKEND_URL=r,exports.CMS_URL=n,exports.DICTIONARY_PRIORITY_STRATEGY=a,exports.EDITOR_URL=t,exports.IS_ENABLED=!1,exports.LIVE_SYNC=!0,exports.LIVE_SYNC_PORT=o,exports.PORT=i,Object.defineProperty(exports,`editor_exports`,{enumerable:!0,get:function(){return e}});
|
|
2
2
|
//# sourceMappingURL=editor.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.cjs","names":[],"sources":["../../../src/defaultValues/editor.ts"],"sourcesContent":["export const APPLICATION_URL = undefined;\nexport const EDITOR_URL = 'http://localhost:8000';\nexport const CMS_URL = 'https://app.intlayer.org';\nexport const BACKEND_URL = 'https://back.intlayer.org';\nexport const PORT = 8000;\nexport const IS_ENABLED =
|
|
1
|
+
{"version":3,"file":"editor.cjs","names":[],"sources":["../../../src/defaultValues/editor.ts"],"sourcesContent":["export const APPLICATION_URL = undefined;\nexport const EDITOR_URL = 'http://localhost:8000';\nexport const CMS_URL = 'https://app.intlayer.org';\nexport const BACKEND_URL = 'https://back.intlayer.org';\nexport const PORT = 8000;\nexport const IS_ENABLED = false;\nexport const LIVE_SYNC = true;\nexport const DICTIONARY_PRIORITY_STRATEGY = 'local_first';\nexport const LIVE_SYNC_PORT = 4000;\n"],"mappings":"uTAAA,MACa,EAAa,wBACb,EAAU,2BACV,EAAc,4BACd,EAAO,IAGP,EAA+B,cAC/B,EAAiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__require as e}from"../_virtual/_rolldown/runtime.mjs";import{OUTPUT_FORMAT as t,TRAVERSE_PATTERN as n}from"../defaultValues/build.mjs";import"../defaultValues/compiler.mjs";import{CODE_DIR as r,CONTENT_DIR as i,EXCLUDED_PATHS as a,FILE_EXTENSIONS as o}from"../defaultValues/content.mjs";import"../defaultValues/dictionary.mjs";import"../defaultValues/editor.mjs";import{DEFAULT_LOCALE as s,LOCALES as c,REQUIRED_LOCALES as l}from"../defaultValues/internationalization.mjs";import{PREFIX as u}from"../defaultValues/log.mjs";import{STORAGE as d}from"../defaultValues/routing.mjs";import"../defaultValues/system.mjs";import{normalizePath as f}from"../utils/normalizePath.mjs";import{getProjectRequire as p}from"../utils/ESMxCJSHelpers.mjs";import{statSync as m}from"node:fs";import{dirname as h,isAbsolute as g,join as _}from"node:path";import v from"@intlayer/types/package.json"with{type:"json"};let y;const b=e=>({locales:e?.locales??c,requiredLocales:e?.requiredLocales??e?.locales??l,strictMode:e?.strictMode??`inclusive`,defaultLocale:e?.defaultLocale??s}),x=e=>({mode:e?.mode??`prefix-no-default`,storage:e?.storage??d,basePath:e?.basePath??``,rewrite:e?.rewrite}),S=(e,t)=>{let n=e??process.cwd(),r=e=>{let t;try{t=p(n).resolve(e,{paths:[n]})}catch{t=g(e)?e:_(n,e)}try{if(m(t).isFile())return h(t)}catch{if(/\.[a-z0-9]+$/i.test(t))return h(t)}return t},i=r(t?.dictionariesDir??`.intlayer/dictionary`);return{baseDir:n,moduleAugmentationDir:r(t?.moduleAugmentationDir??`.intlayer/types`),unmergedDictionariesDir:r(t?.unmergedDictionariesDir??`.intlayer/unmerged_dictionary`),remoteDictionariesDir:r(t?.remoteDictionariesDir??`.intlayer/remote_dictionary`),dictionariesDir:i,dynamicDictionariesDir:r(t?.dynamicDictionariesDir??`.intlayer/dynamic_dictionary`),fetchDictionariesDir:r(t?.fetchDictionariesDir??`.intlayer/fetch_dictionary`),typesDir:r(t?.typesDir??`.intlayer/types`),mainDir:r(t?.mainDir??`.intlayer/main`),configDir:r(t?.configDir??`.intlayer/config`),cacheDir:r(t?.cacheDir??`.intlayer/cache`),tempDir:r(t?.tempDir??`.intlayer/tmp`),outputFilesPatternWithPath:`${f(i)}/**/*.json`}},C=(t,n)=>{let s=n?.fileExtensions??o,c=n=>{let r;try{r=p(t.baseDir).resolve(n,{paths:[t.baseDir]})}catch{try{r=e.resolve(n,{paths:[t.baseDir]})}catch{r=g(n)?n:_(t.baseDir,n)}}try{if(m(r).isFile())return h(r)}catch{if(/\.[a-z0-9]+$/i.test(r))return h(r)}return r},l=(n?.contentDir??i).map(c);return{fileExtensions:s,contentDir:l,codeDir:(n?.codeDir??r).map(c),excludedPath:n?.excludedPath??a,watch:n?.watch??!0,formatCommand:n?.formatCommand,watchedFilesPattern:s.map(e=>`/**/*${e}`),watchedFilesPatternWithPath:s.flatMap(e=>l.map(t=>`${f(t)}/**/*${e}`))}},w=e=>({applicationURL:e?.applicationURL||void 0,editorURL:e?.editorURL||`http://localhost:8000`,cmsURL:e?.cmsURL||`https://app.intlayer.org`,backendURL:e?.backendURL||`https://back.intlayer.org`,port:e?.port??8e3,enabled:e?.enabled??!
|
|
1
|
+
import{__require as e}from"../_virtual/_rolldown/runtime.mjs";import{OUTPUT_FORMAT as t,TRAVERSE_PATTERN as n}from"../defaultValues/build.mjs";import"../defaultValues/compiler.mjs";import{CODE_DIR as r,CONTENT_DIR as i,EXCLUDED_PATHS as a,FILE_EXTENSIONS as o}from"../defaultValues/content.mjs";import"../defaultValues/dictionary.mjs";import"../defaultValues/editor.mjs";import{DEFAULT_LOCALE as s,LOCALES as c,REQUIRED_LOCALES as l}from"../defaultValues/internationalization.mjs";import{PREFIX as u}from"../defaultValues/log.mjs";import{STORAGE as d}from"../defaultValues/routing.mjs";import"../defaultValues/system.mjs";import{normalizePath as f}from"../utils/normalizePath.mjs";import{getProjectRequire as p}from"../utils/ESMxCJSHelpers.mjs";import{statSync as m}from"node:fs";import{dirname as h,isAbsolute as g,join as _}from"node:path";import v from"@intlayer/types/package.json"with{type:"json"};let y;const b=e=>({locales:e?.locales??c,requiredLocales:e?.requiredLocales??e?.locales??l,strictMode:e?.strictMode??`inclusive`,defaultLocale:e?.defaultLocale??s}),x=e=>({mode:e?.mode??`prefix-no-default`,storage:e?.storage??d,basePath:e?.basePath??``,rewrite:e?.rewrite}),S=(e,t)=>{let n=e??process.cwd(),r=e=>{let t;try{t=p(n).resolve(e,{paths:[n]})}catch{t=g(e)?e:_(n,e)}try{if(m(t).isFile())return h(t)}catch{if(/\.[a-z0-9]+$/i.test(t))return h(t)}return t},i=r(t?.dictionariesDir??`.intlayer/dictionary`);return{baseDir:n,moduleAugmentationDir:r(t?.moduleAugmentationDir??`.intlayer/types`),unmergedDictionariesDir:r(t?.unmergedDictionariesDir??`.intlayer/unmerged_dictionary`),remoteDictionariesDir:r(t?.remoteDictionariesDir??`.intlayer/remote_dictionary`),dictionariesDir:i,dynamicDictionariesDir:r(t?.dynamicDictionariesDir??`.intlayer/dynamic_dictionary`),fetchDictionariesDir:r(t?.fetchDictionariesDir??`.intlayer/fetch_dictionary`),typesDir:r(t?.typesDir??`.intlayer/types`),mainDir:r(t?.mainDir??`.intlayer/main`),configDir:r(t?.configDir??`.intlayer/config`),cacheDir:r(t?.cacheDir??`.intlayer/cache`),tempDir:r(t?.tempDir??`.intlayer/tmp`),outputFilesPatternWithPath:`${f(i)}/**/*.json`}},C=(t,n)=>{let s=n?.fileExtensions??o,c=n=>{let r;try{r=p(t.baseDir).resolve(n,{paths:[t.baseDir]})}catch{try{r=e.resolve(n,{paths:[t.baseDir]})}catch{r=g(n)?n:_(t.baseDir,n)}}try{if(m(r).isFile())return h(r)}catch{if(/\.[a-z0-9]+$/i.test(r))return h(r)}return r},l=(n?.contentDir??i).map(c);return{fileExtensions:s,contentDir:l,codeDir:(n?.codeDir??r).map(c),excludedPath:n?.excludedPath??a,watch:n?.watch??!0,formatCommand:n?.formatCommand,watchedFilesPattern:s.map(e=>`/**/*${e}`),watchedFilesPatternWithPath:s.flatMap(e=>l.map(t=>`${f(t)}/**/*${e}`))}},w=e=>({applicationURL:e?.applicationURL||void 0,editorURL:e?.editorURL||`http://localhost:8000`,cmsURL:e?.cmsURL||`https://app.intlayer.org`,backendURL:e?.backendURL||`https://back.intlayer.org`,port:e?.port??8e3,enabled:e?.enabled??!1,clientId:e?.clientId??void 0,clientSecret:e?.clientSecret??void 0,dictionaryPriorityStrategy:e?.dictionaryPriorityStrategy??`local_first`,liveSync:e?.liveSync??!0,liveSyncPort:e?.liveSyncPort??4e3,liveSyncURL:e?.liveSyncURL??`http://localhost:${e?.liveSyncPort??4e3}`}),T=(e,t)=>({mode:e?.mode??`default`,prefix:e?.prefix??u,error:t?.error,log:t?.log,info:t?.info,warn:t?.warn}),E=e=>({provider:e?.provider,apiKey:e?.apiKey,model:e?.model,temperature:e?.temperature,applicationContext:e?.applicationContext,baseURL:e?.baseURL,dataSerialization:e?.dataSerialization}),D=e=>({mode:e?.mode??`auto`,optimize:e?.optimize,importMode:e?.importMode,traversePattern:e?.traversePattern??n,outputFormat:e?.outputFormat??t,cache:e?.cache??!0,require:e?.require,checkTypes:e?.checkTypes??!1}),O=e=>({enabled:e?.enabled??!0,dictionaryKeyPrefix:e?.dictionaryKeyPrefix??`comp-`,transformPattern:e?.transformPattern,excludePattern:e?.excludePattern,outputDir:e?.outputDir,output:e?.output,noMetadata:e?.noMetadata??!1,saveComponents:e?.saveComponents??!1}),k=e=>{let t=e?.contentAutoTransformation??!1;return{fill:e?.fill??!0,contentAutoTransformation:typeof t==`object`?{markdown:t.markdown??!1,html:t.html??!1,insertion:t.insertion??!1}:t,location:e?.location??`local`,locale:e?.locale,title:e?.title,description:e?.description,tags:e?.tags,priority:e?.priority,importMode:e?.importMode??`static`,version:e?.version}},A=(e,t,n)=>{let r=b(e?.internationalization),i=x(e?.routing),a=S(t,e?.system);return y={internationalization:r,routing:i,content:C(a,e?.content),system:a,editor:w(e?.editor),log:T(e?.log,n),ai:E(e?.ai),build:D(e?.build),compiler:O(e?.compiler),dictionary:k(e?.dictionary),plugins:e?.plugins,schemas:e?.schemas,metadata:{name:`Intlayer`,version:v.version,doc:`https://intlayer.org/docs`}},y};export{A as buildConfigurationFields};
|
|
2
2
|
//# sourceMappingURL=buildConfigurationFields.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exportAll as e}from"../_virtual/_rolldown/runtime.mjs";var t=e({BUILD_MODE:()=>n,CACHE:()=>!0,OPTIMIZE:()=>void 0,OUTPUT_FORMAT:()=>a,TRAVERSE_PATTERN:()=>i,TYPE_CHECKING:()=>!1});const n=`auto`,r=void 0,i=[`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`,`!**/node_modules
|
|
1
|
+
import{__exportAll as e}from"../_virtual/_rolldown/runtime.mjs";var t=e({BUILD_MODE:()=>n,CACHE:()=>!0,OPTIMIZE:()=>void 0,OUTPUT_FORMAT:()=>a,TRAVERSE_PATTERN:()=>i,TYPE_CHECKING:()=>!1});const n=`auto`,r=void 0,i=[`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`,`!**/node_modules/**`,`!**/*.config.*`,`!**/*.test.*`,`!**/*.spec.*`,`!**/*.stories.*`,`!**/*.d.ts`,`!**/*.d.ts.map`],a=[`esm`,`cjs`],o=!0,s=!1;export{n as BUILD_MODE,o as CACHE,r as OPTIMIZE,a as OUTPUT_FORMAT,i as TRAVERSE_PATTERN,s as TYPE_CHECKING,t as build_exports};
|
|
2
2
|
//# sourceMappingURL=build.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.mjs","names":[],"sources":["../../../src/defaultValues/build.ts"],"sourcesContent":["export const BUILD_MODE = 'auto';\n\nexport const OPTIMIZE = undefined;\n\nexport const TRAVERSE_PATTERN = [\n '**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}',\n '!**/node_modules/**',\n];\n\nexport const OUTPUT_FORMAT: ('cjs' | 'esm')[] = ['esm', 'cjs'];\n\nexport const CACHE = true;\n\nexport const TYPE_CHECKING = false;\n"],"mappings":"6LAAA,MAAa,EAAa,OAEb,EAAW,IAAA,GAEX,EAAmB,CAC9B,+CACA,
|
|
1
|
+
{"version":3,"file":"build.mjs","names":[],"sources":["../../../src/defaultValues/build.ts"],"sourcesContent":["export const BUILD_MODE = 'auto';\n\nexport const OPTIMIZE = undefined;\n\nexport const TRAVERSE_PATTERN = [\n '**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}',\n '!**/node_modules/**',\n '!**/*.config.*',\n '!**/*.test.*',\n '!**/*.spec.*',\n '!**/*.stories.*',\n '!**/*.d.ts',\n '!**/*.d.ts.map',\n];\n\nexport const OUTPUT_FORMAT: ('cjs' | 'esm')[] = ['esm', 'cjs'];\n\nexport const CACHE = true;\n\nexport const TYPE_CHECKING = false;\n"],"mappings":"6LAAA,MAAa,EAAa,OAEb,EAAW,IAAA,GAEX,EAAmB,CAC9B,+CACA,sBACA,iBACA,eACA,eACA,kBACA,aACA,iBACD,CAEY,EAAmC,CAAC,MAAO,MAAM,CAEjD,EAAQ,GAER,EAAgB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__exportAll as e}from"../_virtual/_rolldown/runtime.mjs";var t=e({APPLICATION_URL:()=>void 0,BACKEND_URL:()=>a,CMS_URL:()=>i,DICTIONARY_PRIORITY_STRATEGY:()=>l,EDITOR_URL:()=>r,IS_ENABLED:()=>!
|
|
1
|
+
import{__exportAll as e}from"../_virtual/_rolldown/runtime.mjs";var t=e({APPLICATION_URL:()=>void 0,BACKEND_URL:()=>a,CMS_URL:()=>i,DICTIONARY_PRIORITY_STRATEGY:()=>l,EDITOR_URL:()=>r,IS_ENABLED:()=>!1,LIVE_SYNC:()=>!0,LIVE_SYNC_PORT:()=>u,PORT:()=>o});const n=void 0,r=`http://localhost:8000`,i=`https://app.intlayer.org`,a=`https://back.intlayer.org`,o=8e3,s=!1,c=!0,l=`local_first`,u=4e3;export{n as APPLICATION_URL,a as BACKEND_URL,i as CMS_URL,l as DICTIONARY_PRIORITY_STRATEGY,r as EDITOR_URL,s as IS_ENABLED,c as LIVE_SYNC,u as LIVE_SYNC_PORT,o as PORT,t as editor_exports};
|
|
2
2
|
//# sourceMappingURL=editor.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.mjs","names":[],"sources":["../../../src/defaultValues/editor.ts"],"sourcesContent":["export const APPLICATION_URL = undefined;\nexport const EDITOR_URL = 'http://localhost:8000';\nexport const CMS_URL = 'https://app.intlayer.org';\nexport const BACKEND_URL = 'https://back.intlayer.org';\nexport const PORT = 8000;\nexport const IS_ENABLED =
|
|
1
|
+
{"version":3,"file":"editor.mjs","names":[],"sources":["../../../src/defaultValues/editor.ts"],"sourcesContent":["export const APPLICATION_URL = undefined;\nexport const EDITOR_URL = 'http://localhost:8000';\nexport const CMS_URL = 'https://app.intlayer.org';\nexport const BACKEND_URL = 'https://back.intlayer.org';\nexport const PORT = 8000;\nexport const IS_ENABLED = false;\nexport const LIVE_SYNC = true;\nexport const DICTIONARY_PRIORITY_STRATEGY = 'local_first';\nexport const LIVE_SYNC_PORT = 4000;\n"],"mappings":"6PAAA,MAAa,EAAkB,IAAA,GAClB,EAAa,wBACb,EAAU,2BACV,EAAc,4BACd,EAAO,IACP,EAAa,GACb,EAAY,GACZ,EAA+B,cAC/B,EAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","names":[],"sources":["../../../src/defaultValues/build.ts"],"mappings":";;;cAAa,UAAA;AAAA,cAEA,QAAA;AAAA,cAEA,gBAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../../../src/defaultValues/build.ts"],"mappings":";;;cAAa,UAAA;AAAA,cAEA,QAAA;AAAA,cAEA,gBAAA;AAAA,cAWA,aAAA;AAAA,cAEA,KAAA;AAAA,cAEA,aAAA"}
|
|
@@ -6,7 +6,7 @@ declare const EDITOR_URL = "http://localhost:8000";
|
|
|
6
6
|
declare const CMS_URL = "https://app.intlayer.org";
|
|
7
7
|
declare const BACKEND_URL = "https://back.intlayer.org";
|
|
8
8
|
declare const PORT = 8000;
|
|
9
|
-
declare const IS_ENABLED =
|
|
9
|
+
declare const IS_ENABLED = false;
|
|
10
10
|
declare const LIVE_SYNC = true;
|
|
11
11
|
declare const DICTIONARY_PRIORITY_STRATEGY = "local_first";
|
|
12
12
|
declare const LIVE_SYNC_PORT = 4000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/config",
|
|
3
|
-
"version": "8.3.0-canary.
|
|
3
|
+
"version": "8.3.0-canary.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
|
|
6
6
|
"keywords": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@intlayer/types": "8.3.0-canary.
|
|
130
|
+
"@intlayer/types": "8.3.0-canary.3",
|
|
131
131
|
"defu": "6.1.4",
|
|
132
132
|
"dotenv": "17.3.1",
|
|
133
133
|
"esbuild": "0.27.2",
|