@intlayer/engine 9.4.3 → 9.4.4
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/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/cleanOutputDir.d.ts +1 -2
- package/dist/types/cleanOutputDir.d.ts.map +1 -1
- package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
- package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
- package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/createType/createType.d.ts +2 -3
- package/dist/types/createType/createType.d.ts.map +1 -1
- package/dist/types/detectFormatCommand.d.ts +1 -2
- package/dist/types/detectFormatCommand.d.ts.map +1 -1
- package/dist/types/docReview/alignBlocks.d.ts +1 -2
- package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
- package/dist/types/docReview/computeSimilarity.d.ts +2 -3
- package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
- package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
- package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
- package/dist/types/docReview/normalizeBlock.d.ts +1 -2
- package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
- package/dist/types/docReview/pipeline.d.ts +4 -4
- package/dist/types/docReview/pipeline.d.ts.map +1 -1
- package/dist/types/docReview/planActions.d.ts +1 -2
- package/dist/types/docReview/planActions.d.ts.map +1 -1
- package/dist/types/docReview/rebuildDocument.d.ts +5 -6
- package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
- package/dist/types/docReview/reviewReport.d.ts +8 -9
- package/dist/types/docReview/reviewReport.d.ts.map +1 -1
- package/dist/types/docReview/segmentDocument.d.ts +2 -3
- package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
- package/dist/types/docReview/types.d.ts +9 -10
- package/dist/types/docReview/types.d.ts.map +1 -1
- package/dist/types/fetchDistantDictionaries.d.ts +1 -2
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/filterInvalidDictionaries.d.ts +2 -3
- package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +4 -5
- package/dist/types/formatDictionary.d.ts.map +1 -1
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/init/cms.d.ts +8 -9
- package/dist/types/init/cms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/index.d.ts +2 -2
- package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/types.d.ts +2 -3
- package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
- package/dist/types/init/index.d.ts +4 -5
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/init/utils/astImports.d.ts +3 -4
- package/dist/types/init/utils/astImports.d.ts.map +1 -1
- package/dist/types/init/utils/configManipulation.d.ts +19 -20
- package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
- package/dist/types/init/utils/fileSystem.d.ts +11 -12
- package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
- package/dist/types/init/utils/githubActions.d.ts +7 -8
- package/dist/types/init/utils/githubActions.d.ts.map +1 -1
- package/dist/types/init/utils/jsonParser.d.ts +1 -2
- package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
- package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
- package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
- package/dist/types/init/utils/packageManager.d.ts +17 -18
- package/dist/types/init/utils/packageManager.d.ts.map +1 -1
- package/dist/types/init/utils/tsConfig.d.ts +1 -2
- package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
- package/dist/types/init/utils/version.d.ts +1 -2
- package/dist/types/init/utils/version.d.ts.map +1 -1
- package/dist/types/initConfig/index.d.ts +2 -3
- package/dist/types/initConfig/index.d.ts.map +1 -1
- package/dist/types/installLSP.d.ts +1 -2
- package/dist/types/installLSP.d.ts.map +1 -1
- package/dist/types/installMCP/installMCP.d.ts +2 -3
- package/dist/types/installMCP/installMCP.d.ts.map +1 -1
- package/dist/types/installSkills/index.d.ts +9 -10
- package/dist/types/installSkills/index.d.ts.map +1 -1
- package/dist/types/listDictionariesPath.d.ts +2 -3
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/listGitFiles.d.ts +5 -6
- package/dist/types/listGitFiles.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +3 -4
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/log.d.ts +1 -2
- package/dist/types/loadDictionaries/log.d.ts.map +1 -1
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
- package/dist/types/logConfigDetails.d.ts +1 -2
- package/dist/types/logConfigDetails.d.ts.map +1 -1
- package/dist/types/prepareIntlayer.d.ts +1 -2
- package/dist/types/prepareIntlayer.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
- package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
- package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
- package/dist/types/scan/calculateScore.d.ts +6 -7
- package/dist/types/scan/calculateScore.d.ts.map +1 -1
- package/dist/types/scan/checks.d.ts +8 -9
- package/dist/types/scan/checks.d.ts.map +1 -1
- package/dist/types/scan/parseHtml.d.ts +13 -14
- package/dist/types/scan/parseHtml.d.ts.map +1 -1
- package/dist/types/scan/scanWebsite.d.ts +1 -2
- package/dist/types/scan/scanWebsite.d.ts.map +1 -1
- package/dist/types/scan/types.d.ts +9 -10
- package/dist/types/scan/types.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
- package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
- package/dist/types/syncPluginKit/types.d.ts +8 -9
- package/dist/types/syncPluginKit/types.d.ts.map +1 -1
- package/dist/types/utils/autoDecorateContent.d.ts +1 -2
- package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
- package/dist/types/utils/babelParser.d.ts +3 -3
- package/dist/types/utils/babelParser.d.ts.map +1 -1
- package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
- package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
- package/dist/types/utils/buildFilesList.d.ts +3 -4
- package/dist/types/utils/buildFilesList.d.ts.map +1 -1
- package/dist/types/utils/chunkArray.d.ts +1 -2
- package/dist/types/utils/chunkArray.d.ts.map +1 -1
- package/dist/types/utils/chunkJSON.d.ts +5 -6
- package/dist/types/utils/chunkJSON.d.ts.map +1 -1
- package/dist/types/utils/formatter.d.ts +2 -3
- package/dist/types/utils/formatter.d.ts.map +1 -1
- package/dist/types/utils/getChunk.d.ts +1 -2
- package/dist/types/utils/getChunk.d.ts.map +1 -1
- package/dist/types/utils/getContentExtension.d.ts +1 -2
- package/dist/types/utils/getContentExtension.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/dist/types/utils/getPathHash.d.ts +1 -2
- package/dist/types/utils/getPathHash.d.ts.map +1 -1
- package/dist/types/utils/mergeChunks.d.ts +1 -2
- package/dist/types/utils/mergeChunks.d.ts.map +1 -1
- package/dist/types/utils/pLimit.d.ts +2 -3
- package/dist/types/utils/pLimit.d.ts.map +1 -1
- package/dist/types/utils/parallelize.d.ts +1 -2
- package/dist/types/utils/parallelize.d.ts.map +1 -1
- package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
- package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
- package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
- package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
- package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
- package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
- package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
- package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
- package/dist/types/utils/resolveRelativePath.d.ts +1 -2
- package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
- package/dist/types/utils/runOnce.d.ts +2 -3
- package/dist/types/utils/runOnce.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bin.d.ts +1 -2
- package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
- package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
- package/dist/types/utils/runParallel/index.d.ts +2 -3
- package/dist/types/utils/runParallel/index.d.ts.map +1 -1
- package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
- package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
- package/dist/types/utils/runParallel/ps.d.ts +1 -2
- package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
- package/dist/types/utils/runParallel/runTask.d.ts +1 -2
- package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
- package/dist/types/utils/runParallel/wmic.d.ts +1 -2
- package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
- package/dist/types/utils/sortAlphabetically.d.ts +1 -2
- package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
- package/dist/types/utils/splitTextByLine.d.ts +1 -2
- package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
- package/dist/types/watcher.d.ts +2 -3
- package/dist/types/watcher.d.ts.map +1 -1
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
- package/dist/types/writeConfiguration/index.d.ts +2 -3
- package/dist/types/writeConfiguration/index.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
- package/dist/types/writeFileIfChanged.d.ts +2 -3
- package/dist/types/writeFileIfChanged.d.ts.map +1 -1
- package/dist/types/writeJsonIfChanged.d.ts +1 -2
- package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AlignmentPlan, FingerprintedBlock } from "./types.js";
|
|
2
2
|
import { SegmentToReview, mergeReviewedSegments } from "./rebuildDocument.js";
|
|
3
3
|
//#region src/docReview/pipeline.d.ts
|
|
4
|
-
type BuildAlignmentPlanInput = {
|
|
4
|
+
export type BuildAlignmentPlanInput = {
|
|
5
5
|
/** The base (source) document, used as the translation reference. */
|
|
6
6
|
baseText: string;
|
|
7
7
|
/** The existing target (translated) document, possibly empty. */
|
|
@@ -15,7 +15,7 @@ type BuildAlignmentPlanInput = {
|
|
|
15
15
|
*/
|
|
16
16
|
changedLines: number[] | undefined;
|
|
17
17
|
};
|
|
18
|
-
type BuildAlignmentPlanOutput = {
|
|
18
|
+
export type BuildAlignmentPlanOutput = {
|
|
19
19
|
baseBlocks: FingerprintedBlock[];
|
|
20
20
|
targetBlocks: FingerprintedBlock[];
|
|
21
21
|
plan: AlignmentPlan;
|
|
@@ -50,7 +50,7 @@ type BuildAlignmentPlanOutput = {
|
|
|
50
50
|
* @param input - The base/target texts and optional changed lines.
|
|
51
51
|
* @returns The (flattened) blocks, the plan, and the segments that need translation.
|
|
52
52
|
*/
|
|
53
|
-
declare const buildAlignmentPlan: ({ baseText, targetText, changedLines }: BuildAlignmentPlanInput) => BuildAlignmentPlanOutput;
|
|
53
|
+
export declare const buildAlignmentPlan: ({ baseText, targetText, changedLines }: BuildAlignmentPlanInput) => BuildAlignmentPlanOutput;
|
|
54
54
|
//#endregion
|
|
55
|
-
export {
|
|
55
|
+
export { type SegmentToReview, mergeReviewedSegments };
|
|
56
56
|
//# sourceMappingURL=pipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","names":[],"sources":["../../../src/docReview/pipeline.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","names":[],"sources":["../../../src/docReview/pipeline.ts"],"mappings":";;;YAiBY;;EAEV;;EAEA;;;;;;;;EAQA;;YAGU;EACV,YAAY;EACZ,cAAc;EACd,MAAM;EACN,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4DP,uBAAkB,UAAA,YAAA,gBAI5B,4BAA0B"}
|
|
@@ -11,7 +11,6 @@ import { AlignmentPair, AlignmentPlan } from "./types.js";
|
|
|
11
11
|
* @param changedBaseBlockIndexes - Indexes of base blocks reported as changed.
|
|
12
12
|
* @returns The plan of actions to merge the documents.
|
|
13
13
|
*/
|
|
14
|
-
declare const planAlignmentActions: (alignment: AlignmentPair[], changedBaseBlockIndexes: Set<number>) => AlignmentPlan;
|
|
14
|
+
export declare const planAlignmentActions: (alignment: AlignmentPair[], changedBaseBlockIndexes: Set<number>) => AlignmentPlan;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { planAlignmentActions };
|
|
17
16
|
//# sourceMappingURL=planActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planActions.d.ts","names":[],"sources":["../../../src/docReview/planActions.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"planActions.d.ts","names":[],"sources":["../../../src/docReview/planActions.ts"],"mappings":";;;;;;;;;;;;;qBAaa,uBAAoB,WACpB,iBAAe,yBACD,gBACxB"}
|
|
@@ -4,7 +4,7 @@ import { AlignmentPlan, FingerprintedBlock } from "./types.js";
|
|
|
4
4
|
* A block that needs to be translated or re-translated by an external consumer
|
|
5
5
|
* (an AI client, a human, or an agent).
|
|
6
6
|
*/
|
|
7
|
-
type SegmentToReview = {
|
|
7
|
+
export type SegmentToReview = {
|
|
8
8
|
/** The base block to translate. */
|
|
9
9
|
baseBlock: FingerprintedBlock;
|
|
10
10
|
/** Existing target translation, or `null` when the block is new. */
|
|
@@ -12,12 +12,12 @@ type SegmentToReview = {
|
|
|
12
12
|
/** Index of the originating action within {@link AlignmentPlan.actions}. */
|
|
13
13
|
actionIndex: number;
|
|
14
14
|
};
|
|
15
|
-
type RebuildInput = {
|
|
15
|
+
export type RebuildInput = {
|
|
16
16
|
baseBlocks: FingerprintedBlock[];
|
|
17
17
|
targetBlocks: FingerprintedBlock[];
|
|
18
18
|
plan: AlignmentPlan;
|
|
19
19
|
};
|
|
20
|
-
type RebuildResult = {
|
|
20
|
+
export type RebuildResult = {
|
|
21
21
|
segmentsToReview: SegmentToReview[];
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -28,7 +28,7 @@ type RebuildResult = {
|
|
|
28
28
|
* @param input - The base/target blocks and the alignment plan.
|
|
29
29
|
* @returns The list of segments that require translation.
|
|
30
30
|
*/
|
|
31
|
-
declare const identifySegmentsToReview: ({ baseBlocks, targetBlocks, plan }: RebuildInput) => RebuildResult;
|
|
31
|
+
export declare const identifySegmentsToReview: ({ baseBlocks, targetBlocks, plan }: RebuildInput) => RebuildResult;
|
|
32
32
|
/**
|
|
33
33
|
* Merge reviewed translations back into the final document following the
|
|
34
34
|
* alignment plan, reusing untouched target blocks as-is.
|
|
@@ -38,7 +38,6 @@ declare const identifySegmentsToReview: ({ baseBlocks, targetBlocks, plan }: Reb
|
|
|
38
38
|
* @param reviewedSegments - Map of action index to its reviewed translation.
|
|
39
39
|
* @returns The rebuilt target document.
|
|
40
40
|
*/
|
|
41
|
-
declare const mergeReviewedSegments: (plan: AlignmentPlan, targetBlocks: FingerprintedBlock[], reviewedSegments: Map<number, string>) => string;
|
|
41
|
+
export declare const mergeReviewedSegments: (plan: AlignmentPlan, targetBlocks: FingerprintedBlock[], reviewedSegments: Map<number, string>) => string;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { RebuildInput, RebuildResult, SegmentToReview, identifySegmentsToReview, mergeReviewedSegments };
|
|
44
43
|
//# sourceMappingURL=rebuildDocument.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rebuildDocument.d.ts","names":[],"sources":["../../../src/docReview/rebuildDocument.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"rebuildDocument.d.ts","names":[],"sources":["../../../src/docReview/rebuildDocument.ts"],"mappings":";;;;;;YAMY;;EAEV,WAAW;;EAEX;;EAEA;;YAGU;EACV,YAAY;EACZ,cAAc;EACd,MAAM;;YAGI;EACV,kBAAkB;;;;;;;;;;qBAWP,6BAAwB,YAAA,cAAA,QAIlC,iBAAe;;;;;;;;;;qBAmDL,wBAAqB,MAC1B,eAAa,cACL,sBAAoB,kBAChB"}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - `insert_new`: the base block has no translation yet and must be added.
|
|
8
8
|
* - `delete`: the target block no longer exists in the base and should be removed.
|
|
9
9
|
*/
|
|
10
|
-
type ReviewBlockAction = 'review' | 'insert_new' | 'delete';
|
|
10
|
+
export type ReviewBlockAction = 'review' | 'insert_new' | 'delete';
|
|
11
11
|
/** A 1-based, inclusive line range within a document. */
|
|
12
|
-
type LineRange = {
|
|
12
|
+
export type LineRange = {
|
|
13
13
|
start: number;
|
|
14
14
|
end: number;
|
|
15
15
|
};
|
|
@@ -20,7 +20,7 @@ type LineRange = {
|
|
|
20
20
|
* act on: it carries the base content to translate, the existing translation to
|
|
21
21
|
* update, and where each lives so the change can be located in the file.
|
|
22
22
|
*/
|
|
23
|
-
type ReviewReportBlock = {
|
|
23
|
+
export type ReviewReportBlock = {
|
|
24
24
|
/** What should happen to this block. */
|
|
25
25
|
action: ReviewBlockAction;
|
|
26
26
|
/** Line range of the block in the base document (omitted for pure deletions). */
|
|
@@ -32,7 +32,7 @@ type ReviewReportBlock = {
|
|
|
32
32
|
/** Existing translation of the block (omitted for new insertions). */
|
|
33
33
|
targetContent?: string;
|
|
34
34
|
};
|
|
35
|
-
type ReviewReportSummary = {
|
|
35
|
+
export type ReviewReportSummary = {
|
|
36
36
|
/** Number of blocks reused as-is (unchanged translation). */
|
|
37
37
|
reuse: number;
|
|
38
38
|
/** Number of blocks whose translation must be updated. */
|
|
@@ -42,13 +42,13 @@ type ReviewReportSummary = {
|
|
|
42
42
|
/** Number of stale target blocks to delete. */
|
|
43
43
|
delete: number;
|
|
44
44
|
};
|
|
45
|
-
type ReviewReport = {
|
|
45
|
+
export type ReviewReport = {
|
|
46
46
|
/** Only the blocks that diverge (review, insert_new, delete). */
|
|
47
47
|
blocks: ReviewReportBlock[];
|
|
48
48
|
/** Counts per action over the whole document, including reused blocks. */
|
|
49
49
|
summary: ReviewReportSummary;
|
|
50
50
|
};
|
|
51
|
-
type BuildReviewReportInput = {
|
|
51
|
+
export type BuildReviewReportInput = {
|
|
52
52
|
/** The base (source) document, used as the translation reference. */
|
|
53
53
|
baseText: string;
|
|
54
54
|
/** The existing target (translated) document, possibly empty. */
|
|
@@ -74,7 +74,7 @@ type BuildReviewReportInput = {
|
|
|
74
74
|
* @param input - The base/target texts and optional changed lines.
|
|
75
75
|
* @returns The divergent blocks and a per-action summary.
|
|
76
76
|
*/
|
|
77
|
-
declare const buildReviewReport: ({ baseText, targetText, changedLines }: BuildReviewReportInput) => ReviewReport;
|
|
77
|
+
export declare const buildReviewReport: ({ baseText, targetText, changedLines }: BuildReviewReportInput) => ReviewReport;
|
|
78
78
|
/**
|
|
79
79
|
* Render a {@link ReviewReport} as a human and agent readable log.
|
|
80
80
|
*
|
|
@@ -85,10 +85,9 @@ declare const buildReviewReport: ({ baseText, targetText, changedLines }: BuildR
|
|
|
85
85
|
* @param options - Optional labels for the base and target locales.
|
|
86
86
|
* @returns A multi-line string describing every block that needs attention.
|
|
87
87
|
*/
|
|
88
|
-
declare const formatReviewReport: (report: ReviewReport, options?: {
|
|
88
|
+
export declare const formatReviewReport: (report: ReviewReport, options?: {
|
|
89
89
|
baseLabel?: string;
|
|
90
90
|
targetLabel?: string;
|
|
91
91
|
}) => string;
|
|
92
92
|
//#endregion
|
|
93
|
-
export { BuildReviewReportInput, LineRange, ReviewBlockAction, ReviewReport, ReviewReportBlock, ReviewReportSummary, buildReviewReport, formatReviewReport };
|
|
94
93
|
//# sourceMappingURL=reviewReport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewReport.d.ts","names":[],"sources":["../../../src/docReview/reviewReport.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reviewReport.d.ts","names":[],"sources":["../../../src/docReview/reviewReport.ts"],"mappings":";;;;;;;;;YAYY;;YAGA;EACV;EACA;;;;;;;;;YAUU;;EAEV,QAAQ;;EAER,gBAAgB;;EAEhB,kBAAkB;;EAElB;;EAEA;;YAGU;;EAEV;;EAEA;;EAEA;;EAEA;;YAGU;;EAEV,QAAQ;;EAER,SAAS;;YAGC;;EAEV;;EAEA;;;;;;;;;EASA;;;;;;;;;;;;;qBAcW,sBAAiB,UAAA,YAAA,gBAI3B,2BAAyB;;;;;;;;;;;qBAgJf,qBAAkB,QACrB,cAAY;EACR;EAAoB"}
|
|
@@ -14,7 +14,7 @@ import { Block } from "./types.js";
|
|
|
14
14
|
* @param text - The full markdown document.
|
|
15
15
|
* @returns The ordered list of blocks with their 1-based line ranges.
|
|
16
16
|
*/
|
|
17
|
-
declare const segmentDocument: (text: string) => Block[];
|
|
17
|
+
export declare const segmentDocument: (text: string) => Block[];
|
|
18
18
|
/**
|
|
19
19
|
* Split a markdown document into coarse, heading-anchored sections.
|
|
20
20
|
*
|
|
@@ -33,7 +33,6 @@ declare const segmentDocument: (text: string) => Block[];
|
|
|
33
33
|
* @param text - The full markdown document.
|
|
34
34
|
* @returns The ordered list of sections with their 1-based line ranges.
|
|
35
35
|
*/
|
|
36
|
-
declare const segmentSections: (text: string) => Block[];
|
|
36
|
+
export declare const segmentSections: (text: string) => Block[];
|
|
37
37
|
//#endregion
|
|
38
|
-
export { segmentDocument, segmentSections };
|
|
39
38
|
//# sourceMappingURL=segmentDocument.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmentDocument.d.ts","names":[],"sources":["../../../src/docReview/segmentDocument.ts"],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"segmentDocument.d.ts","names":[],"sources":["../../../src/docReview/segmentDocument.ts"],"mappings":";;;;;;;;;;;;;;;;qBAoDa,kBAAe,iBAAmB;;;;;;;;;;;;;;;;;;;qBAuIlC,kBAAe,iBAAmB"}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Used to weight the alignment between a base document and its translation.
|
|
6
6
|
*/
|
|
7
|
-
type BlockType = 'heading' | 'paragraph' | 'list_item' | 'code_block' | 'blockquote' | 'table' | 'horizontal_rule' | 'html' | 'unknown';
|
|
7
|
+
export type BlockType = 'heading' | 'paragraph' | 'list_item' | 'code_block' | 'blockquote' | 'table' | 'horizontal_rule' | 'html' | 'unknown';
|
|
8
8
|
/**
|
|
9
9
|
* A raw markdown block extracted from a document, with its line range.
|
|
10
10
|
*/
|
|
11
|
-
type Block = {
|
|
11
|
+
export type Block = {
|
|
12
12
|
type: BlockType;
|
|
13
13
|
content: string;
|
|
14
14
|
/**
|
|
@@ -28,7 +28,7 @@ type Block = {
|
|
|
28
28
|
/**
|
|
29
29
|
* A {@link Block} enriched with normalized text used for similarity matching.
|
|
30
30
|
*/
|
|
31
|
-
type NormalizedBlock = Block & {
|
|
31
|
+
export type NormalizedBlock = Block & {
|
|
32
32
|
/** Lower-cased, markdown-stripped text used for semantic comparison. */
|
|
33
33
|
semanticText: string;
|
|
34
34
|
/** Non-letter characters (digits, punctuation, symbols) kept as a structural anchor. */
|
|
@@ -37,7 +37,7 @@ type NormalizedBlock = Block & {
|
|
|
37
37
|
/**
|
|
38
38
|
* A {@link NormalizedBlock} enriched with content digests used to detect reuse.
|
|
39
39
|
*/
|
|
40
|
-
type FingerprintedBlock = NormalizedBlock & {
|
|
40
|
+
export type FingerprintedBlock = NormalizedBlock & {
|
|
41
41
|
semanticDigest: string;
|
|
42
42
|
anchorDigest: string;
|
|
43
43
|
compositeKey: string;
|
|
@@ -49,7 +49,7 @@ type FingerprintedBlock = NormalizedBlock & {
|
|
|
49
49
|
* `baseIndex === -1` means the target block has no base counterpart (deletion).
|
|
50
50
|
* `targetIndex === null` means the base block has no target counterpart (insertion).
|
|
51
51
|
*/
|
|
52
|
-
type AlignmentPair = {
|
|
52
|
+
export type AlignmentPair = {
|
|
53
53
|
baseIndex: number;
|
|
54
54
|
targetIndex: number | null;
|
|
55
55
|
similarityScore: number;
|
|
@@ -57,7 +57,7 @@ type AlignmentPair = {
|
|
|
57
57
|
/**
|
|
58
58
|
* An action the merge step should take for a given aligned pair of blocks.
|
|
59
59
|
*/
|
|
60
|
-
type PlannedAction = {
|
|
60
|
+
export type PlannedAction = {
|
|
61
61
|
kind: 'reuse';
|
|
62
62
|
baseIndex: number;
|
|
63
63
|
targetIndex: number;
|
|
@@ -72,17 +72,16 @@ type PlannedAction = {
|
|
|
72
72
|
kind: 'delete';
|
|
73
73
|
targetIndex: number;
|
|
74
74
|
};
|
|
75
|
-
type AlignmentPlan = {
|
|
75
|
+
export type AlignmentPlan = {
|
|
76
76
|
actions: PlannedAction[];
|
|
77
77
|
};
|
|
78
78
|
/** A 1-based line number that changed in the base document. */
|
|
79
|
-
type LineChange = number;
|
|
80
|
-
type SimilarityOptions = {
|
|
79
|
+
export type LineChange = number;
|
|
80
|
+
export type SimilarityOptions = {
|
|
81
81
|
/** Minimum anchor similarity to consider two blocks identical (for example 0.90). */
|
|
82
82
|
minimumMatchForReuse: number;
|
|
83
83
|
/** Minimum anchor similarity to consider two blocks near-duplicates (for example 0.80). */
|
|
84
84
|
minimumMatchForNearDuplicate: number;
|
|
85
85
|
};
|
|
86
86
|
//#endregion
|
|
87
|
-
export { AlignmentPair, AlignmentPlan, Block, BlockType, FingerprintedBlock, LineChange, NormalizedBlock, PlannedAction, SimilarityOptions };
|
|
88
87
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/docReview/types.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/docReview/types.ts"],"mappings":";;;;;;YAKY;;;;YAcA;EACV,MAAM;EACN;;;;;;;;;EASA;;EAEA;;EAEA;;;;;YAMU,kBAAkB;;EAE5B;;EAEA;;;;;YAMU,qBAAqB;EAC/B;EACA;EACA;EACA;;;;;;;;YASU;EACV;EACA;EACA;;;;;YAMU;EACN;EAAe;EAAmB;;EAClC;EAAgB;EAAmB;;EACnC;EAAoB;;EACpB;EAAgB;;YAEV;EACV,SAAS;;;YAIC;YAEA;;EAEV;;EAEA"}
|
|
@@ -36,7 +36,6 @@ type FetchDistantDictionariesOptions = {
|
|
|
36
36
|
* as soon as its request settles, so no batch waits for the whole wave.
|
|
37
37
|
* Failing requests are retried before their keys are reported as errors.
|
|
38
38
|
*/
|
|
39
|
-
declare const fetchDistantDictionaries: (options: FetchDistantDictionariesOptions, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise<DictionaryAPI[]>;
|
|
39
|
+
export declare const fetchDistantDictionaries: (options: FetchDistantDictionariesOptions, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise<DictionaryAPI[]>;
|
|
40
40
|
//#endregion
|
|
41
|
-
export { fetchDistantDictionaries };
|
|
42
41
|
//# sourceMappingURL=fetchDistantDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../src/fetchDistantDictionaries.ts"],"mappings":";;;;KAqDK;EACH;EACA;EACA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../src/fetchDistantDictionaries.ts"],"mappings":";;;;KAqDK;EACH;EACA;EACA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;;;;qBAYW,2BAAwB,SAC1B,iCAA+B,kBACtB,QAAQ,kCACzB,QAAQ"}
|
|
@@ -4,8 +4,7 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
4
4
|
type IsInvalidDictionaryOptions = {
|
|
5
5
|
checkSchema: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const isInvalidDictionary: (dictionary: Dictionary | undefined, configuration?: IntlayerConfig, options?: IsInvalidDictionaryOptions) => boolean;
|
|
8
|
-
declare const filterInvalidDictionaries: (dictionaries: (Dictionary | undefined)[] | undefined, configuration: IntlayerConfig, options?: IsInvalidDictionaryOptions) => Dictionary[];
|
|
7
|
+
export declare const isInvalidDictionary: (dictionary: Dictionary | undefined, configuration?: IntlayerConfig, options?: IsInvalidDictionaryOptions) => boolean;
|
|
8
|
+
export declare const filterInvalidDictionaries: (dictionaries: (Dictionary | undefined)[] | undefined, configuration: IntlayerConfig, options?: IsInvalidDictionaryOptions) => Dictionary[];
|
|
9
9
|
//#endregion
|
|
10
|
-
export { filterInvalidDictionaries, isInvalidDictionary };
|
|
11
10
|
//# sourceMappingURL=filterInvalidDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterInvalidDictionaries.d.ts","names":[],"sources":["../../src/filterInvalidDictionaries.ts"],"mappings":";;;KAaK;EAA+B;;
|
|
1
|
+
{"version":3,"file":"filterInvalidDictionaries.d.ts","names":[],"sources":["../../src/filterInvalidDictionaries.ts"],"mappings":";;;KAaK;EAA+B;;qBAEvB,sBAAmB,YAClB,wBAAsB,gBAClB,gBAAc,UACpB;qBA2GC,4BAAyB,eACrB,uCAAqC,eACrC,gBAAc,UACnB,+BACT"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LocalesValues } from "./intlayer/dist/types/index.js";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
3
|
//#region src/formatDictionary.d.ts
|
|
4
|
-
declare const formatDictionary: (dictionary: Dictionary) => Dictionary;
|
|
5
|
-
declare const formatDictionaries: (dictionaries: Dictionary[]) => Promise<Dictionary[]>;
|
|
6
|
-
declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionary['format']) => {
|
|
4
|
+
export declare const formatDictionary: (dictionary: Dictionary) => Dictionary;
|
|
5
|
+
export declare const formatDictionaries: (dictionaries: Dictionary[]) => Promise<Dictionary[]>;
|
|
6
|
+
export declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionary['format']) => {
|
|
7
7
|
$schema?: "https://intlayer.org/schema.json";
|
|
8
8
|
id?: import("@intlayer/types").DictionaryId;
|
|
9
9
|
projectIds?: string[];
|
|
@@ -30,7 +30,7 @@ declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionar
|
|
|
30
30
|
format: string;
|
|
31
31
|
content: import("@intlayer/core/messageFormat").JsonValue;
|
|
32
32
|
} | Dictionary;
|
|
33
|
-
declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dictionary['format']) => ({
|
|
33
|
+
export declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dictionary['format']) => ({
|
|
34
34
|
$schema?: "https://intlayer.org/schema.json";
|
|
35
35
|
id?: import("@intlayer/types").DictionaryId;
|
|
36
36
|
projectIds?: string[];
|
|
@@ -58,5 +58,4 @@ declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dic
|
|
|
58
58
|
content: import("@intlayer/core/messageFormat").JsonValue;
|
|
59
59
|
} | Dictionary)[];
|
|
60
60
|
//#endregion
|
|
61
|
-
export { formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput };
|
|
62
61
|
//# sourceMappingURL=formatDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDictionary.d.ts","names":[],"sources":["../../src/formatDictionary.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"formatDictionary.d.ts","names":[],"sources":["../../src/formatDictionary.ts"],"mappings":";;;qBAYa,mBAAgB,YAAgB,eAAa;qBAoC7C,qBAAkB,cACf,iBACb,QAAQ;qBAEE,yBAAsB,YACrB,YAAU,QACd;;;;;;;;;;;;;;;;;;;;;;;;;;IAmCT;qBAEY,2BAAwB,cACrB,cAAY,QAClB;;;;;;;;;;;;;;;;;;;;;;;;;;IAEoE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Format } from "../utils/getFormatFromExtension.js";
|
|
2
2
|
//#region src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts
|
|
3
|
-
declare const getContentDeclarationFileTemplate: (key: string, format: Format, fileParams?: Record<string, any>, noMetadata?: boolean) => Promise<string>;
|
|
3
|
+
export declare const getContentDeclarationFileTemplate: (key: string, format: Format, fileParams?: Record<string, any>, noMetadata?: boolean) => Promise<string>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { getContentDeclarationFileTemplate };
|
|
6
5
|
//# sourceMappingURL=getContentDeclarationFileTemplate.d.ts.map
|
package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContentDeclarationFileTemplate.d.ts","names":[],"sources":["../../../src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getContentDeclarationFileTemplate.d.ts","names":[],"sources":["../../../src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.ts"],"mappings":";;qBAGa,oCAAiC,aACjC,QACH,QAAM,aACF,qBAAmB,yBACX"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/handleAdditionalContentDeclarationFile.d.ts
|
|
3
|
-
declare const handleAdditionalContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
|
|
3
|
+
export declare const handleAdditionalContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { handleAdditionalContentDeclarationFile };
|
|
6
5
|
//# sourceMappingURL=handleAdditionalContentDeclarationFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleAdditionalContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleAdditionalContentDeclarationFile.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"handleAdditionalContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleAdditionalContentDeclarationFile.ts"],"mappings":";;qBAQa,yCAAsC,kBACjC,QACR,mBAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/handleContentDeclarationFileChange.d.ts
|
|
3
|
-
declare const handleContentDeclarationFileChange: (filePath: string, config: IntlayerConfig) => Promise<void>;
|
|
3
|
+
export declare const handleContentDeclarationFileChange: (filePath: string, config: IntlayerConfig) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { handleContentDeclarationFileChange };
|
|
6
5
|
//# sourceMappingURL=handleContentDeclarationFileChange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleContentDeclarationFileChange.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileChange.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"handleContentDeclarationFileChange.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileChange.ts"],"mappings":";;qBAca,qCAAkC,kBAC7B,QACR,mBAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/handleContentDeclarationFileMoved.d.ts
|
|
3
|
-
declare const handleContentDeclarationFileMoved: (oldFilePath: string, newFilePath: string, config: IntlayerConfig) => Promise<void>;
|
|
3
|
+
export declare const handleContentDeclarationFileMoved: (oldFilePath: string, newFilePath: string, config: IntlayerConfig) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { handleContentDeclarationFileMoved };
|
|
6
5
|
//# sourceMappingURL=handleContentDeclarationFileMoved.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleContentDeclarationFileMoved.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileMoved.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"handleContentDeclarationFileMoved.d.ts","names":[],"sources":["../../src/handleContentDeclarationFileMoved.ts"],"mappings":";;qBAOa,oCAAiC,qBACzB,qBACA,QACX,mBAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/handleUnlinkedContentDeclarationFile.d.ts
|
|
3
|
-
declare const handleUnlinkedContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
|
|
3
|
+
export declare const handleUnlinkedContentDeclarationFile: (filePath: string, config: IntlayerConfig) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { handleUnlinkedContentDeclarationFile };
|
|
6
5
|
//# sourceMappingURL=handleUnlinkedContentDeclarationFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleUnlinkedContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleUnlinkedContentDeclarationFile.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"handleUnlinkedContentDeclarationFile.d.ts","names":[],"sources":["../../src/handleUnlinkedContentDeclarationFile.ts"],"mappings":";;qBAWa,uCAAoC,kBAC/B,QACR,mBAAc"}
|
package/dist/types/init/cms.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { RoutingMode } from "./utils/configManipulation.js";
|
|
|
4
4
|
* Intlayer configuration file candidates, ordered by the precedence used when
|
|
5
5
|
* resolving which file to mutate.
|
|
6
6
|
*/
|
|
7
|
-
declare const INTLAYER_CONFIG_FILE_CANDIDATES: readonly ['intlayer.config.ts', 'intlayer.config.mjs', 'intlayer.config.js', 'intlayer.config.cjs', 'intlayer.config.json'];
|
|
7
|
+
export declare const INTLAYER_CONFIG_FILE_CANDIDATES: readonly ['intlayer.config.ts', 'intlayer.config.mjs', 'intlayer.config.js', 'intlayer.config.cjs', 'intlayer.config.json'];
|
|
8
8
|
/** Credentials returned by the CMS login flow (access key pair). */
|
|
9
|
-
type CmsCredentials = {
|
|
9
|
+
export type CmsCredentials = {
|
|
10
10
|
clientId: string;
|
|
11
11
|
clientSecret: string;
|
|
12
12
|
};
|
|
@@ -15,14 +15,14 @@ type CmsCredentials = {
|
|
|
15
15
|
* `fast-glob` to detect an existing dotenv file at the project root, preferring
|
|
16
16
|
* a plain `.env`; falls back to `.env` (to be created) when none exist.
|
|
17
17
|
*/
|
|
18
|
-
declare const findEnvFile: (rootDir: string) => Promise<string>;
|
|
18
|
+
export declare const findEnvFile: (rootDir: string) => Promise<string>;
|
|
19
19
|
/**
|
|
20
20
|
* Persists the CMS access-key credentials to the project's environment file as
|
|
21
21
|
* `INTLAYER_CLIENT_ID` / `INTLAYER_CLIENT_SECRET`. The target file is detected
|
|
22
22
|
* with {@link findEnvFile} and created when missing. Returns the relative path
|
|
23
23
|
* of the file that was written.
|
|
24
24
|
*/
|
|
25
|
-
declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecret }: CmsCredentials) => Promise<string>;
|
|
25
|
+
export declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecret }: CmsCredentials) => Promise<string>;
|
|
26
26
|
/**
|
|
27
27
|
* Enables the Intlayer visual editor in the project's configuration file:
|
|
28
28
|
* flips `editor.enabled` to `true` and wires `clientId` / `clientSecret` to the
|
|
@@ -30,24 +30,23 @@ declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecr
|
|
|
30
30
|
* so they are skipped with a warning. Returns the config file that was updated,
|
|
31
31
|
* or `undefined` when no editable config was found.
|
|
32
32
|
*/
|
|
33
|
-
declare const enableEditorInConfig: (rootDir: string) => Promise<string | undefined>;
|
|
33
|
+
export declare const enableEditorInConfig: (rootDir: string) => Promise<string | undefined>;
|
|
34
34
|
/**
|
|
35
35
|
* Sets `routing.mode` in the project's Intlayer configuration file. Returns the
|
|
36
36
|
* config file that was updated, or `undefined` when none was found.
|
|
37
37
|
*/
|
|
38
|
-
declare const setRoutingModeInConfig: (rootDir: string, mode: RoutingMode) => Promise<string | undefined>;
|
|
38
|
+
export declare const setRoutingModeInConfig: (rootDir: string, mode: RoutingMode) => Promise<string | undefined>;
|
|
39
39
|
/**
|
|
40
40
|
* Sets `compiler.output` in the project's Intlayer configuration file to the
|
|
41
41
|
* given `{{variable}}` path template. Returns the config file that was updated,
|
|
42
42
|
* or `undefined` when none was found.
|
|
43
43
|
*/
|
|
44
|
-
declare const setCompilerOutputInConfig: (rootDir: string, outputTemplate: string) => Promise<string | undefined>;
|
|
44
|
+
export declare const setCompilerOutputInConfig: (rootDir: string, outputTemplate: string) => Promise<string | undefined>;
|
|
45
45
|
/**
|
|
46
46
|
* Completes the CMS setup once credentials are received from the login flow:
|
|
47
47
|
* writes them to the environment file and enables the editor in the Intlayer
|
|
48
48
|
* configuration file.
|
|
49
49
|
*/
|
|
50
|
-
declare const setupCmsCredentials: (rootDir: string, credentials: CmsCredentials) => Promise<void>;
|
|
50
|
+
export declare const setupCmsCredentials: (rootDir: string, credentials: CmsCredentials) => Promise<void>;
|
|
51
51
|
//#endregion
|
|
52
|
-
export { CmsCredentials, INTLAYER_CONFIG_FILE_CANDIDATES, enableEditorInConfig, findEnvFile, setCompilerOutputInConfig, setRoutingModeInConfig, setupCmsCredentials, writeCmsCredentialsToEnv };
|
|
53
52
|
//# sourceMappingURL=cms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cms.d.ts","names":[],"sources":["../../../src/init/cms.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"cms.d.ts","names":[],"sources":["../../../src/init/cms.ts"],"mappings":";;;;;;qBAea;;YAgBD;EACV;EACA;;;;;;;qBAwBW,cAAW,oBAA4B;;;;;;;qBA0CvC,2BAAwB,mBACpB,UAAA,gBACa,mBAC3B;;;;;;;;qBAmCU,uBAAoB,oBAE9B;;;;;qBAwCU,yBAAsB,iBAClB,MACT,gBACL;;;;;;qBAwBU,4BAAyB,iBACrB,2BAEd;;;;;;qBA4BU,sBAAmB,iBACf,aACF,mBACZ"}
|
|
@@ -6,7 +6,7 @@ import { FrameworkAdapter, FrameworkSetupContext } from "./types.js";
|
|
|
6
6
|
* No-ops when no adapter recognizes the project. Each adapter is idempotent and
|
|
7
7
|
* non-destructive, so this is safe to run on existing applications.
|
|
8
8
|
*/
|
|
9
|
-
declare const setupFramework: (context: FrameworkSetupContext) => Promise<void>;
|
|
9
|
+
export declare const setupFramework: (context: FrameworkSetupContext) => Promise<void>;
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export type { FrameworkAdapter, FrameworkSetupContext };
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/index.ts"],"mappings":";;;;;;;;qBAsBa,iBAAc,SAChB,0BACR"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isVersionAtLeast } from "../../utils/version.js";
|
|
2
2
|
//#region src/init/frameworkSetup/nextAppRouter/detect.d.ts
|
|
3
3
|
/** Location of the Next.js App Router directory within the project. */
|
|
4
|
-
type NextAppDirInfo = {
|
|
4
|
+
export type NextAppDirInfo = {
|
|
5
5
|
/** App Router directory relative to the root, e.g. `src/app` or `app`. */
|
|
6
6
|
appDir: string;
|
|
7
7
|
/** `src` when the project uses a `src/` directory, otherwise `''`. */
|
|
@@ -11,13 +11,13 @@ type NextAppDirInfo = {
|
|
|
11
11
|
* Detects the Next.js App Router directory, preferring `src/app` over `app`.
|
|
12
12
|
* Returns `null` when neither exists (e.g. a Pages Router project).
|
|
13
13
|
*/
|
|
14
|
-
declare const detectNextAppDir: (rootDir: string) => Promise<NextAppDirInfo | null>;
|
|
14
|
+
export declare const detectNextAppDir: (rootDir: string) => Promise<NextAppDirInfo | null>;
|
|
15
15
|
/**
|
|
16
16
|
* Finds an existing App Router convention file (e.g. `layout`, `page`) within
|
|
17
17
|
* `dir`, trying each known script extension. Returns the matching relative path
|
|
18
18
|
* or `null`.
|
|
19
19
|
*/
|
|
20
|
-
declare const findAppFile: (rootDir: string, dir: string, baseName: string) => Promise<string | null>;
|
|
20
|
+
export declare const findAppFile: (rootDir: string, dir: string, baseName: string) => Promise<string | null>;
|
|
21
21
|
//#endregion
|
|
22
|
-
export {
|
|
22
|
+
export { isVersionAtLeast };
|
|
23
23
|
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/detect.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/detect.ts"],"mappings":";;;YAOY;;EAEV;;EAEA;;;;;;qBAOW,mBAAgB,oBAE1B,QAAQ;;;;;;qBAeE,cAAW,iBACP,aACJ,qBAEV"}
|
|
@@ -7,7 +7,6 @@ import { FrameworkAdapter } from "../types.js";
|
|
|
7
7
|
* user code. Pages are never wrapped: `IntlayerProvider` in the locale layout
|
|
8
8
|
* covers them.
|
|
9
9
|
*/
|
|
10
|
-
declare const nextAppRouterAdapter: FrameworkAdapter;
|
|
10
|
+
export declare const nextAppRouterAdapter: FrameworkAdapter;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { nextAppRouterAdapter };
|
|
13
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/index.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/index.ts"],"mappings":";;;;;;;;;qBA2Ha,sBAAsB"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Used to skip the restructure when the project is already locale-aware, so an
|
|
9
9
|
* existing locale segment is never nested under a freshly created `[locale]`.
|
|
10
10
|
*/
|
|
11
|
-
declare const isLocaleSegment: (entryName: string) => boolean;
|
|
11
|
+
export declare const isLocaleSegment: (entryName: string) => boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Top-level App Router entries that must stay at the app root and never be
|
|
14
14
|
* moved under `[locale]`:
|
|
@@ -20,7 +20,7 @@ declare const isLocaleSegment: (entryName: string) => boolean;
|
|
|
20
20
|
* Everything else (`page`, `loading`, `error`, `template`, `default`, the root
|
|
21
21
|
* `layout`, and nested route folders) is moved so it becomes locale-aware.
|
|
22
22
|
*/
|
|
23
|
-
declare const shouldKeepAppEntryAtRoot: (entryName: string) => boolean;
|
|
23
|
+
export declare const shouldKeepAppEntryAtRoot: (entryName: string) => boolean;
|
|
24
24
|
type RewriteContext = {
|
|
25
25
|
appDirAbs: string;
|
|
26
26
|
localeDirAbs: string;
|
|
@@ -32,9 +32,9 @@ type RewriteContext = {
|
|
|
32
32
|
* modules after the move. Non-relative specifiers (bare packages, `@/` aliases)
|
|
33
33
|
* are left untouched. Returns the original code unchanged when nothing matched.
|
|
34
34
|
*/
|
|
35
|
-
declare const rewriteRelativeImports: (code: string, oldAbs: string, newAbs: string, context: RewriteContext) => string;
|
|
35
|
+
export declare const rewriteRelativeImports: (code: string, oldAbs: string, newAbs: string, context: RewriteContext) => string;
|
|
36
36
|
/** Outcome of an attempted `[locale]` restructure. */
|
|
37
|
-
type RestructureResult = {
|
|
37
|
+
export type RestructureResult = {
|
|
38
38
|
status: 'already-structured';
|
|
39
39
|
localeSegment: string;
|
|
40
40
|
} | {
|
|
@@ -50,7 +50,6 @@ type RestructureResult = {
|
|
|
50
50
|
* {@link isLocaleSegment}), which is reported via `localeSegment`. Root-only
|
|
51
51
|
* files (see {@link shouldKeepAppEntryAtRoot}) are left in place.
|
|
52
52
|
*/
|
|
53
|
-
declare const restructureAppIntoLocale: (rootDir: string, appDir: string) => Promise<RestructureResult>;
|
|
53
|
+
export declare const restructureAppIntoLocale: (rootDir: string, appDir: string) => Promise<RestructureResult>;
|
|
54
54
|
//#endregion
|
|
55
|
-
export { RestructureResult, isLocaleSegment, restructureAppIntoLocale, rewriteRelativeImports, shouldKeepAppEntryAtRoot };
|
|
56
55
|
//# sourceMappingURL=restructure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/restructure.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/restructure.ts"],"mappings":";;;;;;;;;;qBAwBa,kBAAe;;;;;;;;;;;;qBAcf,2BAAwB;KA+BhC;EACH;EACA;EACA;;;;;;;;qBAqCW,yBAAsB,cACrB,gBACE,gBACA,SACL;;YAyDC;EACN;EAA8B;;EAC9B;;EACA;EAAiB;;;;;;;;;qBASV,2BAAwB,iBACpB,mBAEd,QAAQ"}
|