@intlayer/core 8.1.4 → 8.1.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/cjs/index.cjs +1 -1
- package/dist/cjs/utils/generateKey.cjs +2 -0
- package/dist/cjs/utils/generateKey.cjs.map +1 -0
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/utils/generateKey.mjs +2 -0
- package/dist/esm/utils/generateKey.mjs.map +1 -0
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/generateKey.d.ts +5 -0
- package/dist/types/utils/generateKey.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +2 -1
- package/package.json +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getStorageAttributes.cjs`),t=require(`./interpreter/getCondition.cjs`),n=require(`./interpreter/getContent/deepTransform.cjs`),r=require(`./interpreter/getEnumeration.cjs`),i=require(`./interpreter/getDictionary.cjs`),a=require(`./interpreter/getIntlayer.cjs`),o=require(`./interpreter/getNesting.cjs`),s=require(`./interpreter/getTranslation.cjs`),c=require(`./interpreter/getContent/plugins.cjs`),l=require(`./interpreter/getContent/getContent.cjs`),u=require(`./interpreter/getHTML.cjs`),d=require(`./interpreter/splitAndJoinInsertion.cjs`),f=require(`./deepTransformPlugins/getFilteredLocalesContent.cjs`),ee=require(`./transpiler/condition/condition.cjs`),te=require(`./transpiler/enumeration/enumeration.cjs`),ne=require(`./transpiler/gender/gender.cjs`),re=require(`./transpiler/html/html.cjs`),ie=require(`./transpiler/html/htmlTags.cjs`),ae=require(`./transpiler/insertion/getInsertionValues.cjs`),oe=require(`./transpiler/insertion/insertion.cjs`),se=require(`./utils/parseYaml.cjs`),ce=require(`./transpiler/markdown/getMarkdownMetadata.cjs`),le=require(`./transpiler/markdown/markdown.cjs`),ue=require(`./transpiler/nesting/nesting.cjs`),p=require(`./transpiler/translation/translation.cjs`),m=require(`./deepTransformPlugins/getFilterMissingTranslationsContent.cjs`),h=require(`./deepTransformPlugins/getFilterTranslationsOnlyContent.cjs`),g=require(`./deepTransformPlugins/getLocalizedContent.cjs`),_=require(`./deepTransformPlugins/getMaskContent.cjs`),v=require(`./deepTransformPlugins/getMissingLocalesContent.cjs`),y=require(`./deepTransformPlugins/getMultilingualDictionary.cjs`),b=require(`./deepTransformPlugins/getReplacedValuesContent.cjs`),x=require(`./deepTransformPlugins/getSplittedContent.cjs`),S=require(`./deepTransformPlugins/insertContentInDictionary.cjs`),C=require(`./dictionaryManipulator/editDictionaryByKeyPath.cjs`),w=require(`./dictionaryManipulator/getContentNodeByKeyPath.cjs`),T=require(`./dictionaryManipulator/getDefaultNode.cjs`),E=require(`./dictionaryManipulator/getEmptyNode.cjs`),D=require(`./dictionaryManipulator/getNodeChildren.cjs`),O=require(`./utils/isValidReactElement.cjs`),k=require(`./dictionaryManipulator/getNodeType.cjs`),A=require(`./dictionaryManipulator/mergeDictionaries.cjs`),j=require(`./dictionaryManipulator/orderDictionaries.cjs`),M=require(`./dictionaryManipulator/normalizeDictionary.cjs`),N=require(`./dictionaryManipulator/removeContentNodeByKeyPath.cjs`),P=require(`./dictionaryManipulator/renameContentNodeByKeyPath.cjs`),F=require(`./dictionaryManipulator/updateNodeChildren.cjs`),I=require(`./utils/intl.cjs`),L=require(`./formatters/compact.cjs`),R=require(`./formatters/currency.cjs`),z=require(`./formatters/date.cjs`),de=require(`./formatters/list.cjs`),B=require(`./formatters/number.cjs`),V=require(`./formatters/percentage.cjs`),H=require(`./formatters/relativeTime.cjs`),fe=require(`./formatters/units.cjs`),pe=require(`./utils/getCookie.cjs`),U=require(`./utils/localeStorage.cjs`),me=require(`./localization/localeResolver.cjs`),he=require(`./localization/localeDetector.cjs`),W=require(`./localization/getBrowserLocale.cjs`),ge=require(`./localization/getHTMLTextDir.cjs`),_e=require(`./localization/getLocale.cjs`),ve=require(`./utils/checkIsURLAbsolute.cjs`),ye=require(`./localization/getLocaleFromPath.cjs`),be=require(`./localization/getLocaleLang.cjs`),xe=require(`./localization/getLocaleName.cjs`),Se=require(`./localization/getPathWithoutLocale.cjs`),Ce=require(`./localization/getPrefix.cjs`),G=require(`./localization/rewriteUtils.cjs`),we=require(`./localization/getLocalizedUrl.cjs`),Te=require(`./localization/getMultilingualUrls.cjs`),K=require(`./localization/localeMapper.cjs`),Ee=require(`./localization/validatePrefix.cjs`),q=require(`./markdown/constants.cjs`),J=require(`./markdown/utils.cjs`),De=require(`./markdown/parser.cjs`),Y=require(`./markdown/renderer.cjs`),X=require(`./markdown/compiler.cjs`),Z=require(`./messageFormat/ICU.cjs`),Q=require(`./messageFormat/i18next.cjs`),$=require(`./messageFormat/vue-i18n.cjs`),Oe=require(`./utils/isSameKeyPath.cjs`);exports.ATTRIBUTES_TO_SANITIZE=q.ATTRIBUTES_TO_SANITIZE,exports.ATTRIBUTE_TO_NODE_PROP_MAP=q.ATTRIBUTE_TO_NODE_PROP_MAP,exports.ATTR_EXTRACTOR_R=q.ATTR_EXTRACTOR_R,exports.BLOCKQUOTE_ALERT_R=q.BLOCKQUOTE_ALERT_R,exports.BLOCKQUOTE_R=q.BLOCKQUOTE_R,exports.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=q.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,exports.BLOCK_END_R=q.BLOCK_END_R,exports.BREAK_LINE_R=q.BREAK_LINE_R,exports.BREAK_THEMATIC_R=q.BREAK_THEMATIC_R,exports.CAPTURE_LETTER_AFTER_HYPHEN=q.CAPTURE_LETTER_AFTER_HYPHEN,exports.CODE_BLOCK_FENCED_R=q.CODE_BLOCK_FENCED_R,exports.CODE_BLOCK_R=q.CODE_BLOCK_R,exports.CODE_INLINE_R=q.CODE_INLINE_R,exports.CONSECUTIVE_NEWLINE_R=q.CONSECUTIVE_NEWLINE_R,exports.CR_NEWLINE_R=q.CR_NEWLINE_R,exports.CUSTOM_COMPONENT_R=q.CUSTOM_COMPONENT_R,exports.CachedIntl=I.CachedIntl,exports.Intl=I.CachedIntl,exports.DO_NOT_PROCESS_HTML_ELEMENTS=q.DO_NOT_PROCESS_HTML_ELEMENTS,exports.DURATION_DELAY_TRIGGER=q.DURATION_DELAY_TRIGGER,exports.FOOTNOTE_R=q.FOOTNOTE_R,exports.FOOTNOTE_REFERENCE_R=q.FOOTNOTE_REFERENCE_R,exports.FORMFEED_R=q.FORMFEED_R,exports.FRONT_MATTER_R=q.FRONT_MATTER_R,exports.GFM_TASK_R=q.GFM_TASK_R,exports.HEADING_ATX_COMPLIANT_R=q.HEADING_ATX_COMPLIANT_R,exports.HEADING_R=q.HEADING_R,exports.HEADING_SETEXT_R=q.HEADING_SETEXT_R,exports.HTML_BLOCK_ELEMENT_R=q.HTML_BLOCK_ELEMENT_R,exports.HTML_CHAR_CODE_R=q.HTML_CHAR_CODE_R,exports.HTML_COMMENT_R=q.HTML_COMMENT_R,exports.HTML_CUSTOM_ATTR_R=q.HTML_CUSTOM_ATTR_R,exports.HTML_LEFT_TRIM_AMOUNT_R=q.HTML_LEFT_TRIM_AMOUNT_R,exports.HTML_SELF_CLOSING_ELEMENT_R=q.HTML_SELF_CLOSING_ELEMENT_R,exports.HTML_TAGS=ie.HTML_TAGS,exports.INLINE_SKIP_R=q.INLINE_SKIP_R,exports.INTERPOLATION_R=q.INTERPOLATION_R,exports.LINK_AUTOLINK_BARE_URL_R=q.LINK_AUTOLINK_BARE_URL_R,exports.LINK_AUTOLINK_R=q.LINK_AUTOLINK_R,exports.LIST_LOOKBEHIND_R=q.LIST_LOOKBEHIND_R,exports.LOOKAHEAD=q.LOOKAHEAD,exports.LocaleStorage=U.LocaleStorage,exports.NAMED_CODES_TO_UNICODE=q.NAMED_CODES_TO_UNICODE,exports.NP_TABLE_R=q.NP_TABLE_R,exports.ORDERED=q.ORDERED,exports.ORDERED_LIST_BULLET=q.ORDERED_LIST_BULLET,exports.ORDERED_LIST_ITEM_PREFIX=q.ORDERED_LIST_ITEM_PREFIX,exports.ORDERED_LIST_ITEM_PREFIX_R=q.ORDERED_LIST_ITEM_PREFIX_R,exports.ORDERED_LIST_ITEM_R=q.ORDERED_LIST_ITEM_R,exports.ORDERED_LIST_R=q.ORDERED_LIST_R,exports.PARAGRAPH_R=q.PARAGRAPH_R,exports.Priority=q.Priority,exports.REFERENCE_IMAGE_OR_LINK=q.REFERENCE_IMAGE_OR_LINK,exports.REFERENCE_IMAGE_R=q.REFERENCE_IMAGE_R,exports.REFERENCE_LINK_R=q.REFERENCE_LINK_R,exports.RuleType=q.RuleType,exports.SHORTCODE_R=q.SHORTCODE_R,exports.SHOULD_RENDER_AS_BLOCK_R=q.SHOULD_RENDER_AS_BLOCK_R,exports.TABLE_CENTER_ALIGN=q.TABLE_CENTER_ALIGN,exports.TABLE_LEFT_ALIGN=q.TABLE_LEFT_ALIGN,exports.TABLE_RIGHT_ALIGN=q.TABLE_RIGHT_ALIGN,exports.TABLE_TRIM_PIPES=q.TABLE_TRIM_PIPES,exports.TAB_R=q.TAB_R,exports.TEXT_BOLD_R=q.TEXT_BOLD_R,exports.TEXT_EMPHASIZED_R=q.TEXT_EMPHASIZED_R,exports.TEXT_ESCAPED_R=q.TEXT_ESCAPED_R,exports.TEXT_MARKED_R=q.TEXT_MARKED_R,exports.TEXT_PLAIN_R=q.TEXT_PLAIN_R,exports.TEXT_STRIKETHROUGHED_R=q.TEXT_STRIKETHROUGHED_R,exports.TRIM_STARTING_NEWLINES=q.TRIM_STARTING_NEWLINES,exports.UNESCAPE_R=q.UNESCAPE_R,exports.UNORDERED=q.UNORDERED,exports.UNORDERED_LIST_BULLET=q.UNORDERED_LIST_BULLET,exports.UNORDERED_LIST_ITEM_PREFIX=q.UNORDERED_LIST_ITEM_PREFIX,exports.UNORDERED_LIST_ITEM_PREFIX_R=q.UNORDERED_LIST_ITEM_PREFIX_R,exports.UNORDERED_LIST_ITEM_R=q.UNORDERED_LIST_ITEM_R,exports.UNORDERED_LIST_R=q.UNORDERED_LIST_R,exports.allowInline=J.allowInline,exports.anyScopeRegex=J.anyScopeRegex,exports.attributeValueToNodePropValue=J.attributeValueToNodePropValue,exports.bindIntl=I.bindIntl,exports.blockRegex=J.blockRegex,exports.buildMaskPlugin=_.buildMaskPlugin,exports.captureNothing=J.captureNothing,exports.checkIsURLAbsolute=ve.checkIsURLAbsolute,exports.checkMissingLocalesPlugin=v.checkMissingLocalesPlugin,exports.compact=L.compact,exports.compile=X.compile,exports.compileWithOptions=X.compileWithOptions,exports.cond=ee.cond,exports.conditionPlugin=c.conditionPlugin,exports.createCachedIntl=I.createCachedIntl,exports.createCompiler=X.createCompiler,exports.createRenderer=Y.createRenderer,exports.currency=R.currency,exports.cx=J.cx,exports.date=z.date,exports.deepTransformNode=n.deepTransformNode,exports.editDictionaryByKeyPath=C.editDictionaryByKeyPath,exports.enu=te.enu,exports.enumerationPlugin=c.enumerationPlugin,exports.filePlugin=c.filePlugin,exports.filterMissingTranslationsOnlyPlugin=m.filterMissingTranslationsOnlyPlugin,exports.filterTranslationsOnlyPlugin=h.filterTranslationsOnlyPlugin,exports.findMatchingCondition=r.findMatchingCondition,exports.gender=ne.gender,exports.genderPlugin=c.genderPlugin,exports.generateListItemPrefix=q.generateListItemPrefix,exports.generateListItemPrefixRegex=q.generateListItemPrefixRegex,exports.generateListItemRegex=q.generateListItemRegex,exports.generateListRegex=q.generateListRegex,exports.get=J.get,exports.getBrowserLocale=W.getBrowserLocale,exports.getCanonicalPath=G.getCanonicalPath,exports.getCondition=t.getCondition,exports.getContent=l.getContent,exports.getContentNodeByKeyPath=w.getContentNodeByKeyPath,exports.getCookie=pe.getCookie,exports.getDefaultNode=T.getDefaultNode,exports.getDictionary=i.getDictionary,exports.getEmptyNode=E.getEmptyNode,exports.getEnumeration=r.getEnumeration,exports.getFilterMissingTranslationsContent=m.getFilterMissingTranslationsContent,exports.getFilterMissingTranslationsDictionary=m.getFilterMissingTranslationsDictionary,exports.getFilterTranslationsOnlyContent=h.getFilterTranslationsOnlyContent,exports.getFilterTranslationsOnlyDictionary=h.getFilterTranslationsOnlyDictionary,exports.getFilteredLocalesContent=f.getFilteredLocalesContent,exports.getFilteredLocalesDictionary=f.getFilteredLocalesDictionary,exports.getHTML=u.getHTML,exports.getHTMLTextDir=ge.getHTMLTextDir,exports.getInsertionValues=ae.getInsertionValues,exports.getInternalPath=G.getInternalPath,exports.getIntlayer=a.getIntlayer,exports.getLocale=_e.getLocale,exports.getLocaleFromPath=ye.getLocaleFromPath,exports.getLocaleFromStorage=U.getLocaleFromStorage,exports.getLocaleLang=be.getLocaleLang,exports.getLocaleName=xe.getLocaleName,exports.getLocalizedContent=g.getLocalizedContent,exports.getLocalizedPath=G.getLocalizedPath,exports.getLocalizedUrl=we.getLocalizedUrl,exports.getMarkdownMetadata=ce.getMarkdownMetadata,exports.getMaskContent=_.getMaskContent,exports.getMissingLocalesContent=v.getMissingLocalesContent,exports.getMissingLocalesContentFromDictionary=v.getMissingLocalesContentFromDictionary,exports.getMultilingualDictionary=y.getMultilingualDictionary,exports.getMultilingualUrls=Te.getMultilingualUrls,exports.getNesting=o.getNesting,exports.getNodeChildren=D.getNodeChildren,exports.getNodeType=k.getNodeType,exports.getPathWithoutLocale=Se.getPathWithoutLocale,exports.getPerLocaleDictionary=g.getPerLocaleDictionary,exports.getPrefix=Ce.getPrefix,exports.getReplacedValuesContent=b.getReplacedValuesContent,exports.getRewritePath=G.getRewritePath,exports.getRewriteRules=G.getRewriteRules,exports.getSplittedContent=x.getSplittedContent,exports.getSplittedDictionaryContent=x.getSplittedDictionaryContent,exports.getStorageAttributes=e.getStorageAttributes,exports.getTranslation=s.getTranslation,exports.html=re.html,exports.i18nextToIntlayerFormatter=Q.i18nextToIntlayerFormatter,exports.icuToIntlayerFormatter=Z.icuToIntlayerFormatter,exports.inlineRegex=J.inlineRegex,exports.insert=oe.insert,exports.insertContentInDictionary=S.insertContentInDictionary,exports.insertionPlugin=c.insertionPlugin,exports.intlayerToI18nextFormatter=Q.intlayerToI18nextFormatter,exports.intlayerToICUFormatter=Z.intlayerToICUFormatter,exports.intlayerToVueI18nFormatter=$.intlayerToVueI18nFormatter,exports.isSameKeyPath=Oe.isSameKeyPath,exports.isValidElement=O.isValidElement,exports.list=de.list,exports.localeDetector=he.localeDetector,exports.localeFlatMap=K.localeFlatMap,exports.localeMap=K.localeMap,exports.localeRecord=K.localeRecord,exports.localeResolver=me.localeResolver,exports.localeStorageOptions=W.localeStorageOptions,exports.md=le.md,exports.mergeDictionaries=A.mergeDictionaries,exports.nest=ue.nest,exports.nestedPlugin=c.nestedPlugin,exports.normalizeAttributeKey=J.normalizeAttributeKey,exports.normalizeDictionaries=M.normalizeDictionaries,exports.normalizeDictionary=M.normalizeDictionary,exports.normalizeWhitespace=J.normalizeWhitespace,exports.number=B.number,exports.orderDictionaries=j.orderDictionaries,exports.parseBlock=J.parseBlock,exports.parseCaptureInline=J.parseCaptureInline,exports.parseInline=J.parseInline,exports.parseSimpleInline=J.parseSimpleInline,exports.parseStyleAttribute=J.parseStyleAttribute,exports.parseTableAlign=J.parseTableAlign,exports.parseTableAlignCapture=J.parseTableAlignCapture,exports.parseTableCells=J.parseTableCells,exports.parseTableRow=J.parseTableRow,exports.parseYaml=se.parseYaml,exports.parserFor=De.parserFor,exports.percentage=V.percentage,exports.qualifies=J.qualifies,exports.relativeTime=H.relativeTime,exports.removeContentNodeByKeyPath=N.removeContentNodeByKeyPath,exports.renameContentNodeByKeyPath=P.renameContentNodeByKeyPath,exports.renderFor=Y.renderFor,exports.renderNothing=J.renderNothing,exports.sanitizer=J.sanitizer,exports.setLocaleInStorage=U.setLocaleInStorage,exports.simpleInlineRegex=J.simpleInlineRegex,exports.slugify=J.slugify,exports.some=J.some,exports.splitInsertionTemplate=d.splitInsertionTemplate,exports.startsWith=J.startsWith,exports.t=p.t,exports.translationPlugin=c.translationPlugin,exports.trimEnd=J.trimEnd,exports.trimLeadingWhitespaceOutsideFences=J.trimLeadingWhitespaceOutsideFences,exports.unescapeString=J.unescapeString,exports.units=fe.units,exports.unquote=J.unquote,exports.updateNodeChildren=F.updateNodeChildren,exports.validatePrefix=Ee.validatePrefix,exports.vueI18nToIntlayerFormatter=$.vueI18nToIntlayerFormatter;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getStorageAttributes.cjs`),t=require(`./interpreter/getCondition.cjs`),n=require(`./interpreter/getContent/deepTransform.cjs`),r=require(`./interpreter/getEnumeration.cjs`),i=require(`./interpreter/getDictionary.cjs`),a=require(`./interpreter/getIntlayer.cjs`),o=require(`./interpreter/getNesting.cjs`),s=require(`./interpreter/getTranslation.cjs`),c=require(`./interpreter/getContent/plugins.cjs`),l=require(`./interpreter/getContent/getContent.cjs`),u=require(`./interpreter/getHTML.cjs`),d=require(`./interpreter/splitAndJoinInsertion.cjs`),f=require(`./deepTransformPlugins/getFilteredLocalesContent.cjs`),ee=require(`./transpiler/condition/condition.cjs`),te=require(`./transpiler/enumeration/enumeration.cjs`),ne=require(`./transpiler/gender/gender.cjs`),re=require(`./transpiler/html/html.cjs`),ie=require(`./transpiler/html/htmlTags.cjs`),ae=require(`./transpiler/insertion/getInsertionValues.cjs`),oe=require(`./transpiler/insertion/insertion.cjs`),se=require(`./utils/parseYaml.cjs`),ce=require(`./transpiler/markdown/getMarkdownMetadata.cjs`),le=require(`./transpiler/markdown/markdown.cjs`),ue=require(`./transpiler/nesting/nesting.cjs`),p=require(`./transpiler/translation/translation.cjs`),m=require(`./deepTransformPlugins/getFilterMissingTranslationsContent.cjs`),h=require(`./deepTransformPlugins/getFilterTranslationsOnlyContent.cjs`),g=require(`./deepTransformPlugins/getLocalizedContent.cjs`),_=require(`./deepTransformPlugins/getMaskContent.cjs`),v=require(`./deepTransformPlugins/getMissingLocalesContent.cjs`),y=require(`./deepTransformPlugins/getMultilingualDictionary.cjs`),b=require(`./deepTransformPlugins/getReplacedValuesContent.cjs`),x=require(`./deepTransformPlugins/getSplittedContent.cjs`),S=require(`./deepTransformPlugins/insertContentInDictionary.cjs`),C=require(`./dictionaryManipulator/editDictionaryByKeyPath.cjs`),w=require(`./dictionaryManipulator/getContentNodeByKeyPath.cjs`),T=require(`./dictionaryManipulator/getDefaultNode.cjs`),E=require(`./dictionaryManipulator/getEmptyNode.cjs`),D=require(`./dictionaryManipulator/getNodeChildren.cjs`),O=require(`./utils/isValidReactElement.cjs`),k=require(`./dictionaryManipulator/getNodeType.cjs`),A=require(`./dictionaryManipulator/mergeDictionaries.cjs`),j=require(`./dictionaryManipulator/orderDictionaries.cjs`),M=require(`./dictionaryManipulator/normalizeDictionary.cjs`),N=require(`./dictionaryManipulator/removeContentNodeByKeyPath.cjs`),P=require(`./dictionaryManipulator/renameContentNodeByKeyPath.cjs`),F=require(`./dictionaryManipulator/updateNodeChildren.cjs`),I=require(`./utils/intl.cjs`),L=require(`./formatters/compact.cjs`),R=require(`./formatters/currency.cjs`),z=require(`./formatters/date.cjs`),de=require(`./formatters/list.cjs`),B=require(`./formatters/number.cjs`),V=require(`./formatters/percentage.cjs`),H=require(`./formatters/relativeTime.cjs`),fe=require(`./formatters/units.cjs`),pe=require(`./utils/getCookie.cjs`),U=require(`./utils/localeStorage.cjs`),me=require(`./localization/localeResolver.cjs`),he=require(`./localization/localeDetector.cjs`),W=require(`./localization/getBrowserLocale.cjs`),ge=require(`./localization/getHTMLTextDir.cjs`),_e=require(`./localization/getLocale.cjs`),ve=require(`./utils/checkIsURLAbsolute.cjs`),ye=require(`./localization/getLocaleFromPath.cjs`),be=require(`./localization/getLocaleLang.cjs`),xe=require(`./localization/getLocaleName.cjs`),Se=require(`./localization/getPathWithoutLocale.cjs`),Ce=require(`./localization/getPrefix.cjs`),G=require(`./localization/rewriteUtils.cjs`),we=require(`./localization/getLocalizedUrl.cjs`),Te=require(`./localization/getMultilingualUrls.cjs`),K=require(`./localization/localeMapper.cjs`),Ee=require(`./localization/validatePrefix.cjs`),q=require(`./markdown/constants.cjs`),J=require(`./markdown/utils.cjs`),De=require(`./markdown/parser.cjs`),Y=require(`./markdown/renderer.cjs`),X=require(`./markdown/compiler.cjs`),Z=require(`./messageFormat/ICU.cjs`),Q=require(`./messageFormat/i18next.cjs`),$=require(`./messageFormat/vue-i18n.cjs`),Oe=require(`./utils/generateKey.cjs`),ke=require(`./utils/isSameKeyPath.cjs`);exports.ATTRIBUTES_TO_SANITIZE=q.ATTRIBUTES_TO_SANITIZE,exports.ATTRIBUTE_TO_NODE_PROP_MAP=q.ATTRIBUTE_TO_NODE_PROP_MAP,exports.ATTR_EXTRACTOR_R=q.ATTR_EXTRACTOR_R,exports.BLOCKQUOTE_ALERT_R=q.BLOCKQUOTE_ALERT_R,exports.BLOCKQUOTE_R=q.BLOCKQUOTE_R,exports.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=q.BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,exports.BLOCK_END_R=q.BLOCK_END_R,exports.BREAK_LINE_R=q.BREAK_LINE_R,exports.BREAK_THEMATIC_R=q.BREAK_THEMATIC_R,exports.CAPTURE_LETTER_AFTER_HYPHEN=q.CAPTURE_LETTER_AFTER_HYPHEN,exports.CODE_BLOCK_FENCED_R=q.CODE_BLOCK_FENCED_R,exports.CODE_BLOCK_R=q.CODE_BLOCK_R,exports.CODE_INLINE_R=q.CODE_INLINE_R,exports.CONSECUTIVE_NEWLINE_R=q.CONSECUTIVE_NEWLINE_R,exports.CR_NEWLINE_R=q.CR_NEWLINE_R,exports.CUSTOM_COMPONENT_R=q.CUSTOM_COMPONENT_R,exports.CachedIntl=I.CachedIntl,exports.Intl=I.CachedIntl,exports.DO_NOT_PROCESS_HTML_ELEMENTS=q.DO_NOT_PROCESS_HTML_ELEMENTS,exports.DURATION_DELAY_TRIGGER=q.DURATION_DELAY_TRIGGER,exports.FOOTNOTE_R=q.FOOTNOTE_R,exports.FOOTNOTE_REFERENCE_R=q.FOOTNOTE_REFERENCE_R,exports.FORMFEED_R=q.FORMFEED_R,exports.FRONT_MATTER_R=q.FRONT_MATTER_R,exports.GFM_TASK_R=q.GFM_TASK_R,exports.HEADING_ATX_COMPLIANT_R=q.HEADING_ATX_COMPLIANT_R,exports.HEADING_R=q.HEADING_R,exports.HEADING_SETEXT_R=q.HEADING_SETEXT_R,exports.HTML_BLOCK_ELEMENT_R=q.HTML_BLOCK_ELEMENT_R,exports.HTML_CHAR_CODE_R=q.HTML_CHAR_CODE_R,exports.HTML_COMMENT_R=q.HTML_COMMENT_R,exports.HTML_CUSTOM_ATTR_R=q.HTML_CUSTOM_ATTR_R,exports.HTML_LEFT_TRIM_AMOUNT_R=q.HTML_LEFT_TRIM_AMOUNT_R,exports.HTML_SELF_CLOSING_ELEMENT_R=q.HTML_SELF_CLOSING_ELEMENT_R,exports.HTML_TAGS=ie.HTML_TAGS,exports.INLINE_SKIP_R=q.INLINE_SKIP_R,exports.INTERPOLATION_R=q.INTERPOLATION_R,exports.LINK_AUTOLINK_BARE_URL_R=q.LINK_AUTOLINK_BARE_URL_R,exports.LINK_AUTOLINK_R=q.LINK_AUTOLINK_R,exports.LIST_LOOKBEHIND_R=q.LIST_LOOKBEHIND_R,exports.LOOKAHEAD=q.LOOKAHEAD,exports.LocaleStorage=U.LocaleStorage,exports.NAMED_CODES_TO_UNICODE=q.NAMED_CODES_TO_UNICODE,exports.NP_TABLE_R=q.NP_TABLE_R,exports.ORDERED=q.ORDERED,exports.ORDERED_LIST_BULLET=q.ORDERED_LIST_BULLET,exports.ORDERED_LIST_ITEM_PREFIX=q.ORDERED_LIST_ITEM_PREFIX,exports.ORDERED_LIST_ITEM_PREFIX_R=q.ORDERED_LIST_ITEM_PREFIX_R,exports.ORDERED_LIST_ITEM_R=q.ORDERED_LIST_ITEM_R,exports.ORDERED_LIST_R=q.ORDERED_LIST_R,exports.PARAGRAPH_R=q.PARAGRAPH_R,exports.Priority=q.Priority,exports.REFERENCE_IMAGE_OR_LINK=q.REFERENCE_IMAGE_OR_LINK,exports.REFERENCE_IMAGE_R=q.REFERENCE_IMAGE_R,exports.REFERENCE_LINK_R=q.REFERENCE_LINK_R,exports.RuleType=q.RuleType,exports.SHORTCODE_R=q.SHORTCODE_R,exports.SHOULD_RENDER_AS_BLOCK_R=q.SHOULD_RENDER_AS_BLOCK_R,exports.TABLE_CENTER_ALIGN=q.TABLE_CENTER_ALIGN,exports.TABLE_LEFT_ALIGN=q.TABLE_LEFT_ALIGN,exports.TABLE_RIGHT_ALIGN=q.TABLE_RIGHT_ALIGN,exports.TABLE_TRIM_PIPES=q.TABLE_TRIM_PIPES,exports.TAB_R=q.TAB_R,exports.TEXT_BOLD_R=q.TEXT_BOLD_R,exports.TEXT_EMPHASIZED_R=q.TEXT_EMPHASIZED_R,exports.TEXT_ESCAPED_R=q.TEXT_ESCAPED_R,exports.TEXT_MARKED_R=q.TEXT_MARKED_R,exports.TEXT_PLAIN_R=q.TEXT_PLAIN_R,exports.TEXT_STRIKETHROUGHED_R=q.TEXT_STRIKETHROUGHED_R,exports.TRIM_STARTING_NEWLINES=q.TRIM_STARTING_NEWLINES,exports.UNESCAPE_R=q.UNESCAPE_R,exports.UNORDERED=q.UNORDERED,exports.UNORDERED_LIST_BULLET=q.UNORDERED_LIST_BULLET,exports.UNORDERED_LIST_ITEM_PREFIX=q.UNORDERED_LIST_ITEM_PREFIX,exports.UNORDERED_LIST_ITEM_PREFIX_R=q.UNORDERED_LIST_ITEM_PREFIX_R,exports.UNORDERED_LIST_ITEM_R=q.UNORDERED_LIST_ITEM_R,exports.UNORDERED_LIST_R=q.UNORDERED_LIST_R,exports.allowInline=J.allowInline,exports.anyScopeRegex=J.anyScopeRegex,exports.attributeValueToNodePropValue=J.attributeValueToNodePropValue,exports.bindIntl=I.bindIntl,exports.blockRegex=J.blockRegex,exports.buildMaskPlugin=_.buildMaskPlugin,exports.captureNothing=J.captureNothing,exports.checkIsURLAbsolute=ve.checkIsURLAbsolute,exports.checkMissingLocalesPlugin=v.checkMissingLocalesPlugin,exports.compact=L.compact,exports.compile=X.compile,exports.compileWithOptions=X.compileWithOptions,exports.cond=ee.cond,exports.conditionPlugin=c.conditionPlugin,exports.createCachedIntl=I.createCachedIntl,exports.createCompiler=X.createCompiler,exports.createRenderer=Y.createRenderer,exports.currency=R.currency,exports.cx=J.cx,exports.date=z.date,exports.deepTransformNode=n.deepTransformNode,exports.editDictionaryByKeyPath=C.editDictionaryByKeyPath,exports.enu=te.enu,exports.enumerationPlugin=c.enumerationPlugin,exports.filePlugin=c.filePlugin,exports.filterMissingTranslationsOnlyPlugin=m.filterMissingTranslationsOnlyPlugin,exports.filterTranslationsOnlyPlugin=h.filterTranslationsOnlyPlugin,exports.findMatchingCondition=r.findMatchingCondition,exports.gender=ne.gender,exports.genderPlugin=c.genderPlugin,exports.generateKey=Oe.generateKey,exports.generateListItemPrefix=q.generateListItemPrefix,exports.generateListItemPrefixRegex=q.generateListItemPrefixRegex,exports.generateListItemRegex=q.generateListItemRegex,exports.generateListRegex=q.generateListRegex,exports.get=J.get,exports.getBrowserLocale=W.getBrowserLocale,exports.getCanonicalPath=G.getCanonicalPath,exports.getCondition=t.getCondition,exports.getContent=l.getContent,exports.getContentNodeByKeyPath=w.getContentNodeByKeyPath,exports.getCookie=pe.getCookie,exports.getDefaultNode=T.getDefaultNode,exports.getDictionary=i.getDictionary,exports.getEmptyNode=E.getEmptyNode,exports.getEnumeration=r.getEnumeration,exports.getFilterMissingTranslationsContent=m.getFilterMissingTranslationsContent,exports.getFilterMissingTranslationsDictionary=m.getFilterMissingTranslationsDictionary,exports.getFilterTranslationsOnlyContent=h.getFilterTranslationsOnlyContent,exports.getFilterTranslationsOnlyDictionary=h.getFilterTranslationsOnlyDictionary,exports.getFilteredLocalesContent=f.getFilteredLocalesContent,exports.getFilteredLocalesDictionary=f.getFilteredLocalesDictionary,exports.getHTML=u.getHTML,exports.getHTMLTextDir=ge.getHTMLTextDir,exports.getInsertionValues=ae.getInsertionValues,exports.getInternalPath=G.getInternalPath,exports.getIntlayer=a.getIntlayer,exports.getLocale=_e.getLocale,exports.getLocaleFromPath=ye.getLocaleFromPath,exports.getLocaleFromStorage=U.getLocaleFromStorage,exports.getLocaleLang=be.getLocaleLang,exports.getLocaleName=xe.getLocaleName,exports.getLocalizedContent=g.getLocalizedContent,exports.getLocalizedPath=G.getLocalizedPath,exports.getLocalizedUrl=we.getLocalizedUrl,exports.getMarkdownMetadata=ce.getMarkdownMetadata,exports.getMaskContent=_.getMaskContent,exports.getMissingLocalesContent=v.getMissingLocalesContent,exports.getMissingLocalesContentFromDictionary=v.getMissingLocalesContentFromDictionary,exports.getMultilingualDictionary=y.getMultilingualDictionary,exports.getMultilingualUrls=Te.getMultilingualUrls,exports.getNesting=o.getNesting,exports.getNodeChildren=D.getNodeChildren,exports.getNodeType=k.getNodeType,exports.getPathWithoutLocale=Se.getPathWithoutLocale,exports.getPerLocaleDictionary=g.getPerLocaleDictionary,exports.getPrefix=Ce.getPrefix,exports.getReplacedValuesContent=b.getReplacedValuesContent,exports.getRewritePath=G.getRewritePath,exports.getRewriteRules=G.getRewriteRules,exports.getSplittedContent=x.getSplittedContent,exports.getSplittedDictionaryContent=x.getSplittedDictionaryContent,exports.getStorageAttributes=e.getStorageAttributes,exports.getTranslation=s.getTranslation,exports.html=re.html,exports.i18nextToIntlayerFormatter=Q.i18nextToIntlayerFormatter,exports.icuToIntlayerFormatter=Z.icuToIntlayerFormatter,exports.inlineRegex=J.inlineRegex,exports.insert=oe.insert,exports.insertContentInDictionary=S.insertContentInDictionary,exports.insertionPlugin=c.insertionPlugin,exports.intlayerToI18nextFormatter=Q.intlayerToI18nextFormatter,exports.intlayerToICUFormatter=Z.intlayerToICUFormatter,exports.intlayerToVueI18nFormatter=$.intlayerToVueI18nFormatter,exports.isSameKeyPath=ke.isSameKeyPath,exports.isValidElement=O.isValidElement,exports.list=de.list,exports.localeDetector=he.localeDetector,exports.localeFlatMap=K.localeFlatMap,exports.localeMap=K.localeMap,exports.localeRecord=K.localeRecord,exports.localeResolver=me.localeResolver,exports.localeStorageOptions=W.localeStorageOptions,exports.md=le.md,exports.mergeDictionaries=A.mergeDictionaries,exports.nest=ue.nest,exports.nestedPlugin=c.nestedPlugin,exports.normalizeAttributeKey=J.normalizeAttributeKey,exports.normalizeDictionaries=M.normalizeDictionaries,exports.normalizeDictionary=M.normalizeDictionary,exports.normalizeWhitespace=J.normalizeWhitespace,exports.number=B.number,exports.orderDictionaries=j.orderDictionaries,exports.parseBlock=J.parseBlock,exports.parseCaptureInline=J.parseCaptureInline,exports.parseInline=J.parseInline,exports.parseSimpleInline=J.parseSimpleInline,exports.parseStyleAttribute=J.parseStyleAttribute,exports.parseTableAlign=J.parseTableAlign,exports.parseTableAlignCapture=J.parseTableAlignCapture,exports.parseTableCells=J.parseTableCells,exports.parseTableRow=J.parseTableRow,exports.parseYaml=se.parseYaml,exports.parserFor=De.parserFor,exports.percentage=V.percentage,exports.qualifies=J.qualifies,exports.relativeTime=H.relativeTime,exports.removeContentNodeByKeyPath=N.removeContentNodeByKeyPath,exports.renameContentNodeByKeyPath=P.renameContentNodeByKeyPath,exports.renderFor=Y.renderFor,exports.renderNothing=J.renderNothing,exports.sanitizer=J.sanitizer,exports.setLocaleInStorage=U.setLocaleInStorage,exports.simpleInlineRegex=J.simpleInlineRegex,exports.slugify=J.slugify,exports.some=J.some,exports.splitInsertionTemplate=d.splitInsertionTemplate,exports.startsWith=J.startsWith,exports.t=p.t,exports.translationPlugin=c.translationPlugin,exports.trimEnd=J.trimEnd,exports.trimLeadingWhitespaceOutsideFences=J.trimLeadingWhitespaceOutsideFences,exports.unescapeString=J.unescapeString,exports.units=fe.units,exports.unquote=J.unquote,exports.updateNodeChildren=F.updateNodeChildren,exports.validatePrefix=Ee.validatePrefix,exports.vueI18nToIntlayerFormatter=$.vueI18nToIntlayerFormatter;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=(e,t)=>{let n=e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[\s_-]+/g,` `).replace(/[^\p{L}\p{N} ]/gu,``).trim().split(` `).filter(Boolean).slice(0,5).map((e,t)=>t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(``);if(n||=`content`,t.has(n)){let e=1;for(;t.has(`${n}${e}`);)e++;n=`${n}${e}`}return n};exports.generateKey=e;
|
|
2
|
+
//# sourceMappingURL=generateKey.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateKey.cjs","names":[],"sources":["../../../src/utils/generateKey.ts"],"sourcesContent":["export const generateKey = (\n text: string,\n existingKeys: Set<string>\n): string => {\n const maxWords = 5;\n let key = text\n .normalize('NFD') // Normalize to decomposes combined characters (e.g., é -> e + ´)\n .replace(/[\\u0300-\\u036f]/g, '') // Remove the accent characters\n .replace(/[\\s_-]+/g, ' ')\n .replace(/[^\\p{L}\\p{N} ]/gu, '')\n .trim()\n .split(' ')\n .filter(Boolean)\n .slice(0, maxWords)\n .map((word, index) =>\n index === 0\n ? word.toLowerCase()\n : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()\n )\n .join('');\n\n if (!key) key = 'content';\n if (existingKeys.has(key)) {\n let i = 1;\n while (existingKeys.has(`${key}${i}`)) i++;\n key = `${key}${i}`;\n }\n return key;\n};\n"],"mappings":"mEAAA,MAAa,GACX,EACA,IACW,CAEX,IAAI,EAAM,EACP,UAAU,MAAM,CAChB,QAAQ,mBAAoB,GAAG,CAC/B,QAAQ,WAAY,IAAI,CACxB,QAAQ,mBAAoB,GAAG,CAC/B,MAAM,CACN,MAAM,IAAI,CACV,OAAO,QAAQ,CACf,MAAM,EATQ,EASI,CAClB,KAAK,EAAM,IACV,IAAU,EACN,EAAK,aAAa,CAClB,EAAK,OAAO,EAAE,CAAC,aAAa,CAAG,EAAK,MAAM,EAAE,CAAC,aAAa,CAC/D,CACA,KAAK,GAAG,CAGX,GADA,AAAU,IAAM,UACZ,EAAa,IAAI,EAAI,CAAE,CACzB,IAAI,EAAI,EACR,KAAO,EAAa,IAAI,GAAG,IAAM,IAAI,EAAE,IACvC,EAAM,GAAG,IAAM,IAEjB,OAAO"}
|
package/dist/cjs/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./parseYaml.cjs`),t=require(`./isValidReactElement.cjs`),n=require(`./intl.cjs`),r=require(`./getCookie.cjs`),i=require(`./localeStorage.cjs`),a=require(`./checkIsURLAbsolute.cjs`),o=require(`./isSameKeyPath.cjs`);exports.CachedIntl=n.CachedIntl,exports.Intl=n.CachedIntl,exports.LocaleStorage=i.LocaleStorage,exports.bindIntl=n.bindIntl,exports.checkIsURLAbsolute=a.checkIsURLAbsolute,exports.createCachedIntl=n.createCachedIntl,exports.getCookie=r.getCookie,exports.getLocaleFromStorage=i.getLocaleFromStorage,exports.isSameKeyPath=
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./parseYaml.cjs`),t=require(`./isValidReactElement.cjs`),n=require(`./intl.cjs`),r=require(`./getCookie.cjs`),i=require(`./localeStorage.cjs`),a=require(`./checkIsURLAbsolute.cjs`),o=require(`./generateKey.cjs`),s=require(`./isSameKeyPath.cjs`);exports.CachedIntl=n.CachedIntl,exports.Intl=n.CachedIntl,exports.LocaleStorage=i.LocaleStorage,exports.bindIntl=n.bindIntl,exports.checkIsURLAbsolute=a.checkIsURLAbsolute,exports.createCachedIntl=n.createCachedIntl,exports.generateKey=o.generateKey,exports.getCookie=r.getCookie,exports.getLocaleFromStorage=i.getLocaleFromStorage,exports.isSameKeyPath=s.isSameKeyPath,exports.isValidElement=t.isValidElement,exports.parseYaml=e.parseYaml,exports.setLocaleInStorage=i.setLocaleInStorage;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getStorageAttributes as ee}from"./getStorageAttributes.mjs";import{getCondition as te}from"./interpreter/getCondition.mjs";import{deepTransformNode as ne}from"./interpreter/getContent/deepTransform.mjs";import{findMatchingCondition as e,getEnumeration as t}from"./interpreter/getEnumeration.mjs";import{getDictionary as n}from"./interpreter/getDictionary.mjs";import{getIntlayer as r}from"./interpreter/getIntlayer.mjs";import{getNesting as i}from"./interpreter/getNesting.mjs";import{getTranslation as a}from"./interpreter/getTranslation.mjs";import{conditionPlugin as o,enumerationPlugin as s,filePlugin as c,genderPlugin as l,insertionPlugin as u,nestedPlugin as d,translationPlugin as f}from"./interpreter/getContent/plugins.mjs";import{getContent as p}from"./interpreter/getContent/getContent.mjs";import{getHTML as m}from"./interpreter/getHTML.mjs";import{splitInsertionTemplate as h}from"./interpreter/splitAndJoinInsertion.mjs";import{getFilteredLocalesContent as g,getFilteredLocalesDictionary as _}from"./deepTransformPlugins/getFilteredLocalesContent.mjs";import{cond as v}from"./transpiler/condition/condition.mjs";import{enu as y}from"./transpiler/enumeration/enumeration.mjs";import{gender as b}from"./transpiler/gender/gender.mjs";import{html as x}from"./transpiler/html/html.mjs";import{HTML_TAGS as S}from"./transpiler/html/htmlTags.mjs";import{getInsertionValues as C}from"./transpiler/insertion/getInsertionValues.mjs";import{insert as w}from"./transpiler/insertion/insertion.mjs";import{parseYaml as T}from"./utils/parseYaml.mjs";import{getMarkdownMetadata as E}from"./transpiler/markdown/getMarkdownMetadata.mjs";import{md as D}from"./transpiler/markdown/markdown.mjs";import{nest as O}from"./transpiler/nesting/nesting.mjs";import{t as k}from"./transpiler/translation/translation.mjs";import{filterMissingTranslationsOnlyPlugin as A,getFilterMissingTranslationsContent as j,getFilterMissingTranslationsDictionary as M}from"./deepTransformPlugins/getFilterMissingTranslationsContent.mjs";import{filterTranslationsOnlyPlugin as N,getFilterTranslationsOnlyContent as P,getFilterTranslationsOnlyDictionary as F}from"./deepTransformPlugins/getFilterTranslationsOnlyContent.mjs";import{getLocalizedContent as I,getPerLocaleDictionary as L}from"./deepTransformPlugins/getLocalizedContent.mjs";import{buildMaskPlugin as R,getMaskContent as z}from"./deepTransformPlugins/getMaskContent.mjs";import{checkMissingLocalesPlugin as B,getMissingLocalesContent as V,getMissingLocalesContentFromDictionary as H}from"./deepTransformPlugins/getMissingLocalesContent.mjs";import{getMultilingualDictionary as U}from"./deepTransformPlugins/getMultilingualDictionary.mjs";import{getReplacedValuesContent as W}from"./deepTransformPlugins/getReplacedValuesContent.mjs";import{getSplittedContent as G,getSplittedDictionaryContent as K}from"./deepTransformPlugins/getSplittedContent.mjs";import{insertContentInDictionary as q}from"./deepTransformPlugins/insertContentInDictionary.mjs";import{editDictionaryByKeyPath as J}from"./dictionaryManipulator/editDictionaryByKeyPath.mjs";import{getContentNodeByKeyPath as Y}from"./dictionaryManipulator/getContentNodeByKeyPath.mjs";import{getDefaultNode as X}from"./dictionaryManipulator/getDefaultNode.mjs";import{getEmptyNode as Z}from"./dictionaryManipulator/getEmptyNode.mjs";import{getNodeChildren as re}from"./dictionaryManipulator/getNodeChildren.mjs";import{isValidElement as ie}from"./utils/isValidReactElement.mjs";import{getNodeType as ae}from"./dictionaryManipulator/getNodeType.mjs";import{mergeDictionaries as oe}from"./dictionaryManipulator/mergeDictionaries.mjs";import{orderDictionaries as se}from"./dictionaryManipulator/orderDictionaries.mjs";import{normalizeDictionaries as ce,normalizeDictionary as le}from"./dictionaryManipulator/normalizeDictionary.mjs";import{removeContentNodeByKeyPath as ue}from"./dictionaryManipulator/removeContentNodeByKeyPath.mjs";import{renameContentNodeByKeyPath as de}from"./dictionaryManipulator/renameContentNodeByKeyPath.mjs";import{updateNodeChildren as fe}from"./dictionaryManipulator/updateNodeChildren.mjs";import{CachedIntl as Q,bindIntl as pe,createCachedIntl as me}from"./utils/intl.mjs";import{compact as he}from"./formatters/compact.mjs";import{currency as ge}from"./formatters/currency.mjs";import{date as _e}from"./formatters/date.mjs";import{list as ve}from"./formatters/list.mjs";import{number as ye}from"./formatters/number.mjs";import{percentage as be}from"./formatters/percentage.mjs";import{relativeTime as xe}from"./formatters/relativeTime.mjs";import{units as Se}from"./formatters/units.mjs";import{getCookie as Ce}from"./utils/getCookie.mjs";import{LocaleStorage as we,getLocaleFromStorage as Te,setLocaleInStorage as Ee}from"./utils/localeStorage.mjs";import{localeResolver as De}from"./localization/localeResolver.mjs";import{localeDetector as Oe}from"./localization/localeDetector.mjs";import{getBrowserLocale as ke,localeStorageOptions as Ae}from"./localization/getBrowserLocale.mjs";import{getHTMLTextDir as je}from"./localization/getHTMLTextDir.mjs";import{getLocale as Me}from"./localization/getLocale.mjs";import{checkIsURLAbsolute as Ne}from"./utils/checkIsURLAbsolute.mjs";import{getLocaleFromPath as Pe}from"./localization/getLocaleFromPath.mjs";import{getLocaleLang as Fe}from"./localization/getLocaleLang.mjs";import{getLocaleName as Ie}from"./localization/getLocaleName.mjs";import{getPathWithoutLocale as Le}from"./localization/getPathWithoutLocale.mjs";import{getPrefix as Re}from"./localization/getPrefix.mjs";import{getCanonicalPath as ze,getInternalPath as Be,getLocalizedPath as Ve,getRewritePath as He,getRewriteRules as Ue}from"./localization/rewriteUtils.mjs";import{getLocalizedUrl as We}from"./localization/getLocalizedUrl.mjs";import{getMultilingualUrls as Ge}from"./localization/getMultilingualUrls.mjs";import{localeFlatMap as Ke,localeMap as qe,localeRecord as Je}from"./localization/localeMapper.mjs";import{validatePrefix as Ye}from"./localization/validatePrefix.mjs";import{ATTRIBUTES_TO_SANITIZE as Xe,ATTRIBUTE_TO_NODE_PROP_MAP as Ze,ATTR_EXTRACTOR_R as Qe,BLOCKQUOTE_ALERT_R as $e,BLOCKQUOTE_R as et,BLOCKQUOTE_TRIM_LEFT_MULTILINE_R as tt,BLOCK_END_R as nt,BREAK_LINE_R as rt,BREAK_THEMATIC_R as it,CAPTURE_LETTER_AFTER_HYPHEN as at,CODE_BLOCK_FENCED_R as ot,CODE_BLOCK_R as st,CODE_INLINE_R as ct,CONSECUTIVE_NEWLINE_R as lt,CR_NEWLINE_R as ut,CUSTOM_COMPONENT_R as dt,DO_NOT_PROCESS_HTML_ELEMENTS as ft,DURATION_DELAY_TRIGGER as $,FOOTNOTE_R as pt,FOOTNOTE_REFERENCE_R as mt,FORMFEED_R as ht,FRONT_MATTER_R as gt,GFM_TASK_R as _t,HEADING_ATX_COMPLIANT_R as vt,HEADING_R as yt,HEADING_SETEXT_R as bt,HTML_BLOCK_ELEMENT_R as xt,HTML_CHAR_CODE_R as St,HTML_COMMENT_R as Ct,HTML_CUSTOM_ATTR_R as wt,HTML_LEFT_TRIM_AMOUNT_R as Tt,HTML_SELF_CLOSING_ELEMENT_R as Et,INLINE_SKIP_R as Dt,INTERPOLATION_R as Ot,LINK_AUTOLINK_BARE_URL_R as kt,LINK_AUTOLINK_R as At,LIST_LOOKBEHIND_R as jt,LOOKAHEAD as Mt,NAMED_CODES_TO_UNICODE as Nt,NP_TABLE_R as Pt,ORDERED as Ft,ORDERED_LIST_BULLET as It,ORDERED_LIST_ITEM_PREFIX as Lt,ORDERED_LIST_ITEM_PREFIX_R as Rt,ORDERED_LIST_ITEM_R as zt,ORDERED_LIST_R as Bt,PARAGRAPH_R as Vt,Priority as Ht,REFERENCE_IMAGE_OR_LINK as Ut,REFERENCE_IMAGE_R as Wt,REFERENCE_LINK_R as Gt,RuleType as Kt,SHORTCODE_R as qt,SHOULD_RENDER_AS_BLOCK_R as Jt,TABLE_CENTER_ALIGN as Yt,TABLE_LEFT_ALIGN as Xt,TABLE_RIGHT_ALIGN as Zt,TABLE_TRIM_PIPES as Qt,TAB_R as $t,TEXT_BOLD_R as en,TEXT_EMPHASIZED_R as tn,TEXT_ESCAPED_R as nn,TEXT_MARKED_R as rn,TEXT_PLAIN_R as an,TEXT_STRIKETHROUGHED_R as on,TRIM_STARTING_NEWLINES as sn,UNESCAPE_R as cn,UNORDERED as ln,UNORDERED_LIST_BULLET as un,UNORDERED_LIST_ITEM_PREFIX as dn,UNORDERED_LIST_ITEM_PREFIX_R as fn,UNORDERED_LIST_ITEM_R as pn,UNORDERED_LIST_R as mn,generateListItemPrefix as hn,generateListItemPrefixRegex as gn,generateListItemRegex as _n,generateListRegex as vn}from"./markdown/constants.mjs";import{allowInline as yn,anyScopeRegex as bn,attributeValueToNodePropValue as xn,blockRegex as Sn,captureNothing as Cn,cx as wn,get as Tn,inlineRegex as En,normalizeAttributeKey as Dn,normalizeWhitespace as On,parseBlock as kn,parseCaptureInline as An,parseInline as jn,parseSimpleInline as Mn,parseStyleAttribute as Nn,parseTableAlign as Pn,parseTableAlignCapture as Fn,parseTableCells as In,parseTableRow as Ln,qualifies as Rn,renderNothing as zn,sanitizer as Bn,simpleInlineRegex as Vn,slugify as Hn,some as Un,startsWith as Wn,trimEnd as Gn,trimLeadingWhitespaceOutsideFences as Kn,unescapeString as qn,unquote as Jn}from"./markdown/utils.mjs";import{parserFor as Yn}from"./markdown/parser.mjs";import{createRenderer as Xn,renderFor as Zn}from"./markdown/renderer.mjs";import{compile as Qn,compileWithOptions as $n,createCompiler as er}from"./markdown/compiler.mjs";import{icuToIntlayerFormatter as tr,intlayerToICUFormatter as nr}from"./messageFormat/ICU.mjs";import{i18nextToIntlayerFormatter as rr,intlayerToI18nextFormatter as ir}from"./messageFormat/i18next.mjs";import{intlayerToVueI18nFormatter as ar,vueI18nToIntlayerFormatter as or}from"./messageFormat/vue-i18n.mjs";import{isSameKeyPath as sr}from"./utils/isSameKeyPath.mjs";export{Xe as ATTRIBUTES_TO_SANITIZE,Ze as ATTRIBUTE_TO_NODE_PROP_MAP,Qe as ATTR_EXTRACTOR_R,$e as BLOCKQUOTE_ALERT_R,et as BLOCKQUOTE_R,tt as BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,nt as BLOCK_END_R,rt as BREAK_LINE_R,it as BREAK_THEMATIC_R,at as CAPTURE_LETTER_AFTER_HYPHEN,ot as CODE_BLOCK_FENCED_R,st as CODE_BLOCK_R,ct as CODE_INLINE_R,lt as CONSECUTIVE_NEWLINE_R,ut as CR_NEWLINE_R,dt as CUSTOM_COMPONENT_R,Q as CachedIntl,Q as Intl,ft as DO_NOT_PROCESS_HTML_ELEMENTS,$ as DURATION_DELAY_TRIGGER,pt as FOOTNOTE_R,mt as FOOTNOTE_REFERENCE_R,ht as FORMFEED_R,gt as FRONT_MATTER_R,_t as GFM_TASK_R,vt as HEADING_ATX_COMPLIANT_R,yt as HEADING_R,bt as HEADING_SETEXT_R,xt as HTML_BLOCK_ELEMENT_R,St as HTML_CHAR_CODE_R,Ct as HTML_COMMENT_R,wt as HTML_CUSTOM_ATTR_R,Tt as HTML_LEFT_TRIM_AMOUNT_R,Et as HTML_SELF_CLOSING_ELEMENT_R,S as HTML_TAGS,Dt as INLINE_SKIP_R,Ot as INTERPOLATION_R,kt as LINK_AUTOLINK_BARE_URL_R,At as LINK_AUTOLINK_R,jt as LIST_LOOKBEHIND_R,Mt as LOOKAHEAD,we as LocaleStorage,Nt as NAMED_CODES_TO_UNICODE,Pt as NP_TABLE_R,Ft as ORDERED,It as ORDERED_LIST_BULLET,Lt as ORDERED_LIST_ITEM_PREFIX,Rt as ORDERED_LIST_ITEM_PREFIX_R,zt as ORDERED_LIST_ITEM_R,Bt as ORDERED_LIST_R,Vt as PARAGRAPH_R,Ht as Priority,Ut as REFERENCE_IMAGE_OR_LINK,Wt as REFERENCE_IMAGE_R,Gt as REFERENCE_LINK_R,Kt as RuleType,qt as SHORTCODE_R,Jt as SHOULD_RENDER_AS_BLOCK_R,Yt as TABLE_CENTER_ALIGN,Xt as TABLE_LEFT_ALIGN,Zt as TABLE_RIGHT_ALIGN,Qt as TABLE_TRIM_PIPES,$t as TAB_R,en as TEXT_BOLD_R,tn as TEXT_EMPHASIZED_R,nn as TEXT_ESCAPED_R,rn as TEXT_MARKED_R,an as TEXT_PLAIN_R,on as TEXT_STRIKETHROUGHED_R,sn as TRIM_STARTING_NEWLINES,cn as UNESCAPE_R,ln as UNORDERED,un as UNORDERED_LIST_BULLET,dn as UNORDERED_LIST_ITEM_PREFIX,fn as UNORDERED_LIST_ITEM_PREFIX_R,pn as UNORDERED_LIST_ITEM_R,mn as UNORDERED_LIST_R,yn as allowInline,bn as anyScopeRegex,xn as attributeValueToNodePropValue,pe as bindIntl,Sn as blockRegex,R as buildMaskPlugin,Cn as captureNothing,Ne as checkIsURLAbsolute,B as checkMissingLocalesPlugin,he as compact,Qn as compile,$n as compileWithOptions,v as cond,o as conditionPlugin,me as createCachedIntl,er as createCompiler,Xn as createRenderer,ge as currency,wn as cx,_e as date,ne as deepTransformNode,J as editDictionaryByKeyPath,y as enu,s as enumerationPlugin,c as filePlugin,A as filterMissingTranslationsOnlyPlugin,N as filterTranslationsOnlyPlugin,e as findMatchingCondition,b as gender,l as genderPlugin,hn as generateListItemPrefix,gn as generateListItemPrefixRegex,_n as generateListItemRegex,vn as generateListRegex,Tn as get,ke as getBrowserLocale,ze as getCanonicalPath,te as getCondition,p as getContent,Y as getContentNodeByKeyPath,Ce as getCookie,X as getDefaultNode,n as getDictionary,Z as getEmptyNode,t as getEnumeration,j as getFilterMissingTranslationsContent,M as getFilterMissingTranslationsDictionary,P as getFilterTranslationsOnlyContent,F as getFilterTranslationsOnlyDictionary,g as getFilteredLocalesContent,_ as getFilteredLocalesDictionary,m as getHTML,je as getHTMLTextDir,C as getInsertionValues,Be as getInternalPath,r as getIntlayer,Me as getLocale,Pe as getLocaleFromPath,Te as getLocaleFromStorage,Fe as getLocaleLang,Ie as getLocaleName,I as getLocalizedContent,Ve as getLocalizedPath,We as getLocalizedUrl,E as getMarkdownMetadata,z as getMaskContent,V as getMissingLocalesContent,H as getMissingLocalesContentFromDictionary,U as getMultilingualDictionary,Ge as getMultilingualUrls,i as getNesting,re as getNodeChildren,ae as getNodeType,Le as getPathWithoutLocale,L as getPerLocaleDictionary,Re as getPrefix,W as getReplacedValuesContent,He as getRewritePath,Ue as getRewriteRules,G as getSplittedContent,K as getSplittedDictionaryContent,ee as getStorageAttributes,a as getTranslation,x as html,rr as i18nextToIntlayerFormatter,tr as icuToIntlayerFormatter,En as inlineRegex,w as insert,q as insertContentInDictionary,u as insertionPlugin,ir as intlayerToI18nextFormatter,nr as intlayerToICUFormatter,ar as intlayerToVueI18nFormatter,sr as isSameKeyPath,ie as isValidElement,ve as list,Oe as localeDetector,Ke as localeFlatMap,qe as localeMap,Je as localeRecord,De as localeResolver,Ae as localeStorageOptions,D as md,oe as mergeDictionaries,O as nest,d as nestedPlugin,Dn as normalizeAttributeKey,ce as normalizeDictionaries,le as normalizeDictionary,On as normalizeWhitespace,ye as number,se as orderDictionaries,kn as parseBlock,An as parseCaptureInline,jn as parseInline,Mn as parseSimpleInline,Nn as parseStyleAttribute,Pn as parseTableAlign,Fn as parseTableAlignCapture,In as parseTableCells,Ln as parseTableRow,T as parseYaml,Yn as parserFor,be as percentage,Rn as qualifies,xe as relativeTime,ue as removeContentNodeByKeyPath,de as renameContentNodeByKeyPath,Zn as renderFor,zn as renderNothing,Bn as sanitizer,Ee as setLocaleInStorage,Vn as simpleInlineRegex,Hn as slugify,Un as some,h as splitInsertionTemplate,Wn as startsWith,k as t,f as translationPlugin,Gn as trimEnd,Kn as trimLeadingWhitespaceOutsideFences,qn as unescapeString,Se as units,Jn as unquote,fe as updateNodeChildren,Ye as validatePrefix,or as vueI18nToIntlayerFormatter};
|
|
1
|
+
import{getStorageAttributes as ee}from"./getStorageAttributes.mjs";import{getCondition as te}from"./interpreter/getCondition.mjs";import{deepTransformNode as ne}from"./interpreter/getContent/deepTransform.mjs";import{findMatchingCondition as e,getEnumeration as t}from"./interpreter/getEnumeration.mjs";import{getDictionary as n}from"./interpreter/getDictionary.mjs";import{getIntlayer as r}from"./interpreter/getIntlayer.mjs";import{getNesting as i}from"./interpreter/getNesting.mjs";import{getTranslation as a}from"./interpreter/getTranslation.mjs";import{conditionPlugin as o,enumerationPlugin as s,filePlugin as c,genderPlugin as l,insertionPlugin as u,nestedPlugin as d,translationPlugin as f}from"./interpreter/getContent/plugins.mjs";import{getContent as p}from"./interpreter/getContent/getContent.mjs";import{getHTML as m}from"./interpreter/getHTML.mjs";import{splitInsertionTemplate as h}from"./interpreter/splitAndJoinInsertion.mjs";import{getFilteredLocalesContent as g,getFilteredLocalesDictionary as _}from"./deepTransformPlugins/getFilteredLocalesContent.mjs";import{cond as v}from"./transpiler/condition/condition.mjs";import{enu as y}from"./transpiler/enumeration/enumeration.mjs";import{gender as b}from"./transpiler/gender/gender.mjs";import{html as x}from"./transpiler/html/html.mjs";import{HTML_TAGS as S}from"./transpiler/html/htmlTags.mjs";import{getInsertionValues as C}from"./transpiler/insertion/getInsertionValues.mjs";import{insert as w}from"./transpiler/insertion/insertion.mjs";import{parseYaml as T}from"./utils/parseYaml.mjs";import{getMarkdownMetadata as E}from"./transpiler/markdown/getMarkdownMetadata.mjs";import{md as D}from"./transpiler/markdown/markdown.mjs";import{nest as O}from"./transpiler/nesting/nesting.mjs";import{t as k}from"./transpiler/translation/translation.mjs";import{filterMissingTranslationsOnlyPlugin as A,getFilterMissingTranslationsContent as j,getFilterMissingTranslationsDictionary as M}from"./deepTransformPlugins/getFilterMissingTranslationsContent.mjs";import{filterTranslationsOnlyPlugin as N,getFilterTranslationsOnlyContent as P,getFilterTranslationsOnlyDictionary as F}from"./deepTransformPlugins/getFilterTranslationsOnlyContent.mjs";import{getLocalizedContent as I,getPerLocaleDictionary as L}from"./deepTransformPlugins/getLocalizedContent.mjs";import{buildMaskPlugin as R,getMaskContent as z}from"./deepTransformPlugins/getMaskContent.mjs";import{checkMissingLocalesPlugin as B,getMissingLocalesContent as V,getMissingLocalesContentFromDictionary as H}from"./deepTransformPlugins/getMissingLocalesContent.mjs";import{getMultilingualDictionary as U}from"./deepTransformPlugins/getMultilingualDictionary.mjs";import{getReplacedValuesContent as W}from"./deepTransformPlugins/getReplacedValuesContent.mjs";import{getSplittedContent as G,getSplittedDictionaryContent as K}from"./deepTransformPlugins/getSplittedContent.mjs";import{insertContentInDictionary as q}from"./deepTransformPlugins/insertContentInDictionary.mjs";import{editDictionaryByKeyPath as J}from"./dictionaryManipulator/editDictionaryByKeyPath.mjs";import{getContentNodeByKeyPath as Y}from"./dictionaryManipulator/getContentNodeByKeyPath.mjs";import{getDefaultNode as X}from"./dictionaryManipulator/getDefaultNode.mjs";import{getEmptyNode as Z}from"./dictionaryManipulator/getEmptyNode.mjs";import{getNodeChildren as re}from"./dictionaryManipulator/getNodeChildren.mjs";import{isValidElement as ie}from"./utils/isValidReactElement.mjs";import{getNodeType as ae}from"./dictionaryManipulator/getNodeType.mjs";import{mergeDictionaries as oe}from"./dictionaryManipulator/mergeDictionaries.mjs";import{orderDictionaries as se}from"./dictionaryManipulator/orderDictionaries.mjs";import{normalizeDictionaries as ce,normalizeDictionary as le}from"./dictionaryManipulator/normalizeDictionary.mjs";import{removeContentNodeByKeyPath as ue}from"./dictionaryManipulator/removeContentNodeByKeyPath.mjs";import{renameContentNodeByKeyPath as de}from"./dictionaryManipulator/renameContentNodeByKeyPath.mjs";import{updateNodeChildren as fe}from"./dictionaryManipulator/updateNodeChildren.mjs";import{CachedIntl as Q,bindIntl as pe,createCachedIntl as me}from"./utils/intl.mjs";import{compact as he}from"./formatters/compact.mjs";import{currency as ge}from"./formatters/currency.mjs";import{date as _e}from"./formatters/date.mjs";import{list as ve}from"./formatters/list.mjs";import{number as ye}from"./formatters/number.mjs";import{percentage as be}from"./formatters/percentage.mjs";import{relativeTime as xe}from"./formatters/relativeTime.mjs";import{units as Se}from"./formatters/units.mjs";import{getCookie as Ce}from"./utils/getCookie.mjs";import{LocaleStorage as we,getLocaleFromStorage as Te,setLocaleInStorage as Ee}from"./utils/localeStorage.mjs";import{localeResolver as De}from"./localization/localeResolver.mjs";import{localeDetector as Oe}from"./localization/localeDetector.mjs";import{getBrowserLocale as ke,localeStorageOptions as Ae}from"./localization/getBrowserLocale.mjs";import{getHTMLTextDir as je}from"./localization/getHTMLTextDir.mjs";import{getLocale as Me}from"./localization/getLocale.mjs";import{checkIsURLAbsolute as Ne}from"./utils/checkIsURLAbsolute.mjs";import{getLocaleFromPath as Pe}from"./localization/getLocaleFromPath.mjs";import{getLocaleLang as Fe}from"./localization/getLocaleLang.mjs";import{getLocaleName as Ie}from"./localization/getLocaleName.mjs";import{getPathWithoutLocale as Le}from"./localization/getPathWithoutLocale.mjs";import{getPrefix as Re}from"./localization/getPrefix.mjs";import{getCanonicalPath as ze,getInternalPath as Be,getLocalizedPath as Ve,getRewritePath as He,getRewriteRules as Ue}from"./localization/rewriteUtils.mjs";import{getLocalizedUrl as We}from"./localization/getLocalizedUrl.mjs";import{getMultilingualUrls as Ge}from"./localization/getMultilingualUrls.mjs";import{localeFlatMap as Ke,localeMap as qe,localeRecord as Je}from"./localization/localeMapper.mjs";import{validatePrefix as Ye}from"./localization/validatePrefix.mjs";import{ATTRIBUTES_TO_SANITIZE as Xe,ATTRIBUTE_TO_NODE_PROP_MAP as Ze,ATTR_EXTRACTOR_R as Qe,BLOCKQUOTE_ALERT_R as $e,BLOCKQUOTE_R as et,BLOCKQUOTE_TRIM_LEFT_MULTILINE_R as tt,BLOCK_END_R as nt,BREAK_LINE_R as rt,BREAK_THEMATIC_R as it,CAPTURE_LETTER_AFTER_HYPHEN as at,CODE_BLOCK_FENCED_R as ot,CODE_BLOCK_R as st,CODE_INLINE_R as ct,CONSECUTIVE_NEWLINE_R as lt,CR_NEWLINE_R as ut,CUSTOM_COMPONENT_R as dt,DO_NOT_PROCESS_HTML_ELEMENTS as ft,DURATION_DELAY_TRIGGER as pt,FOOTNOTE_R as mt,FOOTNOTE_REFERENCE_R as ht,FORMFEED_R as gt,FRONT_MATTER_R as $,GFM_TASK_R as _t,HEADING_ATX_COMPLIANT_R as vt,HEADING_R as yt,HEADING_SETEXT_R as bt,HTML_BLOCK_ELEMENT_R as xt,HTML_CHAR_CODE_R as St,HTML_COMMENT_R as Ct,HTML_CUSTOM_ATTR_R as wt,HTML_LEFT_TRIM_AMOUNT_R as Tt,HTML_SELF_CLOSING_ELEMENT_R as Et,INLINE_SKIP_R as Dt,INTERPOLATION_R as Ot,LINK_AUTOLINK_BARE_URL_R as kt,LINK_AUTOLINK_R as At,LIST_LOOKBEHIND_R as jt,LOOKAHEAD as Mt,NAMED_CODES_TO_UNICODE as Nt,NP_TABLE_R as Pt,ORDERED as Ft,ORDERED_LIST_BULLET as It,ORDERED_LIST_ITEM_PREFIX as Lt,ORDERED_LIST_ITEM_PREFIX_R as Rt,ORDERED_LIST_ITEM_R as zt,ORDERED_LIST_R as Bt,PARAGRAPH_R as Vt,Priority as Ht,REFERENCE_IMAGE_OR_LINK as Ut,REFERENCE_IMAGE_R as Wt,REFERENCE_LINK_R as Gt,RuleType as Kt,SHORTCODE_R as qt,SHOULD_RENDER_AS_BLOCK_R as Jt,TABLE_CENTER_ALIGN as Yt,TABLE_LEFT_ALIGN as Xt,TABLE_RIGHT_ALIGN as Zt,TABLE_TRIM_PIPES as Qt,TAB_R as $t,TEXT_BOLD_R as en,TEXT_EMPHASIZED_R as tn,TEXT_ESCAPED_R as nn,TEXT_MARKED_R as rn,TEXT_PLAIN_R as an,TEXT_STRIKETHROUGHED_R as on,TRIM_STARTING_NEWLINES as sn,UNESCAPE_R as cn,UNORDERED as ln,UNORDERED_LIST_BULLET as un,UNORDERED_LIST_ITEM_PREFIX as dn,UNORDERED_LIST_ITEM_PREFIX_R as fn,UNORDERED_LIST_ITEM_R as pn,UNORDERED_LIST_R as mn,generateListItemPrefix as hn,generateListItemPrefixRegex as gn,generateListItemRegex as _n,generateListRegex as vn}from"./markdown/constants.mjs";import{allowInline as yn,anyScopeRegex as bn,attributeValueToNodePropValue as xn,blockRegex as Sn,captureNothing as Cn,cx as wn,get as Tn,inlineRegex as En,normalizeAttributeKey as Dn,normalizeWhitespace as On,parseBlock as kn,parseCaptureInline as An,parseInline as jn,parseSimpleInline as Mn,parseStyleAttribute as Nn,parseTableAlign as Pn,parseTableAlignCapture as Fn,parseTableCells as In,parseTableRow as Ln,qualifies as Rn,renderNothing as zn,sanitizer as Bn,simpleInlineRegex as Vn,slugify as Hn,some as Un,startsWith as Wn,trimEnd as Gn,trimLeadingWhitespaceOutsideFences as Kn,unescapeString as qn,unquote as Jn}from"./markdown/utils.mjs";import{parserFor as Yn}from"./markdown/parser.mjs";import{createRenderer as Xn,renderFor as Zn}from"./markdown/renderer.mjs";import{compile as Qn,compileWithOptions as $n,createCompiler as er}from"./markdown/compiler.mjs";import{icuToIntlayerFormatter as tr,intlayerToICUFormatter as nr}from"./messageFormat/ICU.mjs";import{i18nextToIntlayerFormatter as rr,intlayerToI18nextFormatter as ir}from"./messageFormat/i18next.mjs";import{intlayerToVueI18nFormatter as ar,vueI18nToIntlayerFormatter as or}from"./messageFormat/vue-i18n.mjs";import{generateKey as sr}from"./utils/generateKey.mjs";import{isSameKeyPath as cr}from"./utils/isSameKeyPath.mjs";export{Xe as ATTRIBUTES_TO_SANITIZE,Ze as ATTRIBUTE_TO_NODE_PROP_MAP,Qe as ATTR_EXTRACTOR_R,$e as BLOCKQUOTE_ALERT_R,et as BLOCKQUOTE_R,tt as BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,nt as BLOCK_END_R,rt as BREAK_LINE_R,it as BREAK_THEMATIC_R,at as CAPTURE_LETTER_AFTER_HYPHEN,ot as CODE_BLOCK_FENCED_R,st as CODE_BLOCK_R,ct as CODE_INLINE_R,lt as CONSECUTIVE_NEWLINE_R,ut as CR_NEWLINE_R,dt as CUSTOM_COMPONENT_R,Q as CachedIntl,Q as Intl,ft as DO_NOT_PROCESS_HTML_ELEMENTS,pt as DURATION_DELAY_TRIGGER,mt as FOOTNOTE_R,ht as FOOTNOTE_REFERENCE_R,gt as FORMFEED_R,$ as FRONT_MATTER_R,_t as GFM_TASK_R,vt as HEADING_ATX_COMPLIANT_R,yt as HEADING_R,bt as HEADING_SETEXT_R,xt as HTML_BLOCK_ELEMENT_R,St as HTML_CHAR_CODE_R,Ct as HTML_COMMENT_R,wt as HTML_CUSTOM_ATTR_R,Tt as HTML_LEFT_TRIM_AMOUNT_R,Et as HTML_SELF_CLOSING_ELEMENT_R,S as HTML_TAGS,Dt as INLINE_SKIP_R,Ot as INTERPOLATION_R,kt as LINK_AUTOLINK_BARE_URL_R,At as LINK_AUTOLINK_R,jt as LIST_LOOKBEHIND_R,Mt as LOOKAHEAD,we as LocaleStorage,Nt as NAMED_CODES_TO_UNICODE,Pt as NP_TABLE_R,Ft as ORDERED,It as ORDERED_LIST_BULLET,Lt as ORDERED_LIST_ITEM_PREFIX,Rt as ORDERED_LIST_ITEM_PREFIX_R,zt as ORDERED_LIST_ITEM_R,Bt as ORDERED_LIST_R,Vt as PARAGRAPH_R,Ht as Priority,Ut as REFERENCE_IMAGE_OR_LINK,Wt as REFERENCE_IMAGE_R,Gt as REFERENCE_LINK_R,Kt as RuleType,qt as SHORTCODE_R,Jt as SHOULD_RENDER_AS_BLOCK_R,Yt as TABLE_CENTER_ALIGN,Xt as TABLE_LEFT_ALIGN,Zt as TABLE_RIGHT_ALIGN,Qt as TABLE_TRIM_PIPES,$t as TAB_R,en as TEXT_BOLD_R,tn as TEXT_EMPHASIZED_R,nn as TEXT_ESCAPED_R,rn as TEXT_MARKED_R,an as TEXT_PLAIN_R,on as TEXT_STRIKETHROUGHED_R,sn as TRIM_STARTING_NEWLINES,cn as UNESCAPE_R,ln as UNORDERED,un as UNORDERED_LIST_BULLET,dn as UNORDERED_LIST_ITEM_PREFIX,fn as UNORDERED_LIST_ITEM_PREFIX_R,pn as UNORDERED_LIST_ITEM_R,mn as UNORDERED_LIST_R,yn as allowInline,bn as anyScopeRegex,xn as attributeValueToNodePropValue,pe as bindIntl,Sn as blockRegex,R as buildMaskPlugin,Cn as captureNothing,Ne as checkIsURLAbsolute,B as checkMissingLocalesPlugin,he as compact,Qn as compile,$n as compileWithOptions,v as cond,o as conditionPlugin,me as createCachedIntl,er as createCompiler,Xn as createRenderer,ge as currency,wn as cx,_e as date,ne as deepTransformNode,J as editDictionaryByKeyPath,y as enu,s as enumerationPlugin,c as filePlugin,A as filterMissingTranslationsOnlyPlugin,N as filterTranslationsOnlyPlugin,e as findMatchingCondition,b as gender,l as genderPlugin,sr as generateKey,hn as generateListItemPrefix,gn as generateListItemPrefixRegex,_n as generateListItemRegex,vn as generateListRegex,Tn as get,ke as getBrowserLocale,ze as getCanonicalPath,te as getCondition,p as getContent,Y as getContentNodeByKeyPath,Ce as getCookie,X as getDefaultNode,n as getDictionary,Z as getEmptyNode,t as getEnumeration,j as getFilterMissingTranslationsContent,M as getFilterMissingTranslationsDictionary,P as getFilterTranslationsOnlyContent,F as getFilterTranslationsOnlyDictionary,g as getFilteredLocalesContent,_ as getFilteredLocalesDictionary,m as getHTML,je as getHTMLTextDir,C as getInsertionValues,Be as getInternalPath,r as getIntlayer,Me as getLocale,Pe as getLocaleFromPath,Te as getLocaleFromStorage,Fe as getLocaleLang,Ie as getLocaleName,I as getLocalizedContent,Ve as getLocalizedPath,We as getLocalizedUrl,E as getMarkdownMetadata,z as getMaskContent,V as getMissingLocalesContent,H as getMissingLocalesContentFromDictionary,U as getMultilingualDictionary,Ge as getMultilingualUrls,i as getNesting,re as getNodeChildren,ae as getNodeType,Le as getPathWithoutLocale,L as getPerLocaleDictionary,Re as getPrefix,W as getReplacedValuesContent,He as getRewritePath,Ue as getRewriteRules,G as getSplittedContent,K as getSplittedDictionaryContent,ee as getStorageAttributes,a as getTranslation,x as html,rr as i18nextToIntlayerFormatter,tr as icuToIntlayerFormatter,En as inlineRegex,w as insert,q as insertContentInDictionary,u as insertionPlugin,ir as intlayerToI18nextFormatter,nr as intlayerToICUFormatter,ar as intlayerToVueI18nFormatter,cr as isSameKeyPath,ie as isValidElement,ve as list,Oe as localeDetector,Ke as localeFlatMap,qe as localeMap,Je as localeRecord,De as localeResolver,Ae as localeStorageOptions,D as md,oe as mergeDictionaries,O as nest,d as nestedPlugin,Dn as normalizeAttributeKey,ce as normalizeDictionaries,le as normalizeDictionary,On as normalizeWhitespace,ye as number,se as orderDictionaries,kn as parseBlock,An as parseCaptureInline,jn as parseInline,Mn as parseSimpleInline,Nn as parseStyleAttribute,Pn as parseTableAlign,Fn as parseTableAlignCapture,In as parseTableCells,Ln as parseTableRow,T as parseYaml,Yn as parserFor,be as percentage,Rn as qualifies,xe as relativeTime,ue as removeContentNodeByKeyPath,de as renameContentNodeByKeyPath,Zn as renderFor,zn as renderNothing,Bn as sanitizer,Ee as setLocaleInStorage,Vn as simpleInlineRegex,Hn as slugify,Un as some,h as splitInsertionTemplate,Wn as startsWith,k as t,f as translationPlugin,Gn as trimEnd,Kn as trimLeadingWhitespaceOutsideFences,qn as unescapeString,Se as units,Jn as unquote,fe as updateNodeChildren,Ye as validatePrefix,or as vueI18nToIntlayerFormatter};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=(e,t)=>{let n=e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/[\s_-]+/g,` `).replace(/[^\p{L}\p{N} ]/gu,``).trim().split(` `).filter(Boolean).slice(0,5).map((e,t)=>t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(``);if(n||=`content`,t.has(n)){let e=1;for(;t.has(`${n}${e}`);)e++;n=`${n}${e}`}return n};export{e as generateKey};
|
|
2
|
+
//# sourceMappingURL=generateKey.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateKey.mjs","names":[],"sources":["../../../src/utils/generateKey.ts"],"sourcesContent":["export const generateKey = (\n text: string,\n existingKeys: Set<string>\n): string => {\n const maxWords = 5;\n let key = text\n .normalize('NFD') // Normalize to decomposes combined characters (e.g., é -> e + ´)\n .replace(/[\\u0300-\\u036f]/g, '') // Remove the accent characters\n .replace(/[\\s_-]+/g, ' ')\n .replace(/[^\\p{L}\\p{N} ]/gu, '')\n .trim()\n .split(' ')\n .filter(Boolean)\n .slice(0, maxWords)\n .map((word, index) =>\n index === 0\n ? word.toLowerCase()\n : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()\n )\n .join('');\n\n if (!key) key = 'content';\n if (existingKeys.has(key)) {\n let i = 1;\n while (existingKeys.has(`${key}${i}`)) i++;\n key = `${key}${i}`;\n }\n return key;\n};\n"],"mappings":"AAAA,MAAa,GACX,EACA,IACW,CAEX,IAAI,EAAM,EACP,UAAU,MAAM,CAChB,QAAQ,mBAAoB,GAAG,CAC/B,QAAQ,WAAY,IAAI,CACxB,QAAQ,mBAAoB,GAAG,CAC/B,MAAM,CACN,MAAM,IAAI,CACV,OAAO,QAAQ,CACf,MAAM,EATQ,EASI,CAClB,KAAK,EAAM,IACV,IAAU,EACN,EAAK,aAAa,CAClB,EAAK,OAAO,EAAE,CAAC,aAAa,CAAG,EAAK,MAAM,EAAE,CAAC,aAAa,CAC/D,CACA,KAAK,GAAG,CAGX,GADA,AAAU,IAAM,UACZ,EAAa,IAAI,EAAI,CAAE,CACzB,IAAI,EAAI,EACR,KAAO,EAAa,IAAI,GAAG,IAAM,IAAI,EAAE,IACvC,EAAM,GAAG,IAAM,IAEjB,OAAO"}
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parseYaml as e}from"./parseYaml.mjs";import{isValidElement as t}from"./isValidReactElement.mjs";import{CachedIntl as n,bindIntl as r,createCachedIntl as i}from"./intl.mjs";import{getCookie as a}from"./getCookie.mjs";import{LocaleStorage as o,getLocaleFromStorage as s,setLocaleInStorage as c}from"./localeStorage.mjs";import{checkIsURLAbsolute as l}from"./checkIsURLAbsolute.mjs";import{
|
|
1
|
+
import{parseYaml as e}from"./parseYaml.mjs";import{isValidElement as t}from"./isValidReactElement.mjs";import{CachedIntl as n,bindIntl as r,createCachedIntl as i}from"./intl.mjs";import{getCookie as a}from"./getCookie.mjs";import{LocaleStorage as o,getLocaleFromStorage as s,setLocaleInStorage as c}from"./localeStorage.mjs";import{checkIsURLAbsolute as l}from"./checkIsURLAbsolute.mjs";import{generateKey as u}from"./generateKey.mjs";import{isSameKeyPath as d}from"./isSameKeyPath.mjs";export{n as CachedIntl,n as Intl,o as LocaleStorage,r as bindIntl,l as checkIsURLAbsolute,i as createCachedIntl,u as generateKey,a as getCookie,s as getLocaleFromStorage,d as isSameKeyPath,t as isValidElement,e as parseYaml,c as setLocaleInStorage};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -87,9 +87,10 @@ import { i18nextToIntlayerFormatter, intlayerToI18nextFormatter } from "./messag
|
|
|
87
87
|
import { intlayerToVueI18nFormatter, vueI18nToIntlayerFormatter } from "./messageFormat/vue-i18n.js";
|
|
88
88
|
import "./messageFormat/index.js";
|
|
89
89
|
import { checkIsURLAbsolute } from "./utils/checkIsURLAbsolute.js";
|
|
90
|
+
import { generateKey } from "./utils/generateKey.js";
|
|
90
91
|
import { getCookie } from "./utils/getCookie.js";
|
|
91
92
|
import { isSameKeyPath } from "./utils/isSameKeyPath.js";
|
|
92
93
|
import { isValidElement } from "./utils/isValidReactElement.js";
|
|
93
94
|
import { parseYaml } from "./utils/parseYaml.js";
|
|
94
95
|
import "./utils/index.js";
|
|
95
|
-
export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DeepTransformContent, DotPath, ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, FileContent, FileContentConstructor, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, GetPrefixOptions, GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTMLCommentNode, HTMLContent, HTMLContentConstructor, HTMLNode, HTMLSelfClosingNode, HTMLTag, HTMLTagsType, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_TAGS, HeadingNode, HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, LinkAngleBraceNode, LinkBareURLNode, LinkNode, ListType, LocaleStorage, LocaleStorageOptions, LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedParser, NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, OrderedListNode, PARAGRAPH_R, ParagraphNode, ParseState, Parser, ParserResult, Plugins, Priority, PriorityValue, ProcessedStorageAttributes, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, RuleType, RuleTypeValue, Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, TableNode, TableSeparatorNode, TextNode, TranslationCond, TranslationContent, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, UnionKeys, UnorderedListNode, ValidDotPathsFor, ValueAtKey, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, compile, compileWithOptions, condition as cond, conditionPlugin, createCachedIntl, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getBrowserLocale, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTML, getHTMLTextDir, getInsertionValues, getInternalPath, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseYaml, parserFor, percentage, qualifies, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderNothing, sanitizer, setLocaleInStorage, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, translation as t, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validatePrefix, vueI18nToIntlayerFormatter };
|
|
96
|
+
export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_R, CachedIntl, CachedIntl as Intl, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, ConditionCond, ConditionContent, ConditionContentStates, CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, DURATION_DELAY_TRIGGER, DeepTransformContent, DotPath, ElementType, EnterFormat, EnumerationCond, EnumerationContent, EnumerationContentState, EscapedTextNode, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, FileCond, FileContent, FileContentConstructor, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, GFM_TASK_R, Gender, GenderCond, GenderContent, GenderContentStates, GetNestingResult, GetPrefixOptions, GetPrefixResult, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTMLCommentNode, HTMLContent, HTMLContentConstructor, HTMLNode, HTMLSelfClosingNode, HTMLTag, HTMLTagsType, HTML_BLOCK_ELEMENT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_TAGS, HeadingNode, HeadingSetextNode, IInterpreterPlugin, IInterpreterPluginState, INLINE_SKIP_R, INTERPOLATION_R, ImageNode, InsertionCond, InsertionContent, InsertionContentConstructor, IsAny, ItalicTextNode, JsonValue, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LIST_LOOKBEHIND_R, LOOKAHEAD, LinkAngleBraceNode, LinkBareURLNode, LinkNode, ListType, LocaleStorage, LocaleStorageOptions, LocalizedPathResult, MarkdownContent, MarkdownContentConstructor, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, NestedCond, NestedContent, NestedContentState, NestedParser, NewlineNode, NodeProps, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, OrderedListNode, PARAGRAPH_R, ParagraphNode, ParseState, Parser, ParserResult, Plugins, Priority, PriorityValue, ProcessedStorageAttributes, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, RuleType, RuleTypeValue, Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, TableNode, TableSeparatorNode, TextNode, TranslationCond, TranslationContent, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, UnionKeys, UnorderedListNode, ValidDotPathsFor, ValueAtKey, allowInline, anyScopeRegex, attributeValueToNodePropValue, bindIntl, blockRegex, buildMaskPlugin, captureNothing, checkIsURLAbsolute, checkMissingLocalesPlugin, compact, compile, compileWithOptions, condition as cond, conditionPlugin, createCachedIntl, createCompiler, createRenderer, currency, cx, date, deepTransformNode, editDictionaryByKeyPath, enumeration as enu, enumerationPlugin, file, fileContent, filePlugin, filterMissingTranslationsOnlyPlugin, filterTranslationsOnlyPlugin, findMatchingCondition, gender, genderPlugin, generateKey, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getBrowserLocale, getCanonicalPath, getCondition, getContent, getContentNodeByKeyPath, getCookie, getDefaultNode, getDictionary, getEmptyNode, getEnumeration, getFilterMissingTranslationsContent, getFilterMissingTranslationsDictionary, getFilterTranslationsOnlyContent, getFilterTranslationsOnlyDictionary, getFilteredLocalesContent, getFilteredLocalesDictionary, getHTML, getHTMLTextDir, getInsertionValues, getInternalPath, getIntlayer, getLocale, getLocaleFromPath, getLocaleFromStorage, getLocaleLang, getLocaleName, getLocalizedContent, getLocalizedPath, getLocalizedUrl, getMarkdownMetadata, getMaskContent, getMissingLocalesContent, getMissingLocalesContentFromDictionary, getMultilingualDictionary, getMultilingualUrls, getNesting, getNodeChildren, getNodeType, getPathWithoutLocale, getPerLocaleDictionary, getPrefix, getReplacedValuesContent, getRewritePath, getRewriteRules, getSplittedContent, getSplittedDictionaryContent, getStorageAttributes, getTranslation, html, i18nextToIntlayerFormatter, icuToIntlayerFormatter, inlineRegex, insertion as insert, insertContentInDictionary, insertionPlugin, intlayerToI18nextFormatter, intlayerToICUFormatter, intlayerToVueI18nFormatter, isSameKeyPath, isValidElement, list, localeDetector, localeFlatMap, localeMap, localeRecord, localeResolver, localeStorageOptions, markdown as md, mergeDictionaries, nesting as nest, nestedPlugin, normalizeAttributeKey, normalizeDictionaries, normalizeDictionary, normalizeWhitespace, number, orderDictionaries, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parseYaml, parserFor, percentage, qualifies, relativeTime, removeContentNodeByKeyPath, renameContentNodeByKeyPath, renderFor, renderNothing, sanitizer, setLocaleInStorage, simpleInlineRegex, slugify, some, splitInsertionTemplate, startsWith, translation as t, translationPlugin, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, units, unquote, updateNodeChildren, validatePrefix, vueI18nToIntlayerFormatter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateKey.d.ts","names":[],"sources":["../../../src/utils/generateKey.ts"],"mappings":";cAAa,WAAA,GACX,IAAA,UACA,YAAA,EAAc,GAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CachedIntl, bindIntl, createCachedIntl } from "./intl.js";
|
|
2
2
|
import { LocaleStorage, LocaleStorageOptions, getLocaleFromStorage, setLocaleInStorage } from "./localeStorage.js";
|
|
3
3
|
import { checkIsURLAbsolute } from "./checkIsURLAbsolute.js";
|
|
4
|
+
import { generateKey } from "./generateKey.js";
|
|
4
5
|
import { getCookie } from "./getCookie.js";
|
|
5
6
|
import { isSameKeyPath } from "./isSameKeyPath.js";
|
|
6
7
|
import { isValidElement } from "./isValidReactElement.js";
|
|
7
8
|
import { parseYaml } from "./parseYaml.js";
|
|
8
|
-
export { CachedIntl, CachedIntl as Intl, LocaleStorage, LocaleStorageOptions, bindIntl, checkIsURLAbsolute, createCachedIntl, getCookie, getLocaleFromStorage, isSameKeyPath, isValidElement, parseYaml, setLocaleInStorage };
|
|
9
|
+
export { CachedIntl, CachedIntl as Intl, LocaleStorage, LocaleStorageOptions, bindIntl, checkIsURLAbsolute, createCachedIntl, generateKey, getCookie, getLocaleFromStorage, isSameKeyPath, isValidElement, parseYaml, setLocaleInStorage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/core",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -169,11 +169,11 @@
|
|
|
169
169
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
170
170
|
},
|
|
171
171
|
"dependencies": {
|
|
172
|
-
"@intlayer/api": "8.1.
|
|
173
|
-
"@intlayer/config": "8.1.
|
|
174
|
-
"@intlayer/dictionaries-entry": "8.1.
|
|
175
|
-
"@intlayer/types": "8.1.
|
|
176
|
-
"@intlayer/unmerged-dictionaries-entry": "8.1.
|
|
172
|
+
"@intlayer/api": "8.1.6",
|
|
173
|
+
"@intlayer/config": "8.1.6",
|
|
174
|
+
"@intlayer/dictionaries-entry": "8.1.6",
|
|
175
|
+
"@intlayer/types": "8.1.6",
|
|
176
|
+
"@intlayer/unmerged-dictionaries-entry": "8.1.6",
|
|
177
177
|
"defu": "6.1.4"
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|