gt 2.26.11 → 3.0.0-samsara.1
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/CHANGELOG.md +44 -2
- package/dist/api/collectUserEditDiffs.d.ts +8 -3
- package/dist/api/downloadFileBatch.d.ts +20 -15
- package/dist/api/saveLocalEdits.d.ts +7 -2
- package/dist/auth/callbackPage.d.ts +13 -9
- package/dist/auth/credentialStore.d.ts +16 -14
- package/dist/auth/errors.d.ts +10 -6
- package/dist/auth/interactiveLogin.d.ts +7 -2
- package/dist/auth/loopback.d.ts +34 -31
- package/dist/auth/oauth.d.ts +33 -31
- package/dist/bin/bin-entry.d.ts +1 -1
- package/dist/bin/bin-main.d.ts +1 -2
- package/dist/cli/base.d.ts +107 -103
- package/dist/cli/base.js +3 -2
- package/dist/cli/base.js.map +1 -1
- package/dist/cli/commands/api.d.ts +19 -15
- package/dist/cli/commands/download.d.ts +7 -3
- package/dist/cli/commands/enqueue.d.ts +8 -3
- package/dist/cli/commands/setupProject.d.ts +11 -6
- package/dist/cli/commands/stage.d.ts +16 -11
- package/dist/cli/commands/translate.d.ts +12 -8
- package/dist/cli/commands/upload.d.ts +8 -3
- package/dist/cli/commands/utils/validation.d.ts +13 -6
- package/dist/cli/flags.d.ts +10 -5
- package/dist/cli/inline.d.ts +22 -17
- package/dist/cli/inline.js +2 -1
- package/dist/cli/inline.js.map +1 -1
- package/dist/cli/next.d.ts +14 -9
- package/dist/cli/node.d.ts +11 -6
- package/dist/cli/python.d.ts +11 -6
- package/dist/cli/react.d.ts +16 -11
- package/dist/cli/svelte.d.ts +20 -0
- package/dist/cli/svelte.js +40 -0
- package/dist/cli/svelte.js.map +1 -0
- package/dist/cli/vue.d.ts +20 -15
- package/dist/config/defaults.d.ts +8 -3
- package/dist/config/generateSettings.d.ts +34 -30
- package/dist/config/optionPresets.d.ts +8 -3
- package/dist/config/resolveConfig.d.ts +7 -3
- package/dist/config/utils.d.ts +7 -2
- package/dist/config/validateSettings.d.ts +9 -4
- package/dist/console/colors.d.ts +10 -6
- package/dist/console/displayTranslateSummary.d.ts +5 -1
- package/dist/console/formatting.d.ts +5 -1
- package/dist/console/index.d.ts +54 -50
- package/dist/console/localeOptions.d.ts +12 -8
- package/dist/console/logger.d.ts +64 -60
- package/dist/console/logging.d.ts +90 -60
- package/dist/console/promptParsing.d.ts +11 -6
- package/dist/extraction/mapToUpdates.d.ts +8 -3
- package/dist/extraction/postProcess.d.ts +9 -4
- package/dist/formats/files/aggregateFiles.d.ts +11 -6
- package/dist/formats/files/androidLocale.d.ts +5 -1
- package/dist/formats/files/collectFiles.d.ts +14 -9
- package/dist/formats/files/collectFonts.d.ts +11 -6
- package/dist/formats/files/convertToFileTranslationData.d.ts +8 -3
- package/dist/formats/files/detectLottieExpressions.d.ts +5 -1
- package/dist/formats/files/fileMapping.d.ts +8 -3
- package/dist/formats/files/localeContent.d.ts +8 -3
- package/dist/formats/files/localePath.d.ts +7 -2
- package/dist/formats/files/postprocess/keepUntranslatedPagePaths.d.ts +7 -2
- package/dist/formats/files/postprocess/localizeMintlifyRedirects.d.ts +10 -6
- package/dist/formats/files/postprocess/mintlify.d.ts +7 -2
- package/dist/formats/files/preprocess/mdx.d.ts +7 -2
- package/dist/formats/files/preprocess/mintlify.d.ts +7 -2
- package/dist/formats/files/preprocessContent.d.ts +8 -3
- package/dist/formats/files/save.d.ts +7 -2
- package/dist/formats/files/supportedFiles.d.ts +25 -21
- package/dist/formats/files/transformFormat.d.ts +52 -47
- package/dist/formats/json/extractJson.d.ts +7 -2
- package/dist/formats/json/flattenJson.d.ts +8 -3
- package/dist/formats/json/jsonPath.d.ts +12 -7
- package/dist/formats/json/jsonPointer.d.ts +9 -4
- package/dist/formats/json/mergeJson.d.ts +13 -8
- package/dist/formats/json/parseJson.d.ts +7 -2
- package/dist/formats/json/transformJson.d.ts +9 -4
- package/dist/formats/json/utils.d.ts +27 -23
- package/dist/formats/parseKeyedMetadata.d.ts +16 -11
- package/dist/formats/utils.d.ts +8 -3
- package/dist/formats/xcstrings/mergeXcstrings.d.ts +5 -1
- package/dist/formats/xcstrings/parseXcstrings.d.ts +16 -12
- package/dist/formats/yaml/extractYaml.d.ts +7 -2
- package/dist/formats/yaml/mergeYaml.d.ts +9 -4
- package/dist/formats/yaml/parseYaml.d.ts +9 -4
- package/dist/formats/yaml/utils.d.ts +7 -2
- package/dist/fs/clearLocaleDirs.d.ts +5 -1
- package/dist/fs/config/downloadedVersions.d.ts +51 -46
- package/dist/fs/config/loadConfig.d.ts +6 -2
- package/dist/fs/config/parseFilesConfig.d.ts +15 -10
- package/dist/fs/config/setupConfig.d.ts +22 -20
- package/dist/fs/config/updateConfig.d.ts +10 -7
- package/dist/fs/config/updateVersions.d.ts +13 -7
- package/dist/fs/copyFile.d.ts +7 -3
- package/dist/fs/createLoadTranslationsFile.d.ts +18 -8
- package/dist/fs/determineFramework/detectPythonLibrary.d.ts +7 -2
- package/dist/fs/determineFramework/index.d.ts +11 -7
- package/dist/fs/determineFramework/index.js +1 -0
- package/dist/fs/determineFramework/index.js.map +1 -1
- package/dist/fs/determineFramework/matchPyprojectDependency.d.ts +7 -2
- package/dist/fs/determineFramework/matchRequirementsTxtDependency.d.ts +7 -2
- package/dist/fs/determineFramework/matchSetupPyDependency.d.ts +7 -2
- package/dist/fs/determineFramework/resolveGtDependency.d.ts +7 -2
- package/dist/fs/fileContent.d.ts +14 -9
- package/dist/fs/findFilepath.d.ts +12 -8
- package/dist/fs/index.d.ts +1 -1
- package/dist/fs/loadJSON.d.ts +5 -1
- package/dist/fs/matchFiles.d.ts +5 -1
- package/dist/fs/saveJSON.d.ts +5 -1
- package/dist/fs/stringifyJson.d.ts +5 -1
- package/dist/fs/utils.d.ts +5 -1
- package/dist/functions.d.ts +3 -8
- package/dist/generated/version.d.ts +5 -1
- package/dist/generated/version.js +1 -1
- package/dist/generated/version.js.map +1 -1
- package/dist/git/branches.d.ts +10 -6
- package/dist/git/mergeDrivers.d.ts +13 -9
- package/dist/git/setupMergeDrivers.d.ts +28 -23
- package/dist/hooks/postProcess.d.ts +7 -3
- package/dist/index.d.ts +8 -4
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/locadex/setupFlow.d.ts +10 -3
- package/dist/locadex/setupFlow.js +1 -1
- package/dist/locadex/setupFlow.js.map +1 -1
- package/dist/main.d.ts +1 -2
- package/dist/next/jsx/utils.d.ts +12 -7
- package/dist/next/parse/handleInitGT.d.ts +9 -5
- package/dist/next/parse/wrapContent.d.ts +9 -4
- package/dist/python/parse/createPythonInlineUpdates.d.ts +10 -5
- package/dist/react/config/createESBuildConfig.d.ts +10 -6
- package/dist/react/jsx/evaluateJsx.d.ts +20 -15
- package/dist/react/jsx/utils/buildImportMap.d.ts +7 -2
- package/dist/react/jsx/utils/constants.d.ts +37 -33
- package/dist/react/jsx/utils/extractSourceCode.d.ts +9 -5
- package/dist/react/jsx/utils/getCalleeNameFromExpression.d.ts +9 -4
- package/dist/react/jsx/utils/getPathsAndAliases.d.ts +20 -15
- package/dist/react/jsx/utils/isNumberLiteral.d.ts +7 -2
- package/dist/react/jsx/utils/jsxParsing/addGTIdentifierToSyntaxTree.d.ts +8 -3
- package/dist/react/jsx/utils/jsxParsing/autoInsertion.d.ts +9 -13
- package/dist/react/jsx/utils/jsxParsing/handleChildrenWhitespace.d.ts +11 -6
- package/dist/react/jsx/utils/jsxParsing/multiplication/findMultiplicationNode.d.ts +11 -6
- package/dist/react/jsx/utils/jsxParsing/multiplication/multiplyJsxTree.d.ts +7 -2
- package/dist/react/jsx/utils/jsxParsing/parseJsx.d.ts +34 -24
- package/dist/react/jsx/utils/jsxParsing/parseTProps.d.ts +19 -9
- package/dist/react/jsx/utils/jsxParsing/removeNullChildrenFields.d.ts +7 -2
- package/dist/react/jsx/utils/jsxParsing/types.d.ts +27 -28
- package/dist/react/jsx/utils/mapAttributeName.d.ts +5 -2
- package/dist/react/jsx/utils/parseAst.d.ts +32 -27
- package/dist/react/jsx/utils/parseString.d.ts +11 -6
- package/dist/react/jsx/utils/parseStringFunction.d.ts +10 -5
- package/dist/react/jsx/utils/resolveImportPath.d.ts +7 -2
- package/dist/react/jsx/utils/stringParsing/derivation/containsDeriveCall.d.ts +7 -2
- package/dist/react/jsx/utils/stringParsing/derivation/handleDerivation.d.ts +29 -15
- package/dist/react/jsx/utils/stringParsing/derivation/index.d.ts +27 -14
- package/dist/react/jsx/utils/stringParsing/derivation/isDeriveCall.d.ts +13 -5
- package/dist/react/jsx/utils/stringParsing/processTaggedTemplateCall/index.d.ts +8 -3
- package/dist/react/jsx/utils/stringParsing/processTranslationCall/extractStringEntryMetadata.d.ts +36 -26
- package/dist/react/jsx/utils/stringParsing/processTranslationCall/handleInvalidTranslationCall.d.ts +15 -6
- package/dist/react/jsx/utils/stringParsing/processTranslationCall/handleLiteralTranslationCall.d.ts +22 -11
- package/dist/react/jsx/utils/stringParsing/processTranslationCall/index.d.ts +8 -4
- package/dist/react/jsx/utils/stringParsing/processTranslationCall/routeTranslationCall.d.ts +25 -13
- package/dist/react/jsx/utils/stringParsing/types.d.ts +53 -48
- package/dist/react/jsx/utils/types.d.ts +10 -7
- package/dist/react/jsx/utils/validateStringFunction.d.ts +8 -3
- package/dist/react/jsx/wrapJsx.d.ts +31 -26
- package/dist/react/parse/addVitePlugin/index.d.ts +26 -16
- package/dist/react/parse/addVitePlugin/installCompiler.d.ts +10 -4
- package/dist/react/parse/addVitePlugin/updateViteConfig.d.ts +23 -12
- package/dist/react/parse/addVitePlugin/utils/addCompilerImport.d.ts +13 -5
- package/dist/react/parse/addVitePlugin/utils/addPluginInvocation.d.ts +15 -6
- package/dist/react/parse/addVitePlugin/utils/checkCompilerImport.d.ts +12 -7
- package/dist/react/parse/addVitePlugin/utils/checkPluginInvocation.d.ts +15 -6
- package/dist/react/parse/createDictionaryUpdates.d.ts +8 -3
- package/dist/react/parse/createInlineUpdates.d.ts +13 -9
- package/dist/react/parse/wrapContent.d.ts +9 -4
- package/dist/react/utils/flattenDictionary.d.ts +8 -3
- package/dist/react/utils/getEntryAndMetadata.d.ts +9 -4
- package/dist/react/utils/getVariableName.d.ts +16 -11
- package/dist/setup/buildTools/index.d.ts +41 -45
- package/dist/setup/buildTools/reactRouter/index.d.ts +7 -2
- package/dist/setup/buildTools/reactRouter/root.d.ts +22 -11
- package/dist/setup/buildTools/reactRouter/source.d.ts +11 -6
- package/dist/setup/buildTools/shared/document.d.ts +31 -17
- package/dist/setup/buildTools/shared/edits.d.ts +20 -15
- package/dist/setup/buildTools/shared/initializeGT.d.ts +23 -9
- package/dist/setup/buildTools/shared/jsx.d.ts +9 -4
- package/dist/setup/buildTools/shared/loader.d.ts +9 -4
- package/dist/setup/buildTools/shared/source.d.ts +32 -19
- package/dist/setup/buildTools/shared/source.js +24 -1
- package/dist/setup/buildTools/shared/source.js.map +1 -1
- package/dist/setup/buildTools/tanstackStart/index.d.ts +7 -2
- package/dist/setup/buildTools/tanstackStart/index.js +137 -88
- package/dist/setup/buildTools/tanstackStart/index.js.map +1 -1
- package/dist/setup/buildTools/tanstackStart/root.d.ts +21 -22
- package/dist/setup/buildTools/tanstackStart/root.js +155 -103
- package/dist/setup/buildTools/tanstackStart/root.js.map +1 -1
- package/dist/setup/buildTools/tanstackStart/router.d.ts +15 -7
- package/dist/setup/buildTools/tanstackStart/router.js +86 -23
- package/dist/setup/buildTools/tanstackStart/router.js.map +1 -1
- package/dist/setup/buildTools/tanstackStart/source.d.ts +18 -5
- package/dist/setup/buildTools/tanstackStart/source.js +34 -5
- package/dist/setup/buildTools/tanstackStart/source.js.map +1 -1
- package/dist/setup/buildTools/tanstackStart/viteConfig.d.ts +28 -0
- package/dist/setup/buildTools/tanstackStart/viteConfig.js +189 -0
- package/dist/setup/buildTools/tanstackStart/viteConfig.js.map +1 -0
- package/dist/setup/buildTools/vite.d.ts +8 -3
- package/dist/setup/detectFramework.d.ts +10 -5
- package/dist/setup/developmentCredentials.d.ts +24 -19
- package/dist/setup/frameworkUtils.d.ts +8 -3
- package/dist/setup/onboarding.d.ts +109 -99
- package/dist/setup/setupTarget.d.ts +5 -1
- package/dist/setup/setupViteSPA.d.ts +60 -30
- package/dist/setup/setupViteSPA.js +19 -9
- package/dist/setup/setupViteSPA.js.map +1 -1
- package/dist/setup/userInput.d.ts +14 -9
- package/dist/setup/wizard.d.ts +16 -12
- package/dist/state/mintlifyRefMap.d.ts +9 -4
- package/dist/state/orphanedFileNames.d.ts +7 -3
- package/dist/state/recentDownloads.d.ts +19 -14
- package/dist/state/translateWarnings.d.ts +13 -9
- package/dist/translation/extractInline.d.ts +9 -5
- package/dist/translation/extractInline.js +8 -0
- package/dist/translation/extractInline.js.map +1 -1
- package/dist/translation/parse.d.ts +12 -7
- package/dist/translation/reviewSetupWarning.d.ts +8 -3
- package/dist/translation/stage.d.ts +8 -3
- package/dist/translation/validate.d.ts +14 -9
- package/dist/types/branch.d.ts +17 -13
- package/dist/types/data/json.d.ts +8 -4
- package/dist/types/data.d.ts +33 -31
- package/dist/types/files.d.ts +12 -9
- package/dist/types/index.d.ts +278 -282
- package/dist/types/libraries.d.ts +30 -25
- package/dist/types/libraries.js +7 -1
- package/dist/types/libraries.js.map +1 -1
- package/dist/types/parsing.d.ts +26 -23
- package/dist/utils/addExplicitAnchorIds.d.ts +30 -26
- package/dist/utils/api.d.ts +265 -258
- package/dist/utils/apiBaseUrl.d.ts +5 -1
- package/dist/utils/batchProcess.d.ts +6 -2
- package/dist/utils/calculateTimeoutMs.d.ts +5 -1
- package/dist/utils/constants.d.ts +15 -11
- package/dist/utils/credentials.d.ts +22 -18
- package/dist/utils/flattenJsonFiles.d.ts +7 -2
- package/dist/utils/gitDiff.d.ts +5 -1
- package/dist/utils/hash.d.ts +6 -2
- package/dist/utils/installPackage.d.ts +8 -3
- package/dist/utils/loadEnv.d.ts +6 -2
- package/dist/utils/localizeMintlifyFrontmatterUrls.d.ts +10 -5
- package/dist/utils/localizeRelativeAssets.d.ts +11 -7
- package/dist/utils/localizeStaticImports.d.ts +8 -3
- package/dist/utils/localizeStaticUrls.d.ts +14 -9
- package/dist/utils/mdxAnchorSyntax.d.ts +18 -12
- package/dist/utils/mintlifyTitleFallback.d.ts +7 -4
- package/dist/utils/monorepoVersionCheck.d.ts +7 -2
- package/dist/utils/packageInfo.d.ts +6 -2
- package/dist/utils/packageJson.d.ts +10 -6
- package/dist/utils/packageManager.d.ts +29 -25
- package/dist/utils/parse/needsCJS.d.ts +24 -13
- package/dist/utils/persistPostprocessHashes.d.ts +8 -3
- package/dist/utils/processAnchorIds.d.ts +7 -2
- package/dist/utils/processOpenApi.d.ts +7 -2
- package/dist/utils/reactPackageCompatibility.d.ts +6 -2
- package/dist/utils/resolveMintlifyRefs.d.ts +17 -13
- package/dist/utils/resolvePublish.d.ts +10 -5
- package/dist/utils/sanitizeFileContent.d.ts +5 -1
- package/dist/utils/sharedStaticAssets.d.ts +8 -3
- package/dist/utils/splitMintlifyLanguageRefs.d.ts +7 -2
- package/dist/utils/validateMdx.d.ts +7 -3
- package/dist/utils/wrapPlainUrls.d.ts +5 -1
- package/dist/workflows/download.d.ts +37 -22
- package/dist/workflows/enqueue.d.ts +18 -8
- package/dist/workflows/publish.d.ts +10 -5
- package/dist/workflows/setupProject.d.ts +11 -6
- package/dist/workflows/stage.d.ts +21 -11
- package/dist/workflows/steps/BranchStep.d.ts +15 -11
- package/dist/workflows/steps/DownloadStep.d.ts +26 -17
- package/dist/workflows/steps/EnqueueStep.d.ts +15 -12
- package/dist/workflows/steps/PollJobsStep.d.ts +38 -27
- package/dist/workflows/steps/PublishStep.d.ts +12 -7
- package/dist/workflows/steps/SetupStep.d.ts +15 -11
- package/dist/workflows/steps/TagStep.d.ts +15 -11
- package/dist/workflows/steps/UploadSourcesStep.d.ts +27 -21
- package/dist/workflows/steps/UploadTranslationsStep.d.ts +29 -23
- package/dist/workflows/steps/UserEditDiffsStep.d.ts +12 -7
- package/dist/workflows/upload.d.ts +18 -10
- package/dist/workflows/utils/filterFilesForEnqueue.d.ts +20 -11
- package/dist/workflows/utils/queryCompletedTranslations.d.ts +10 -5
- package/dist/workflows/utils/syncFonts.d.ts +7 -2
- package/package.json +55 -43
- package/dist/setup/buildTools/tanstackStart/middleware.d.ts +0 -9
- package/dist/setup/buildTools/tanstackStart/middleware.js +0 -60
- package/dist/setup/buildTools/tanstackStart/middleware.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 3.0.0-samsara.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Updated dependencies [12666a6]
|
|
8
|
+
- @generaltranslation/svelte-extractor@0.1.0-samsara.1
|
|
9
|
+
|
|
10
|
+
## 3.0.0-samsara.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- bb107a8: Replace wildcard `exports` with an explicit list. Undocumented deep imports such as `gt/console/logging`, available through gt 2.x, are no longer importable.
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 469b2e2: feat: detect gt-svelte projects and extract `<T>` and string calls from `.svelte` files
|
|
19
|
+
- 00227d1: `gt init` sets up TanStack Start apps with the `gtTanstackStart()` Vite plugin and `setupRouterGTIntegration({ router })` instead of editing `src/start.ts`, adding a root route loader and `<GTProvider>`, and generating a `loadTranslations` file. It sets the root route's `<html lang>` to `useLocale()`. In SPA mode, it asks you to move UI out of the root route so the prerendered shell stays blank until the visitor's translations load. The new setup requires gt-tanstack-start 12; with an older version installed, `gt init` leaves the app's source unchanged and asks you to upgrade.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- bb107a8: Fix published type declarations that failed to resolve, or resolved to CommonJS types, under `moduleResolution` `node16` or `nodenext`.
|
|
24
|
+
- de29049: Keep the trailing newline of JSON files the CLI rewrites in place, such as `redirects.json`, `docs.json`, `gt.config.json`, and `package.json`, and end JSON files the CLI generates, such as `gt-lock.json`, with a newline
|
|
25
|
+
- e6dac30: `gt init --locadex` now returns you to the dashboard after you connect GitHub, instead of a page that doesn't exist.
|
|
26
|
+
- Updated dependencies [da7af80]
|
|
27
|
+
- Updated dependencies [bb107a8]
|
|
28
|
+
- Updated dependencies [bb107a8]
|
|
29
|
+
- Updated dependencies [002f579]
|
|
30
|
+
- Updated dependencies [8673283]
|
|
31
|
+
- generaltranslation@10.0.0-samsara.0
|
|
32
|
+
- @generaltranslation/format@1.0.0-samsara.1
|
|
33
|
+
- @generaltranslation/python-extractor@0.2.64-samsara.0
|
|
34
|
+
- @generaltranslation/vue-extractor@0.1.23-samsara.0
|
|
35
|
+
- @generaltranslation/svelte-extractor@0.1.0-samsara.0
|
|
36
|
+
- @generaltranslation/supported-locales@2.1.45-samsara.0
|
|
8
37
|
|
|
9
38
|
## 2.26.10
|
|
10
39
|
|
|
@@ -40,6 +69,19 @@
|
|
|
40
69
|
|
|
41
70
|
- [#2514](https://github.com/generaltranslation/gt/pull/2514) [`e2aee57`](https://github.com/generaltranslation/gt/commit/e2aee57260df269e77b7082ae2b428c2ec9076bb) Thanks [@chenxin-yan](https://github.com/chenxin-yan)! - `gt upload` now uploads translations to the resolved branch (for example, `--branch <name>`) instead of the project's default branch.
|
|
42
71
|
|
|
72
|
+
## 2.26.7-samsara.0
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- Updated dependencies [0604209]
|
|
77
|
+
- @generaltranslation/icu@0.1.3-samsara.0
|
|
78
|
+
- gt-remark@1.0.13-samsara.0
|
|
79
|
+
- generaltranslation@9.5.8-samsara.0
|
|
80
|
+
- @generaltranslation/format@0.1.10-samsara.0
|
|
81
|
+
- @generaltranslation/python-extractor@0.2.63-samsara.0
|
|
82
|
+
- @generaltranslation/supported-locales@2.1.44-samsara.0
|
|
83
|
+
- @generaltranslation/vue-extractor@0.1.22-samsara.0
|
|
84
|
+
|
|
43
85
|
## 2.26.6
|
|
44
86
|
|
|
45
87
|
### Patch Changes
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Settings } from
|
|
2
|
-
import { FileReference } from
|
|
1
|
+
import { Settings } from "../types/index.js";
|
|
2
|
+
import { FileReference } from "generaltranslation/types";
|
|
3
|
+
|
|
4
|
+
//#region src/api/collectUserEditDiffs.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* Collects local user edits by diffing the latest downloaded server translation version
|
|
5
7
|
* against the current local translation file, and submits the diffs upstream.
|
|
@@ -8,4 +10,7 @@ import { FileReference } from 'generaltranslation/types';
|
|
|
8
10
|
*
|
|
9
11
|
* Must run before enqueueing new translations so rules are available to the generator.
|
|
10
12
|
*/
|
|
11
|
-
|
|
13
|
+
declare function collectAndSendUserEditDiffs(files: FileReference[], settings: Settings): Promise<boolean>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { collectAndSendUserEditDiffs };
|
|
16
|
+
//# sourceMappingURL=collectUserEditDiffs.d.ts.map
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { InlineLibrary } from "../types/libraries.js";
|
|
2
|
+
import { Settings } from "../types/index.js";
|
|
3
|
+
import { FileStatusTracker } from "../workflows/steps/PollJobsStep.js";
|
|
4
|
+
|
|
5
|
+
//#region src/api/downloadFileBatch.d.ts
|
|
6
|
+
type BatchedFiles = {
|
|
7
|
+
branchId: string;
|
|
8
|
+
fileId: string;
|
|
9
|
+
versionId: string;
|
|
10
|
+
locale: string;
|
|
11
|
+
outputPath: string;
|
|
12
|
+
inputPath: string;
|
|
11
13
|
}[];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
type DownloadFileBatchResult = {
|
|
15
|
+
successful: BatchedFiles;
|
|
16
|
+
failed: BatchedFiles;
|
|
17
|
+
skipped: BatchedFiles;
|
|
16
18
|
};
|
|
17
19
|
/**
|
|
18
20
|
* Downloads multiple translation files in a single batch request
|
|
@@ -23,4 +25,7 @@ export type DownloadFileBatchResult = {
|
|
|
23
25
|
* @param inlineLibrary - Inline runtime used to label the shared GTJSON file
|
|
24
26
|
* @returns Object containing successful and failed file IDs
|
|
25
27
|
*/
|
|
26
|
-
|
|
28
|
+
declare function downloadFileBatch(fileTracker: FileStatusTracker, files: BatchedFiles, options: Settings, forceDownload?: boolean, inlineLibrary?: InlineLibrary): Promise<DownloadFileBatchResult>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { BatchedFiles, DownloadFileBatchResult, downloadFileBatch };
|
|
31
|
+
//# sourceMappingURL=downloadFileBatch.d.ts.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { Settings } from
|
|
1
|
+
import { Settings } from "../types/index.js";
|
|
2
|
+
|
|
3
|
+
//#region src/api/saveLocalEdits.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* Uploads current source files to obtain file references, then collects and sends
|
|
4
6
|
* diffs for all locales based on last downloaded versions. Does not enqueue translations.
|
|
5
7
|
*/
|
|
6
|
-
|
|
8
|
+
declare function saveLocalEdits(settings: Settings): Promise<void>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { saveLocalEdits };
|
|
11
|
+
//# sourceMappingURL=saveLocalEdits.d.ts.map
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
//#region src/auth/callbackPage.d.ts
|
|
1
2
|
/** What the page says: a signed-in account, or why the login did not finish. */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type CallbackPageView = {
|
|
4
|
+
ok: true;
|
|
5
|
+
account?: string;
|
|
5
6
|
} | {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
ok: false;
|
|
8
|
+
reason: 'denied' | 'failed';
|
|
8
9
|
};
|
|
9
10
|
/** The part of a success view the login flow can add after the exchange. */
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
type CallbackPageDetails = {
|
|
12
|
+
account?: string;
|
|
12
13
|
};
|
|
13
14
|
/** The policy the loopback server sends with the page. */
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
declare const CALLBACK_PAGE_CSP: string;
|
|
16
|
+
declare function renderCallbackPage(view: CallbackPageView): string;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CALLBACK_PAGE_CSP, CallbackPageDetails, CallbackPageView, renderCallbackPage };
|
|
19
|
+
//# sourceMappingURL=callbackPage.d.ts.map
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
subject: string;
|
|
1
|
+
//#region src/auth/credentialStore.d.ts
|
|
2
|
+
type OAuthTokens = {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
expiresAt: number;
|
|
5
|
+
refreshToken: string; /** API resource (origin href) the tokens were issued for. */
|
|
6
|
+
resource: string;
|
|
7
|
+
scope: string;
|
|
8
|
+
tokenType: string; /** Subject from a validated, signature-checked ID token. */
|
|
9
|
+
subject: string;
|
|
11
10
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
declare function getCredentialsPath(): string;
|
|
12
|
+
declare function readOAuthTokens(authBaseUrl: string): Promise<OAuthTokens | undefined>;
|
|
13
|
+
declare function writeOAuthTokens(tokens: OAuthTokens, authBaseUrl: string): Promise<void>;
|
|
14
|
+
declare function deleteOAuthTokens(authBaseUrl: string): Promise<void>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { OAuthTokens, deleteOAuthTokens, getCredentialsPath, readOAuthTokens, writeOAuthTokens };
|
|
17
|
+
//# sourceMappingURL=credentialStore.d.ts.map
|
package/dist/auth/errors.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/auth/errors.d.ts
|
|
2
|
+
type UserAuthErrorCode = 'login_required' | 'obsolete_credentials' | 'resource_mismatch' | 'oauth';
|
|
2
3
|
/** `message` is a complete `gt Error:` diagnostic; commands print it as-is. */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare class UserAuthError extends Error {
|
|
5
|
+
readonly code: UserAuthErrorCode;
|
|
6
|
+
constructor(code: UserAuthErrorCode, whatHappened: string, fix?: string, details?: string);
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
declare function loginRequiredError(): UserAuthError;
|
|
9
|
+
declare function createUserAuthError(whatHappened: string, error: unknown): string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { UserAuthError, UserAuthErrorCode, createUserAuthError, loginRequiredError };
|
|
12
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DeviceCode } from "./oauth.js";
|
|
2
|
+
|
|
3
|
+
//#region src/auth/interactiveLogin.d.ts
|
|
4
|
+
declare function loginInteractively(baseUrl: string | undefined, useBrowser?: boolean, onDeviceCode?: (deviceCode: DeviceCode) => void): Promise<void>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { loginInteractively };
|
|
7
|
+
//# sourceMappingURL=interactiveLogin.d.ts.map
|
package/dist/auth/loopback.d.ts
CHANGED
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CallbackPageDetails } from "./callbackPage.js";
|
|
2
|
+
|
|
3
|
+
//#region src/auth/loopback.d.ts
|
|
4
|
+
declare const LOOPBACK_CALLBACK_PATH = "/callback";
|
|
3
5
|
/**
|
|
4
6
|
* How long a settled callback's page stays available to a browser that
|
|
5
7
|
* repeats the navigation after the exchange (a first request it aborted, a
|
|
6
8
|
* refresh), while the process is still running.
|
|
7
9
|
*/
|
|
8
|
-
|
|
10
|
+
declare const CALLBACK_REPEAT_WINDOW_MS = 10000;
|
|
9
11
|
/**
|
|
10
12
|
* How long the process stays open for the browser's repeat when the first
|
|
11
13
|
* request was abandoned before its page was sent, so the page the browser
|
|
12
14
|
* never received can still reach it.
|
|
13
15
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
failure?: (error: unknown) => 'denied' | 'failed';
|
|
16
|
+
declare const CALLBACK_RETRY_HOLD_MS = 5000;
|
|
17
|
+
type CallbackWaitOptions<T> = {
|
|
18
|
+
/** What the page says about a success, such as the signed-in account. */describe?: (result: T) => CallbackPageDetails;
|
|
19
|
+
/**
|
|
20
|
+
* Whether a failed exchange was the user's own denial; the page reads the
|
|
21
|
+
* exchange's error, so it agrees with the terminal. Without it every
|
|
22
|
+
* failure is shown as failed.
|
|
23
|
+
*/
|
|
24
|
+
failure?: (error: unknown) => 'denied' | 'failed';
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
close: () => void;
|
|
26
|
+
type LoopbackServer = {
|
|
27
|
+
/** Loopback redirect URI bound to an ephemeral port, e.g. http://127.0.0.1:53211/callback */redirectUri: string;
|
|
28
|
+
/**
|
|
29
|
+
* Shows the result page only after the callback has been validated and
|
|
30
|
+
* saved. `describe` adds what the page says about a success, such as the
|
|
31
|
+
* signed-in account, and `failure` says whether a failure was a denial.
|
|
32
|
+
*/
|
|
33
|
+
waitForCallback: <T>(onCallback: (url: URL) => Promise<T>, timeoutMs?: number, options?: CallbackWaitOptions<T>) => Promise<T>;
|
|
34
|
+
/**
|
|
35
|
+
* Stops the server. Once a callback has settled, repeats of that callback
|
|
36
|
+
* are still answered for CALLBACK_REPEAT_WINDOW_MS while the process runs;
|
|
37
|
+
* the listener holds the process open only for CALLBACK_RETRY_HOLD_MS, and
|
|
38
|
+
* only when the first page was never sent. A command that exits on its own
|
|
39
|
+
* (a failed `gt login` exits at once) ends the window early.
|
|
40
|
+
*/
|
|
41
|
+
close: () => void;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
declare function startLoopbackServer(): Promise<LoopbackServer>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { CALLBACK_REPEAT_WINDOW_MS, CALLBACK_RETRY_HOLD_MS, CallbackWaitOptions, LOOPBACK_CALLBACK_PATH, LoopbackServer, startLoopbackServer };
|
|
46
|
+
//# sourceMappingURL=loopback.d.ts.map
|
package/dist/auth/oauth.d.ts
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { OAuthTokens } from "./credentialStore.js";
|
|
2
|
+
import { UserTokenProvider } from "generaltranslation/api";
|
|
3
|
+
|
|
4
|
+
//#region src/auth/oauth.d.ts
|
|
5
|
+
type DeviceCode = {
|
|
6
|
+
userCode: string;
|
|
7
|
+
verificationUri: string;
|
|
8
|
+
verificationUriComplete?: string;
|
|
7
9
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type UserInfo = {
|
|
11
|
+
email?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
sub: string;
|
|
12
14
|
};
|
|
13
15
|
type OAuthRequestOptions = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
authBaseUrl?: string;
|
|
17
|
+
fetch?: typeof fetch;
|
|
16
18
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
baseUrl: string;
|
|
19
|
+
type UserTokenProviderOptions = OAuthRequestOptions & {
|
|
20
|
+
/** API the requests go to; must match the resource the login was issued for. */baseUrl: string;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
timeoutMs?: number;
|
|
22
|
+
type LoginOptions = OAuthRequestOptions & {
|
|
23
|
+
/** API the token is issued for; GT_API_URL overrides it, and the public API is the default. */baseUrl?: string;
|
|
24
|
+
noBrowser?: boolean;
|
|
25
|
+
onDeviceCode?: (deviceCode: DeviceCode) => void;
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
onAuthorizationUrl?: (url: string) => void;
|
|
28
|
+
openBrowser?: (url: string) => Promise<unknown>;
|
|
29
|
+
timeoutMs?: number;
|
|
30
30
|
};
|
|
31
31
|
/** How long the callback page waits to learn the account's name. */
|
|
32
|
-
|
|
32
|
+
declare const ACCOUNT_LOOKUP_TIMEOUT_MS = 3000;
|
|
33
33
|
/** Browser S256/loopback, or device login for SSH, --no-browser and bind failure. */
|
|
34
|
-
|
|
34
|
+
declare function login(options?: LoginOptions): Promise<OAuthTokens>;
|
|
35
35
|
/** Whether a stored login exists for this API; does not refresh or contact the server. */
|
|
36
|
-
|
|
36
|
+
declare function hasLogin(options: UserTokenProviderOptions): Promise<boolean>;
|
|
37
37
|
/** Construction is deliberately free of auth/storage/discovery I/O. */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
declare function createUserTokenProvider(options: UserTokenProviderOptions): UserTokenProvider;
|
|
39
|
+
declare function logout(options?: OAuthRequestOptions): Promise<void>;
|
|
40
|
+
declare function whoAmI(options?: OAuthRequestOptions): Promise<UserInfo>;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ACCOUNT_LOOKUP_TIMEOUT_MS, DeviceCode, LoginOptions, UserInfo, UserTokenProviderOptions, createUserTokenProvider, hasLogin, login, logout, whoAmI };
|
|
43
|
+
//# sourceMappingURL=oauth.d.ts.map
|
package/dist/bin/bin-entry.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { };
|
package/dist/bin/bin-main.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
1
|
+
export { };
|
package/dist/cli/base.d.ts
CHANGED
|
@@ -1,110 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Settings, SupportedFrameworks, SupportedLibraries, TranslateFlags } from "../types/index.js";
|
|
2
|
+
import { ConfigureOptions, InitOptions, OnboardingSession } from "../setup/onboarding.js";
|
|
3
|
+
import { ReactSetupPlan } from "../setup/wizard.js";
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
|
|
6
|
+
//#region src/cli/base.d.ts
|
|
7
|
+
type UploadOptions = {
|
|
8
|
+
config?: string;
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
projectId?: string;
|
|
11
|
+
defaultLocale?: string;
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
type GitSetupOptions = {
|
|
14
|
+
config?: string;
|
|
15
|
+
dryRun?: boolean;
|
|
16
|
+
omitConfigIds?: boolean;
|
|
17
|
+
driverCommand?: string;
|
|
16
18
|
};
|
|
17
19
|
type LocalTranslationGuidanceOptions = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
generatedLoader: boolean;
|
|
21
|
+
runtimeSetup: InlineRuntimeSetup;
|
|
22
|
+
translationsDir: string;
|
|
21
23
|
};
|
|
22
24
|
type InlineRuntimeSetup = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
hasOtherInlineRuntime: boolean;
|
|
26
|
+
hasVueRuntime: boolean;
|
|
27
|
+
ranReactSetup: boolean;
|
|
26
28
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
29
|
+
declare class BaseCLI {
|
|
30
|
+
protected library: SupportedLibraries;
|
|
31
|
+
protected additionalModules: SupportedLibraries[];
|
|
32
|
+
protected program: Command;
|
|
33
|
+
constructor(program: Command, library: SupportedLibraries, additionalModules?: SupportedLibraries[]);
|
|
34
|
+
init(): void;
|
|
35
|
+
execute(): void;
|
|
36
|
+
protected setupSetupProjectCommand(): void;
|
|
37
|
+
protected setupStageCommand(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Enqueues translations for a given set of files
|
|
40
|
+
* @param initOptions - The options for the command
|
|
41
|
+
* @returns The results of the command
|
|
42
|
+
*/
|
|
43
|
+
protected setupEnqueueCommand(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Downloads translations that were originally staged
|
|
46
|
+
* @param initOptions - The options for the command
|
|
47
|
+
* @returns The results of the command
|
|
48
|
+
*/
|
|
49
|
+
protected setupDownloadCommand(): void;
|
|
50
|
+
protected setupTranslateCommand(): void;
|
|
51
|
+
protected setupSendDiffsCommand(): void;
|
|
52
|
+
protected setupApiCommand(): void;
|
|
53
|
+
protected setupProjectCommands(): void;
|
|
54
|
+
protected setupApiKeyCommands(): void;
|
|
55
|
+
protected setupGitCommand(): void;
|
|
56
|
+
protected resolveGitSetupOmitConfigIds(options: GitSetupOptions, settings: Settings): Promise<boolean>;
|
|
57
|
+
protected handleSetupProject(initOptions: TranslateFlags): Promise<void>;
|
|
58
|
+
protected handleStage(initOptions: TranslateFlags): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Enqueues translations for a given set of files
|
|
61
|
+
* @param initOptions - The options for the command
|
|
62
|
+
* @returns The results of the command
|
|
63
|
+
*/
|
|
64
|
+
protected handleEnqueue(initOptions: TranslateFlags): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Downloads translations that were originally staged
|
|
67
|
+
* @param initOptions - The options for the command
|
|
68
|
+
* @returns The results of the command
|
|
69
|
+
*/
|
|
70
|
+
protected handleDownload(initOptions: TranslateFlags): Promise<void>;
|
|
71
|
+
protected handleTranslate(initOptions: TranslateFlags): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Postprocesses the translations downloaded in this run and reports the
|
|
74
|
+
* summary. Shared by translate and download so both write the same output.
|
|
75
|
+
* @param settings - The settings for the command
|
|
76
|
+
*/
|
|
77
|
+
protected finalizeDownloadedTranslations(settings: Settings): Promise<void>;
|
|
78
|
+
protected setupUploadCommand(): void;
|
|
79
|
+
protected setupUserAuthCommands(): void;
|
|
80
|
+
protected setupInitCommand(): void;
|
|
81
|
+
protected handleInitWizard(options: InitOptions): Promise<void>;
|
|
82
|
+
protected setupConfigureCommand(): void;
|
|
83
|
+
protected handleConfigureCommand(options: ConfigureOptions, command?: string): Promise<void>;
|
|
84
|
+
protected handleUploadCommand(settings: Settings & UploadOptions): Promise<void>;
|
|
85
|
+
/** Describes installed runtimes without changing historical package lookup. */
|
|
86
|
+
protected getInlineRuntimeSetup(packageJson: Record<string, unknown>, ranReactSetup?: boolean): InlineRuntimeSetup;
|
|
87
|
+
/** Returns whether any inline runtime is installed for setup. */
|
|
88
|
+
protected isInlineRuntimeInstalled(packageJson: Record<string, unknown>): boolean;
|
|
89
|
+
/** Returns whether every installed runtime can consume CDN translations. */
|
|
90
|
+
protected supportsCDNStorage(runtimeSetup: InlineRuntimeSetup): boolean;
|
|
91
|
+
/** Returns whether setup should generate a local runtime loader. */
|
|
92
|
+
protected shouldGenerateLocalTranslationLoader(buildToolOwnsLoader: boolean, runtimeSetup: InlineRuntimeSetup): boolean;
|
|
93
|
+
/** Returns framework guidance after selecting local translation storage. */
|
|
94
|
+
protected getLocalTranslationGuidance({
|
|
95
|
+
generatedLoader,
|
|
96
|
+
runtimeSetup,
|
|
97
|
+
translationsDir
|
|
98
|
+
}: LocalTranslationGuidanceOptions): string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Resolves every configuration answer and validates the resulting config,
|
|
101
|
+
* checks the project and signs in before the first change, then applies
|
|
102
|
+
* the React setup, gt.config.json, installs and development credentials.
|
|
103
|
+
*/
|
|
104
|
+
protected handleInitCommand(session: OnboardingSession, options: ConfigureOptions, setup: {
|
|
105
|
+
/** Chosen once by the entry point from the detected framework. */configFilepath: string; /** Resolved framework; drives storage, env names and build-tool setup. */
|
|
106
|
+
framework?: SupportedFrameworks; /** Write the framework even when no build-tool setup saves it. */
|
|
107
|
+
saveFramework?: boolean;
|
|
108
|
+
reactSetup?: ReactSetupPlan; /** Init without the React setup never changes application source. */
|
|
109
|
+
keepAppSource?: boolean;
|
|
110
|
+
}): Promise<void>;
|
|
109
111
|
}
|
|
110
|
-
|
|
112
|
+
//#endregion
|
|
113
|
+
export { BaseCLI, GitSetupOptions, UploadOptions };
|
|
114
|
+
//# sourceMappingURL=base.d.ts.map
|