@ynput/ayon-frontend-shared 0.2.28 → 0.2.29
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/DetailsPanel.cjs.js +1 -1
- package/dist/DetailsPanel.es.js +6 -6
- package/dist/Views.cjs.js.map +1 -1
- package/dist/Views.es.js.map +1 -1
- package/dist/api.cjs.js +1 -1
- package/dist/api.es.js +151 -153
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +79 -86
- package/dist/components.es.js.map +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +8 -6
- package/dist/hooks.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js +2 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +63 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js +2 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.es.js +12 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.es.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js +2 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +107 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js +2 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.es.js +14 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.es.js.map +1 -0
- package/dist/node_modules/devlop/lib/default.cjs.js +2 -0
- package/dist/node_modules/devlop/lib/default.cjs.js.map +1 -0
- package/dist/node_modules/devlop/lib/default.es.js +6 -0
- package/dist/node_modules/devlop/lib/default.es.js.map +1 -0
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js +2 -0
- package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.js.map +1 -0
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js +39 -0
- package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
- package/dist/node_modules/entities/dist/esm/decode.cjs.js +2 -0
- package/dist/node_modules/entities/dist/esm/decode.cjs.js.map +1 -0
- package/dist/node_modules/entities/dist/esm/decode.es.js +246 -0
- package/dist/node_modules/entities/dist/esm/decode.es.js.map +1 -0
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js +2 -0
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.js.map +1 -0
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js +8 -0
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/lib/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/lib/index.es.js +218 -0
- package/dist/node_modules/hast-util-raw/lib/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js +146 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js +21 -0
- package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js +113 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js +9 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js +45 -0
- package/dist/node_modules/hast-util-raw/node_modules/hastscript/lib/svg-case-sensitive-tag-names.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js +26 -0
- package/dist/node_modules/hast-util-raw/node_modules/html-void-elements/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js +99 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js +8 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js +211 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js +251 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js +15 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js +74 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js +85 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js +2272 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js +241 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js +3 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js +1941 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js +89 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js +163 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js +13 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js +62 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/aria.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js +34 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/find.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js +369 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/html.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js +7 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/normalize.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js +567 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/svg.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js +8 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js +7 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js +20 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/create.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js +37 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/defined-info.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js +29 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/info.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js +11 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/merge.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js +22 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/schema.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js +15 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/util/types.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js +20 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xlink.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js +12 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xml.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js +2 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js +12 -0
- package/dist/node_modules/hast-util-raw/node_modules/property-information/lib/xmlns.es.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js +3 -0
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js +43 -0
- package/dist/node_modules/hast-util-raw/node_modules/vfile-location/lib/index.es.js.map +1 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js +2 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +119 -0
- package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js.map +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +1 -1
- package/dist/node_modules/rehype/node_modules/unist-util-stringify-position/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/{vfile/node_modules/unist-util-stringify-position/lib/index.cjs.js.map → rehype/node_modules/unist-util-stringify-position/lib/index.es.js.map} +1 -1
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +2 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/index.es.js +2 -2
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minpath.browser.cjs.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minpath.browser.es.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minproc.browser.cjs.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minproc.browser.es.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minurl.browser.cjs.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minurl.browser.es.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minurl.shared.cjs.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile/lib/minurl.shared.es.js.map +1 -0
- package/dist/node_modules/rehype/node_modules/vfile-message/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/{vfile/node_modules/vfile-message/lib/index.cjs.js.map → rehype/node_modules/vfile-message/lib/index.es.js.map} +1 -1
- package/dist/node_modules/rehype-raw/lib/index.cjs.js +2 -0
- package/dist/node_modules/rehype-raw/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/rehype-raw/lib/index.es.js +13 -0
- package/dist/node_modules/rehype-raw/lib/index.es.js.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.cjs.js +2 -0
- package/dist/node_modules/unist-util-is/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.es.js +85 -0
- package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -0
- package/dist/node_modules/unist-util-position/lib/index.cjs.js +2 -0
- package/dist/node_modules/unist-util-position/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/unist-util-position/lib/index.es.js +18 -0
- package/dist/node_modules/unist-util-position/lib/index.es.js.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.cjs.js +2 -0
- package/dist/node_modules/unist-util-visit/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.es.js +17 -0
- package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js +2 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js +7 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js +2 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +57 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -0
- package/dist/node_modules/web-namespaces/index.cjs.js +1 -1
- package/dist/node_modules/web-namespaces/index.cjs.js.map +1 -1
- package/dist/node_modules/web-namespaces/index.es.js +8 -3
- package/dist/node_modules/web-namespaces/index.es.js.map +1 -1
- package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
- package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/folders.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.cjs.js +5 -3
- package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.es.js +14 -12
- package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
- package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/views.es.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/getLists.cjs.js +1 -1
- package/dist/shared/src/api/queries/entityLists/getLists.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/getLists.es.js +117 -142
- package/dist/shared/src/api/queries/entityLists/getLists.es.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/updateLists.cjs.js +1 -1
- package/dist/shared/src/api/queries/entityLists/updateLists.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/updateLists.es.js +95 -110
- package/dist/shared/src/api/queries/entityLists/updateLists.es.js.map +1 -1
- package/dist/shared/src/api/queries/links/getEntityLinks.cjs.js +1 -1
- package/dist/shared/src/api/queries/links/getEntityLinks.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/links/getEntityLinks.es.js +41 -40
- package/dist/shared/src/api/queries/links/getEntityLinks.es.js.map +1 -1
- package/dist/shared/src/api/queries/links/updateLinks.cjs.js +1 -1
- package/dist/shared/src/api/queries/links/updateLinks.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/links/updateLinks.es.js +164 -143
- package/dist/shared/src/api/queries/links/updateLinks.es.js.map +1 -1
- package/dist/shared/src/api/queries/users/getUsers.cjs.js +1 -1
- package/dist/shared/src/api/queries/users/getUsers.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/users/getUsers.es.js +17 -21
- package/dist/shared/src/api/queries/users/getUsers.es.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.cjs.js +26 -37
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.cjs.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.es.js +100 -97
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.es.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js +6 -5
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js +169 -62
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelDetails/BorderedSection.cjs.js +48 -0
- package/dist/shared/src/components/DetailsPanelDetails/BorderedSection.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/BorderedSection.es.js +87 -0
- package/dist/shared/src/components/DetailsPanelDetails/BorderedSection.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.cjs.js.map +1 -0
- package/dist/shared/src/components/{ListAttributeForm/ListAttributeForm.es.js → DetailsPanelDetails/DescriptionSection.es.js} +117 -105
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.styles.cjs.js +385 -0
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.styles.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.styles.es.js +401 -0
- package/dist/shared/src/components/DetailsPanelDetails/DescriptionSection.styles.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.cjs.js +12 -0
- package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.cjs.js.map +1 -0
- package/dist/shared/src/components/{LinksManager/LinksManagerDialog.es.js → DetailsPanelDetails/DetailsPanelDetails.es.js} +92 -91
- package/dist/shared/src/components/DetailsPanelDetails/DetailsPanelDetails.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/DetailsSection.cjs.js +51 -0
- package/dist/shared/src/components/DetailsPanelDetails/DetailsSection.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/DetailsSection.es.js +113 -0
- package/dist/shared/src/components/DetailsPanelDetails/DetailsSection.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/FieldLabel.cjs.js +8 -0
- package/dist/shared/src/components/DetailsPanelDetails/FieldLabel.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/FieldLabel.es.js +25 -0
- package/dist/shared/src/components/DetailsPanelDetails/FieldLabel.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useDescriptionEditor.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useDescriptionEditor.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useDescriptionEditor.es.js +61 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useDescriptionEditor.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityData.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityData.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityData.es.js +95 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityData.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.es.js +109 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityEditing.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFields.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFields.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFields.es.js +131 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFields.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFormData.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFormData.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFormData.es.js +64 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useEntityFormData.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useMentionSystem.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useMentionSystem.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useMentionSystem.es.js +28 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useMentionSystem.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useQuillFormats.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useQuillFormats.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useQuillFormats.es.js +6 -0
- package/dist/shared/src/components/DetailsPanelDetails/hooks/useQuillFormats.es.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/types.cjs.js +2 -0
- package/dist/shared/src/components/DetailsPanelDetails/types.cjs.js.map +1 -0
- package/dist/shared/src/components/DetailsPanelDetails/types.es.js +37 -0
- package/dist/shared/src/components/DetailsPanelDetails/types.es.js.map +1 -0
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js +1 -1
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js.map +1 -1
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js +9 -9
- package/dist/shared/src/components/LinksManager/AddNewLinks.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/AddNewLinks.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/AddNewLinks.es.js +5 -5
- package/dist/shared/src/components/LinksManager/CellEditingDialog.cjs.js +8 -0
- package/dist/shared/src/components/LinksManager/CellEditingDialog.cjs.js.map +1 -0
- package/dist/shared/src/components/LinksManager/CellEditingDialog.es.js +86 -0
- package/dist/shared/src/components/LinksManager/CellEditingDialog.es.js.map +1 -0
- package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/LinkManagerItem.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js +29 -20
- package/dist/shared/src/components/LinksManager/LinkManagerItem.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.es.js +55 -43
- package/dist/shared/src/components/LinksManager/LinksManager.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.styled.cjs.js +42 -9
- package/dist/shared/src/components/LinksManager/LinksManager.styled.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/LinksManager.styled.es.js +49 -16
- package/dist/shared/src/components/LinksManager/LinksManager.styled.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.es.js +9 -9
- package/dist/shared/src/components/Powerpack/PowerpackButton.cjs.js +3 -3
- package/dist/shared/src/components/Powerpack/PowerpackButton.cjs.js.map +1 -1
- package/dist/shared/src/components/Powerpack/PowerpackButton.es.js +5 -5
- package/dist/shared/src/components/Powerpack/PowerpackButton.es.js.map +1 -1
- package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js +1 -1
- package/dist/shared/src/components/Powerpack/PowerpackDialog.cjs.js.map +1 -1
- package/dist/shared/src/components/Powerpack/PowerpackDialog.es.js +6 -6
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js +2 -2
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js +26 -18
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js +1 -1
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.cjs.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js +27 -21
- package/dist/shared/src/components/ProjectTableSettings/TableSettingsFallback.es.js.map +1 -1
- package/dist/shared/src/components/QuillListStyles/QuillListStyles.cjs.js +59 -0
- package/dist/shared/src/components/QuillListStyles/QuillListStyles.cjs.js.map +1 -0
- package/dist/shared/src/components/QuillListStyles/QuillListStyles.es.js +63 -0
- package/dist/shared/src/components/QuillListStyles/QuillListStyles.es.js.map +1 -0
- package/dist/shared/src/components/RenameForm/RenameForm.cjs.js +31 -0
- package/dist/shared/src/components/RenameForm/RenameForm.cjs.js.map +1 -0
- package/dist/shared/src/components/RenameForm/RenameForm.es.js +396 -0
- package/dist/shared/src/components/RenameForm/RenameForm.es.js.map +1 -0
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js +6 -6
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js +6 -6
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js +6 -6
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js +1 -1
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js.map +1 -1
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js +6 -6
- package/dist/shared/src/components/StyledLink/StyledLink.cjs.js +14 -0
- package/dist/shared/src/components/StyledLink/StyledLink.cjs.js.map +1 -0
- package/dist/shared/src/components/StyledLink/StyledLink.es.js +19 -0
- package/dist/shared/src/components/StyledLink/StyledLink.es.js.map +1 -0
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js +1 -1
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js.map +1 -1
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js +6 -6
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js +6 -6
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js +6 -6
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +193 -162
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.cjs.js +1 -7
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.es.js +6 -13
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.styled.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFiles/DetailsPanelFiles.es.js +6 -6
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelFloating/DetailsPanelFloating.es.js +6 -6
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js +124 -114
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.cjs.js +4 -3
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.es.js +1 -0
- package/dist/shared/src/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/FeedContextWrapper.cjs.js +2 -0
- package/dist/shared/src/containers/DetailsPanel/FeedContextWrapper.cjs.js.map +1 -0
- package/dist/shared/src/containers/DetailsPanel/FeedContextWrapper.es.js +85 -0
- package/dist/shared/src/containers/DetailsPanel/FeedContextWrapper.es.js.map +1 -0
- package/dist/shared/src/containers/DetailsPanel/FeedFilters/FeedFilters.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/FeedFilters/FeedFilters.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/FeedFilters/FeedFilters.es.js +18 -18
- package/dist/shared/src/containers/DetailsPanel/FeedFilters/FeedFilters.es.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js +6 -6
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.es.js +6 -6
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.es.js +6 -6
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.es.js +6 -6
- package/dist/shared/src/containers/Feed/components/ActivityDate.cjs.js +8 -3
- package/dist/shared/src/containers/Feed/components/ActivityDate.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityDate.es.js +21 -16
- package/dist/shared/src/containers/Feed/components/ActivityDate.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.es.js +21 -21
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.styled.cjs.js +37 -8
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.styled.es.js +44 -14
- package/dist/shared/src/containers/Feed/components/ActivityVersions/ActivityVersions.styled.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js +2 -2
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js +58 -57
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.cjs.js +7 -58
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.es.js +14 -65
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.styled.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/modules/index.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/modules/index.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/modules/index.es.js +17 -15
- package/dist/shared/src/containers/Feed/components/CommentInput/modules/index.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/quillToMarkdown.cjs.js +7 -6
- package/dist/shared/src/containers/Feed/components/CommentInput/quillToMarkdown.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/quillToMarkdown.es.js +27 -18
- package/dist/shared/src/containers/Feed/components/CommentInput/quillToMarkdown.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +53 -51
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +280 -207
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +6 -6
- package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js +3 -3
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js +212 -206
- package/dist/shared/src/containers/ProjectTreeTable/context/ClipboardContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.es.js +41 -34
- package/dist/shared/src/containers/ProjectTreeTable/context/ProjectDataContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.es.js +130 -33
- package/dist/shared/src/containers/ProjectTreeTable/context/clipboard/clipboardValidation.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.es.js +10 -13
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useAttributesList.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.es.js +48 -45
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js +104 -93
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js +111 -87
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.es.js +9 -9
- package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.es.js +9 -9
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.es.js +7 -7
- package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +88 -74
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js +66 -66
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js +58 -61
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.cjs.js +2 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.cjs.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.es.js +241 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.es.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js +8 -3
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js +82 -32
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidgetInput.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidgetInput.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidgetInput.es.js +79 -24
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidgetInput.es.js.map +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js.map +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +6 -6
- package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js +109 -121
- package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.cjs.js +4 -16
- package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.es.js +1 -13
- package/dist/shared/src/containers/SimpleTable/SimpleTable.styled.es.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.cjs.js +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.cjs.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.es.js +50 -62
- package/dist/shared/src/containers/SimpleTable/SimpleTableRowTemplate.es.js.map +1 -1
- package/dist/shared/src/context/DetailsPanelContext.cjs.js.map +1 -1
- package/dist/shared/src/context/DetailsPanelContext.es.js.map +1 -1
- package/dist/shared/src/context/PowerpackContext.cjs.js +1 -1
- package/dist/shared/src/context/PowerpackContext.cjs.js.map +1 -1
- package/dist/shared/src/context/PowerpackContext.es.js +15 -20
- package/dist/shared/src/context/PowerpackContext.es.js.map +1 -1
- package/dist/shared/src/hooks/useActionTriggers.cjs.js +1 -1
- package/dist/shared/src/hooks/useActionTriggers.cjs.js.map +1 -1
- package/dist/shared/src/hooks/useActionTriggers.es.js +27 -32
- package/dist/shared/src/hooks/useActionTriggers.es.js.map +1 -1
- package/dist/shared/src/hooks/useTagStyling.cjs.js +2 -0
- package/dist/shared/src/hooks/useTagStyling.cjs.js.map +1 -0
- package/dist/shared/src/hooks/useTagStyling.es.js +33 -0
- package/dist/shared/src/hooks/useTagStyling.es.js.map +1 -0
- package/dist/shared/src/util/checkName.cjs.js +2 -0
- package/dist/shared/src/util/checkName.cjs.js.map +1 -0
- package/dist/shared/src/util/checkName.es.js +9 -0
- package/dist/shared/src/util/checkName.es.js.map +1 -0
- package/dist/shared/src/util/clipboardUtils.cjs.js +2 -0
- package/dist/shared/src/util/clipboardUtils.cjs.js.map +1 -0
- package/dist/shared/src/util/clipboardUtils.es.js +13 -0
- package/dist/shared/src/util/clipboardUtils.es.js.map +1 -0
- package/dist/shared/src/util/copyToClipboard.cjs.js +1 -1
- package/dist/shared/src/util/copyToClipboard.cjs.js.map +1 -1
- package/dist/shared/src/util/copyToClipboard.es.js +21 -21
- package/dist/shared/src/util/copyToClipboard.es.js.map +1 -1
- package/dist/shared/src/util/humanizeFieldName.cjs.js +2 -0
- package/dist/shared/src/util/humanizeFieldName.cjs.js.map +1 -0
- package/dist/shared/src/util/humanizeFieldName.es.js +15 -0
- package/dist/shared/src/util/humanizeFieldName.es.js.map +1 -0
- package/dist/shared/src/util/parseHtmlToPlainTextWithLinks.cjs.js +7 -0
- package/dist/shared/src/util/parseHtmlToPlainTextWithLinks.cjs.js.map +1 -0
- package/dist/shared/src/util/parseHtmlToPlainTextWithLinks.es.js +64 -0
- package/dist/shared/src/util/parseHtmlToPlainTextWithLinks.es.js.map +1 -0
- package/dist/types/api/generated/entityLists.d.ts +8 -8
- package/dist/types/api/generated/folders.d.ts +2 -0
- package/dist/types/api/generated/graphql.d.ts +20 -5
- package/dist/types/api/generated/index.d.ts +1 -0
- package/dist/types/api/generated/views.d.ts +9 -47
- package/dist/types/api/queries/entityLists/getLists.d.ts +0 -133
- package/dist/types/api/queries/entityLists/types.d.ts +1 -2
- package/dist/types/api/queries/permissions/getPermissions.d.ts +22 -22
- package/dist/types/api/queries/share/share.d.ts +1 -1
- package/dist/types/api/queries/users/getUsers.d.ts +0 -132
- package/dist/types/api/queries/users/updateUsers.d.ts +3 -3
- package/dist/types/components/DetailsPanelAttributes/DetailsPanelAttributesEditor.d.ts +2 -4
- package/dist/types/components/DetailsPanelAttributes/components/RenderFieldWidget.d.ts +3 -0
- package/dist/types/components/DetailsPanelAttributes/index.d.ts +0 -1
- package/dist/types/components/DetailsPanelDetails/BorderedSection.d.ts +14 -0
- package/dist/types/components/DetailsPanelDetails/DescriptionSection.d.ts +10 -0
- package/dist/types/components/DetailsPanelDetails/DescriptionSection.styles.d.ts +10 -0
- package/dist/types/components/DetailsPanelDetails/DetailsPanelDetails.d.ts +6 -0
- package/dist/types/components/DetailsPanelDetails/DetailsSection.d.ts +1 -1
- package/dist/types/components/DetailsPanelDetails/FieldLabel.d.ts +11 -0
- package/dist/types/components/DetailsPanelDetails/hooks/index.d.ts +7 -0
- package/dist/types/components/DetailsPanelDetails/hooks/useDescriptionEditor.d.ts +17 -0
- package/dist/types/components/DetailsPanelDetails/hooks/useEntityData.d.ts +12 -0
- package/dist/types/components/DetailsPanelDetails/hooks/useEntityEditing.d.ts +10 -0
- package/dist/types/components/DetailsPanelDetails/hooks/useEntityFields.d.ts +16 -0
- package/dist/types/components/DetailsPanelDetails/hooks/useEntityFormData.d.ts +8 -0
- package/dist/types/components/DetailsPanelDetails/hooks/useQuillFormats.d.ts +1 -0
- package/dist/types/components/DetailsPanelDetails/index.d.ts +2 -0
- package/dist/types/components/DetailsPanelDetails/types.d.ts +20 -0
- package/dist/types/components/EnumEditor/EnumEditor.styled.d.ts +1 -1
- package/dist/types/components/LinksManager/CellEditingDialog.d.ts +8 -0
- package/dist/types/components/Powerpack/index.d.ts +0 -1
- package/dist/types/components/QuillListStyles/QuillListStyles.d.ts +5 -0
- package/dist/types/components/QuillListStyles/index.d.ts +1 -0
- package/dist/types/components/RenameForm/RenameForm.d.ts +21 -0
- package/dist/types/components/RenameForm/index.d.ts +1 -0
- package/dist/types/components/StyledLink/StyledLink.d.ts +2 -0
- package/dist/types/components/StyledLink/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +2 -4
- package/dist/types/containers/Actions/ActionsDropdown/ActionsDropdown.styled.d.ts +1 -1
- package/dist/types/containers/DetailsPanel/DetailsPanel.styled.d.ts +0 -7
- package/dist/types/containers/DetailsPanel/DetailsPanelHeader/DetailsPanelHeader.styled.d.ts +4 -4
- package/dist/types/containers/DetailsPanel/FeedContextWrapper.d.ts +19 -0
- package/dist/types/containers/Feed/components/ActivityVersions/ActivityVersions.styled.d.ts +1 -0
- package/dist/types/containers/Feed/components/CommentInput/modules/index.d.ts +2 -1
- package/dist/types/containers/ProjectTreeTable/buildTreeTableColumns.d.ts +1 -1
- package/dist/types/containers/ProjectTreeTable/context/ProjectDataContext.d.ts +2 -0
- package/dist/types/containers/ProjectTreeTable/context/clipboard/clipboardValidation.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useAttributesList.d.ts +5 -4
- package/dist/types/containers/ProjectTreeTable/hooks/useCellContextMenu.d.ts +1 -1
- package/dist/types/containers/ProjectTreeTable/types/table.d.ts +6 -0
- package/dist/types/containers/ProjectTreeTable/widgets/BooleanWidget.d.ts +0 -1
- package/dist/types/containers/ProjectTreeTable/widgets/CellWidget.d.ts +2 -1
- package/dist/types/containers/ProjectTreeTable/widgets/LinksWidget.d.ts +1 -0
- package/dist/types/containers/ProjectTreeTable/widgets/NameWidget.d.ts +10 -0
- package/dist/types/containers/ProjectTreeTable/widgets/TextWidget.d.ts +2 -0
- package/dist/types/containers/ProjectTreeTable/widgets/TextWidgetInput.d.ts +2 -0
- package/dist/types/containers/SimpleTable/SimpleTable.d.ts +0 -3
- package/dist/types/containers/SimpleTable/SimpleTableRowTemplate.d.ts +1 -5
- package/dist/types/containers/Views/index.d.ts +1 -4
- package/dist/types/context/DetailsPanelContext.d.ts +1 -1
- package/dist/types/context/PowerpackContext.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useActionTriggers.d.ts +1 -1
- package/dist/types/hooks/useTagStyling.d.ts +17 -0
- package/dist/types/util/checkName.d.ts +1 -0
- package/dist/types/util/clipboardUtils.d.ts +18 -0
- package/dist/types/util/copyToClipboard.d.ts +1 -1
- package/dist/types/util/humanizeFieldName.d.ts +1 -0
- package/dist/types/util/index.d.ts +3 -0
- package/dist/types/util/parseHtmlToPlainTextWithLinks.d.ts +6 -0
- package/dist/util.cjs.js +1 -1
- package/dist/util.es.js +38 -32
- package/dist/util.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/vfile/lib/index.cjs.js +0 -2
- package/dist/node_modules/vfile/lib/index.cjs.js.map +0 -1
- package/dist/node_modules/vfile/lib/index.es.js.map +0 -1
- package/dist/node_modules/vfile/lib/minpath.browser.cjs.js.map +0 -1
- package/dist/node_modules/vfile/lib/minpath.browser.es.js.map +0 -1
- package/dist/node_modules/vfile/lib/minproc.browser.cjs.js.map +0 -1
- package/dist/node_modules/vfile/lib/minproc.browser.es.js.map +0 -1
- package/dist/node_modules/vfile/lib/minurl.browser.cjs.js.map +0 -1
- package/dist/node_modules/vfile/lib/minurl.browser.es.js.map +0 -1
- package/dist/node_modules/vfile/lib/minurl.shared.cjs.js.map +0 -1
- package/dist/node_modules/vfile/lib/minurl.shared.es.js.map +0 -1
- package/dist/node_modules/vfile/node_modules/unist-util-stringify-position/lib/index.es.js.map +0 -1
- package/dist/node_modules/vfile/node_modules/vfile-message/lib/index.es.js.map +0 -1
- package/dist/shared/src/components/AccessUser/AccessUser.cjs.js +0 -2
- package/dist/shared/src/components/AccessUser/AccessUser.cjs.js.map +0 -1
- package/dist/shared/src/components/AccessUser/AccessUser.es.js +0 -33
- package/dist/shared/src/components/AccessUser/AccessUser.es.js.map +0 -1
- package/dist/shared/src/components/AccessUser/AccessUser.styled.cjs.js +0 -42
- package/dist/shared/src/components/AccessUser/AccessUser.styled.cjs.js.map +0 -1
- package/dist/shared/src/components/AccessUser/AccessUser.styled.es.js +0 -46
- package/dist/shared/src/components/AccessUser/AccessUser.styled.es.js.map +0 -1
- package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.cjs.js +0 -34
- package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.cjs.js.map +0 -1
- package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.es.js +0 -46
- package/dist/shared/src/components/DetailsMetaData/DetailsMetaData.es.js.map +0 -1
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributes.cjs.js +0 -2
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributes.cjs.js.map +0 -1
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributes.es.js +0 -287
- package/dist/shared/src/components/DetailsPanelAttributes/DetailsPanelAttributes.es.js.map +0 -1
- package/dist/shared/src/components/LinksManager/LinksManagerDialog.cjs.js +0 -8
- package/dist/shared/src/components/LinksManager/LinksManagerDialog.cjs.js.map +0 -1
- package/dist/shared/src/components/LinksManager/LinksManagerDialog.es.js.map +0 -1
- package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.cjs.js +0 -2
- package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.cjs.js.map +0 -1
- package/dist/shared/src/components/ListAttributeForm/ListAttributeForm.es.js.map +0 -1
- package/dist/shared/src/components/ListMetaData/ListMetaData.cjs.js +0 -2
- package/dist/shared/src/components/ListMetaData/ListMetaData.cjs.js.map +0 -1
- package/dist/shared/src/components/ListMetaData/ListMetaData.es.js +0 -25
- package/dist/shared/src/components/ListMetaData/ListMetaData.es.js.map +0 -1
- package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.cjs.js +0 -9
- package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.cjs.js.map +0 -1
- package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.es.js +0 -25
- package/dist/shared/src/components/Powerpack/RequiredPowerpackVersion.es.js.map +0 -1
- package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.cjs.js +0 -2
- package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.cjs.js.map +0 -1
- package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.es.js +0 -17
- package/dist/shared/src/components/ShareOptionIcon/ShareOptionIcon.es.js.map +0 -1
- package/dist/shared/src/hooks/useCustomProtocolCheck.cjs.js +0 -2
- package/dist/shared/src/hooks/useCustomProtocolCheck.cjs.js.map +0 -1
- package/dist/shared/src/hooks/useCustomProtocolCheck.es.js +0 -43
- package/dist/shared/src/hooks/useCustomProtocolCheck.es.js.map +0 -1
- package/dist/types/components/AccessUser/AccessUser.d.ts +0 -22
- package/dist/types/components/AccessUser/AccessUser.styled.d.ts +0 -1
- package/dist/types/components/AccessUser/index.d.ts +0 -1
- package/dist/types/components/DetailsMetaData/DetailsMetaData.d.ts +0 -8
- package/dist/types/components/DetailsMetaData/index.d.ts +0 -1
- package/dist/types/components/DetailsPanelAttributes/DetailsPanelAttributes.d.ts +0 -6
- package/dist/types/components/LinksManager/LinksManagerDialog.d.ts +0 -9
- package/dist/types/components/ListAttributeForm/ListAttributeForm.d.ts +0 -13
- package/dist/types/components/ListAttributeForm/index.d.ts +0 -1
- package/dist/types/components/ListMetaData/ListMetaData.d.ts +0 -8
- package/dist/types/components/ListMetaData/index.d.ts +0 -1
- package/dist/types/components/Powerpack/RequiredPowerpackVersion.d.ts +0 -5
- package/dist/types/components/ShareOptionIcon/ShareOptionIcon.d.ts +0 -10
- package/dist/types/components/ShareOptionIcon/index.d.ts +0 -2
- package/dist/types/hooks/useCustomProtocolCheck.d.ts +0 -10
- /package/dist/node_modules/{vfile → rehype}/node_modules/unist-util-stringify-position/lib/index.cjs.js +0 -0
- /package/dist/node_modules/{vfile → rehype}/node_modules/unist-util-stringify-position/lib/index.es.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minpath.browser.cjs.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minpath.browser.es.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minproc.browser.cjs.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minproc.browser.es.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minurl.browser.cjs.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minurl.browser.es.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minurl.shared.cjs.js +0 -0
- /package/dist/node_modules/{vfile → rehype/node_modules/vfile}/lib/minurl.shared.es.js +0 -0
- /package/dist/node_modules/{vfile → rehype}/node_modules/vfile-message/lib/index.cjs.js +0 -0
- /package/dist/node_modules/{vfile → rehype}/node_modules/vfile-message/lib/index.es.js +0 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import T from "../../@ungap/structured-clone/esm/index.es.js";
|
|
2
|
+
import { htmlVoidElements as L } from "../node_modules/html-void-elements/index.es.js";
|
|
3
|
+
import { Parser as g } from "../node_modules/parse5/dist/parser/index.es.js";
|
|
4
|
+
import { getTagID as y } from "../node_modules/parse5/dist/common/html.es.js";
|
|
5
|
+
import "../node_modules/parse5/dist/serializer/index.es.js";
|
|
6
|
+
import "../node_modules/parse5/dist/common/error-codes.es.js";
|
|
7
|
+
import "../node_modules/parse5/dist/common/foreign-content.es.js";
|
|
8
|
+
import { TokenType as p } from "../node_modules/parse5/dist/common/token.es.js";
|
|
9
|
+
import { TokenizerMode as i } from "../node_modules/parse5/dist/tokenizer/index.es.js";
|
|
10
|
+
import { webNamespaces as f } from "../../web-namespaces/index.es.js";
|
|
11
|
+
import { zwitch as N } from "../../zwitch/index.es.js";
|
|
12
|
+
import { pointStart as a, pointEnd as C } from "../../unist-util-position/lib/index.es.js";
|
|
13
|
+
import { fromParse5 as v } from "../node_modules/hast-util-from-parse5/lib/index.es.js";
|
|
14
|
+
import { visit as I } from "../../unist-util-visit/lib/index.es.js";
|
|
15
|
+
import { toParse5 as S } from "../../hast-util-to-parse5/lib/index.es.js";
|
|
16
|
+
const P = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi, _ = /* @__PURE__ */ new Set([
|
|
17
|
+
"mdxFlowExpression",
|
|
18
|
+
"mdxJsxFlowElement",
|
|
19
|
+
"mdxJsxTextElement",
|
|
20
|
+
"mdxTextExpression",
|
|
21
|
+
"mdxjsEsm"
|
|
22
|
+
]), z = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
|
|
23
|
+
function D(r, e) {
|
|
24
|
+
const n = B(r), o = N("type", {
|
|
25
|
+
handlers: { root: R, element: b, text: O, comment: x, doctype: M, raw: X },
|
|
26
|
+
unknown: W
|
|
27
|
+
}), t = {
|
|
28
|
+
parser: n ? new g(z) : g.getFragmentParser(void 0, z),
|
|
29
|
+
handle(m) {
|
|
30
|
+
o(m, t);
|
|
31
|
+
},
|
|
32
|
+
stitches: !1,
|
|
33
|
+
options: e || {}
|
|
34
|
+
};
|
|
35
|
+
o(r, t), c(t, a());
|
|
36
|
+
const u = n ? t.parser.document : t.parser.getFragment(), s = v(u, {
|
|
37
|
+
// To do: support `space`?
|
|
38
|
+
file: t.options.file
|
|
39
|
+
});
|
|
40
|
+
return t.stitches && I(s, "comment", function(m, k, h) {
|
|
41
|
+
const d = (
|
|
42
|
+
/** @type {Stitch} */
|
|
43
|
+
/** @type {unknown} */
|
|
44
|
+
m
|
|
45
|
+
);
|
|
46
|
+
if (d.value.stitch && h && k !== void 0) {
|
|
47
|
+
const A = h.children;
|
|
48
|
+
return A[k] = d.value.stitch, k;
|
|
49
|
+
}
|
|
50
|
+
}), s.type === "root" && s.children.length === 1 && s.children[0].type === r.type ? s.children[0] : s;
|
|
51
|
+
}
|
|
52
|
+
function w(r, e) {
|
|
53
|
+
let n = -1;
|
|
54
|
+
if (r)
|
|
55
|
+
for (; ++n < r.length; )
|
|
56
|
+
e.handle(r[n]);
|
|
57
|
+
}
|
|
58
|
+
function R(r, e) {
|
|
59
|
+
w(r.children, e);
|
|
60
|
+
}
|
|
61
|
+
function b(r, e) {
|
|
62
|
+
G(r, e), w(r.children, e), j(r, e);
|
|
63
|
+
}
|
|
64
|
+
function O(r, e) {
|
|
65
|
+
e.parser.tokenizer.state > 4 && (e.parser.tokenizer.state = 0);
|
|
66
|
+
const n = {
|
|
67
|
+
type: p.CHARACTER,
|
|
68
|
+
chars: r.value,
|
|
69
|
+
location: l(r)
|
|
70
|
+
};
|
|
71
|
+
c(e, a(r)), e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken);
|
|
72
|
+
}
|
|
73
|
+
function M(r, e) {
|
|
74
|
+
const n = {
|
|
75
|
+
type: p.DOCTYPE,
|
|
76
|
+
name: "html",
|
|
77
|
+
forceQuirks: !1,
|
|
78
|
+
publicId: "",
|
|
79
|
+
systemId: "",
|
|
80
|
+
location: l(r)
|
|
81
|
+
};
|
|
82
|
+
c(e, a(r)), e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken);
|
|
83
|
+
}
|
|
84
|
+
function F(r, e) {
|
|
85
|
+
e.stitches = !0;
|
|
86
|
+
const n = H(r);
|
|
87
|
+
if ("children" in r && "children" in n) {
|
|
88
|
+
const o = (
|
|
89
|
+
/** @type {Root} */
|
|
90
|
+
D({ type: "root", children: r.children }, e.options)
|
|
91
|
+
);
|
|
92
|
+
n.children = o.children;
|
|
93
|
+
}
|
|
94
|
+
x({ type: "comment", value: { stitch: n } }, e);
|
|
95
|
+
}
|
|
96
|
+
function x(r, e) {
|
|
97
|
+
const n = r.value, o = {
|
|
98
|
+
type: p.COMMENT,
|
|
99
|
+
data: n,
|
|
100
|
+
location: l(r)
|
|
101
|
+
};
|
|
102
|
+
c(e, a(r)), e.parser.currentToken = o, e.parser._processToken(e.parser.currentToken);
|
|
103
|
+
}
|
|
104
|
+
function X(r, e) {
|
|
105
|
+
if (e.parser.tokenizer.preprocessor.html = "", e.parser.tokenizer.preprocessor.pos = -1, e.parser.tokenizer.preprocessor.lastGapPos = -2, e.parser.tokenizer.preprocessor.gapStack = [], e.parser.tokenizer.preprocessor.skipNextNewLine = !1, e.parser.tokenizer.preprocessor.lastChunkWritten = !1, e.parser.tokenizer.preprocessor.endOfChunkHit = !1, e.parser.tokenizer.preprocessor.isEol = !1, E(e, a(r)), e.parser.tokenizer.write(
|
|
106
|
+
e.options.tagfilter ? r.value.replace(P, "<$1$2") : r.value,
|
|
107
|
+
!1
|
|
108
|
+
), e.parser.tokenizer._runParsingLoop(), e.parser.tokenizer.state === 72 || // @ts-expect-error: removed.
|
|
109
|
+
e.parser.tokenizer.state === 78) {
|
|
110
|
+
e.parser.tokenizer.preprocessor.lastChunkWritten = !0;
|
|
111
|
+
const n = e.parser.tokenizer._consume();
|
|
112
|
+
e.parser.tokenizer._callState(n);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function W(r, e) {
|
|
116
|
+
const n = (
|
|
117
|
+
/** @type {Nodes} */
|
|
118
|
+
r
|
|
119
|
+
);
|
|
120
|
+
if (e.options.passThrough && e.options.passThrough.includes(n.type))
|
|
121
|
+
F(n, e);
|
|
122
|
+
else {
|
|
123
|
+
let o = "";
|
|
124
|
+
throw _.has(n.type) && (o = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + o);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function c(r, e) {
|
|
128
|
+
E(r, e);
|
|
129
|
+
const n = r.parser.tokenizer.currentCharacterToken;
|
|
130
|
+
n && n.location && (n.location.endLine = r.parser.tokenizer.preprocessor.line, n.location.endCol = r.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = r.parser.tokenizer.preprocessor.offset + 1, r.parser.currentToken = n, r.parser._processToken(r.parser.currentToken)), r.parser.tokenizer.paused = !1, r.parser.tokenizer.inLoop = !1, r.parser.tokenizer.active = !1, r.parser.tokenizer.returnState = i.DATA, r.parser.tokenizer.charRefCode = -1, r.parser.tokenizer.consumedAfterSnapshot = -1, r.parser.tokenizer.currentLocation = null, r.parser.tokenizer.currentCharacterToken = null, r.parser.tokenizer.currentToken = null, r.parser.tokenizer.currentAttr = { name: "", value: "" };
|
|
131
|
+
}
|
|
132
|
+
function E(r, e) {
|
|
133
|
+
if (e && e.offset !== void 0) {
|
|
134
|
+
const n = {
|
|
135
|
+
startLine: e.line,
|
|
136
|
+
startCol: e.column,
|
|
137
|
+
startOffset: e.offset,
|
|
138
|
+
endLine: -1,
|
|
139
|
+
endCol: -1,
|
|
140
|
+
endOffset: -1
|
|
141
|
+
};
|
|
142
|
+
r.parser.tokenizer.preprocessor.lineStartPos = -e.column + 1, r.parser.tokenizer.preprocessor.droppedBufferSize = e.offset, r.parser.tokenizer.preprocessor.line = e.line, r.parser.tokenizer.currentLocation = n;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function G(r, e) {
|
|
146
|
+
const n = r.tagName.toLowerCase();
|
|
147
|
+
if (e.parser.tokenizer.state === i.PLAINTEXT) return;
|
|
148
|
+
c(e, a(r));
|
|
149
|
+
const o = e.parser.openElements.current;
|
|
150
|
+
let t = "namespaceURI" in o ? o.namespaceURI : f.html;
|
|
151
|
+
t === f.html && n === "svg" && (t = f.svg);
|
|
152
|
+
const u = S(
|
|
153
|
+
// Shallow clone to not delve into `children`: we only need the attributes.
|
|
154
|
+
{ ...r, children: [] },
|
|
155
|
+
{ space: t === f.svg ? "svg" : "html" }
|
|
156
|
+
), s = {
|
|
157
|
+
type: p.START_TAG,
|
|
158
|
+
tagName: n,
|
|
159
|
+
tagID: y(n),
|
|
160
|
+
// We always send start and end tags.
|
|
161
|
+
selfClosing: !1,
|
|
162
|
+
ackSelfClosing: !1,
|
|
163
|
+
// Always element.
|
|
164
|
+
/* c8 ignore next */
|
|
165
|
+
attrs: "attrs" in u ? u.attrs : [],
|
|
166
|
+
location: l(r)
|
|
167
|
+
};
|
|
168
|
+
e.parser.currentToken = s, e.parser._processToken(e.parser.currentToken), e.parser.tokenizer.lastStartTagName = n;
|
|
169
|
+
}
|
|
170
|
+
function j(r, e) {
|
|
171
|
+
const n = r.tagName.toLowerCase();
|
|
172
|
+
if (!e.parser.tokenizer.inForeignNode && L.includes(n) || e.parser.tokenizer.state === i.PLAINTEXT) return;
|
|
173
|
+
c(e, C(r));
|
|
174
|
+
const o = {
|
|
175
|
+
type: p.END_TAG,
|
|
176
|
+
tagName: n,
|
|
177
|
+
tagID: y(n),
|
|
178
|
+
selfClosing: !1,
|
|
179
|
+
ackSelfClosing: !1,
|
|
180
|
+
attrs: [],
|
|
181
|
+
location: l(r)
|
|
182
|
+
};
|
|
183
|
+
e.parser.currentToken = o, e.parser._processToken(e.parser.currentToken), // Current element is closed.
|
|
184
|
+
n === e.parser.tokenizer.lastStartTagName && // `<textarea>` and `<title>`
|
|
185
|
+
(e.parser.tokenizer.state === i.RCDATA || // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`
|
|
186
|
+
e.parser.tokenizer.state === i.RAWTEXT || // `<script>`
|
|
187
|
+
e.parser.tokenizer.state === i.SCRIPT_DATA) && (e.parser.tokenizer.state = i.DATA);
|
|
188
|
+
}
|
|
189
|
+
function B(r) {
|
|
190
|
+
const e = r.type === "root" ? r.children[0] : r;
|
|
191
|
+
return !!(e && (e.type === "doctype" || e.type === "element" && e.tagName.toLowerCase() === "html"));
|
|
192
|
+
}
|
|
193
|
+
function l(r) {
|
|
194
|
+
const e = a(r) || {
|
|
195
|
+
line: void 0,
|
|
196
|
+
column: void 0,
|
|
197
|
+
offset: void 0
|
|
198
|
+
}, n = C(r) || {
|
|
199
|
+
line: void 0,
|
|
200
|
+
column: void 0,
|
|
201
|
+
offset: void 0
|
|
202
|
+
};
|
|
203
|
+
return {
|
|
204
|
+
startLine: e.line,
|
|
205
|
+
startCol: e.column,
|
|
206
|
+
startOffset: e.offset,
|
|
207
|
+
endLine: n.line,
|
|
208
|
+
endCol: n.column,
|
|
209
|
+
endOffset: n.offset
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function H(r) {
|
|
213
|
+
return "children" in r ? T({ ...r, children: [] }) : T(r);
|
|
214
|
+
}
|
|
215
|
+
export {
|
|
216
|
+
D as raw
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../node_modules/hast-util-raw/lib/index.js"],"sourcesContent":["/**\n * @import {Options} from 'hast-util-raw'\n * @import {Comment, Doctype, Element, Nodes, RootContent, Root, Text} from 'hast'\n * @import {Raw} from 'mdast-util-to-hast'\n * @import {DefaultTreeAdapterMap, ParserOptions} from 'parse5'\n * @import {Point} from 'unist'\n */\n\n/**\n * @typedef State\n * Info passed around about the current state.\n * @property {(node: Nodes) => undefined} handle\n * Add a hast node to the parser.\n * @property {Options} options\n * User configuration.\n * @property {Parser<DefaultTreeAdapterMap>} parser\n * Current parser.\n * @property {boolean} stitches\n * Whether there are stitches.\n */\n\n/**\n * @typedef Stitch\n * Custom comment-like value we pass through parse5, which contains a\n * replacement node that we’ll swap back in afterwards.\n * @property {'comment'} type\n * Node type.\n * @property {{stitch: Nodes}} value\n * Replacement value.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {fromParse5} from 'hast-util-from-parse5'\nimport {toParse5} from 'hast-util-to-parse5'\nimport {htmlVoidElements} from 'html-void-elements'\nimport {Parser, Token, TokenizerMode, html} from 'parse5'\nimport {pointEnd, pointStart} from 'unist-util-position'\nimport {visit} from 'unist-util-visit'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\nconst gfmTagfilterExpression =\n /<(\\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\\t\\n\\f\\r />])/gi\n\n// Node types associated with MDX.\n// <https://github.com/mdx-js/mdx/blob/8a56312/packages/mdx/lib/node-types.js>\nconst knownMdxNames = new Set([\n 'mdxFlowExpression',\n 'mdxJsxFlowElement',\n 'mdxJsxTextElement',\n 'mdxTextExpression',\n 'mdxjsEsm'\n])\n\n/** @type {ParserOptions<DefaultTreeAdapterMap>} */\nconst parseOptions = {sourceCodeLocationInfo: true, scriptingEnabled: false}\n\n/**\n * Pass a hast tree through an HTML parser, which will fix nesting, and turn\n * raw nodes into actual nodes.\n *\n * @param {Nodes} tree\n * Original hast tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * Parsed again tree.\n */\nexport function raw(tree, options) {\n const document = documentMode(tree)\n /** @type {(node: Nodes, state: State) => undefined} */\n const one = zwitch('type', {\n handlers: {root, element, text, comment, doctype, raw: handleRaw},\n unknown\n })\n\n /** @type {State} */\n const state = {\n parser: document\n ? new Parser(parseOptions)\n : Parser.getFragmentParser(undefined, parseOptions),\n handle(node) {\n one(node, state)\n },\n stitches: false,\n options: options || {}\n }\n\n one(tree, state)\n resetTokenizer(state, pointStart())\n\n const p5 = document ? state.parser.document : state.parser.getFragment()\n const result = fromParse5(p5, {\n // To do: support `space`?\n file: state.options.file\n })\n\n if (state.stitches) {\n visit(result, 'comment', function (node, index, parent) {\n const stitch = /** @type {Stitch} */ (/** @type {unknown} */ (node))\n if (stitch.value.stitch && parent && index !== undefined) {\n /** @type {Array<RootContent>} */\n const siblings = parent.children\n // @ts-expect-error: assume the stitch is allowed.\n siblings[index] = stitch.value.stitch\n return index\n }\n })\n }\n\n // Unpack if possible and when not given a `root`.\n if (\n result.type === 'root' &&\n result.children.length === 1 &&\n result.children[0].type === tree.type\n ) {\n return result.children[0]\n }\n\n return result\n}\n\n/**\n * Transform all nodes\n *\n * @param {Array<RootContent>} nodes\n * hast content.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction all(nodes, state) {\n let index = -1\n\n /* istanbul ignore else - invalid nodes, see rehypejs/rehype-raw#7. */\n if (nodes) {\n while (++index < nodes.length) {\n state.handle(nodes[index])\n }\n }\n}\n\n/**\n * Transform a root.\n *\n * @param {Root} node\n * hast root node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction root(node, state) {\n all(node.children, state)\n}\n\n/**\n * Transform an element.\n *\n * @param {Element} node\n * hast element node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction element(node, state) {\n startTag(node, state)\n\n all(node.children, state)\n\n endTag(node, state)\n}\n\n/**\n * Transform a text.\n *\n * @param {Text} node\n * hast text node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction text(node, state) {\n // Allow `DATA` through `PLAINTEXT`,\n // but when hanging in a tag for example,\n // switch back to `DATA`.\n // Note: `State` is not exposed by `parse5`, so these numbers are fragile.\n // See: <https://github.com/inikulin/parse5/blob/46cba43/packages/parse5/lib/tokenizer/index.ts#L58>\n if (state.parser.tokenizer.state > 4) {\n state.parser.tokenizer.state = 0\n }\n\n /** @type {Token.CharacterToken} */\n const token = {\n type: Token.TokenType.CHARACTER,\n chars: node.value,\n location: createParse5Location(node)\n }\n\n resetTokenizer(state, pointStart(node))\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n}\n\n/**\n * Transform a doctype.\n *\n * @param {Doctype} node\n * hast doctype node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction doctype(node, state) {\n /** @type {Token.DoctypeToken} */\n const token = {\n type: Token.TokenType.DOCTYPE,\n name: 'html',\n forceQuirks: false,\n publicId: '',\n systemId: '',\n location: createParse5Location(node)\n }\n\n resetTokenizer(state, pointStart(node))\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n}\n\n/**\n * Transform a stitch.\n *\n * @param {Nodes} node\n * unknown node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction stitch(node, state) {\n // Mark that there are stitches, so we need to walk the tree and revert them.\n state.stitches = true\n\n /** @type {Nodes} */\n const clone = cloneWithoutChildren(node)\n\n // Recurse, because to somewhat handle `[<x>]</x>` (where `[]` denotes the\n // passed through node).\n if ('children' in node && 'children' in clone) {\n // Root in root out.\n const fakeRoot = /** @type {Root} */ (\n raw({type: 'root', children: node.children}, state.options)\n )\n clone.children = fakeRoot.children\n }\n\n // Hack: `value` is supposed to be a string, but as none of the tools\n // (`parse5` or `hast-util-from-parse5`) looks at it, we can pass nodes\n // through.\n comment({type: 'comment', value: {stitch: clone}}, state)\n}\n\n/**\n * Transform a comment (or stitch).\n *\n * @param {Comment | Stitch} node\n * hast comment node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction comment(node, state) {\n /** @type {string} */\n // @ts-expect-error: we pass stitches through.\n const data = node.value\n\n /** @type {Token.CommentToken} */\n const token = {\n type: Token.TokenType.COMMENT,\n data,\n location: createParse5Location(node)\n }\n resetTokenizer(state, pointStart(node))\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n}\n\n/**\n * Transform a raw node.\n *\n * @param {Raw} node\n * hast raw node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction handleRaw(node, state) {\n // Reset preprocessor:\n // See: <https://github.com/inikulin/parse5/blob/6f7ca60/packages/parse5/lib/tokenizer/preprocessor.ts#L18-L31>.\n state.parser.tokenizer.preprocessor.html = ''\n state.parser.tokenizer.preprocessor.pos = -1\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.lastGapPos = -2\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.gapStack = []\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.skipNextNewLine = false\n state.parser.tokenizer.preprocessor.lastChunkWritten = false\n state.parser.tokenizer.preprocessor.endOfChunkHit = false\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.isEol = false\n\n // Now pass `node.value`.\n setPoint(state, pointStart(node))\n\n state.parser.tokenizer.write(\n state.options.tagfilter\n ? node.value.replace(gfmTagfilterExpression, '<$1$2')\n : node.value,\n false\n )\n // @ts-expect-error: private.\n state.parser.tokenizer._runParsingLoop()\n\n // Character references hang, so if we ended there, we need to flush\n // those too.\n // We reset the preprocessor as if the document ends here.\n // Then one single call to the relevant state does the trick, parse5\n // consumes the whole token.\n\n // Note: `State` is not exposed by `parse5`, so these numbers are fragile.\n // See: <https://github.com/inikulin/parse5/blob/46cba43/packages/parse5/lib/tokenizer/index.ts#L58>\n // Note: a change to `parse5`, which breaks this, was merged but not released.\n // Investigate when it is.\n // To do: remove next major.\n /* c8 ignore next 12 -- removed in <https://github.com/inikulin/parse5/pull/897> */\n if (\n state.parser.tokenizer.state === 72 /* NAMED_CHARACTER_REFERENCE */ ||\n // @ts-expect-error: removed.\n state.parser.tokenizer.state === 78 /* NUMERIC_CHARACTER_REFERENCE_END */\n ) {\n state.parser.tokenizer.preprocessor.lastChunkWritten = true\n /** @type {number} */\n // @ts-expect-error: private.\n const cp = state.parser.tokenizer._consume()\n // @ts-expect-error: private.\n state.parser.tokenizer._callState(cp)\n }\n}\n\n/**\n * Crash on an unknown node.\n *\n * @param {unknown} node_\n * unknown node.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Never.\n */\nfunction unknown(node_, state) {\n const node = /** @type {Nodes} */ (node_)\n\n if (\n state.options.passThrough &&\n state.options.passThrough.includes(node.type)\n ) {\n stitch(node, state)\n } else {\n let extra = ''\n\n if (knownMdxNames.has(node.type)) {\n extra =\n \". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax\"\n }\n\n throw new Error('Cannot compile `' + node.type + '` node' + extra)\n }\n}\n\n/**\n * Reset the tokenizer of a parser.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Point | undefined} point\n * Point.\n * @returns {undefined}\n * Nothing.\n */\nfunction resetTokenizer(state, point) {\n setPoint(state, point)\n\n // Process final characters if they’re still there after hibernating.\n /** @type {Token.CharacterToken} */\n // @ts-expect-error: private.\n const token = state.parser.tokenizer.currentCharacterToken\n\n if (token && token.location) {\n token.location.endLine = state.parser.tokenizer.preprocessor.line\n token.location.endCol = state.parser.tokenizer.preprocessor.col + 1\n token.location.endOffset = state.parser.tokenizer.preprocessor.offset + 1\n // @ts-expect-error: private.\n state.parser.currentToken = token\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n }\n\n // Reset tokenizer:\n // See: <https://github.com/inikulin/parse5/blob/6f7ca60/packages/parse5/lib/tokenizer/index.ts#L187-L223>.\n // Especially putting it back in the `data` state is useful: some elements,\n // like textareas and iframes, change the state.\n // See GH-7.\n // But also if broken HTML is in `raw`, and then a correct element is given.\n // See GH-11.\n // @ts-expect-error: private.\n state.parser.tokenizer.paused = false\n // @ts-expect-error: private.\n state.parser.tokenizer.inLoop = false\n\n // Note: don’t reset `state`, `inForeignNode`, or `lastStartTagName`, we\n // manually update those when needed.\n state.parser.tokenizer.active = false\n // @ts-expect-error: private.\n state.parser.tokenizer.returnState = TokenizerMode.DATA\n // @ts-expect-error: private.\n state.parser.tokenizer.charRefCode = -1\n // @ts-expect-error: private.\n state.parser.tokenizer.consumedAfterSnapshot = -1\n // @ts-expect-error: private.\n state.parser.tokenizer.currentLocation = null\n // @ts-expect-error: private.\n state.parser.tokenizer.currentCharacterToken = null\n // @ts-expect-error: private.\n state.parser.tokenizer.currentToken = null\n // @ts-expect-error: private.\n state.parser.tokenizer.currentAttr = {name: '', value: ''}\n}\n\n/**\n * Set current location.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Point | undefined} point\n * Point.\n * @returns {undefined}\n * Nothing.\n */\nfunction setPoint(state, point) {\n if (point && point.offset !== undefined) {\n /** @type {Token.Location} */\n const location = {\n startLine: point.line,\n startCol: point.column,\n startOffset: point.offset,\n endLine: -1,\n endCol: -1,\n endOffset: -1\n }\n\n // @ts-expect-error: private.\n // type-coverage:ignore-next-line\n state.parser.tokenizer.preprocessor.lineStartPos = -point.column + 1 // Looks weird, but ensures we get correct positional info.\n state.parser.tokenizer.preprocessor.droppedBufferSize = point.offset\n state.parser.tokenizer.preprocessor.line = point.line\n // @ts-expect-error: private.\n state.parser.tokenizer.currentLocation = location\n }\n}\n\n/**\n * Emit a start tag.\n *\n * @param {Element} node\n * Element.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction startTag(node, state) {\n const tagName = node.tagName.toLowerCase()\n\n // Ignore tags if we’re in plain text.\n if (state.parser.tokenizer.state === TokenizerMode.PLAINTEXT) return\n\n resetTokenizer(state, pointStart(node))\n\n const current = state.parser.openElements.current\n let ns = 'namespaceURI' in current ? current.namespaceURI : webNamespaces.html\n\n if (ns === webNamespaces.html && tagName === 'svg') {\n ns = webNamespaces.svg\n }\n\n const result = toParse5(\n // Shallow clone to not delve into `children`: we only need the attributes.\n {...node, children: []},\n {space: ns === webNamespaces.svg ? 'svg' : 'html'}\n )\n\n /** @type {Token.TagToken} */\n const tag = {\n type: Token.TokenType.START_TAG,\n tagName,\n tagID: html.getTagID(tagName),\n // We always send start and end tags.\n selfClosing: false,\n ackSelfClosing: false,\n // Always element.\n /* c8 ignore next */\n attrs: 'attrs' in result ? result.attrs : [],\n location: createParse5Location(node)\n }\n\n // The HTML parsing algorithm works by doing half of the state management in\n // the tokenizer and half in the parser.\n // We can’t use the tokenizer here, as we don’t have strings.\n // So we act *as if* the tokenizer emits tokens:\n\n // @ts-expect-error: private.\n state.parser.currentToken = tag\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n\n // …but then we still need a bunch of work that the tokenizer would normally\n // do, such as:\n\n // Set a tag name, similar to how the tokenizer would do it.\n state.parser.tokenizer.lastStartTagName = tagName\n\n // `inForeignNode` is correctly set by the parser.\n}\n\n/**\n * Emit an end tag.\n *\n * @param {Element} node\n * Element.\n * @param {State} state\n * Info passed around about the current state.\n * @returns {undefined}\n * Nothing.\n */\nfunction endTag(node, state) {\n const tagName = node.tagName.toLowerCase()\n // Do not emit closing tags for HTML void elements.\n if (\n !state.parser.tokenizer.inForeignNode &&\n htmlVoidElements.includes(tagName)\n ) {\n return\n }\n\n // Ignore tags if we’re in plain text.\n if (state.parser.tokenizer.state === TokenizerMode.PLAINTEXT) return\n\n resetTokenizer(state, pointEnd(node))\n\n /** @type {Token.TagToken} */\n const tag = {\n type: Token.TokenType.END_TAG,\n tagName,\n tagID: html.getTagID(tagName),\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: createParse5Location(node)\n }\n\n // The HTML parsing algorithm works by doing half of the state management in\n // the tokenizer and half in the parser.\n // We can’t use the tokenizer here, as we don’t have strings.\n // So we act *as if* the tokenizer emits tokens:\n\n // @ts-expect-error: private.\n state.parser.currentToken = tag\n // @ts-expect-error: private.\n state.parser._processToken(state.parser.currentToken)\n\n // …but then we still need a bunch of work that the tokenizer would normally\n // do, such as:\n\n // Switch back to the data state after alternative states that don’t accept\n // tags:\n if (\n // Current element is closed.\n tagName === state.parser.tokenizer.lastStartTagName &&\n // `<textarea>` and `<title>`\n (state.parser.tokenizer.state === TokenizerMode.RCDATA ||\n // `<iframe>`, `<noembed>`, `<noframes>`, `<style>`, `<xmp>`\n state.parser.tokenizer.state === TokenizerMode.RAWTEXT ||\n // `<script>`\n state.parser.tokenizer.state === TokenizerMode.SCRIPT_DATA)\n // Note: `<plaintext>` not needed, as it’s the last element.\n ) {\n state.parser.tokenizer.state = TokenizerMode.DATA\n }\n}\n\n/**\n * Check if `node` represents a whole document or a fragment.\n *\n * @param {Nodes} node\n * hast node.\n * @returns {boolean}\n * Whether this represents a whole document or a fragment.\n */\nfunction documentMode(node) {\n const head = node.type === 'root' ? node.children[0] : node\n return Boolean(\n head &&\n (head.type === 'doctype' ||\n (head.type === 'element' && head.tagName.toLowerCase() === 'html'))\n )\n}\n\n/**\n * Get a `parse5` location from a node.\n *\n * @param {Nodes | Stitch} node\n * hast node.\n * @returns {Token.Location}\n * `parse5` location.\n */\nfunction createParse5Location(node) {\n const start = pointStart(node) || {\n line: undefined,\n column: undefined,\n offset: undefined\n }\n const end = pointEnd(node) || {\n line: undefined,\n column: undefined,\n offset: undefined\n }\n\n /** @type {Record<keyof Token.Location, number | undefined>} */\n const location = {\n startLine: start.line,\n startCol: start.column,\n startOffset: start.offset,\n endLine: end.line,\n endCol: end.column,\n endOffset: end.offset\n }\n\n // @ts-expect-error: unist point values can be `undefined` in hast, which\n // `parse5` types don’t want.\n return location\n}\n\n/**\n * @template {Nodes} NodeType\n * Node type.\n * @param {NodeType} node\n * Node to clone.\n * @returns {NodeType}\n * Cloned node, without children.\n */\nfunction cloneWithoutChildren(node) {\n return 'children' in node\n ? structuredClone({...node, children: []})\n : structuredClone(node)\n}\n"],"names":["gfmTagfilterExpression","knownMdxNames","parseOptions","raw","tree","options","document","documentMode","one","zwitch","root","element","text","comment","doctype","handleRaw","unknown","state","Parser","node","resetTokenizer","pointStart","p5","result","fromParse5","visit","index","parent","stitch","siblings","all","nodes","startTag","endTag","token","Token.TokenType","createParse5Location","clone","cloneWithoutChildren","fakeRoot","data","setPoint","cp","node_","extra","point","TokenizerMode","location","tagName","current","ns","webNamespaces","toParse5","tag","html.getTagID","htmlVoidElements","pointEnd","head","start","end","structuredClone"],"mappings":";;;;;;;;;;;;;;;AAyCA,MAAMA,IACJ,gGAIIC,IAAgB,oBAAI,IAAI;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAGKC,IAAe,EAAC,wBAAwB,IAAM,kBAAkB,GAAK;AAapE,SAASC,EAAIC,GAAMC,GAAS;AACjC,QAAMC,IAAWC,EAAaH,CAAI,GAE5BI,IAAMC,EAAO,QAAQ;AAAA,IACzB,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AU,CAAA,EAAE,CAAC,IACvCyC,EAAgBzC,CAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../../../../devlop/lib/default.cjs.js"),d=require("../../property-information/index.cjs.js"),b=require("../../../../web-namespaces/index.cjs.js"),h=require("../../hastscript/lib/index.cjs.js"),q=require("../../property-information/lib/find.cjs.js"),L=require("../../vfile-location/lib/index.cjs.js"),y={}.hasOwnProperty,w=Object.prototype;function C(t,n){const e=n||{};return p({file:e.file||void 0,location:!1,schema:e.space==="svg"?d.svg:d.html,verbose:e.verbose||!1},t)}function p(t,n){let e;switch(n.nodeName){case"#comment":{const s=n;return e={type:"comment",value:s.data},l(t,s,e),e}case"#document":case"#document-fragment":{const s=n,c="mode"in s?s.mode==="quirks"||s.mode==="limited-quirks":!1;if(e={type:"root",children:T(t,n.childNodes),data:{quirksMode:c}},t.file&&t.location){const a=String(t.file),o=L.location(a),i=o.toPoint(0),r=o.toPoint(a.length);e.position={start:i,end:r}}return e}case"#documentType":{const s=n;return e={type:"doctype"},l(t,s,e),e}case"#text":{const s=n;return e={type:"text",value:s.value},l(t,s,e),e}default:return e=N(t,n),e}}function T(t,n){let e=-1;const s=[];for(;++e<n.length;){const c=p(t,n[e]);s.push(c)}return s}function N(t,n){const e=t.schema;t.schema=n.namespaceURI===b.webNamespaces.svg?d.svg:d.html;let s=-1;const c={};for(;++s<n.attrs.length;){const i=n.attrs[s],r=(i.prefix?i.prefix+":":"")+i.name;y.call(w,r)||(c[r]=i.value)}const o=(t.schema.space==="svg"?h.s:h.h)(n.tagName,c,T(t,n.childNodes));if(l(t,n,o),o.tagName==="template"){const i=n,r=i.sourceCodeLocation,u=r&&r.startTag&&f(r.startTag),m=r&&r.endTag&&f(r.endTag),g=p(t,i.content);u&&m&&t.file&&(g.position={start:u.end,end:m.start}),o.content=g}return t.schema=e,o}function l(t,n,e){if("sourceCodeLocation"in n&&n.sourceCodeLocation&&t.file){const s=O(t,e,n.sourceCodeLocation);s&&(t.location=!0,e.position=s)}}function O(t,n,e){const s=f(e);if(n.type==="element"){const c=n.children[n.children.length-1];if(s&&!e.endTag&&c&&c.position&&c.position.end&&(s.end=Object.assign({},c.position.end)),t.verbose){const a={};let o;if(e.attrs)for(o in e.attrs)y.call(e.attrs,o)&&(a[q.find(t.schema,o).property]=f(e.attrs[o]));x.ok(e.startTag);const i=f(e.startTag),r=e.endTag?f(e.endTag):void 0,u={opening:i};r&&(u.closing=r),u.properties=a,n.data={position:u}}}return s}function f(t){const n=v({line:t.startLine,column:t.startCol,offset:t.startOffset}),e=v({line:t.endLine,column:t.endCol,offset:t.endOffset});return n||e?{start:n,end:e}:void 0}function v(t){return t.line&&t.column?t:void 0}exports.fromParse5=C;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.cjs.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.js"],"sourcesContent":["/**\n * @import {ElementData, Element, Nodes, RootContent, Root} from 'hast'\n * @import {DefaultTreeAdapterMap, Token} from 'parse5'\n * @import {Schema} from 'property-information'\n * @import {Point, Position} from 'unist'\n * @import {VFile} from 'vfile'\n * @import {Options} from 'hast-util-from-parse5'\n */\n\n/**\n * @typedef State\n * Info passed around about the current state.\n * @property {VFile | undefined} file\n * Corresponding file.\n * @property {boolean} location\n * Whether location info was found.\n * @property {Schema} schema\n * Current schema.\n * @property {boolean | undefined} verbose\n * Add extra positional info.\n */\n\nimport {ok as assert} from 'devlop'\nimport {h, s} from 'hastscript'\nimport {find, html, svg} from 'property-information'\nimport {location} from 'vfile-location'\nimport {webNamespaces} from 'web-namespaces'\n\nconst own = {}.hasOwnProperty\n/** @type {unknown} */\n// type-coverage:ignore-next-line\nconst proto = Object.prototype\n\n/**\n * Transform a `parse5` AST to hast.\n *\n * @param {DefaultTreeAdapterMap['node']} tree\n * `parse5` tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * hast tree.\n */\nexport function fromParse5(tree, options) {\n const settings = options || {}\n\n return one(\n {\n file: settings.file || undefined,\n location: false,\n schema: settings.space === 'svg' ? svg : html,\n verbose: settings.verbose || false\n },\n tree\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['node']} node\n * p5 node.\n * @returns {Nodes}\n * hast node.\n */\nfunction one(state, node) {\n /** @type {Nodes} */\n let result\n\n switch (node.nodeName) {\n case '#comment': {\n const reference = /** @type {DefaultTreeAdapterMap['commentNode']} */ (\n node\n )\n result = {type: 'comment', value: reference.data}\n patch(state, reference, result)\n return result\n }\n\n case '#document':\n case '#document-fragment': {\n const reference =\n /** @type {DefaultTreeAdapterMap['document'] | DefaultTreeAdapterMap['documentFragment']} */ (\n node\n )\n const quirksMode =\n 'mode' in reference\n ? reference.mode === 'quirks' || reference.mode === 'limited-quirks'\n : false\n\n result = {\n type: 'root',\n children: all(state, node.childNodes),\n data: {quirksMode}\n }\n\n if (state.file && state.location) {\n const document = String(state.file)\n const loc = location(document)\n const start = loc.toPoint(0)\n const end = loc.toPoint(document.length)\n // Always defined as we give valid input.\n assert(start, 'expected `start`')\n assert(end, 'expected `end`')\n result.position = {start, end}\n }\n\n return result\n }\n\n case '#documentType': {\n const reference = /** @type {DefaultTreeAdapterMap['documentType']} */ (\n node\n )\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {DefaultTreeAdapterMap['textNode']} */ (node)\n result = {type: 'text', value: reference.value}\n patch(state, reference, result)\n return result\n }\n\n // Element.\n default: {\n const reference = /** @type {DefaultTreeAdapterMap['element']} */ (node)\n result = element(state, reference)\n return result\n }\n }\n}\n\n/**\n * Transform children.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Array<DefaultTreeAdapterMap['node']>} nodes\n * Nodes.\n * @returns {Array<RootContent>}\n * hast nodes.\n */\nfunction all(state, nodes) {\n let index = -1\n /** @type {Array<RootContent>} */\n const results = []\n\n while (++index < nodes.length) {\n // Assume no roots in `nodes`.\n const result = /** @type {RootContent} */ (one(state, nodes[index]))\n results.push(result)\n }\n\n return results\n}\n\n/**\n * Transform an element.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['element']} node\n * `parse5` node to transform.\n * @returns {Element}\n * hast node.\n */\nfunction element(state, node) {\n const schema = state.schema\n\n state.schema = node.namespaceURI === webNamespaces.svg ? svg : html\n\n // Props.\n let index = -1\n /** @type {Record<string, string>} */\n const properties = {}\n\n while (++index < node.attrs.length) {\n const attribute = node.attrs[index]\n const name =\n (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name\n if (!own.call(proto, name)) {\n properties[name] = attribute.value\n }\n }\n\n // Build.\n const x = state.schema.space === 'svg' ? s : h\n const result = x(node.tagName, properties, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {DefaultTreeAdapterMap['template']} */ (node)\n const pos = reference.sourceCodeLocation\n const startTag = pos && pos.startTag && position(pos.startTag)\n const endTag = pos && pos.endTag && position(pos.endTag)\n\n // Root in, root out.\n const content = /** @type {Root} */ (one(state, reference.content))\n\n if (startTag && endTag && state.file) {\n content.position = {start: startTag.end, end: endTag.start}\n }\n\n result.content = content\n }\n\n state.schema = schema\n\n return result\n}\n\n/**\n * Patch positional info from `from` onto `to`.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['node']} from\n * p5 node.\n * @param {Nodes} to\n * hast node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(state, from, to) {\n if ('sourceCodeLocation' in from && from.sourceCodeLocation && state.file) {\n const position = createLocation(state, to, from.sourceCodeLocation)\n\n if (position) {\n state.location = true\n to.position = position\n }\n }\n}\n\n/**\n * Create clean positional information.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Nodes} node\n * hast node.\n * @param {Token.ElementLocation} location\n * p5 location info.\n * @returns {Position | undefined}\n * Position, or nothing.\n */\nfunction createLocation(state, node, location) {\n const result = position(location)\n\n if (node.type === 'element') {\n const tail = node.children[node.children.length - 1]\n\n // Bug for unclosed with children.\n // See: <https://github.com/inikulin/parse5/issues/109>.\n if (\n result &&\n !location.endTag &&\n tail &&\n tail.position &&\n tail.position.end\n ) {\n result.end = Object.assign({}, tail.position.end)\n }\n\n if (state.verbose) {\n /** @type {Record<string, Position | undefined>} */\n const properties = {}\n /** @type {string} */\n let key\n\n if (location.attrs) {\n for (key in location.attrs) {\n if (own.call(location.attrs, key)) {\n properties[find(state.schema, key).property] = position(\n location.attrs[key]\n )\n }\n }\n }\n\n assert(location.startTag, 'a start tag should exist')\n const opening = position(location.startTag)\n const closing = location.endTag ? position(location.endTag) : undefined\n /** @type {ElementData['position']} */\n const data = {opening}\n if (closing) data.closing = closing\n data.properties = properties\n\n node.data = {position: data}\n }\n }\n\n return result\n}\n\n/**\n * Turn a p5 location into a position.\n *\n * @param {Token.Location} loc\n * Location.\n * @returns {Position | undefined}\n * Position or nothing.\n */\nfunction position(loc) {\n const start = point({\n line: loc.startLine,\n column: loc.startCol,\n offset: loc.startOffset\n })\n const end = point({\n line: loc.endLine,\n column: loc.endCol,\n offset: loc.endOffset\n })\n\n // @ts-expect-error: we do use `undefined` for points if one or the other\n // exists.\n return start || end ? {start, end} : undefined\n}\n\n/**\n * Filter out invalid points.\n *\n * @param {Point} point\n * Point with potentially `undefined` values.\n * @returns {Point | undefined}\n * Point or nothing.\n */\nfunction point(point) {\n return point.line && point.column ? point : undefined\n}\n"],"names":["own","proto","fromParse5","tree","options","settings","one","svg","html","state","node","result","reference","patch","quirksMode","all","document","loc","location","start","end","element","nodes","index","results","schema","webNamespaces","properties","attribute","name","s","h","pos","startTag","position","endTag","content","from","to","createLocation","tail","key","find","assert","opening","closing","data","point"],"mappings":"6YA4BMA,EAAM,CAAA,EAAG,eAGTC,EAAQ,OAAO,UAYd,SAASC,EAAWC,EAAMC,EAAS,CACxC,MAAMC,EAAWD,GAAW,CAAA,EAE5B,OAAOE,EACL,CACE,KAAMD,EAAS,MAAQ,OACvB,SAAU,GACV,OAAQA,EAAS,QAAU,MAAQE,EAAG,IAAGC,EAAI,KAC7C,QAASH,EAAS,SAAW,EAC9B,EACDF,CACJ,CACA,CAYA,SAASG,EAAIG,EAAOC,EAAM,CAExB,IAAIC,EAEJ,OAAQD,EAAK,SAAQ,CACnB,IAAK,WAAY,CACf,MAAME,EACJF,EAEF,OAAAC,EAAS,CAAC,KAAM,UAAW,MAAOC,EAAU,IAAI,EAChDC,EAAMJ,EAAOG,EAAWD,CAAM,EACvBA,CACb,CAEI,IAAK,YACL,IAAK,qBAAsB,CACzB,MAAMC,EAEFF,EAEEI,EACJ,SAAUF,EACNA,EAAU,OAAS,UAAYA,EAAU,OAAS,iBAClD,GAQN,GANAD,EAAS,CACP,KAAM,OACN,SAAUI,EAAIN,EAAOC,EAAK,UAAU,EACpC,KAAM,CAAC,WAAAI,CAAU,CACzB,EAEUL,EAAM,MAAQA,EAAM,SAAU,CAChC,MAAMO,EAAW,OAAOP,EAAM,IAAI,EAC5BQ,EAAMC,EAAAA,SAASF,CAAQ,EACvBG,EAAQF,EAAI,QAAQ,CAAC,EACrBG,EAAMH,EAAI,QAAQD,EAAS,MAAM,EAIvCL,EAAO,SAAW,CAAC,MAAAQ,EAAO,IAAAC,CAAG,CACrC,CAEM,OAAOT,CACb,CAEI,IAAK,gBAAiB,CACpB,MAAMC,EACJF,EAEF,OAAAC,EAAS,CAAC,KAAM,SAAS,EACzBE,EAAMJ,EAAOG,EAAWD,CAAM,EACvBA,CACb,CAEI,IAAK,QAAS,CACZ,MAAMC,EAA8DF,EACpE,OAAAC,EAAS,CAAC,KAAM,OAAQ,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AAM9B,EAAI,UACV,OAAQA,EAAI,SACZ,OAAQA,EAAI,WACb,CAAA,EACKG,EAAM2B,EAAM,CAChB,KAAM9B,EAAI,QACV,OAAQA,EAAI,OACZ,OAAQA,EAAI,SACb,CAAA,EAID,OAAOE,GAASC,EAAM,CAAC,MAAAD,EAAO,IAAAC,CAAG,EAAI,MACvC,CAUA,SAAS2B,EAAMA,EAAO,CACpB,OAAOA,EAAM,MAAQA,EAAM,OAASA,EAAQ,MAC9C","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ok as x } from "../../../../devlop/lib/default.es.js";
|
|
2
|
+
import { svg as h, html as T } from "../../property-information/index.es.js";
|
|
3
|
+
import { webNamespaces as b } from "../../../../web-namespaces/index.es.js";
|
|
4
|
+
import { s as L, h as w } from "../../hastscript/lib/index.es.js";
|
|
5
|
+
import { find as C } from "../../property-information/lib/find.es.js";
|
|
6
|
+
import { location as N } from "../../vfile-location/lib/index.es.js";
|
|
7
|
+
const v = {}.hasOwnProperty, k = Object.prototype;
|
|
8
|
+
function U(t, n) {
|
|
9
|
+
const e = n || {};
|
|
10
|
+
return m(
|
|
11
|
+
{
|
|
12
|
+
file: e.file || void 0,
|
|
13
|
+
location: !1,
|
|
14
|
+
schema: e.space === "svg" ? h : T,
|
|
15
|
+
verbose: e.verbose || !1
|
|
16
|
+
},
|
|
17
|
+
t
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function m(t, n) {
|
|
21
|
+
let e;
|
|
22
|
+
switch (n.nodeName) {
|
|
23
|
+
case "#comment": {
|
|
24
|
+
const o = (
|
|
25
|
+
/** @type {DefaultTreeAdapterMap['commentNode']} */
|
|
26
|
+
n
|
|
27
|
+
);
|
|
28
|
+
return e = { type: "comment", value: o.data }, l(t, o, e), e;
|
|
29
|
+
}
|
|
30
|
+
case "#document":
|
|
31
|
+
case "#document-fragment": {
|
|
32
|
+
const o = (
|
|
33
|
+
/** @type {DefaultTreeAdapterMap['document'] | DefaultTreeAdapterMap['documentFragment']} */
|
|
34
|
+
n
|
|
35
|
+
), c = "mode" in o ? o.mode === "quirks" || o.mode === "limited-quirks" : !1;
|
|
36
|
+
if (e = {
|
|
37
|
+
type: "root",
|
|
38
|
+
children: y(t, n.childNodes),
|
|
39
|
+
data: { quirksMode: c }
|
|
40
|
+
}, t.file && t.location) {
|
|
41
|
+
const a = String(t.file), s = N(a), i = s.toPoint(0), r = s.toPoint(a.length);
|
|
42
|
+
e.position = { start: i, end: r };
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
case "#documentType": {
|
|
47
|
+
const o = (
|
|
48
|
+
/** @type {DefaultTreeAdapterMap['documentType']} */
|
|
49
|
+
n
|
|
50
|
+
);
|
|
51
|
+
return e = { type: "doctype" }, l(t, o, e), e;
|
|
52
|
+
}
|
|
53
|
+
case "#text": {
|
|
54
|
+
const o = (
|
|
55
|
+
/** @type {DefaultTreeAdapterMap['textNode']} */
|
|
56
|
+
n
|
|
57
|
+
);
|
|
58
|
+
return e = { type: "text", value: o.value }, l(t, o, e), e;
|
|
59
|
+
}
|
|
60
|
+
// Element.
|
|
61
|
+
default:
|
|
62
|
+
return e = O(
|
|
63
|
+
t,
|
|
64
|
+
/** @type {DefaultTreeAdapterMap['element']} */
|
|
65
|
+
n
|
|
66
|
+
), e;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function y(t, n) {
|
|
70
|
+
let e = -1;
|
|
71
|
+
const o = [];
|
|
72
|
+
for (; ++e < n.length; ) {
|
|
73
|
+
const c = (
|
|
74
|
+
/** @type {RootContent} */
|
|
75
|
+
m(t, n[e])
|
|
76
|
+
);
|
|
77
|
+
o.push(c);
|
|
78
|
+
}
|
|
79
|
+
return o;
|
|
80
|
+
}
|
|
81
|
+
function O(t, n) {
|
|
82
|
+
const e = t.schema;
|
|
83
|
+
t.schema = n.namespaceURI === b.svg ? h : T;
|
|
84
|
+
let o = -1;
|
|
85
|
+
const c = {};
|
|
86
|
+
for (; ++o < n.attrs.length; ) {
|
|
87
|
+
const i = n.attrs[o], r = (i.prefix ? i.prefix + ":" : "") + i.name;
|
|
88
|
+
v.call(k, r) || (c[r] = i.value);
|
|
89
|
+
}
|
|
90
|
+
const s = (t.schema.space === "svg" ? L : w)(n.tagName, c, y(t, n.childNodes));
|
|
91
|
+
if (l(t, n, s), s.tagName === "template") {
|
|
92
|
+
const i = (
|
|
93
|
+
/** @type {DefaultTreeAdapterMap['template']} */
|
|
94
|
+
n
|
|
95
|
+
), r = i.sourceCodeLocation, f = r && r.startTag && u(r.startTag), p = r && r.endTag && u(r.endTag), d = (
|
|
96
|
+
/** @type {Root} */
|
|
97
|
+
m(t, i.content)
|
|
98
|
+
);
|
|
99
|
+
f && p && t.file && (d.position = { start: f.end, end: p.start }), s.content = d;
|
|
100
|
+
}
|
|
101
|
+
return t.schema = e, s;
|
|
102
|
+
}
|
|
103
|
+
function l(t, n, e) {
|
|
104
|
+
if ("sourceCodeLocation" in n && n.sourceCodeLocation && t.file) {
|
|
105
|
+
const o = P(t, e, n.sourceCodeLocation);
|
|
106
|
+
o && (t.location = !0, e.position = o);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function P(t, n, e) {
|
|
110
|
+
const o = u(e);
|
|
111
|
+
if (n.type === "element") {
|
|
112
|
+
const c = n.children[n.children.length - 1];
|
|
113
|
+
if (o && !e.endTag && c && c.position && c.position.end && (o.end = Object.assign({}, c.position.end)), t.verbose) {
|
|
114
|
+
const a = {};
|
|
115
|
+
let s;
|
|
116
|
+
if (e.attrs)
|
|
117
|
+
for (s in e.attrs)
|
|
118
|
+
v.call(e.attrs, s) && (a[C(t.schema, s).property] = u(
|
|
119
|
+
e.attrs[s]
|
|
120
|
+
));
|
|
121
|
+
x(e.startTag);
|
|
122
|
+
const i = u(e.startTag), r = e.endTag ? u(e.endTag) : void 0, f = { opening: i };
|
|
123
|
+
r && (f.closing = r), f.properties = a, n.data = { position: f };
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return o;
|
|
127
|
+
}
|
|
128
|
+
function u(t) {
|
|
129
|
+
const n = g({
|
|
130
|
+
line: t.startLine,
|
|
131
|
+
column: t.startCol,
|
|
132
|
+
offset: t.startOffset
|
|
133
|
+
}), e = g({
|
|
134
|
+
line: t.endLine,
|
|
135
|
+
column: t.endCol,
|
|
136
|
+
offset: t.endOffset
|
|
137
|
+
});
|
|
138
|
+
return n || e ? { start: n, end: e } : void 0;
|
|
139
|
+
}
|
|
140
|
+
function g(t) {
|
|
141
|
+
return t.line && t.column ? t : void 0;
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
U as fromParse5
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=index.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.es.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/hast-util-from-parse5/lib/index.js"],"sourcesContent":["/**\n * @import {ElementData, Element, Nodes, RootContent, Root} from 'hast'\n * @import {DefaultTreeAdapterMap, Token} from 'parse5'\n * @import {Schema} from 'property-information'\n * @import {Point, Position} from 'unist'\n * @import {VFile} from 'vfile'\n * @import {Options} from 'hast-util-from-parse5'\n */\n\n/**\n * @typedef State\n * Info passed around about the current state.\n * @property {VFile | undefined} file\n * Corresponding file.\n * @property {boolean} location\n * Whether location info was found.\n * @property {Schema} schema\n * Current schema.\n * @property {boolean | undefined} verbose\n * Add extra positional info.\n */\n\nimport {ok as assert} from 'devlop'\nimport {h, s} from 'hastscript'\nimport {find, html, svg} from 'property-information'\nimport {location} from 'vfile-location'\nimport {webNamespaces} from 'web-namespaces'\n\nconst own = {}.hasOwnProperty\n/** @type {unknown} */\n// type-coverage:ignore-next-line\nconst proto = Object.prototype\n\n/**\n * Transform a `parse5` AST to hast.\n *\n * @param {DefaultTreeAdapterMap['node']} tree\n * `parse5` tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * hast tree.\n */\nexport function fromParse5(tree, options) {\n const settings = options || {}\n\n return one(\n {\n file: settings.file || undefined,\n location: false,\n schema: settings.space === 'svg' ? svg : html,\n verbose: settings.verbose || false\n },\n tree\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['node']} node\n * p5 node.\n * @returns {Nodes}\n * hast node.\n */\nfunction one(state, node) {\n /** @type {Nodes} */\n let result\n\n switch (node.nodeName) {\n case '#comment': {\n const reference = /** @type {DefaultTreeAdapterMap['commentNode']} */ (\n node\n )\n result = {type: 'comment', value: reference.data}\n patch(state, reference, result)\n return result\n }\n\n case '#document':\n case '#document-fragment': {\n const reference =\n /** @type {DefaultTreeAdapterMap['document'] | DefaultTreeAdapterMap['documentFragment']} */ (\n node\n )\n const quirksMode =\n 'mode' in reference\n ? reference.mode === 'quirks' || reference.mode === 'limited-quirks'\n : false\n\n result = {\n type: 'root',\n children: all(state, node.childNodes),\n data: {quirksMode}\n }\n\n if (state.file && state.location) {\n const document = String(state.file)\n const loc = location(document)\n const start = loc.toPoint(0)\n const end = loc.toPoint(document.length)\n // Always defined as we give valid input.\n assert(start, 'expected `start`')\n assert(end, 'expected `end`')\n result.position = {start, end}\n }\n\n return result\n }\n\n case '#documentType': {\n const reference = /** @type {DefaultTreeAdapterMap['documentType']} */ (\n node\n )\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {DefaultTreeAdapterMap['textNode']} */ (node)\n result = {type: 'text', value: reference.value}\n patch(state, reference, result)\n return result\n }\n\n // Element.\n default: {\n const reference = /** @type {DefaultTreeAdapterMap['element']} */ (node)\n result = element(state, reference)\n return result\n }\n }\n}\n\n/**\n * Transform children.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Array<DefaultTreeAdapterMap['node']>} nodes\n * Nodes.\n * @returns {Array<RootContent>}\n * hast nodes.\n */\nfunction all(state, nodes) {\n let index = -1\n /** @type {Array<RootContent>} */\n const results = []\n\n while (++index < nodes.length) {\n // Assume no roots in `nodes`.\n const result = /** @type {RootContent} */ (one(state, nodes[index]))\n results.push(result)\n }\n\n return results\n}\n\n/**\n * Transform an element.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['element']} node\n * `parse5` node to transform.\n * @returns {Element}\n * hast node.\n */\nfunction element(state, node) {\n const schema = state.schema\n\n state.schema = node.namespaceURI === webNamespaces.svg ? svg : html\n\n // Props.\n let index = -1\n /** @type {Record<string, string>} */\n const properties = {}\n\n while (++index < node.attrs.length) {\n const attribute = node.attrs[index]\n const name =\n (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name\n if (!own.call(proto, name)) {\n properties[name] = attribute.value\n }\n }\n\n // Build.\n const x = state.schema.space === 'svg' ? s : h\n const result = x(node.tagName, properties, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {DefaultTreeAdapterMap['template']} */ (node)\n const pos = reference.sourceCodeLocation\n const startTag = pos && pos.startTag && position(pos.startTag)\n const endTag = pos && pos.endTag && position(pos.endTag)\n\n // Root in, root out.\n const content = /** @type {Root} */ (one(state, reference.content))\n\n if (startTag && endTag && state.file) {\n content.position = {start: startTag.end, end: endTag.start}\n }\n\n result.content = content\n }\n\n state.schema = schema\n\n return result\n}\n\n/**\n * Patch positional info from `from` onto `to`.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {DefaultTreeAdapterMap['node']} from\n * p5 node.\n * @param {Nodes} to\n * hast node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(state, from, to) {\n if ('sourceCodeLocation' in from && from.sourceCodeLocation && state.file) {\n const position = createLocation(state, to, from.sourceCodeLocation)\n\n if (position) {\n state.location = true\n to.position = position\n }\n }\n}\n\n/**\n * Create clean positional information.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Nodes} node\n * hast node.\n * @param {Token.ElementLocation} location\n * p5 location info.\n * @returns {Position | undefined}\n * Position, or nothing.\n */\nfunction createLocation(state, node, location) {\n const result = position(location)\n\n if (node.type === 'element') {\n const tail = node.children[node.children.length - 1]\n\n // Bug for unclosed with children.\n // See: <https://github.com/inikulin/parse5/issues/109>.\n if (\n result &&\n !location.endTag &&\n tail &&\n tail.position &&\n tail.position.end\n ) {\n result.end = Object.assign({}, tail.position.end)\n }\n\n if (state.verbose) {\n /** @type {Record<string, Position | undefined>} */\n const properties = {}\n /** @type {string} */\n let key\n\n if (location.attrs) {\n for (key in location.attrs) {\n if (own.call(location.attrs, key)) {\n properties[find(state.schema, key).property] = position(\n location.attrs[key]\n )\n }\n }\n }\n\n assert(location.startTag, 'a start tag should exist')\n const opening = position(location.startTag)\n const closing = location.endTag ? position(location.endTag) : undefined\n /** @type {ElementData['position']} */\n const data = {opening}\n if (closing) data.closing = closing\n data.properties = properties\n\n node.data = {position: data}\n }\n }\n\n return result\n}\n\n/**\n * Turn a p5 location into a position.\n *\n * @param {Token.Location} loc\n * Location.\n * @returns {Position | undefined}\n * Position or nothing.\n */\nfunction position(loc) {\n const start = point({\n line: loc.startLine,\n column: loc.startCol,\n offset: loc.startOffset\n })\n const end = point({\n line: loc.endLine,\n column: loc.endCol,\n offset: loc.endOffset\n })\n\n // @ts-expect-error: we do use `undefined` for points if one or the other\n // exists.\n return start || end ? {start, end} : undefined\n}\n\n/**\n * Filter out invalid points.\n *\n * @param {Point} point\n * Point with potentially `undefined` values.\n * @returns {Point | undefined}\n * Point or nothing.\n */\nfunction point(point) {\n return point.line && point.column ? point : undefined\n}\n"],"names":["own","proto","fromParse5","tree","options","settings","one","svg","html","state","node","result","reference","patch","quirksMode","all","document","loc","location","start","end","element","nodes","index","results","schema","webNamespaces","properties","attribute","name","s","h","pos","startTag","position","endTag","content","from","to","createLocation","tail","key","find","assert","opening","closing","data","point"],"mappings":";;;;;;AA4BA,MAAM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AAU3B,EAAS,SAASgB,EAAShB,EAAS,MAAM,IAAI,QAExD4B,IAAO,EAAC,SAAAF,EAAO;AACrB,MAAIC,MAASC,EAAK,UAAUD,IAC5BC,EAAK,aAAanB,GAElBjB,EAAK,OAAO,EAAC,UAAUoC,EAAI;AAAA,IACjC;AAAA,EACA;AAEE,SAAOnC;AACT;AAUA,SAASuB,EAASjB,GAAK;AACrB,QAAME,IAAQ4B,EAAM;AAAA,IAClB,MAAM9B,EAAI;AAAA,IACV,QAAQA,EAAI;AAAA,IACZ,QAAQA,EAAI;AAAA,EACb,CAAA,GACKG,IAAM2B,EAAM;AAAA,IAChB,MAAM9B,EAAI;AAAA,IACV,QAAQA,EAAI;AAAA,IACZ,QAAQA,EAAI;AAAA,EACb,CAAA;AAID,SAAOE,KAASC,IAAM,EAAC,OAAAD,GAAO,KAAAC,EAAG,IAAI;AACvC;AAUA,SAAS2B,EAAMA,GAAO;AACpB,SAAOA,EAAM,QAAQA,EAAM,SAASA,IAAQ;AAC9C;","x_google_ignoreList":[0]}
|
package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=/[#.]/g;function p(n,o){const l=n||"",t={};let s=0,r,c;for(;s<l.length;){i.lastIndex=s;const a=i.exec(l),e=l.slice(s,a?a.index:l.length);e&&(r?r==="#"?t.id=e:Array.isArray(t.className)?t.className.push(e):t.className=[e]:c=e,s+=e.length),a&&(r=a[0],s++)}return{type:"element",tagName:c||o||"div",properties:t,children:[]}}exports.parseSelector=p;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.cjs.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n */\n\n/**\n * @template {string} SimpleSelector\n * Selector type.\n * @template {string} DefaultTagName\n * Default tag name.\n * @typedef {(\n * SimpleSelector extends ''\n * ? DefaultTagName\n * : SimpleSelector extends `${infer TagName}.${infer Rest}`\n * ? ExtractTagName<TagName, DefaultTagName>\n * : SimpleSelector extends `${infer TagName}#${infer Rest}`\n * ? ExtractTagName<TagName, DefaultTagName>\n * : SimpleSelector extends string\n * ? SimpleSelector\n * : DefaultTagName\n * )} ExtractTagName\n * Extract tag name from a simple selector.\n */\n\nconst search = /[#.]/g\n\n/**\n * Create a hast element from a simple CSS selector.\n *\n * @template {string} Selector\n * Type of selector.\n * @template {string} [DefaultTagName='div']\n * Type of default tag name (default: `'div'`).\n * @param {Selector | null | undefined} [selector]\n * Simple CSS selector (optional).\n *\n * Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).\n * Multiple classes are allowed.\n * Uses the last ID if multiple IDs are found.\n * @param {DefaultTagName | null | undefined} [defaultTagName='div']\n * Tag name to use if `selector` does not specify one (default: `'div'`).\n * @returns {Element & {tagName: ExtractTagName<Selector, DefaultTagName>}}\n * Built element.\n */\nexport function parseSelector(selector, defaultTagName) {\n const value = selector || ''\n /** @type {Properties} */\n const props = {}\n let start = 0\n /** @type {string | undefined} */\n let previous\n /** @type {string | undefined} */\n let tagName\n\n while (start < value.length) {\n search.lastIndex = start\n const match = search.exec(value)\n const subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n tagName = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (Array.isArray(props.className)) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {\n type: 'element',\n // @ts-expect-error: tag name is parsed.\n tagName: tagName || defaultTagName || 'div',\n properties: props,\n children: []\n }\n}\n"],"names":["search","parseSelector","selector","defaultTagName","value","props","start","previous","tagName","match","subvalue"],"mappings":"gFAwBA,MAAMA,EAAS,QAoBR,SAASC,EAAcC,EAAUC,EAAgB,CACtD,MAAMC,EAAQF,GAAY,GAEpBG,EAAQ,CAAA,EACd,IAAIC,EAAQ,EAERC,EAEAC,EAEJ,KAAOF,EAAQF,EAAM,QAAQ,CAC3BJ,EAAO,UAAYM,EACnB,MAAMG,EAAQT,EAAO,KAAKI,CAAK,EACzBM,EAAWN,EAAM,MAAME,EAAOG,EAAQA,EAAM,MAAQL,EAAM,MAAM,EAElEM,IACGH,EAEMA,IAAa,IACtBF,EAAM,GAAKK,EACF,MAAM,QAAQL,EAAM,SAAS,EACtCA,EAAM,UAAU,KAAKK,CAAQ,EAE7BL,EAAM,UAAY,CAACK,CAAQ,EAN3BF,EAAUE,EASZJ,GAASI,EAAS,QAGhBD,IACFF,EAAWE,EAAM,CAAC,EAClBH,IAEN,CAEE,MAAO,CACL,KAAM,UAEN,QAASE,GAAWL,GAAkB,MACtC,WAAYE,EACZ,SAAU,CAAA,CACd,CACA","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const i = /[#.]/g;
|
|
2
|
+
function p(n, o) {
|
|
3
|
+
const l = n || "", s = {};
|
|
4
|
+
let t = 0, r, c;
|
|
5
|
+
for (; t < l.length; ) {
|
|
6
|
+
i.lastIndex = t;
|
|
7
|
+
const a = i.exec(l), e = l.slice(t, a ? a.index : l.length);
|
|
8
|
+
e && (r ? r === "#" ? s.id = e : Array.isArray(s.className) ? s.className.push(e) : s.className = [e] : c = e, t += e.length), a && (r = a[0], t++);
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
type: "element",
|
|
12
|
+
// @ts-expect-error: tag name is parsed.
|
|
13
|
+
tagName: c || o || "div",
|
|
14
|
+
properties: s,
|
|
15
|
+
children: []
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
p as parseSelector
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.es.js.map
|
package/dist/node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.es.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/hast-util-parse-selector/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n */\n\n/**\n * @template {string} SimpleSelector\n * Selector type.\n * @template {string} DefaultTagName\n * Default tag name.\n * @typedef {(\n * SimpleSelector extends ''\n * ? DefaultTagName\n * : SimpleSelector extends `${infer TagName}.${infer Rest}`\n * ? ExtractTagName<TagName, DefaultTagName>\n * : SimpleSelector extends `${infer TagName}#${infer Rest}`\n * ? ExtractTagName<TagName, DefaultTagName>\n * : SimpleSelector extends string\n * ? SimpleSelector\n * : DefaultTagName\n * )} ExtractTagName\n * Extract tag name from a simple selector.\n */\n\nconst search = /[#.]/g\n\n/**\n * Create a hast element from a simple CSS selector.\n *\n * @template {string} Selector\n * Type of selector.\n * @template {string} [DefaultTagName='div']\n * Type of default tag name (default: `'div'`).\n * @param {Selector | null | undefined} [selector]\n * Simple CSS selector (optional).\n *\n * Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).\n * Multiple classes are allowed.\n * Uses the last ID if multiple IDs are found.\n * @param {DefaultTagName | null | undefined} [defaultTagName='div']\n * Tag name to use if `selector` does not specify one (default: `'div'`).\n * @returns {Element & {tagName: ExtractTagName<Selector, DefaultTagName>}}\n * Built element.\n */\nexport function parseSelector(selector, defaultTagName) {\n const value = selector || ''\n /** @type {Properties} */\n const props = {}\n let start = 0\n /** @type {string | undefined} */\n let previous\n /** @type {string | undefined} */\n let tagName\n\n while (start < value.length) {\n search.lastIndex = start\n const match = search.exec(value)\n const subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n tagName = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (Array.isArray(props.className)) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {\n type: 'element',\n // @ts-expect-error: tag name is parsed.\n tagName: tagName || defaultTagName || 'div',\n properties: props,\n children: []\n }\n}\n"],"names":["search","parseSelector","selector","defaultTagName","value","props","start","previous","tagName","match","subvalue"],"mappings":"AAwBA,MAAMA,IAAS;AAoBR,SAASC,EAAcC,GAAUC,GAAgB;AACtD,QAAMC,IAAQF,KAAY,IAEpBG,IAAQ,CAAA;AACd,MAAIC,IAAQ,GAERC,GAEAC;AAEJ,SAAOF,IAAQF,EAAM,UAAQ;AAC3B,IAAAJ,EAAO,YAAYM;AACnB,UAAMG,IAAQT,EAAO,KAAKI,CAAK,GACzBM,IAAWN,EAAM,MAAME,GAAOG,IAAQA,EAAM,QAAQL,EAAM,MAAM;AAEtE,IAAIM,MACGH,IAEMA,MAAa,MACtBF,EAAM,KAAKK,IACF,MAAM,QAAQL,EAAM,SAAS,IACtCA,EAAM,UAAU,KAAKK,CAAQ,IAE7BL,EAAM,YAAY,CAACK,CAAQ,IAN3BF,IAAUE,GASZJ,KAASI,EAAS,SAGhBD,MACFF,IAAWE,EAAM,CAAC,GAClBH;AAAA,EAEN;AAEE,SAAO;AAAA,IACL,MAAM;AAAA;AAAA,IAEN,SAASE,KAAWL,KAAkB;AAAA,IACtC,YAAYE;AAAA,IACZ,UAAU,CAAA;AAAA,EACd;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../comma-separated-tokens/index.cjs.js"),a=require("../../../../space-separated-tokens/index.cjs.js"),g=require("../../hast-util-parse-selector/lib/index.cjs.js"),A=require("../../property-information/lib/find.cjs.js"),u=require("../../property-information/lib/normalize.cjs.js");function N(r,e,n){const t=n?k(n):void 0;function i(o,f,...y){let s;if(o==null){s={type:"root",children:[]};const c=f;y.unshift(c)}else{s=g.parseSelector(o,e);const c=s.tagName.toLowerCase(),l=t?t.get(c):void 0;if(s.tagName=l||c,j(f))y.unshift(f);else for(const[h,b]of Object.entries(f))S(r,s.properties,h,b)}for(const c of y)d(s.children,c);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return i}function j(r){if(r===null||typeof r!="object"||Array.isArray(r))return!0;if(typeof r.type!="string")return!1;const e=r,n=Object.keys(r);for(const t of n){const i=e[t];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const o=i;for(const f of o)if(typeof f!="number"&&typeof f!="string")return!0}}return!!("children"in r&&Array.isArray(r.children))}function S(r,e,n,t){const i=A.find(r,n);let o;if(t!=null){if(typeof t=="number"){if(Number.isNaN(t))return;o=t}else typeof t=="boolean"?o=t:typeof t=="string"?i.spaceSeparated?o=a.parse(t):i.commaSeparated?o=p.parse(t):i.commaOrSpaceSeparated?o=a.parse(p.parse(t).join(" ")):o=m(i,i.property,t):Array.isArray(t)?o=[...t]:o=i.property==="style"?w(t):String(t);if(Array.isArray(o)){const f=[];for(const y of o)f.push(m(i,i.property,y));o=f}i.property==="className"&&Array.isArray(e.className)&&(o=e.className.concat(o)),e[i.property]=o}}function d(r,e){if(e!=null)if(typeof e=="number"||typeof e=="string")r.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)d(r,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?d(r,e.children):r.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function m(r,e,n){if(typeof n=="string"){if(r.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((r.boolean||r.overloadedBoolean)&&(n===""||u.normalize(n)===u.normalize(e)))return!0}return n}function w(r){const e=[];for(const[n,t]of Object.entries(r))e.push([n,t].join(": "));return e.join("; ")}function k(r){const e=new Map;for(const n of r)e.set(n.toLowerCase(),n);return e}exports.createH=N;
|
|
2
|
+
//# sourceMappingURL=create-h.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-h.cjs.js","sources":["../../../../../../../node_modules/hast-util-raw/node_modules/hastscript/lib/create-h.js"],"sourcesContent":["/**\n * @import {Element, Nodes, RootContent, Root} from 'hast'\n * @import {Info, Schema} from 'property-information'\n */\n\n/**\n * @typedef {Array<Nodes | PrimitiveChild>} ArrayChildNested\n * List of children (deep).\n */\n\n/**\n * @typedef {Array<ArrayChildNested | Nodes | PrimitiveChild>} ArrayChild\n * List of children.\n */\n\n/**\n * @typedef {Array<number | string>} ArrayValue\n * List of property values for space- or comma separated values (such as `className`).\n */\n\n/**\n * @typedef {ArrayChild | Nodes | PrimitiveChild} Child\n * Acceptable child value.\n */\n\n/**\n * @typedef {number | string | null | undefined} PrimitiveChild\n * Primitive children, either ignored (nullish), or turned into text nodes.\n */\n\n/**\n * @typedef {boolean | number | string | null | undefined} PrimitiveValue\n * Primitive property value.\n */\n\n/**\n * @typedef {Record<string, PropertyValue | Style>} Properties\n * Acceptable value for element properties.\n */\n\n/**\n * @typedef {ArrayValue | PrimitiveValue} PropertyValue\n * Primitive value or list value.\n */\n\n/**\n * @typedef {Element | Root} Result\n * Result from a `h` (or `s`) call.\n */\n\n/**\n * @typedef {number | string} StyleValue\n * Value for a CSS style field.\n */\n\n/**\n * @typedef {Record<string, StyleValue>} Style\n * Supported value of a `style` prop.\n */\n\nimport {parse as parseCommas} from 'comma-separated-tokens'\nimport {parseSelector} from 'hast-util-parse-selector'\nimport {find, normalize} from 'property-information'\nimport {parse as parseSpaces} from 'space-separated-tokens'\n\n/**\n * @param {Schema} schema\n * Schema to use.\n * @param {string} defaultTagName\n * Default tag name.\n * @param {ReadonlyArray<string> | undefined} [caseSensitive]\n * Case-sensitive tag names (default: `undefined`).\n * @returns\n * `h`.\n */\nexport function createH(schema, defaultTagName, caseSensitive) {\n const adjust = caseSensitive ? createAdjustMap(caseSensitive) : undefined\n\n /**\n * Hyperscript compatible DSL for creating virtual hast trees.\n *\n * @overload\n * @param {null | undefined} [selector]\n * @param {...Child} children\n * @returns {Root}\n *\n * @overload\n * @param {string} selector\n * @param {Properties} properties\n * @param {...Child} children\n * @returns {Element}\n *\n * @overload\n * @param {string} selector\n * @param {...Child} children\n * @returns {Element}\n *\n * @param {string | null | undefined} [selector]\n * Selector.\n * @param {Child | Properties | null | undefined} [properties]\n * Properties (or first child) (default: `undefined`).\n * @param {...Child} children\n * Children.\n * @returns {Result}\n * Result.\n */\n function h(selector, properties, ...children) {\n /** @type {Result} */\n let node\n\n if (selector === null || selector === undefined) {\n node = {type: 'root', children: []}\n // Properties are not supported for roots.\n const child = /** @type {Child} */ (properties)\n children.unshift(child)\n } else {\n node = parseSelector(selector, defaultTagName)\n // Normalize the name.\n const lower = node.tagName.toLowerCase()\n const adjusted = adjust ? adjust.get(lower) : undefined\n node.tagName = adjusted || lower\n\n // Handle properties.\n if (isChild(properties)) {\n children.unshift(properties)\n } else {\n for (const [key, value] of Object.entries(properties)) {\n addProperty(schema, node.properties, key, value)\n }\n }\n }\n\n // Handle children.\n for (const child of children) {\n addChild(node.children, child)\n }\n\n if (node.type === 'element' && node.tagName === 'template') {\n node.content = {type: 'root', children: node.children}\n node.children = []\n }\n\n return node\n }\n\n return h\n}\n\n/**\n * Check if something is properties or a child.\n *\n * @param {Child | Properties} value\n * Value to check.\n * @returns {value is Child}\n * Whether `value` is definitely a child.\n */\nfunction isChild(value) {\n // Never properties if not an object.\n if (value === null || typeof value !== 'object' || Array.isArray(value)) {\n return true\n }\n\n // Never node without `type`; that’s the main discriminator.\n if (typeof value.type !== 'string') return false\n\n // Slower check: never property value if object or array with\n // non-number/strings.\n const record = /** @type {Record<string, unknown>} */ (value)\n const keys = Object.keys(value)\n\n for (const key of keys) {\n const value = record[key]\n\n if (value && typeof value === 'object') {\n if (!Array.isArray(value)) return true\n\n const list = /** @type {ReadonlyArray<unknown>} */ (value)\n\n for (const item of list) {\n if (typeof item !== 'number' && typeof item !== 'string') {\n return true\n }\n }\n }\n }\n\n // Also see empty `children` as a node.\n if ('children' in value && Array.isArray(value.children)) {\n return true\n }\n\n // Default to properties, someone can always pass an empty object,\n // put `data: {}` in a node,\n // or wrap it in an array.\n return false\n}\n\n/**\n * @param {Schema} schema\n * Schema.\n * @param {Properties} properties\n * Properties object.\n * @param {string} key\n * Property name.\n * @param {PropertyValue | Style} value\n * Property value.\n * @returns {undefined}\n * Nothing.\n */\nfunction addProperty(schema, properties, key, value) {\n const info = find(schema, key)\n /** @type {PropertyValue} */\n let result\n\n // Ignore nullish and NaN values.\n if (value === null || value === undefined) return\n\n if (typeof value === 'number') {\n // Ignore NaN.\n if (Number.isNaN(value)) return\n\n result = value\n }\n // Booleans.\n else if (typeof value === 'boolean') {\n result = value\n }\n // Handle list values.\n else if (typeof value === 'string') {\n if (info.spaceSeparated) {\n result = parseSpaces(value)\n } else if (info.commaSeparated) {\n result = parseCommas(value)\n } else if (info.commaOrSpaceSeparated) {\n result = parseSpaces(parseCommas(value).join(' '))\n } else {\n result = parsePrimitive(info, info.property, value)\n }\n } else if (Array.isArray(value)) {\n result = [...value]\n } else {\n result = info.property === 'style' ? style(value) : String(value)\n }\n\n if (Array.isArray(result)) {\n /** @type {Array<number | string>} */\n const finalResult = []\n\n for (const item of result) {\n // Assume no booleans in array.\n finalResult.push(\n /** @type {number | string} */ (\n parsePrimitive(info, info.property, item)\n )\n )\n }\n\n result = finalResult\n }\n\n // Class names (which can be added both on the `selector` and here).\n if (info.property === 'className' && Array.isArray(properties.className)) {\n // Assume no booleans in `className`.\n result = properties.className.concat(\n /** @type {Array<number | string> | number | string} */ (result)\n )\n }\n\n properties[info.property] = result\n}\n\n/**\n * @param {Array<RootContent>} nodes\n * Children.\n * @param {Child} value\n * Child.\n * @returns {undefined}\n * Nothing.\n */\nfunction addChild(nodes, value) {\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'number' || typeof value === 'string') {\n nodes.push({type: 'text', value: String(value)})\n } else if (Array.isArray(value)) {\n for (const child of value) {\n addChild(nodes, child)\n }\n } else if (typeof value === 'object' && 'type' in value) {\n if (value.type === 'root') {\n addChild(nodes, value.children)\n } else {\n nodes.push(value)\n }\n } else {\n throw new Error('Expected node, nodes, or string, got `' + value + '`')\n }\n}\n\n/**\n * Parse a single primitives.\n *\n * @param {Info} info\n * Property information.\n * @param {string} name\n * Property name.\n * @param {PrimitiveValue} value\n * Property value.\n * @returns {PrimitiveValue}\n * Property value.\n */\nfunction parsePrimitive(info, name, value) {\n if (typeof value === 'string') {\n if (info.number && value && !Number.isNaN(Number(value))) {\n return Number(value)\n }\n\n if (\n (info.boolean || info.overloadedBoolean) &&\n (value === '' || normalize(value) === normalize(name))\n ) {\n return true\n }\n }\n\n return value\n}\n\n/**\n * Serialize a `style` object as a string.\n *\n * @param {Style} styles\n * Style object.\n * @returns {string}\n * CSS string.\n */\nfunction style(styles) {\n /** @type {Array<string>} */\n const result = []\n\n for (const [key, value] of Object.entries(styles)) {\n result.push([key, value].join(': '))\n }\n\n return result.join('; ')\n}\n\n/**\n * Create a map to adjust casing.\n *\n * @param {ReadonlyArray<string>} values\n * List of properly cased keys.\n * @returns {Map<string, string>}\n * Map of lowercase keys to uppercase keys.\n */\nfunction createAdjustMap(values) {\n /** @type {Map<string, string>} */\n const result = new Map()\n\n for (const value of values) {\n result.set(value.toLowerCase(), value)\n }\n\n return result\n}\n"],"names":["createH","schema","defaultTagName","caseSensitive","adjust","createAdjustMap","h","selector","properties","children","node","child","parseSelector","lower","adjusted","isChild","key","value","addProperty","addChild","record","keys","list","item","info","find","result","parseSpaces","parseCommas","parsePrimitive","style","finalResult","nodes","name","normalize","styles","values"],"mappings":"kYA2EO,SAASA,EAAQC,EAAQC,EAAgBC,EAAe,CAC7D,MAAMC,EAASD,EAAgBE,EAAgBF,CAAa,EAAI,OA8BhE,SAASG,EAAEC,EAAUC,KAAeC,EAAU,CAE5C,IAAIC,EAEJ,GAAIH,GAAa,KAAgC,CAC/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