@team-monolith/cds 1.130.0-alpha.4 → 1.130.0-alpha.6
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/CdsProvider.js +180 -180
- package/dist/components/AlertDialog/AlertDialogTitle.js +15 -15
- package/dist/components/Banner.js +28 -28
- package/dist/components/FileTypeAlertDialog.js +16 -16
- package/dist/components/Pagination.js +22 -22
- package/dist/i18n/i18n.js +14 -14
- package/dist/node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +78 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/I18nextProvider.js +12 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/Trans.js +26 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js +174 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js +20 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js +24 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js +6 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js +11 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js +25 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js +69 -0
- package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/utils.js +35 -0
- package/dist/patterns/LexicalEditor/Plugins.js +66 -66
- package/dist/patterns/LexicalEditor/components/FileSelectInput.js +19 -19
- package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +6 -6
- package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +34 -34
- package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +14 -14
- package/dist/patterns/LexicalEditor/nodes/FileNode/CompactFileView.js +19 -19
- package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +17 -17
- package/dist/patterns/LexicalEditor/nodes/ImageNode/CompactImageView.js +22 -22
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +61 -61
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +25 -25
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormPlaceholder.js +7 -7
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +24 -23
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +48 -47
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +11 -11
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +30 -30
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +35 -35
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +21 -21
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +15 -15
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +17 -17
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +30 -30
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +20 -20
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +24 -24
- package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +28 -28
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +11 -11
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +26 -26
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormAllowMultipleAnswers.js +8 -8
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +27 -27
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +33 -33
- package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +21 -21
- package/dist/patterns/LexicalEditor/plugins/CompactToolbarPlugin/CompactToolbarPlugin.js +34 -34
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +99 -99
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +50 -50
- package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +85 -85
- package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +13 -13
- package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +48 -48
- package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/useImageNodeTransform.js +16 -16
- package/dist/patterns/ToggleButtonGroup/ToggleButton.js +17 -17
- package/package.json +2 -5
- package/node_modules/@babel/runtime/LICENSE +0 -22
- package/node_modules/@babel/runtime/README.md +0 -19
- package/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -4
- package/node_modules/@babel/runtime/helpers/OverloadYield.js +0 -4
- package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -9
- package/node_modules/@babel/runtime/helpers/applyDecs.js +0 -236
- package/node_modules/@babel/runtime/helpers/applyDecs2203.js +0 -184
- package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +0 -191
- package/node_modules/@babel/runtime/helpers/applyDecs2301.js +0 -222
- package/node_modules/@babel/runtime/helpers/applyDecs2305.js +0 -133
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +0 -124
- package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
- package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
- package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
- package/node_modules/@babel/runtime/helpers/assertClassBrand.js +0 -5
- package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
- package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -24
- package/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -45
- package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -26
- package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -5
- package/node_modules/@babel/runtime/helpers/callSuper.js +0 -7
- package/node_modules/@babel/runtime/helpers/checkInRHS.js +0 -6
- package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -4
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -10
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -4
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -5
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -5
- package/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -4
- package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -5
- package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -4
- package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +0 -5
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -5
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -4
- package/node_modules/@babel/runtime/helpers/construct.js +0 -10
- package/node_modules/@babel/runtime/helpers/createClass.js +0 -13
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -50
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -19
- package/node_modules/@babel/runtime/helpers/createSuper.js +0 -16
- package/node_modules/@babel/runtime/helpers/decorate.js +0 -250
- package/node_modules/@babel/runtime/helpers/defaults.js +0 -9
- package/node_modules/@babel/runtime/helpers/defineAccessor.js +0 -8
- package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -12
- package/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
- package/node_modules/@babel/runtime/helpers/dispose.js +0 -28
- package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +0 -236
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +0 -184
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +0 -191
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +0 -222
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +0 -133
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +0 -124
- package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -24
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -45
- package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -26
- package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/callSuper.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/construct.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -13
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -50
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
- package/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -16
- package/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -250
- package/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -12
- package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/dispose.js +0 -28
- package/node_modules/@babel/runtime/helpers/esm/extends.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/get.js +0 -11
- package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/identity.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +0 -27
- package/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
- package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -5
- package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -22
- package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -28
- package/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -22
- package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -14
- package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -23
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
- package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -89
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -33
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -22
- package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +0 -77
- package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -19
- package/node_modules/@babel/runtime/helpers/esm/set.js +0 -22
- package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +0 -12
- package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -4
- package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -2
- package/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -8
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -12
- package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -7
- package/node_modules/@babel/runtime/helpers/esm/toSetter.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -6
- package/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -10
- package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
- package/node_modules/@babel/runtime/helpers/esm/using.js +0 -12
- package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +0 -59
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -56
- package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -27
- package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -52
- package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -4
- package/node_modules/@babel/runtime/helpers/extends.js +0 -10
- package/node_modules/@babel/runtime/helpers/get.js +0 -11
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
- package/node_modules/@babel/runtime/helpers/identity.js +0 -4
- package/node_modules/@babel/runtime/helpers/importDeferProxy.js +0 -27
- package/node_modules/@babel/runtime/helpers/inherits.js +0 -14
- package/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -5
- package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -9
- package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -4
- package/node_modules/@babel/runtime/helpers/instanceof.js +0 -4
- package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -22
- package/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -8
- package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -9
- package/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
- package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
- package/node_modules/@babel/runtime/helpers/jsx.js +0 -22
- package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -9
- package/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -4
- package/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
- package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
- package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +0 -4
- package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -4
- package/node_modules/@babel/runtime/helpers/objectSpread.js +0 -14
- package/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -23
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -13
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -10
- package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
- package/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -4
- package/node_modules/@babel/runtime/helpers/regenerator.js +0 -89
- package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +0 -8
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +0 -6
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +0 -33
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +0 -22
- package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +0 -10
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +0 -77
- package/node_modules/@babel/runtime/helpers/regeneratorValues.js +0 -19
- package/node_modules/@babel/runtime/helpers/set.js +0 -22
- package/node_modules/@babel/runtime/helpers/setFunctionName.js +0 -12
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
- package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -7
- package/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
- package/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
- package/node_modules/@babel/runtime/helpers/superPropGet.js +0 -9
- package/node_modules/@babel/runtime/helpers/superPropSet.js +0 -6
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -8
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -4
- package/node_modules/@babel/runtime/helpers/tdz.js +0 -4
- package/node_modules/@babel/runtime/helpers/temporalRef.js +0 -6
- package/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -2
- package/node_modules/@babel/runtime/helpers/toArray.js +0 -8
- package/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
- package/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
- package/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
- package/node_modules/@babel/runtime/helpers/toSetter.js +0 -10
- package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -6
- package/node_modules/@babel/runtime/helpers/typeof.js +0 -10
- package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
- package/node_modules/@babel/runtime/helpers/using.js +0 -12
- package/node_modules/@babel/runtime/helpers/usingCtx.js +0 -59
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -56
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -27
- package/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -52
- package/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -4
- package/node_modules/@babel/runtime/package.json +0 -1107
- package/node_modules/@babel/runtime/regenerator/index.js +0 -15
- package/node_modules/html-parse-stringify/README.md +0 -154
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.js +0 -2
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.js.map +0 -1
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.modern.js +0 -2
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.modern.js.map +0 -1
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +0 -2
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js.map +0 -1
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.umd.js +0 -2
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.umd.js.map +0 -1
- package/node_modules/html-parse-stringify/package.json +0 -50
- package/node_modules/react-i18next/.eslintrc.json +0 -74
- package/node_modules/react-i18next/.husky/pre-commit +0 -1
- package/node_modules/react-i18next/.prettierignore +0 -4
- package/node_modules/react-i18next/CHANGELOG.md +0 -1433
- package/node_modules/react-i18next/LICENSE +0 -22
- package/node_modules/react-i18next/README.md +0 -181
- package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
- package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
- package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
- package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
- package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
- package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
- package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
- package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
- package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
- package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
- package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
- package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
- package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
- package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
- package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
- package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
- package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
- package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
- package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
- package/node_modules/react-i18next/dist/es/Trans.js +0 -43
- package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
- package/node_modules/react-i18next/dist/es/Translation.js +0 -12
- package/node_modules/react-i18next/dist/es/context.js +0 -42
- package/node_modules/react-i18next/dist/es/defaults.js +0 -18
- package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
- package/node_modules/react-i18next/dist/es/index.js +0 -18
- package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
- package/node_modules/react-i18next/dist/es/package.json +0 -1
- package/node_modules/react-i18next/dist/es/unescape.js +0 -25
- package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
- package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
- package/node_modules/react-i18next/dist/es/utils.js +0 -62
- package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
- package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
- package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
- package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/helpers.d.ts +0 -3
- package/node_modules/react-i18next/icu.macro.d.mts +0 -1
- package/node_modules/react-i18next/icu.macro.d.ts +0 -103
- package/node_modules/react-i18next/icu.macro.js +0 -729
- package/node_modules/react-i18next/index.d.mts +0 -1
- package/node_modules/react-i18next/index.d.ts +0 -209
- package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
- package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
- package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
- package/node_modules/react-i18next/package.json +0 -167
- package/node_modules/react-i18next/react-i18next.js +0 -871
- package/node_modules/react-i18next/react-i18next.min.js +0 -1
- package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
- package/node_modules/react-i18next/src/Trans.js +0 -45
- package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
- package/node_modules/react-i18next/src/Translation.js +0 -14
- package/node_modules/react-i18next/src/context.js +0 -54
- package/node_modules/react-i18next/src/defaults.js +0 -20
- package/node_modules/react-i18next/src/i18nInstance.js +0 -7
- package/node_modules/react-i18next/src/index.js +0 -22
- package/node_modules/react-i18next/src/initReactI18next.js +0 -11
- package/node_modules/react-i18next/src/unescape.js +0 -31
- package/node_modules/react-i18next/src/useSSR.js +0 -33
- package/node_modules/react-i18next/src/useTranslation.js +0 -171
- package/node_modules/react-i18next/src/utils.js +0 -93
- package/node_modules/react-i18next/src/withSSR.js +0 -21
- package/node_modules/react-i18next/src/withTranslation.js +0 -35
- package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
- package/node_modules/void-elements/LICENSE +0 -22
- package/node_modules/void-elements/README.md +0 -27
- package/node_modules/void-elements/index.js +0 -21
- package/node_modules/void-elements/package.json +0 -34
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AlertDialog as e } from "./AlertDialog/AlertDialog.js";
|
|
2
2
|
import { stdin_default as t } from "../node_modules/.pnpm/remixicon@4.3.0/node_modules/remixicon/icons/System/alert-fill.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { useTranslation as n } from "../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
|
|
4
|
+
import { AlertDialogTitle as r } from "./AlertDialog/AlertDialogTitle.js";
|
|
5
|
+
import { AlertDialogContent as i } from "./AlertDialog/AlertDialogContent.js";
|
|
6
|
+
import { AlertDialogActions as a } from "./AlertDialog/AlertDialogActions.js";
|
|
7
|
+
import { Button as o } from "./Button.js";
|
|
8
|
+
import { css as s, useTheme as c } from "@emotion/react";
|
|
8
9
|
import "react";
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { useTranslation as u } from "react-i18next";
|
|
10
|
+
import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
11
11
|
//#region src/cds/components/FileTypeAlertDialog.tsx
|
|
12
12
|
var d = {
|
|
13
13
|
root: "FileTypeAlertDialog",
|
|
@@ -16,35 +16,35 @@ var d = {
|
|
|
16
16
|
actions: "FileTypeAlertDialog-actions"
|
|
17
17
|
};
|
|
18
18
|
function f(f) {
|
|
19
|
-
let { className: p, open: m, onClose: h, content: g, openFileBrowser: _ } = f, v =
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
let { className: p, open: m, onClose: h, content: g, openFileBrowser: _ } = f, v = c(), { t: y } = n();
|
|
20
|
+
return /* @__PURE__ */ u(e, {
|
|
21
21
|
className: [d.root, p].filter(Boolean).join(" "),
|
|
22
22
|
open: m,
|
|
23
23
|
onClose: h,
|
|
24
|
-
icon: /* @__PURE__ */
|
|
24
|
+
icon: /* @__PURE__ */ l(t, { css: s`
|
|
25
25
|
color: ${v.color.background.danger};
|
|
26
26
|
` }),
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ l(r, {
|
|
29
29
|
className: d.title,
|
|
30
|
-
css:
|
|
30
|
+
css: s`
|
|
31
31
|
font-weight: 700;
|
|
32
32
|
`,
|
|
33
33
|
onClose: h,
|
|
34
34
|
children: y("파일 형식을 확인해주세요.")
|
|
35
35
|
}),
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ l(i, {
|
|
37
37
|
className: d.content,
|
|
38
38
|
children: g
|
|
39
39
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ u(a, {
|
|
41
41
|
className: d.actions,
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ l(o, {
|
|
43
43
|
color: "grey",
|
|
44
44
|
label: y("닫기", { context: "다이얼로그" }),
|
|
45
45
|
size: "medium",
|
|
46
46
|
onClick: h
|
|
47
|
-
}), /* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ l(o, {
|
|
48
48
|
color: "primary",
|
|
49
49
|
label: y("다시 업로드"),
|
|
50
50
|
size: "medium",
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { HOVER as e } from "../utils/hover.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { useTranslation as t } from "../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
|
|
3
|
+
import { css as n } from "@emotion/react";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import i from "@emotion/styled";
|
|
6
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
7
7
|
import { Pagination as o } from "@mui/material";
|
|
8
8
|
//#region src/cds/components/Pagination.tsx
|
|
9
|
-
var s = { root: "Pagination" }, c =
|
|
10
|
-
let { className:
|
|
11
|
-
return /* @__PURE__ */
|
|
9
|
+
var s = { root: "Pagination" }, c = r.forwardRef(function(e, n) {
|
|
10
|
+
let { className: r, ...i } = e, { t: o } = t();
|
|
11
|
+
return /* @__PURE__ */ a(l, {
|
|
12
12
|
siblingCount: 2,
|
|
13
13
|
shape: "rounded",
|
|
14
|
-
...
|
|
15
|
-
className: [s.root,
|
|
16
|
-
ref:
|
|
14
|
+
...i,
|
|
15
|
+
className: [s.root, r].filter(Boolean).join(" "),
|
|
16
|
+
ref: n,
|
|
17
17
|
getItemAriaLabel: (e, t, n) => e === "previous" ? o("이전 페이지로 이동") : e === "next" ? o("다음 페이지로 이동") : o(n ? "{{page}}페이지, 선택됨" : "{{page}}페이지", { page: t })
|
|
18
18
|
});
|
|
19
|
-
}), l =
|
|
19
|
+
}), l = i(o)(({ theme: t }) => n`
|
|
20
20
|
&.MuiPagination-root {
|
|
21
21
|
& .MuiPagination-ul {
|
|
22
22
|
li {
|
|
@@ -31,8 +31,8 @@ var s = { root: "Pagination" }, c = n.forwardRef(function(e, t) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
& .MuiPaginationItem-root {
|
|
34
|
-
${e(
|
|
35
|
-
background-color: ${
|
|
34
|
+
${e(n`
|
|
35
|
+
background-color: ${t.color.background.neutralAlt};
|
|
36
36
|
`)}
|
|
37
37
|
}
|
|
38
38
|
& .MuiPaginationItem-text {
|
|
@@ -41,7 +41,7 @@ var s = { root: "Pagination" }, c = n.forwardRef(function(e, t) {
|
|
|
41
41
|
align-items: center;
|
|
42
42
|
text-align: center;
|
|
43
43
|
border-radius: 8px;
|
|
44
|
-
color: ${
|
|
44
|
+
color: ${t.color.foreground.neutralBase};
|
|
45
45
|
font-weight: 400;
|
|
46
46
|
font-size: 14px;
|
|
47
47
|
line-height: 24px;
|
|
@@ -49,25 +49,25 @@ var s = { root: "Pagination" }, c = n.forwardRef(function(e, t) {
|
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
51
51
|
& .Mui-selected {
|
|
52
|
-
border: 2px solid ${
|
|
52
|
+
border: 2px solid ${t.color.background.primary};
|
|
53
53
|
background-color: transparent;
|
|
54
|
-
color: ${
|
|
54
|
+
color: ${t.color.background.primary};
|
|
55
55
|
font-weight: 700;
|
|
56
|
-
${e(
|
|
56
|
+
${e(n`
|
|
57
57
|
background-color: transparent;
|
|
58
58
|
`)}
|
|
59
59
|
}
|
|
60
60
|
& .Mui-disabled {
|
|
61
61
|
background-color: transparent;
|
|
62
|
-
color: ${
|
|
62
|
+
color: ${t.color.foreground.neutralBaseDisabled};
|
|
63
63
|
}
|
|
64
64
|
& .Mui-disabled.Mui-selected {
|
|
65
|
-
border: 2px solid ${
|
|
65
|
+
border: 2px solid ${t.color.background.primaryDisabled};
|
|
66
66
|
background-color: transparent;
|
|
67
|
-
color: ${
|
|
67
|
+
color: ${t.color.background.primaryDisabled};
|
|
68
68
|
}
|
|
69
69
|
& .MuiPaginationItem-ellipsis {
|
|
70
|
-
${e(
|
|
70
|
+
${e(n`
|
|
71
71
|
background-color: transparent;
|
|
72
72
|
`)}
|
|
73
73
|
}
|
package/dist/i18n/i18n.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { initReactI18next as e } from "../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js";
|
|
2
|
+
import { COOKIE_NAME as t, I18N_COMMON_CONFIGS as n } from "./i18nConfigs.js";
|
|
3
3
|
import r from "i18next";
|
|
4
4
|
import i from "i18next-browser-languagedetector";
|
|
5
5
|
import a from "i18next-locize-backend";
|
|
6
6
|
//#region src/cds/i18n/i18n.ts
|
|
7
7
|
var o = new i(null, {
|
|
8
|
-
lookupCookie:
|
|
8
|
+
lookupCookie: t,
|
|
9
9
|
lookupQuerystring: "lng",
|
|
10
10
|
caches: []
|
|
11
11
|
}), s = o.detect(), c = typeof s == "string" ? s.startsWith("ko") : Array.isArray(s) ? s.some((e) => e.startsWith("ko")) : !1;
|
|
12
|
-
function l(
|
|
13
|
-
let i = r.createInstance().use(o).use(
|
|
14
|
-
if (!
|
|
12
|
+
function l(t) {
|
|
13
|
+
let i = r.createInstance().use(o).use(e);
|
|
14
|
+
if (!t) return {
|
|
15
15
|
i18n: i,
|
|
16
16
|
ready: i.init({
|
|
17
|
-
...
|
|
17
|
+
...n,
|
|
18
18
|
fallbackLng: !1
|
|
19
19
|
})
|
|
20
20
|
};
|
|
21
|
-
let s =
|
|
21
|
+
let s = t.environment !== "production" || !c;
|
|
22
22
|
return {
|
|
23
23
|
i18n: i,
|
|
24
24
|
ready: (s ? i.use(a) : i).init({
|
|
25
|
-
...
|
|
26
|
-
debug:
|
|
27
|
-
fallbackLng: c ? !1 :
|
|
25
|
+
...n,
|
|
26
|
+
debug: t.environment !== "production",
|
|
27
|
+
fallbackLng: c ? !1 : t.mainLanguage,
|
|
28
28
|
saveMissing: s,
|
|
29
29
|
backend: {
|
|
30
|
-
projectId:
|
|
31
|
-
apiKey:
|
|
30
|
+
projectId: t.projectId,
|
|
31
|
+
apiKey: t.apiKey,
|
|
32
32
|
referenceLng: "ko",
|
|
33
|
-
cdnType:
|
|
33
|
+
cdnType: t.cdnType ?? "pro"
|
|
34
34
|
}
|
|
35
35
|
})
|
|
36
36
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import e from "/home/shc812/jce-codle-cds/node_modules/.pnpm/void-elements@3.1.0/node_modules/void-elements/index.js";
|
|
2
|
+
//#region node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
|
|
3
|
+
var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
|
|
4
|
+
function n(n) {
|
|
5
|
+
var r = {
|
|
6
|
+
type: "tag",
|
|
7
|
+
name: "",
|
|
8
|
+
voidElement: !1,
|
|
9
|
+
attrs: {},
|
|
10
|
+
children: []
|
|
11
|
+
}, i = n.match(/<\/?([^\s]+?)[/\s>]/);
|
|
12
|
+
if (i && (r.name = i[1], (e[i[1]] || n.charAt(n.length - 2) === "/") && (r.voidElement = !0), r.name.startsWith("!--"))) {
|
|
13
|
+
var a = n.indexOf("-->");
|
|
14
|
+
return {
|
|
15
|
+
type: "comment",
|
|
16
|
+
comment: a === -1 ? "" : n.slice(4, a)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
for (var o = new RegExp(t), s = null; (s = o.exec(n)) !== null;) if (s[0].trim()) if (s[1]) {
|
|
20
|
+
var c = s[1].trim(), l = [c, ""];
|
|
21
|
+
c.indexOf("=") > -1 && (l = c.split("=")), r.attrs[l[0]] = l[1], o.lastIndex--;
|
|
22
|
+
} else s[2] && (r.attrs[s[2]] = s[3].trim().substring(1, s[3].length - 1));
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, i = /^\s*$/, a = Object.create(null);
|
|
26
|
+
function o(e, t) {
|
|
27
|
+
switch (t.type) {
|
|
28
|
+
case "text": return e + t.content;
|
|
29
|
+
case "tag": return e += "<" + t.name + (t.attrs ? function(e) {
|
|
30
|
+
var t = [];
|
|
31
|
+
for (var n in e) t.push(n + "=\"" + e[n] + "\"");
|
|
32
|
+
return t.length ? " " + t.join(" ") : "";
|
|
33
|
+
}(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(o, "") + "</" + t.name + ">";
|
|
34
|
+
case "comment": return e + "<!--" + t.comment + "-->";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var s = {
|
|
38
|
+
parse: function(e, t) {
|
|
39
|
+
t ||= {}, t.components ||= a;
|
|
40
|
+
var o, s = [], c = [], l = -1, u = !1;
|
|
41
|
+
if (e.indexOf("<") !== 0) {
|
|
42
|
+
var d = e.indexOf("<");
|
|
43
|
+
s.push({
|
|
44
|
+
type: "text",
|
|
45
|
+
content: d === -1 ? e : e.substring(0, d)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return e.replace(r, function(r, a) {
|
|
49
|
+
if (u) {
|
|
50
|
+
if (r !== "</" + o.name + ">") return;
|
|
51
|
+
u = !1;
|
|
52
|
+
}
|
|
53
|
+
var d, f = r.charAt(1) !== "/", p = r.startsWith("<!--"), m = a + r.length, h = e.charAt(m);
|
|
54
|
+
if (p) {
|
|
55
|
+
var g = n(r);
|
|
56
|
+
return l < 0 ? (s.push(g), s) : ((d = c[l]).children.push(g), s);
|
|
57
|
+
}
|
|
58
|
+
if (f && (l++, (o = n(r)).type === "tag" && t.components[o.name] && (o.type = "component", u = !0), o.voidElement || u || !h || h === "<" || o.children.push({
|
|
59
|
+
type: "text",
|
|
60
|
+
content: e.slice(m, e.indexOf("<", m))
|
|
61
|
+
}), l === 0 && s.push(o), (d = c[l - 1]) && d.children.push(o), c[l] = o), (!f || o.voidElement) && (l > -1 && (o.voidElement || o.name === r.slice(2, -1)) && (l--, o = l === -1 ? s : c[l]), !u && h !== "<" && h)) {
|
|
62
|
+
d = l === -1 ? s : c[l].children;
|
|
63
|
+
var _ = e.indexOf("<", m), v = e.slice(m, _ === -1 ? void 0 : _);
|
|
64
|
+
i.test(v) && (v = " "), (_ > -1 && l + d.length >= 0 || v !== " ") && d.push({
|
|
65
|
+
type: "text",
|
|
66
|
+
content: v
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}), s;
|
|
70
|
+
},
|
|
71
|
+
stringify: function(e) {
|
|
72
|
+
return e.reduce(function(e, t) {
|
|
73
|
+
return e + o("", t);
|
|
74
|
+
}, "");
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
export { s as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { I18nContext as e } from "./context.js";
|
|
2
|
+
import { createElement as t, useMemo as n } from "react";
|
|
3
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
4
|
+
function r({ i18n: r, defaultNS: i, children: a }) {
|
|
5
|
+
let o = n(() => ({
|
|
6
|
+
i18n: r,
|
|
7
|
+
defaultNS: i
|
|
8
|
+
}), [r, i]);
|
|
9
|
+
return t(e.Provider, { value: o }, a);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as I18nextProvider };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getI18n as e } from "./i18nInstance.js";
|
|
2
|
+
import { Trans as t } from "./TransWithoutContext.js";
|
|
3
|
+
import { I18nContext as n } from "./context.js";
|
|
4
|
+
import { useContext as r } from "react";
|
|
5
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/Trans.js
|
|
6
|
+
function i({ children: i, count: a, parent: o, i18nKey: s, context: c, tOptions: l = {}, values: u, defaults: d, components: f, ns: p, i18n: m, t: h, shouldUnescape: g, ..._ }) {
|
|
7
|
+
let { i18n: v, defaultNS: y } = r(n) || {}, b = m || v || e(), x = h || b?.t.bind(b);
|
|
8
|
+
return t({
|
|
9
|
+
children: i,
|
|
10
|
+
count: a,
|
|
11
|
+
parent: o,
|
|
12
|
+
i18nKey: s,
|
|
13
|
+
context: c,
|
|
14
|
+
tOptions: l,
|
|
15
|
+
values: u,
|
|
16
|
+
defaults: d,
|
|
17
|
+
components: f,
|
|
18
|
+
ns: p || x?.ns || y || b?.options?.defaultNS,
|
|
19
|
+
i18n: b,
|
|
20
|
+
t: h,
|
|
21
|
+
shouldUnescape: g,
|
|
22
|
+
..._
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as Trans };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import e from "../../../../../html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js";
|
|
2
|
+
import { isObject as t, isString as n, warn as r, warnOnce as i } from "./utils.js";
|
|
3
|
+
import { getDefaults as a } from "./defaults.js";
|
|
4
|
+
import { getI18n as o } from "./i18nInstance.js";
|
|
5
|
+
import { Children as s, Fragment as c, cloneElement as l, createElement as u, isValidElement as d } from "react";
|
|
6
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js
|
|
7
|
+
var f = (e, t) => {
|
|
8
|
+
if (!e) return !1;
|
|
9
|
+
let n = e.props?.children ?? e.children;
|
|
10
|
+
return t ? n.length > 0 : !!n;
|
|
11
|
+
}, p = (e) => {
|
|
12
|
+
if (!e) return [];
|
|
13
|
+
let t = e.props?.children ?? e.children;
|
|
14
|
+
return e.props?.i18nIsDynamicList ? h(t) : t;
|
|
15
|
+
}, m = (e) => Array.isArray(e) && e.every(d), h = (e) => Array.isArray(e) ? e : [e], g = (e, t) => {
|
|
16
|
+
let n = { ...t };
|
|
17
|
+
return n.props = Object.assign(e.props, t.props), n;
|
|
18
|
+
}, _ = (e, i, a, o) => {
|
|
19
|
+
if (!e) return "";
|
|
20
|
+
let s = "", c = h(e), l = i?.transSupportBasicHtmlNodes ? i.transKeepBasicHtmlNodesFor ?? [] : [];
|
|
21
|
+
return c.forEach((e, c) => {
|
|
22
|
+
if (n(e)) {
|
|
23
|
+
s += `${e}`;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (d(e)) {
|
|
27
|
+
let { props: t, type: r } = e, u = Object.keys(t).length, d = l.indexOf(r) > -1, f = t.children;
|
|
28
|
+
if (!f && d && !u) {
|
|
29
|
+
s += `<${r}/>`;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (!f && (!d || u) || t.i18nIsDynamicList) {
|
|
33
|
+
s += `<${c}></${c}>`;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (d && u === 1 && n(f)) {
|
|
37
|
+
s += `<${r}>${f}</${r}>`;
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let p = _(f, i, a, o);
|
|
41
|
+
s += `<${c}>${p}</${c}>`;
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (e === null) {
|
|
45
|
+
r(a, "TRANS_NULL_VALUE", "Passed in a null value as child", { i18nKey: o });
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (t(e)) {
|
|
49
|
+
let { format: t, ...n } = e, i = Object.keys(n);
|
|
50
|
+
if (i.length === 1) {
|
|
51
|
+
let e = t ? `${i[0]}, ${t}` : i[0];
|
|
52
|
+
s += `{{${e}}}`;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
r(a, "TRANS_INVALID_OBJ", "Invalid child - Object should only have keys {{ value, format }} (format is optional).", {
|
|
56
|
+
i18nKey: o,
|
|
57
|
+
child: e
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
r(a, "TRANS_INVALID_VAR", "Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.", {
|
|
62
|
+
i18nKey: o,
|
|
63
|
+
child: e
|
|
64
|
+
});
|
|
65
|
+
}), s;
|
|
66
|
+
}, v = (r, i, a, o, c, _, v) => {
|
|
67
|
+
if (a === "") return [];
|
|
68
|
+
let y = c.transKeepBasicHtmlNodesFor || [], b = a && new RegExp(y.map((e) => `<${e}`).join("|")).test(a);
|
|
69
|
+
if (!r && !i && !b && !v) return [a];
|
|
70
|
+
let x = i ?? {}, S = (e) => {
|
|
71
|
+
h(e).forEach((e) => {
|
|
72
|
+
n(e) || (f(e) ? S(p(e)) : t(e) && !d(e) && Object.assign(x, e));
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
S(r);
|
|
76
|
+
let C = e.parse(`<0>${a}</0>`), w = {
|
|
77
|
+
...x,
|
|
78
|
+
..._
|
|
79
|
+
}, T = (e, t, n) => {
|
|
80
|
+
let r = p(e), i = D(r, t.children, n);
|
|
81
|
+
return m(r) && i.length === 0 || e.props?.i18nIsDynamicList ? r : i;
|
|
82
|
+
}, E = (e, t, n, r, i) => {
|
|
83
|
+
e.dummy ? (e.children = t, n.push(l(e, { key: r }, i ? void 0 : t))) : n.push(...s.map([e], (e) => {
|
|
84
|
+
let n = { ...e.props };
|
|
85
|
+
return delete n.i18nIsDynamicList, u(e.type, {
|
|
86
|
+
...n,
|
|
87
|
+
key: r,
|
|
88
|
+
ref: e.props.ref ?? e.ref
|
|
89
|
+
}, i ? null : t);
|
|
90
|
+
}));
|
|
91
|
+
}, D = (e, r, a) => {
|
|
92
|
+
let s = h(e);
|
|
93
|
+
return h(r).reduce((e, r, l) => {
|
|
94
|
+
let p = r.children?.[0]?.content && o.services.interpolator.interpolate(r.children[0].content, w, o.language);
|
|
95
|
+
if (r.type === "tag") {
|
|
96
|
+
let m = s[parseInt(r.name, 10)];
|
|
97
|
+
!m && i && (m = i[r.name]), a.length === 1 && !m && (m = a[0][r.name]), m ||= {};
|
|
98
|
+
let h = Object.keys(r.attrs).length === 0 ? m : g({ props: r.attrs }, m), _ = d(h), v = _ && f(r, !0) && !r.voidElement, x = b && t(h) && h.dummy && !_, S = t(i) && Object.hasOwnProperty.call(i, r.name);
|
|
99
|
+
if (n(h)) {
|
|
100
|
+
let t = o.services.interpolator.interpolate(h, w, o.language);
|
|
101
|
+
e.push(t);
|
|
102
|
+
} else if (f(h) || v) E(h, T(h, r, a), e, l);
|
|
103
|
+
else if (x) E(h, D(s, r.children, a), e, l);
|
|
104
|
+
else if (Number.isNaN(parseFloat(r.name))) if (S) E(h, T(h, r, a), e, l, r.voidElement);
|
|
105
|
+
else if (c.transSupportBasicHtmlNodes && y.indexOf(r.name) > -1) if (r.voidElement) e.push(u(r.name, { key: `${r.name}-${l}` }));
|
|
106
|
+
else {
|
|
107
|
+
let t = D(s, r.children, a);
|
|
108
|
+
e.push(u(r.name, { key: `${r.name}-${l}` }, t));
|
|
109
|
+
}
|
|
110
|
+
else if (r.voidElement) e.push(`<${r.name} />`);
|
|
111
|
+
else {
|
|
112
|
+
let t = D(s, r.children, a);
|
|
113
|
+
e.push(`<${r.name}>${t}</${r.name}>`);
|
|
114
|
+
}
|
|
115
|
+
else if (t(h) && !_) {
|
|
116
|
+
let t = r.children[0] ? p : null;
|
|
117
|
+
t && e.push(t);
|
|
118
|
+
} else E(h, p, e, l, r.children.length !== 1 || !p);
|
|
119
|
+
} else if (r.type === "text") {
|
|
120
|
+
let t = c.transWrapTextNodes, n = v ? c.unescape(o.services.interpolator.interpolate(r.content, w, o.language)) : o.services.interpolator.interpolate(r.content, w, o.language);
|
|
121
|
+
t ? e.push(u(t, { key: `${r.name}-${l}` }, n)) : e.push(n);
|
|
122
|
+
}
|
|
123
|
+
return e;
|
|
124
|
+
}, []);
|
|
125
|
+
};
|
|
126
|
+
return p(D([{
|
|
127
|
+
dummy: !0,
|
|
128
|
+
children: r || []
|
|
129
|
+
}], C, h(r || []))[0]);
|
|
130
|
+
}, y = (e, t, n) => {
|
|
131
|
+
let r = e.key || t, i = l(e, { key: r });
|
|
132
|
+
if (!i.props || !i.props.children || n.indexOf(`${t}/>`) < 0 && n.indexOf(`${t} />`) < 0) return i;
|
|
133
|
+
function a() {
|
|
134
|
+
return u(c, null, i);
|
|
135
|
+
}
|
|
136
|
+
return u(a, { key: r });
|
|
137
|
+
}, b = (e, t) => e.map((e, n) => y(e, n, t)), x = (e, t) => {
|
|
138
|
+
let n = {};
|
|
139
|
+
return Object.keys(e).forEach((r) => {
|
|
140
|
+
Object.assign(n, { [r]: y(e[r], r, t) });
|
|
141
|
+
}), n;
|
|
142
|
+
}, S = (e, n, r, a) => e ? Array.isArray(e) ? b(e, n) : t(e) ? x(e, n) : (i(r, "TRANS_INVALID_COMPONENTS", "<Trans /> \"components\" prop expects an object or array", { i18nKey: a }), null) : null, C = (e) => !t(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((e, t) => e && Number.isNaN(Number.parseFloat(t)), !0);
|
|
143
|
+
function w({ children: e, count: t, parent: r, i18nKey: s, context: c, tOptions: l = {}, values: d, defaults: f, components: p, ns: m, i18n: h, t: g, shouldUnescape: y, ...b }) {
|
|
144
|
+
let x = h || o();
|
|
145
|
+
if (!x) return i(x, "NO_I18NEXT_INSTANCE", "Trans: You need to pass in an i18next instance using i18nextReactModule", { i18nKey: s }), e;
|
|
146
|
+
let w = g || x.t.bind(x) || ((e) => e), T = {
|
|
147
|
+
...a(),
|
|
148
|
+
...x.options?.react
|
|
149
|
+
}, E = m || w.ns || x.options?.defaultNS;
|
|
150
|
+
E = n(E) ? [E] : E || ["translation"];
|
|
151
|
+
let D = _(e, T, x, s), O = f || D || T.transEmptyNodeValue || s, { hashTransKey: k } = T, A = s || (k ? k(D || O) : D || O);
|
|
152
|
+
x.options?.interpolation?.defaultVariables && (d = d && Object.keys(d).length > 0 ? {
|
|
153
|
+
...d,
|
|
154
|
+
...x.options.interpolation.defaultVariables
|
|
155
|
+
} : { ...x.options.interpolation.defaultVariables });
|
|
156
|
+
let j = d || t !== void 0 && !x.options?.interpolation?.alwaysFormat || !e ? l.interpolation : { interpolation: {
|
|
157
|
+
...l.interpolation,
|
|
158
|
+
prefix: "#$?",
|
|
159
|
+
suffix: "?$#"
|
|
160
|
+
} }, M = {
|
|
161
|
+
...l,
|
|
162
|
+
context: c || l.context,
|
|
163
|
+
count: t,
|
|
164
|
+
...d,
|
|
165
|
+
...j,
|
|
166
|
+
defaultValue: O,
|
|
167
|
+
ns: E
|
|
168
|
+
}, N = A ? w(A, M) : O, P = S(p, N, x, s), F = P || e, I = null;
|
|
169
|
+
C(P) && (I = P, F = e);
|
|
170
|
+
let L = v(F, I, N, x, T, M, y), R = r ?? T.defaultTransParent;
|
|
171
|
+
return R ? u(R, b, L) : L;
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
export { w as Trans, _ as nodesToString };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./defaults.js";
|
|
2
|
+
import "./i18nInstance.js";
|
|
3
|
+
import "./initReactI18next.js";
|
|
4
|
+
import { createContext as e } from "react";
|
|
5
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js
|
|
6
|
+
var t = e(), n = class {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.usedNamespaces = {};
|
|
9
|
+
}
|
|
10
|
+
addUsedNamespaces(e) {
|
|
11
|
+
e.forEach((e) => {
|
|
12
|
+
this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
getUsedNamespaces() {
|
|
16
|
+
return Object.keys(this.usedNamespaces);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { t as I18nContext, n as ReportNamespaces };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { unescape as e } from "./unescape.js";
|
|
2
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js
|
|
3
|
+
var t = {
|
|
4
|
+
bindI18n: "languageChanged",
|
|
5
|
+
bindI18nStore: "",
|
|
6
|
+
transEmptyNodeValue: "",
|
|
7
|
+
transSupportBasicHtmlNodes: !0,
|
|
8
|
+
transWrapTextNodes: "",
|
|
9
|
+
transKeepBasicHtmlNodesFor: [
|
|
10
|
+
"br",
|
|
11
|
+
"strong",
|
|
12
|
+
"i",
|
|
13
|
+
"p"
|
|
14
|
+
],
|
|
15
|
+
useSuspense: !0,
|
|
16
|
+
unescape: e
|
|
17
|
+
}, n = (e = {}) => {
|
|
18
|
+
t = {
|
|
19
|
+
...t,
|
|
20
|
+
...e
|
|
21
|
+
};
|
|
22
|
+
}, r = () => t;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { r as getDefaults, n as setDefaults };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js
|
|
2
|
+
var e, t = (t) => {
|
|
3
|
+
e = t;
|
|
4
|
+
}, n = () => e;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as getI18n, t as setI18n };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { setDefaults as e } from "./defaults.js";
|
|
2
|
+
import { setI18n as t } from "./i18nInstance.js";
|
|
3
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js
|
|
4
|
+
var n = {
|
|
5
|
+
type: "3rdParty",
|
|
6
|
+
init(n) {
|
|
7
|
+
e(n.options.react), t(n);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as initReactI18next };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js
|
|
2
|
+
var e = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, t = {
|
|
3
|
+
"&": "&",
|
|
4
|
+
"&": "&",
|
|
5
|
+
"<": "<",
|
|
6
|
+
"<": "<",
|
|
7
|
+
">": ">",
|
|
8
|
+
">": ">",
|
|
9
|
+
"'": "'",
|
|
10
|
+
"'": "'",
|
|
11
|
+
""": "\"",
|
|
12
|
+
""": "\"",
|
|
13
|
+
" ": " ",
|
|
14
|
+
" ": " ",
|
|
15
|
+
"©": "©",
|
|
16
|
+
"©": "©",
|
|
17
|
+
"®": "®",
|
|
18
|
+
"®": "®",
|
|
19
|
+
"…": "…",
|
|
20
|
+
"…": "…",
|
|
21
|
+
"/": "/",
|
|
22
|
+
"/": "/"
|
|
23
|
+
}, n = (e) => t[e], r = (t) => t.replace(e, n);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as unescape };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { hasLoadedNamespace as e, isObject as t, isString as n, loadLanguages as r, loadNamespaces as i, warnOnce as a } from "./utils.js";
|
|
2
|
+
import { getDefaults as o } from "./defaults.js";
|
|
3
|
+
import { getI18n as s } from "./i18nInstance.js";
|
|
4
|
+
import { I18nContext as c, ReportNamespaces as l } from "./context.js";
|
|
5
|
+
import { useCallback as u, useContext as d, useEffect as f, useRef as p, useState as m } from "react";
|
|
6
|
+
//#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js
|
|
7
|
+
var h = (e, t) => {
|
|
8
|
+
let n = p();
|
|
9
|
+
return f(() => {
|
|
10
|
+
n.current = t ? n.current : e;
|
|
11
|
+
}, [e, t]), n.current;
|
|
12
|
+
}, g = (e, t, n, r) => e.getFixedT(t, n, r), _ = (e, t, n, r) => u(g(e, t, n, r), [
|
|
13
|
+
e,
|
|
14
|
+
t,
|
|
15
|
+
n,
|
|
16
|
+
r
|
|
17
|
+
]), v = (u, v = {}) => {
|
|
18
|
+
let { i18n: y } = v, { i18n: b, defaultNS: x } = d(c) || {}, S = y || b || s();
|
|
19
|
+
if (S && !S.reportNamespaces && (S.reportNamespaces = new l()), !S) {
|
|
20
|
+
a(S, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
21
|
+
let e = (e, r) => n(r) ? r : t(r) && n(r.defaultValue) ? r.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, r = [
|
|
22
|
+
e,
|
|
23
|
+
{},
|
|
24
|
+
!1
|
|
25
|
+
];
|
|
26
|
+
return r.t = e, r.i18n = {}, r.ready = !1, r;
|
|
27
|
+
}
|
|
28
|
+
S.options.react?.wait && a(S, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
29
|
+
let C = {
|
|
30
|
+
...o(),
|
|
31
|
+
...S.options.react,
|
|
32
|
+
...v
|
|
33
|
+
}, { useSuspense: w, keyPrefix: T } = C, E = u || x || S.options?.defaultNS;
|
|
34
|
+
E = n(E) ? [E] : E || ["translation"], S.reportNamespaces.addUsedNamespaces?.(E);
|
|
35
|
+
let D = (S.isInitialized || S.initializedStoreOnce) && E.every((t) => e(t, S, C)), O = _(S, v.lng || null, C.nsMode === "fallback" ? E : E[0], T), k = () => O, A = () => g(S, v.lng || null, C.nsMode === "fallback" ? E : E[0], T), [j, M] = m(k), N = E.join();
|
|
36
|
+
v.lng && (N = `${v.lng}${N}`);
|
|
37
|
+
let P = h(N), F = p(!0);
|
|
38
|
+
f(() => {
|
|
39
|
+
let { bindI18n: e, bindI18nStore: t } = C;
|
|
40
|
+
F.current = !0, !D && !w && (v.lng ? r(S, v.lng, E, () => {
|
|
41
|
+
F.current && M(A);
|
|
42
|
+
}) : i(S, E, () => {
|
|
43
|
+
F.current && M(A);
|
|
44
|
+
})), D && P && P !== N && F.current && M(A);
|
|
45
|
+
let n = () => {
|
|
46
|
+
F.current && M(A);
|
|
47
|
+
};
|
|
48
|
+
return e && S?.on(e, n), t && S?.store.on(t, n), () => {
|
|
49
|
+
F.current = !1, S && e && e?.split(" ").forEach((e) => S.off(e, n)), t && S && t.split(" ").forEach((e) => S.store.off(e, n));
|
|
50
|
+
};
|
|
51
|
+
}, [S, N]), f(() => {
|
|
52
|
+
F.current && D && M(k);
|
|
53
|
+
}, [
|
|
54
|
+
S,
|
|
55
|
+
T,
|
|
56
|
+
D
|
|
57
|
+
]);
|
|
58
|
+
let I = [
|
|
59
|
+
j,
|
|
60
|
+
S,
|
|
61
|
+
D
|
|
62
|
+
];
|
|
63
|
+
if (I.t = j, I.i18n = S, I.ready = D, D || !D && !w) return I;
|
|
64
|
+
throw new Promise((e) => {
|
|
65
|
+
v.lng ? r(S, v.lng, E, () => e()) : i(S, E, () => e());
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { v as useTranslation };
|