@team-monolith/cds 1.115.4 → 1.116.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/README.md +3 -1
- package/dist/CdsProvider.d.ts +2 -0
- package/dist/CdsProvider.js +23 -2
- package/dist/i18n/i18n.d.ts +8 -0
- package/dist/i18n/i18n.js +63 -0
- package/dist/i18n/i18nConfigs.d.ts +10 -0
- package/dist/i18n/i18nConfigs.js +23 -0
- package/dist/patterns/LexicalEditor/LexicalEditor.d.ts +2 -0
- package/dist/patterns/LexicalEditor/LexicalEditor.js +2 -2
- package/dist/patterns/LexicalEditor/Plugins.d.ts +1 -0
- package/dist/patterns/LexicalEditor/Plugins.js +4 -2
- package/node_modules/@babel/runtime/LICENSE +22 -0
- package/node_modules/@babel/runtime/README.md +19 -0
- package/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +77 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +69 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +52 -0
- package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +22 -0
- package/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +22 -0
- package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +77 -0
- package/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/helpers/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
- package/node_modules/@babel/runtime/helpers/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +69 -0
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/wrapRegExp.js +52 -0
- package/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/package.json +1107 -0
- package/node_modules/@babel/runtime/regenerator/index.js +15 -0
- package/node_modules/html-parse-stringify/README.md +154 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.js +2 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.js.map +1 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.modern.js +2 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.modern.js.map +1 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +2 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js.map +1 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.umd.js +2 -0
- package/node_modules/html-parse-stringify/dist/html-parse-stringify.umd.js.map +1 -0
- package/node_modules/html-parse-stringify/package.json +50 -0
- package/node_modules/react-i18next/.eslintrc.json +74 -0
- package/node_modules/react-i18next/.husky/pre-commit +1 -0
- package/node_modules/react-i18next/.prettierignore +4 -0
- package/node_modules/react-i18next/CHANGELOG.md +1433 -0
- package/node_modules/react-i18next/LICENSE +22 -0
- package/node_modules/react-i18next/README.md +181 -0
- package/node_modules/react-i18next/TransWithoutContext.d.mts +1 -0
- package/node_modules/react-i18next/TransWithoutContext.d.ts +129 -0
- package/node_modules/react-i18next/dist/amd/react-i18next.js +867 -0
- package/node_modules/react-i18next/dist/amd/react-i18next.min.js +1 -0
- package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +21 -0
- package/node_modules/react-i18next/dist/commonjs/Trans.js +54 -0
- package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +330 -0
- package/node_modules/react-i18next/dist/commonjs/Translation.js +19 -0
- package/node_modules/react-i18next/dist/commonjs/context.js +81 -0
- package/node_modules/react-i18next/dist/commonjs/defaults.js +26 -0
- package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +13 -0
- package/node_modules/react-i18next/dist/commonjs/index.js +128 -0
- package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +15 -0
- package/node_modules/react-i18next/dist/commonjs/unescape.js +32 -0
- package/node_modules/react-i18next/dist/commonjs/useSSR.js +34 -0
- package/node_modules/react-i18next/dist/commonjs/useTranslation.js +114 -0
- package/node_modules/react-i18next/dist/commonjs/utils.js +76 -0
- package/node_modules/react-i18next/dist/commonjs/withSSR.js +27 -0
- package/node_modules/react-i18next/dist/commonjs/withTranslation.js +39 -0
- package/node_modules/react-i18next/dist/es/I18nextProvider.js +15 -0
- package/node_modules/react-i18next/dist/es/Trans.js +43 -0
- package/node_modules/react-i18next/dist/es/TransWithoutContext.js +321 -0
- package/node_modules/react-i18next/dist/es/Translation.js +12 -0
- package/node_modules/react-i18next/dist/es/context.js +42 -0
- package/node_modules/react-i18next/dist/es/defaults.js +18 -0
- package/node_modules/react-i18next/dist/es/i18nInstance.js +5 -0
- package/node_modules/react-i18next/dist/es/index.js +18 -0
- package/node_modules/react-i18next/dist/es/initReactI18next.js +9 -0
- package/node_modules/react-i18next/dist/es/package.json +1 -0
- package/node_modules/react-i18next/dist/es/unescape.js +25 -0
- package/node_modules/react-i18next/dist/es/useSSR.js +27 -0
- package/node_modules/react-i18next/dist/es/useTranslation.js +107 -0
- package/node_modules/react-i18next/dist/es/utils.js +62 -0
- package/node_modules/react-i18next/dist/es/withSSR.js +20 -0
- package/node_modules/react-i18next/dist/es/withTranslation.js +32 -0
- package/node_modules/react-i18next/dist/umd/react-i18next.js +871 -0
- package/node_modules/react-i18next/dist/umd/react-i18next.min.js +1 -0
- package/node_modules/react-i18next/helpers.d.ts +3 -0
- package/node_modules/react-i18next/icu.macro.d.mts +1 -0
- package/node_modules/react-i18next/icu.macro.d.ts +103 -0
- package/node_modules/react-i18next/icu.macro.js +729 -0
- package/node_modules/react-i18next/index.d.mts +1 -0
- package/node_modules/react-i18next/index.d.ts +209 -0
- package/node_modules/react-i18next/initReactI18next.d.mts +1 -0
- package/node_modules/react-i18next/initReactI18next.d.ts +3 -0
- package/node_modules/react-i18next/lint-staged.config.mjs +4 -0
- package/node_modules/react-i18next/package.json +167 -0
- package/node_modules/react-i18next/react-i18next.js +871 -0
- package/node_modules/react-i18next/react-i18next.min.js +1 -0
- package/node_modules/react-i18next/src/I18nextProvider.js +7 -0
- package/node_modules/react-i18next/src/Trans.js +45 -0
- package/node_modules/react-i18next/src/TransWithoutContext.js +479 -0
- package/node_modules/react-i18next/src/Translation.js +14 -0
- package/node_modules/react-i18next/src/context.js +54 -0
- package/node_modules/react-i18next/src/defaults.js +20 -0
- package/node_modules/react-i18next/src/i18nInstance.js +7 -0
- package/node_modules/react-i18next/src/index.js +22 -0
- package/node_modules/react-i18next/src/initReactI18next.js +11 -0
- package/node_modules/react-i18next/src/unescape.js +31 -0
- package/node_modules/react-i18next/src/useSSR.js +33 -0
- package/node_modules/react-i18next/src/useTranslation.js +171 -0
- package/node_modules/react-i18next/src/utils.js +93 -0
- package/node_modules/react-i18next/src/withSSR.js +21 -0
- package/node_modules/react-i18next/src/withTranslation.js +35 -0
- package/node_modules/react-i18next/vitest.workspace.typescript.mts +52 -0
- package/node_modules/void-elements/LICENSE +22 -0
- package/node_modules/void-elements/README.md +27 -0
- package/node_modules/void-elements/index.js +21 -0
- package/node_modules/void-elements/package.json +34 -0
- package/package.json +19 -2
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
`npm run storybook` 을 실행하면 스토리북이 실행됩니다. 이곳에서 디버깅을 진행합니다.
|
|
32
32
|
|
|
33
|
-
패키지 특성상 개발환경이 따로 존재하지 않으며 `npm run
|
|
33
|
+
패키지 특성상 개발환경이 따로 존재하지 않으며 `npm run build` 후 `npm publish` 를 사용하여 npm 에 배포합니다.
|
|
34
34
|
|
|
35
35
|
이때 npm team-monolith 에 소속되어 있어야 합니다.
|
|
36
|
+
|
|
37
|
+
빌드 시에 번역 관련 환경변수가 필요합니다. (.locize 파일)
|
package/dist/CdsProvider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Theme } from "@emotion/react";
|
|
2
|
+
import { i18nextOption } from "./i18n/i18n";
|
|
2
3
|
export declare const light: Theme;
|
|
3
4
|
export declare const dark: Theme;
|
|
4
5
|
interface CdsContext {
|
|
@@ -7,6 +8,7 @@ interface CdsContext {
|
|
|
7
8
|
uploadByFile: (file: File) => Promise<string>;
|
|
8
9
|
showFileError: (type: "upload" | "download", message: string) => void;
|
|
9
10
|
};
|
|
11
|
+
i18nextOption?: i18nextOption;
|
|
10
12
|
}
|
|
11
13
|
export declare const CdsContext: import("react").Context<CdsContext>;
|
|
12
14
|
export declare function CdsProvider(props: {
|
package/dist/CdsProvider.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Global, ThemeProvider, css } from "@emotion/react";
|
|
3
3
|
import { ThemeProvider as MuiThemeProvider } from "@mui/material";
|
|
4
4
|
import { COLOR } from "./foundation/color";
|
|
5
5
|
import { FONT } from "./foundation/font";
|
|
6
6
|
import { createTheme } from "@mui/material";
|
|
7
7
|
import { createContext } from "react";
|
|
8
|
+
import { initI18nInstance, i18n } from "./i18n/i18n";
|
|
9
|
+
import { I18nextProvider } from "react-i18next";
|
|
8
10
|
export const light = {
|
|
9
11
|
fontFamily: {
|
|
10
12
|
ui: FONT.pretendard,
|
|
@@ -309,6 +311,15 @@ export const dark = {
|
|
|
309
311
|
};
|
|
310
312
|
export const CdsContext = createContext({});
|
|
311
313
|
export function CdsProvider(props) {
|
|
314
|
+
// AIDEV-NOTE:
|
|
315
|
+
// CdsProvider가 렌더링 될 때 i18n 인스턴스가 초기화되지 않았다면, 초기화합니다.
|
|
316
|
+
// 여기에 useEffect를 사용한다면, 마운트 시에 i18n 초기화가 되어있지 않을 때
|
|
317
|
+
// react-i18next가 suspense를 사용하게 되어 컴포넌트가 언마운트 되므로,
|
|
318
|
+
// useEffect가 실행이 되지 않는 문제가 있습니다.
|
|
319
|
+
// 따라서 useEffect를 사용하지 않고, 동기적으로 i18n 초기화를 수행합니다.
|
|
320
|
+
if (!i18n.isInitialized && !i18n.isInitializing) {
|
|
321
|
+
initI18nInstance(props.i18nextOption);
|
|
322
|
+
}
|
|
312
323
|
const muiTheme = createTheme({
|
|
313
324
|
typography: {
|
|
314
325
|
fontFamily: props.fontFamily,
|
|
@@ -322,7 +333,17 @@ export function CdsProvider(props) {
|
|
|
322
333
|
},
|
|
323
334
|
});
|
|
324
335
|
const { theme = light } = props;
|
|
325
|
-
return (
|
|
336
|
+
return (
|
|
337
|
+
/**
|
|
338
|
+
* AIDEV-NOTE:
|
|
339
|
+
* i18next를 CdsProvider 안에서 초기화하여 I18nextProvider로 감쌌습니다.
|
|
340
|
+
* 이로 인해 CdsProvider를 사용하는 곳(호스트)에서는 CDS쪽 i18n 설정을 신경쓰지 않아도 됩니다.
|
|
341
|
+
* 그러나 반대로 이 I18nextProvider가 최상위에 위치하게 되어,
|
|
342
|
+
* 호스트의 react-i18next (useTranslation을 사용하는 곳)과 충돌이 발생할 수 있습니다.
|
|
343
|
+
* 따라서 cds package.json에서 react-i18next를 bundleDependencies로 설정하여
|
|
344
|
+
* 호스트의 react-i18next와 분리했습니다.
|
|
345
|
+
*/
|
|
346
|
+
_jsxs(I18nextProvider, { i18n: i18n, children: [_jsx(Global, { styles: css `
|
|
326
347
|
body {
|
|
327
348
|
font-family: ${FONT.pretendard};
|
|
328
349
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type i18nextOption = {
|
|
2
|
+
environment: string;
|
|
3
|
+
mainLanguage: string;
|
|
4
|
+
projectId: string;
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const i18n: import("i18next").i18n;
|
|
8
|
+
export declare function initI18nInstance(option: i18nextOption | undefined): Promise<import("i18next").TFunction<"translation", undefined>>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import i18next from "i18next";
|
|
11
|
+
import LanguageDetector from "i18next-browser-languagedetector";
|
|
12
|
+
import Backend from "i18next-locize-backend";
|
|
13
|
+
import { COOKIE_NAME, I18N_COMMON_CONFIGS, QUERYSTRING_NAME, } from "./i18nConfigs";
|
|
14
|
+
import { initReactI18next } from "react-i18next";
|
|
15
|
+
import { locizePlugin } from "locize";
|
|
16
|
+
const languageDetector = new LanguageDetector(null, {
|
|
17
|
+
lookupCookie: COOKIE_NAME,
|
|
18
|
+
lookupQuerystring: QUERYSTRING_NAME,
|
|
19
|
+
caches: [], // 사용자의 language 설정을 저장하지 않습니다.
|
|
20
|
+
});
|
|
21
|
+
const DETECTED_LANGUAGE = languageDetector.detect();
|
|
22
|
+
const CONTAINS_KOREAN = typeof DETECTED_LANGUAGE === "string"
|
|
23
|
+
? DETECTED_LANGUAGE.startsWith("ko")
|
|
24
|
+
: Array.isArray(DETECTED_LANGUAGE)
|
|
25
|
+
? DETECTED_LANGUAGE.some((lang) => lang.startsWith("ko"))
|
|
26
|
+
: false;
|
|
27
|
+
// AIDEV-NOTE:
|
|
28
|
+
// i18next 싱글톤 인스턴스를 사용하는 대신, CDS가 호스트 애플리케이션과 독립적으로
|
|
29
|
+
// i18n 인스턴스를 관리할 수 있도록 createInstance()를 사용합니다.
|
|
30
|
+
export const i18n = i18next
|
|
31
|
+
.createInstance()
|
|
32
|
+
.use(languageDetector)
|
|
33
|
+
.use(initReactI18next);
|
|
34
|
+
export function initI18nInstance(option) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (!option) {
|
|
37
|
+
// option이 없는 경우, backend 플러그인 없이 기본 i18next 설정을 사용하여,
|
|
38
|
+
// fallbackValue(=key)를 항상 사용하게 됩니다.
|
|
39
|
+
return i18n.init(Object.assign(Object.assign({}, I18N_COMMON_CONFIGS), { fallbackLng: false }));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* AIDEV-NOTE:
|
|
43
|
+
* Locize의 사용량을 최적화하기 위해, Locize를 다음과 같은 상황에서만 활성화합니다:
|
|
44
|
+
* 1. 프로덕션 환경이 아닐 때 (개발 or 로컬 환경) 또는,
|
|
45
|
+
* 2. 언어 설정이 한국어가 아닐 때
|
|
46
|
+
*/
|
|
47
|
+
const LOCIZE_ENABLED = option.environment !== "production" || !CONTAINS_KOREAN;
|
|
48
|
+
return (LOCIZE_ENABLED ? i18n.use(Backend).use(locizePlugin) : i18n).init(Object.assign(Object.assign({}, I18N_COMMON_CONFIGS), { debug: option.environment !== "production",
|
|
49
|
+
// AIDEV-NOTE:
|
|
50
|
+
// - 유저의 언어가 Korean인 경우:
|
|
51
|
+
// fallbackLng를 false로 설정하여, 번역이 없는 경우 key 자체를 반환하도록 합니다.
|
|
52
|
+
// 이 값을 설정하지 않는다면 i18next가 'dev'(=i18next 기본값)라는 언어를 찾으려고 시도할 것이므로,
|
|
53
|
+
// 이 동작을 방지합니다.
|
|
54
|
+
// - 유저의 언어가 Korean이 아닌 경우:
|
|
55
|
+
// fallbackLng를 option.mainLanguage로 설정하여,
|
|
56
|
+
// 유저 언어의 번역이 없을 경우, 메인 언어로 fallback합니다.
|
|
57
|
+
fallbackLng: CONTAINS_KOREAN ? false : option.mainLanguage, saveMissing: LOCIZE_ENABLED, backend: {
|
|
58
|
+
projectId: option.projectId,
|
|
59
|
+
apiKey: option.apiKey,
|
|
60
|
+
referenceLng: "ko",
|
|
61
|
+
} }));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InitOptions } from "i18next";
|
|
2
|
+
/**
|
|
3
|
+
* i18next-parser의 출력 경로
|
|
4
|
+
*/
|
|
5
|
+
export declare const PARSER_OUTPUT = "locales/$LOCALE/$NAMESPACE.json";
|
|
6
|
+
export declare const SUPPORTED_LANGUAGES: string[];
|
|
7
|
+
export declare const DEFAULT_NS = "cds";
|
|
8
|
+
export declare const QUERYSTRING_NAME = "lng";
|
|
9
|
+
export declare const COOKIE_NAME = "i18next";
|
|
10
|
+
export declare const I18N_COMMON_CONFIGS: Partial<InitOptions>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// i18n 관련 공통으로 사용되는 전역 상수 및 설정입니다.
|
|
2
|
+
/**
|
|
3
|
+
* i18next-parser의 출력 경로
|
|
4
|
+
*/
|
|
5
|
+
export const PARSER_OUTPUT = "locales/$LOCALE/$NAMESPACE.json";
|
|
6
|
+
export const SUPPORTED_LANGUAGES = ["ko", "en"];
|
|
7
|
+
export const DEFAULT_NS = "cds";
|
|
8
|
+
export const QUERYSTRING_NAME = "lng";
|
|
9
|
+
export const COOKIE_NAME = "i18next";
|
|
10
|
+
export const I18N_COMMON_CONFIGS = {
|
|
11
|
+
ns: DEFAULT_NS,
|
|
12
|
+
supportedLngs: SUPPORTED_LANGUAGES,
|
|
13
|
+
nonExplicitSupportedLngs: true,
|
|
14
|
+
// AIDEV-NOTE:
|
|
15
|
+
// 이 프로젝트에서 key를 한국어 문장 그대로로 사용하기 때문에,
|
|
16
|
+
// keySeparator와 nsSeparator를 false로 설정하여
|
|
17
|
+
// 불필요한 구분자를 사용하지 않도록 합니다.
|
|
18
|
+
keySeparator: false,
|
|
19
|
+
nsSeparator: false,
|
|
20
|
+
interpolation: {
|
|
21
|
+
escapeValue: false, // not needed for react as it escapes by default
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -19,6 +19,8 @@ export interface LexicalEditorProps {
|
|
|
19
19
|
isQuizEnabled?: boolean;
|
|
20
20
|
/** 렉시컬 플러그인의 파일 블록 노출의 유무, false가 디폴트이고, 전달하지 않아도 로컬스토리지 devMode로도 노출시킬 수 있습니다. */
|
|
21
21
|
showFileUpload?: boolean;
|
|
22
|
+
/** 에디터가 마운트될 때 자동으로 포커스를 설정할지 여부. true가 디폴트입니다. */
|
|
23
|
+
autoFocus?: boolean;
|
|
22
24
|
/** 외부에서 플러그인을 주입하는 경우 활용함 */
|
|
23
25
|
children?: JSX.Element | string | (JSX.Element | string)[];
|
|
24
26
|
}
|
|
@@ -39,7 +39,7 @@ function getCleanObject(obj) {
|
|
|
39
39
|
return newObj;
|
|
40
40
|
}
|
|
41
41
|
export function LexicalEditor(props) {
|
|
42
|
-
const { className, contentEditableClassName, value, onChange, editable = true, showQuizSolution = false, freezeProblemNode = false, isSheetEnabled = false, isQuizEnabled = false, showFileUpload = false, children, } = props;
|
|
42
|
+
const { className, contentEditableClassName, value, onChange, editable = true, showQuizSolution = false, freezeProblemNode = false, isSheetEnabled = false, isQuizEnabled = false, showFileUpload = false, autoFocus = true, children, } = props;
|
|
43
43
|
const theme = useTheme();
|
|
44
44
|
const initialConfig = {
|
|
45
45
|
namespace: "CustomLexicalEditor",
|
|
@@ -62,5 +62,5 @@ export function LexicalEditor(props) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
: undefined;
|
|
65
|
-
return (_jsx(LexicalCustomConfigContext.Provider, { value: { freezeProblemNode, showQuizSolution, showFileUpload }, children: _jsxs(LexicalComposer, { initialConfig: initialConfig, children: [_jsx(Plugins, { className: className, contentEditableClassName: contentEditableClassName, onChange: onChangeHandler, isSheetEnabled: isSheetEnabled, isQuizEnabled: isQuizEnabled, showFileUpload: showFileUpload }), _jsx(_Fragment, { children: children })] }) }));
|
|
65
|
+
return (_jsx(LexicalCustomConfigContext.Provider, { value: { freezeProblemNode, showQuizSolution, showFileUpload }, children: _jsxs(LexicalComposer, { initialConfig: initialConfig, children: [_jsx(Plugins, { className: className, contentEditableClassName: contentEditableClassName, onChange: onChangeHandler, isSheetEnabled: isSheetEnabled, isQuizEnabled: isQuizEnabled, showFileUpload: showFileUpload, autoFocus: autoFocus }), _jsx(_Fragment, { children: children })] }) }));
|
|
66
66
|
}
|
|
@@ -38,8 +38,10 @@ import { FilePlugin } from "./plugins/FilePlugin";
|
|
|
38
38
|
import { DragDropPastePlugin } from "./plugins/DragDropPastePlugin";
|
|
39
39
|
import { ParagraphPlaceholderPlugin } from "./plugins/ParagraphPlaceholderPlugin";
|
|
40
40
|
import { AutoLinkPlugin } from "./plugins/AutoLinkPlugin";
|
|
41
|
+
import { useTranslation } from "react-i18next";
|
|
41
42
|
export function Plugins(props) {
|
|
42
|
-
const { className, contentEditableClassName, onChange, isSheetEnabled, isQuizEnabled, showFileUpload, } = props;
|
|
43
|
+
const { className, contentEditableClassName, onChange, isSheetEnabled, isQuizEnabled, showFileUpload, autoFocus, } = props;
|
|
44
|
+
const { t } = useTranslation();
|
|
43
45
|
const isEditable = useLexicalEditable();
|
|
44
46
|
const [floatingAnchorElem, setFloatingAnchorElem] = useState(null);
|
|
45
47
|
const [isLinkEditMode, setIsLinkEditMode] = useState(false);
|
|
@@ -52,7 +54,7 @@ export function Plugins(props) {
|
|
|
52
54
|
onChange === null || onChange === void 0 ? void 0 : onChange(editorState.toJSON());
|
|
53
55
|
},
|
|
54
56
|
// ignore 하지 않으면 Form에서 수정하지 않았는데 Dirty로 처리됨.
|
|
55
|
-
ignoreSelectionChange: true }), _jsx(AutoFocusPlugin, {}), isEditable && (_jsxs(_Fragment, { children: [_jsx(TabIndentationPlugin, {}), _jsx(ComponentPickerMenuPlugin, { isSheetEnabled: isSheetEnabled, isQuizEnabled: isQuizEnabled, showFileUpload: showFileUpload }), _jsx(MarkdownShortcutPlugin, { transformers: CUSTOM_TRANSFORMERS }), _jsx(HistoryPlugin, {}), _jsx(ParagraphPlaceholderPlugin, { placeholder: "
|
|
57
|
+
ignoreSelectionChange: true }), autoFocus && _jsx(AutoFocusPlugin, {}), isEditable && (_jsxs(_Fragment, { children: [_jsx(TabIndentationPlugin, {}), _jsx(ComponentPickerMenuPlugin, { isSheetEnabled: isSheetEnabled, isQuizEnabled: isQuizEnabled, showFileUpload: showFileUpload }), _jsx(MarkdownShortcutPlugin, { transformers: CUSTOM_TRANSFORMERS }), _jsx(HistoryPlugin, {}), _jsx(ParagraphPlaceholderPlugin, { placeholder: t("명령어 사용 시에는 '/'를 누르세요. 블록에 마우스를 올려 나타나는 '+'를 클릭하면 아래에 블록을 추가할 수 있습니다.") })] })), floatingAnchorElem && isEditable && (_jsxs(_Fragment, { children: [_jsx(ComponentAdderPlugin, { anchorElem: floatingAnchorElem, isSheetEnabled: isSheetEnabled, isQuizEnabled: isQuizEnabled, showFileUpload: showFileUpload }), _jsx(FloatingTextFormatToolbarPlugin, { anchorElem: floatingAnchorElem }), _jsx(FloatingLinkEditorPlugin, { anchorElem: floatingAnchorElem, isLinkEditMode: isLinkEditMode, setIsLinkEditMode: setIsLinkEditMode })] })), !isEditable && _jsx(ClickableLinkPlugin, {}), _jsx(ListPlugin, {}), _jsx(HorizontalRulePlugin, {}), _jsx(ImagesPlugin, {}), _jsx(VideosPlugin, {}), _jsx(FilePlugin, {}), _jsx(TablePlugin, {}), _jsx(LinkPlugin, {}), _jsx(ListMaxIndentLevelPlugin, { maxDepth: 5 }), _jsx(ProblemInputPlugin, {}), _jsx(ProblemSelectPlugin, {}), _jsx(LayoutPlugin, {}), _jsx(SheetSelectPlugin, {}), _jsx(SheetInputPlugin, {}), _jsx(SelfEvaluationPlugin, {}), _jsx(AutoLinkPlugin, {})] }));
|
|
56
58
|
}
|
|
57
59
|
const ScrollArea = styled.div `
|
|
58
60
|
min-height: 150px;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @babel/runtime
|
|
2
|
+
|
|
3
|
+
> babel's modular runtime helpers
|
|
4
|
+
|
|
5
|
+
See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Using npm:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install --save @babel/runtime
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
or using yarn:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
yarn add @babel/runtime
|
|
19
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function _applyDecoratedDescriptor(i, e, r, n, l) {
|
|
2
|
+
var a = {};
|
|
3
|
+
return Object.keys(n).forEach(function (i) {
|
|
4
|
+
a[i] = n[i];
|
|
5
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) {
|
|
6
|
+
return n(i, e, r) || r;
|
|
7
|
+
}, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a;
|
|
8
|
+
}
|
|
9
|
+
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
var _typeof = require("./typeof.js")["default"];
|
|
2
|
+
var setFunctionName = require("./setFunctionName.js");
|
|
3
|
+
var toPropertyKey = require("./toPropertyKey.js");
|
|
4
|
+
function old_createMetadataMethodsForProperty(e, t, a, r) {
|
|
5
|
+
return {
|
|
6
|
+
getMetadata: function getMetadata(o) {
|
|
7
|
+
old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o);
|
|
8
|
+
var i = e[o];
|
|
9
|
+
if (void 0 !== i) if (1 === t) {
|
|
10
|
+
var n = i["public"];
|
|
11
|
+
if (void 0 !== n) return n[a];
|
|
12
|
+
} else if (2 === t) {
|
|
13
|
+
var l = i["private"];
|
|
14
|
+
if (void 0 !== l) return l.get(a);
|
|
15
|
+
} else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor;
|
|
16
|
+
},
|
|
17
|
+
setMetadata: function setMetadata(o, i) {
|
|
18
|
+
old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o);
|
|
19
|
+
var n = e[o];
|
|
20
|
+
if (void 0 === n && (n = e[o] = {}), 1 === t) {
|
|
21
|
+
var l = n["public"];
|
|
22
|
+
void 0 === l && (l = n["public"] = {}), l[a] = i;
|
|
23
|
+
} else if (2 === t) {
|
|
24
|
+
var s = n.priv;
|
|
25
|
+
void 0 === s && (s = n["private"] = new Map()), s.set(a, i);
|
|
26
|
+
} else n.constructor = i;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function old_convertMetadataMapToFinal(e, t) {
|
|
31
|
+
var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
|
|
32
|
+
r = Object.getOwnPropertySymbols(t);
|
|
33
|
+
if (0 !== r.length) {
|
|
34
|
+
for (var o = 0; o < r.length; o++) {
|
|
35
|
+
var i = r[o],
|
|
36
|
+
n = t[i],
|
|
37
|
+
l = a ? a[i] : null,
|
|
38
|
+
s = n["public"],
|
|
39
|
+
c = l ? l["public"] : null;
|
|
40
|
+
s && c && Object.setPrototypeOf(s, c);
|
|
41
|
+
var d = n["private"];
|
|
42
|
+
if (d) {
|
|
43
|
+
var u = Array.from(d.values()),
|
|
44
|
+
f = l ? l["private"] : null;
|
|
45
|
+
f && (u = u.concat(f)), n["private"] = u;
|
|
46
|
+
}
|
|
47
|
+
l && Object.setPrototypeOf(n, l);
|
|
48
|
+
}
|
|
49
|
+
a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function old_createAddInitializerMethod(e, t) {
|
|
53
|
+
return function (a) {
|
|
54
|
+
old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function old_memberDec(e, t, a, r, o, i, n, l, s) {
|
|
58
|
+
var c;
|
|
59
|
+
switch (i) {
|
|
60
|
+
case 1:
|
|
61
|
+
c = "accessor";
|
|
62
|
+
break;
|
|
63
|
+
case 2:
|
|
64
|
+
c = "method";
|
|
65
|
+
break;
|
|
66
|
+
case 3:
|
|
67
|
+
c = "getter";
|
|
68
|
+
break;
|
|
69
|
+
case 4:
|
|
70
|
+
c = "setter";
|
|
71
|
+
break;
|
|
72
|
+
default:
|
|
73
|
+
c = "field";
|
|
74
|
+
}
|
|
75
|
+
var d,
|
|
76
|
+
u,
|
|
77
|
+
f = {
|
|
78
|
+
kind: c,
|
|
79
|
+
name: l ? "#" + t : toPropertyKey(t),
|
|
80
|
+
isStatic: n,
|
|
81
|
+
isPrivate: l
|
|
82
|
+
},
|
|
83
|
+
p = {
|
|
84
|
+
v: !1
|
|
85
|
+
};
|
|
86
|
+
if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) {
|
|
87
|
+
d = 2, u = Symbol(t);
|
|
88
|
+
var v = {};
|
|
89
|
+
0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () {
|
|
90
|
+
return a.value;
|
|
91
|
+
} : (1 !== i && 3 !== i || (v.get = function () {
|
|
92
|
+
return a.get.call(this);
|
|
93
|
+
}), 1 !== i && 4 !== i || (v.set = function (e) {
|
|
94
|
+
a.set.call(this, e);
|
|
95
|
+
})), f.access = v;
|
|
96
|
+
} else d = 1, u = t;
|
|
97
|
+
try {
|
|
98
|
+
return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p)));
|
|
99
|
+
} finally {
|
|
100
|
+
p.v = !0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function old_assertNotFinished(e, t) {
|
|
104
|
+
if (e.v) throw Error("attempted to call " + t + " after decoration was finished");
|
|
105
|
+
}
|
|
106
|
+
function old_assertMetadataKey(e) {
|
|
107
|
+
if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e);
|
|
108
|
+
}
|
|
109
|
+
function old_assertCallable(e, t) {
|
|
110
|
+
if ("function" != typeof e) throw new TypeError(t + " must be a function");
|
|
111
|
+
}
|
|
112
|
+
function old_assertValidReturnValue(e, t) {
|
|
113
|
+
var a = _typeof(t);
|
|
114
|
+
if (1 === e) {
|
|
115
|
+
if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
116
|
+
void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer");
|
|
117
|
+
} else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0");
|
|
118
|
+
}
|
|
119
|
+
function old_getInit(e) {
|
|
120
|
+
var t;
|
|
121
|
+
return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t;
|
|
122
|
+
}
|
|
123
|
+
function old_applyMemberDec(e, t, a, r, o, i, n, l, s) {
|
|
124
|
+
var c,
|
|
125
|
+
d,
|
|
126
|
+
u,
|
|
127
|
+
f,
|
|
128
|
+
p,
|
|
129
|
+
v,
|
|
130
|
+
y,
|
|
131
|
+
h = a[0];
|
|
132
|
+
if (n ? (0 === o || 1 === o ? (c = {
|
|
133
|
+
get: a[3],
|
|
134
|
+
set: a[4]
|
|
135
|
+
}, u = "get") : 3 === o ? (c = {
|
|
136
|
+
get: a[3]
|
|
137
|
+
}, u = "get") : 4 === o ? (c = {
|
|
138
|
+
set: a[3]
|
|
139
|
+
}, u = "set") : c = {
|
|
140
|
+
value: a[3]
|
|
141
|
+
}, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = {
|
|
142
|
+
get: c.get,
|
|
143
|
+
set: c.set
|
|
144
|
+
} : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = {
|
|
145
|
+
get: v,
|
|
146
|
+
set: y
|
|
147
|
+
}) : f = p);else for (var m = h.length - 1; m >= 0; m--) {
|
|
148
|
+
var b;
|
|
149
|
+
void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = {
|
|
150
|
+
get: v,
|
|
151
|
+
set: y
|
|
152
|
+
}) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b)));
|
|
153
|
+
}
|
|
154
|
+
if (0 === o || 1 === o) {
|
|
155
|
+
if (void 0 === d) d = function d(e, t) {
|
|
156
|
+
return t;
|
|
157
|
+
};else if ("function" != typeof d) {
|
|
158
|
+
var g = d;
|
|
159
|
+
d = function d(e, t) {
|
|
160
|
+
for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a);
|
|
161
|
+
return a;
|
|
162
|
+
};
|
|
163
|
+
} else {
|
|
164
|
+
var _ = d;
|
|
165
|
+
d = function d(e, t) {
|
|
166
|
+
return _.call(e, t);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
e.push(d);
|
|
170
|
+
}
|
|
171
|
+
0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) {
|
|
172
|
+
return f.get.call(e, t);
|
|
173
|
+
}), e.push(function (e, t) {
|
|
174
|
+
return f.set.call(e, t);
|
|
175
|
+
})) : 2 === o ? e.push(f) : e.push(function (e, t) {
|
|
176
|
+
return f.call(e, t);
|
|
177
|
+
}) : Object.defineProperty(t, r, c));
|
|
178
|
+
}
|
|
179
|
+
function old_applyMemberDecs(e, t, a, r, o) {
|
|
180
|
+
for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) {
|
|
181
|
+
var d = o[c];
|
|
182
|
+
if (Array.isArray(d)) {
|
|
183
|
+
var u,
|
|
184
|
+
f,
|
|
185
|
+
p,
|
|
186
|
+
v = d[1],
|
|
187
|
+
y = d[2],
|
|
188
|
+
h = d.length > 3,
|
|
189
|
+
m = v >= 5;
|
|
190
|
+
if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) {
|
|
191
|
+
var b = m ? s : l,
|
|
192
|
+
g = b.get(y) || 0;
|
|
193
|
+
if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y);
|
|
194
|
+
!g && v > 2 ? b.set(y, v) : b.set(y, !0);
|
|
195
|
+
}
|
|
196
|
+
old_applyMemberDec(e, u, d, y, v, m, h, f, p);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
old_pushInitializers(e, i), old_pushInitializers(e, n);
|
|
200
|
+
}
|
|
201
|
+
function old_pushInitializers(e, t) {
|
|
202
|
+
t && e.push(function (e) {
|
|
203
|
+
for (var a = 0; a < t.length; a++) t[a].call(e);
|
|
204
|
+
return e;
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function old_applyClassDecs(e, t, a, r) {
|
|
208
|
+
if (r.length > 0) {
|
|
209
|
+
for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) {
|
|
210
|
+
var s = {
|
|
211
|
+
v: !1
|
|
212
|
+
};
|
|
213
|
+
try {
|
|
214
|
+
var c = Object.assign({
|
|
215
|
+
kind: "class",
|
|
216
|
+
name: n,
|
|
217
|
+
addInitializer: old_createAddInitializerMethod(o, s)
|
|
218
|
+
}, old_createMetadataMethodsForProperty(a, 0, n, s)),
|
|
219
|
+
d = r[l](i, c);
|
|
220
|
+
} finally {
|
|
221
|
+
s.v = !0;
|
|
222
|
+
}
|
|
223
|
+
void 0 !== d && (old_assertValidReturnValue(10, d), i = d);
|
|
224
|
+
}
|
|
225
|
+
e.push(i, function () {
|
|
226
|
+
for (var e = 0; e < o.length; e++) o[e].call(i);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function applyDecs(e, t, a) {
|
|
231
|
+
var r = [],
|
|
232
|
+
o = {},
|
|
233
|
+
i = {};
|
|
234
|
+
return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r;
|
|
235
|
+
}
|
|
236
|
+
module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports;
|