@burdenoff/fe-libs 2026.528.9 → 2026.528.11
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/button/Button.d.ts +1 -1
- package/dist/node_modules/{@ungap → .bun/@ungap_structured-clone@1.3.0/node_modules/@ungap}/structured-clone/esm/deserialize.js +1 -1
- package/dist/node_modules/{@ungap → .bun/@ungap_structured-clone@1.3.0/node_modules/@ungap}/structured-clone/esm/index.js +1 -1
- package/dist/node_modules/{@ungap → .bun/@ungap_structured-clone@1.3.0/node_modules/@ungap}/structured-clone/esm/serialize.js +1 -1
- package/dist/node_modules/{bail → .bun/bail@2.0.2/node_modules/bail}/index.js +1 -1
- package/dist/node_modules/{comma-separated-tokens → .bun/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens}/index.js +1 -1
- package/dist/node_modules/{decode-named-character-reference → .bun/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference}/index.dom.js +1 -1
- package/dist/node_modules/{devlop → .bun/devlop@1.1.0/node_modules/devlop}/lib/default.js +1 -1
- package/dist/node_modules/{estree-util-is-identifier-name → .bun/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name}/lib/index.js +1 -1
- package/dist/node_modules/{extend → .bun/extend@3.0.2/node_modules/extend}/index.js +2 -2
- package/dist/node_modules/{hast-util-to-jsx-runtime → .bun/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime}/lib/index.js +13 -13
- package/dist/node_modules/{hast-util-whitespace → .bun/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace}/lib/index.js +1 -1
- package/dist/node_modules/{html-url-attributes → .bun/html-url-attributes@3.0.1/node_modules/html-url-attributes}/lib/index.js +1 -1
- package/dist/node_modules/{inline-style-parser → .bun/inline-style-parser@0.2.7/node_modules/inline-style-parser}/cjs/index.js +2 -2
- package/dist/node_modules/{is-plain-obj → .bun/is-plain-obj@4.1.0/node_modules/is-plain-obj}/index.js +1 -1
- package/dist/node_modules/{mdast-util-from-markdown → .bun/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown}/lib/index.js +10 -10
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/footer.js +3 -3
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/blockquote.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/break.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/code.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/delete.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/emphasis.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/footnote-reference.js +2 -2
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/heading.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/html.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/image-reference.js +2 -2
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/image.js +2 -2
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/index.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/inline-code.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/link-reference.js +2 -2
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/link.js +2 -2
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/list-item.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/list.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/paragraph.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/root.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/strong.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/table-cell.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/table-row.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/table.js +2 -2
- package/dist/node_modules/.bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js +11 -0
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/handlers/thematic-break.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/index.js +2 -2
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/revert.js +1 -1
- package/dist/node_modules/{mdast-util-to-hast → .bun/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast}/lib/state.js +4 -4
- package/dist/node_modules/{mdast-util-to-string → .bun/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string}/lib/index.js +1 -1
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/attention.js +4 -4
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/autolink.js +2 -2
- package/dist/node_modules/.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/block-quote.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/character-escape.js +2 -2
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/character-reference.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/code-fenced.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/code-indented.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/code-text.js +2 -2
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/content.js +4 -4
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/definition.js +8 -8
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/hard-break-escape.js +2 -2
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/heading-atx.js +4 -4
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/html-flow.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/html-text.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/label-end.js +9 -9
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/label-start-image.js +1 -1
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/label-start-link.js +1 -1
- package/dist/node_modules/.bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/list.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/setext-underline.js +3 -3
- package/dist/node_modules/{micromark-core-commonmark → .bun/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark}/lib/thematic-break.js +3 -3
- package/dist/node_modules/{micromark-factory-destination → .bun/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination}/index.js +2 -2
- package/dist/node_modules/{micromark-factory-label → .bun/micromark-factory-label@2.0.1/node_modules/micromark-factory-label}/index.js +2 -2
- package/dist/node_modules/{micromark-factory-space → .bun/micromark-factory-space@2.0.1/node_modules/micromark-factory-space}/index.js +2 -2
- package/dist/node_modules/{micromark-factory-title → .bun/micromark-factory-title@2.0.1/node_modules/micromark-factory-title}/index.js +3 -3
- package/dist/node_modules/.bun/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/{micromark-util-character → .bun/micromark-util-character@2.1.1/node_modules/micromark-util-character}/index.js +1 -1
- package/dist/node_modules/{micromark-util-chunked → .bun/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked}/index.js +1 -1
- package/dist/node_modules/.bun/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js +8 -0
- package/dist/node_modules/{micromark-util-combine-extensions → .bun/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions}/index.js +2 -2
- package/dist/node_modules/{micromark-util-decode-numeric-character-reference → .bun/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference}/index.js +1 -1
- package/dist/node_modules/.bun/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js +17 -0
- package/dist/node_modules/{micromark-util-html-tag-name → .bun/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name}/index.js +1 -1
- package/dist/node_modules/{micromark-util-normalize-identifier → .bun/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier}/index.js +1 -1
- package/dist/node_modules/{micromark-util-resolve-all → .bun/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all}/index.js +1 -1
- package/dist/node_modules/{micromark-util-sanitize-uri → .bun/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri}/index.js +2 -2
- package/dist/node_modules/{micromark-util-subtokenize → .bun/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize}/index.js +2 -2
- package/dist/node_modules/{micromark-util-subtokenize → .bun/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize}/lib/splice-buffer.js +1 -1
- package/dist/node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/constructs.js +80 -0
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/create-tokenizer.js +4 -4
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/initialize/content.js +3 -3
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/initialize/document.js +4 -4
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/initialize/flow.js +4 -4
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/initialize/text.js +1 -1
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/parse.js +2 -2
- package/dist/node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/postprocess.js +8 -0
- package/dist/node_modules/{micromark → .bun/micromark@4.0.2/node_modules/micromark}/lib/preprocess.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/index.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/aria.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/find.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/hast-to-react.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/html.js +1 -1
- package/dist/node_modules/.bun/property-information@7.1.0/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/svg.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/case-insensitive-transform.js +1 -1
- package/dist/node_modules/.bun/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/create.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/defined-info.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/info.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/merge.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/schema.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/util/types.js +2 -2
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/xlink.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/xml.js +1 -1
- package/dist/node_modules/{property-information → .bun/property-information@7.1.0/node_modules/property-information}/lib/xmlns.js +1 -1
- package/dist/node_modules/{react-error-boundary → .bun/react-error-boundary@6.1.1_3f10a4be4e334a9b/node_modules/react-error-boundary}/dist/react-error-boundary.js +1 -1
- package/dist/node_modules/{react-markdown → .bun/react-markdown@10.1.0_b2e33729a97476bf/node_modules/react-markdown}/lib/index.js +9 -9
- package/dist/node_modules/{remark-parse → .bun/remark-parse@11.0.0/node_modules/remark-parse}/lib/index.js +2 -2
- package/dist/node_modules/{remark-rehype → .bun/remark-rehype@11.1.2/node_modules/remark-rehype}/lib/index.js +2 -2
- package/dist/node_modules/.bun/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/{style-to-js → .bun/style-to-js@1.1.21/node_modules/style-to-js}/cjs/index.js +3 -3
- package/dist/node_modules/{style-to-js → .bun/style-to-js@1.1.21/node_modules/style-to-js}/cjs/utilities.js +2 -2
- package/dist/node_modules/{style-to-object → .bun/style-to-object@1.0.14/node_modules/style-to-object}/cjs/index.js +3 -3
- package/dist/node_modules/{trim-lines → .bun/trim-lines@3.0.1/node_modules/trim-lines}/index.js +1 -1
- package/dist/node_modules/{trough → .bun/trough@2.2.0/node_modules/trough}/lib/index.js +1 -1
- package/dist/node_modules/{unified → .bun/unified@11.0.5/node_modules/unified}/lib/callable-instance.js +1 -1
- package/dist/node_modules/{unified → .bun/unified@11.0.5/node_modules/unified}/lib/index.js +8 -8
- package/dist/node_modules/{unist-util-is → .bun/unist-util-is@6.0.1/node_modules/unist-util-is}/lib/index.js +1 -1
- package/dist/node_modules/{unist-util-position → .bun/unist-util-position@5.0.0/node_modules/unist-util-position}/lib/index.js +1 -1
- package/dist/node_modules/{unist-util-stringify-position → .bun/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position}/lib/index.js +1 -1
- package/dist/node_modules/.bun/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/{unist-util-visit-parents → .bun/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents}/lib/index.js +2 -2
- package/dist/node_modules/{unist-util-visit → .bun/unist-util-visit@5.1.0/node_modules/unist-util-visit}/lib/index.js +2 -2
- package/dist/node_modules/{vfile-message → .bun/vfile-message@4.0.3/node_modules/vfile-message}/lib/index.js +2 -2
- package/dist/node_modules/{vfile → .bun/vfile@6.0.3/node_modules/vfile}/lib/index.js +2 -2
- package/dist/node_modules/{vfile → .bun/vfile@6.0.3/node_modules/vfile}/lib/minpath.browser.js +1 -1
- package/dist/node_modules/{vfile → .bun/vfile@6.0.3/node_modules/vfile}/lib/minproc.browser.js +1 -1
- package/dist/node_modules/{vfile → .bun/vfile@6.0.3/node_modules/vfile}/lib/minurl.browser.js +1 -1
- package/dist/node_modules/{vfile → .bun/vfile@6.0.3/node_modules/vfile}/lib/minurl.shared.js +1 -1
- package/dist/node_modules/{web-vitals → .bun/web-vitals@4.2.4/node_modules/web-vitals}/dist/web-vitals.js +1 -1
- package/dist/shared/components/MicrofrontendErrorBoundary.js +1 -1
- package/dist/shared/graphql/client.d.ts.map +1 -1
- package/dist/shared/graphql/client.js +95 -83
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.js +130 -107
- package/dist/shared/pages/LegalPage.js +1 -1
- package/dist/shared/providers/AppShellProvider.d.ts +4 -4
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +205 -181
- package/dist/shared/providers/shell/ObservabilityProvider.js +1 -1
- package/dist/shared/tours/toursContext/useTourMutations.js +29 -29
- package/dist/shared/utils/backendErrors.d.ts +37 -0
- package/dist/shared/utils/backendErrors.d.ts.map +1 -0
- package/dist/shared/utils/backendErrors.js +123 -0
- package/dist/shared/utils/index.d.ts +7 -5
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared/utils/quotaErrors.js +11 -8
- package/dist/shared-tours.js +3 -3
- package/dist/shared-utils.js +12 -11
- package/dist/shared.js +96 -95
- package/dist/ui/button.d.ts +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +2 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -11
- package/dist/node_modules/micromark/lib/constructs.js +0 -80
- package/dist/node_modules/micromark/lib/postprocess.js +0 -8
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -18
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -14
- package/dist/node_modules/micromark-factory-whitespace/index.js +0 -12
- package/dist/node_modules/micromark-util-classify-character/index.js +0 -8
- package/dist/node_modules/micromark-util-decode-string/index.js +0 -17
- package/dist/node_modules/property-information/lib/normalize.js +0 -6
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -6
- package/dist/node_modules/space-separated-tokens/index.js +0 -6
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +0 -6
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { COMPLETE_STEP as e, COMPLETE_TOUR as t, SKIP_TOUR as n, START_TOUR as r, TRACK_TOUR_EVENT as i } from "./gql.js";
|
|
2
|
+
import { getOrCreateTourSessionId as a, normalizeDeviceType as o } from "./session.js";
|
|
3
|
+
import { withTourProgressStatus as s } from "../progress.js";
|
|
4
4
|
import { useCallback as c } from "react";
|
|
5
5
|
//#region src/shared/tours/toursContext/useTourMutations.ts
|
|
6
6
|
function l({ globalClient: l, userId: u, productSlug: d, moduleId: f, pageId: p, workspaceId: m, setAllTours: h, allToursRef: g, progressMutationVersionRef: _, latestProgressMutationByTourRef: v }) {
|
|
7
7
|
return {
|
|
8
|
-
trackProgress: c(async (
|
|
8
|
+
trackProgress: c(async (e, i, a) => {
|
|
9
9
|
if (!l || !u) return;
|
|
10
|
-
let c =
|
|
11
|
-
_.current = f, v.current.set(
|
|
12
|
-
let
|
|
13
|
-
return g.current =
|
|
10
|
+
let c = i === "started" ? "IN_PROGRESS" : i === "completed" ? "COMPLETED" : "SKIPPED", d = g.current.find((t) => t.id === e)?.myProgress, f = _.current + 1;
|
|
11
|
+
_.current = f, v.current.set(e, f), h((t) => {
|
|
12
|
+
let n = s(t, e, c);
|
|
13
|
+
return g.current = n, n;
|
|
14
14
|
});
|
|
15
15
|
try {
|
|
16
|
-
if (
|
|
16
|
+
if (i === "started") {
|
|
17
17
|
await l.mutate({
|
|
18
|
-
mutation:
|
|
18
|
+
mutation: r,
|
|
19
19
|
variables: {
|
|
20
|
-
tourId:
|
|
20
|
+
tourId: e,
|
|
21
21
|
userId: u,
|
|
22
|
-
deviceType:
|
|
22
|
+
deviceType: o()
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
if (
|
|
27
|
+
if (i === "completed") {
|
|
28
28
|
await l.mutate({
|
|
29
|
-
mutation:
|
|
29
|
+
mutation: t,
|
|
30
30
|
variables: {
|
|
31
|
-
tourId:
|
|
31
|
+
tourId: e,
|
|
32
32
|
userId: u
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
await l.mutate({
|
|
38
|
-
mutation:
|
|
38
|
+
mutation: n,
|
|
39
39
|
variables: {
|
|
40
|
-
tourId:
|
|
40
|
+
tourId: e,
|
|
41
41
|
userId: u
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
} catch {
|
|
45
|
-
if (v.current.get(
|
|
46
|
-
h((
|
|
47
|
-
let n =
|
|
48
|
-
...
|
|
45
|
+
if (v.current.get(e) !== f) return;
|
|
46
|
+
h((t) => {
|
|
47
|
+
let n = t.map((t) => t.id === e ? {
|
|
48
|
+
...t,
|
|
49
49
|
myProgress: d
|
|
50
|
-
} :
|
|
50
|
+
} : t);
|
|
51
51
|
return g.current = n, n;
|
|
52
52
|
});
|
|
53
53
|
} finally {
|
|
54
|
-
v.current.get(
|
|
54
|
+
v.current.get(e) === f && v.current.delete(e);
|
|
55
55
|
}
|
|
56
56
|
}, [
|
|
57
57
|
l,
|
|
@@ -61,12 +61,12 @@ function l({ globalClient: l, userId: u, productSlug: d, moduleId: f, pageId: p,
|
|
|
61
61
|
_,
|
|
62
62
|
v
|
|
63
63
|
]),
|
|
64
|
-
recordStepCompletion: c(async (
|
|
64
|
+
recordStepCompletion: c(async (t, n) => {
|
|
65
65
|
if (!(!l || !u || !n)) try {
|
|
66
66
|
await l.mutate({
|
|
67
|
-
mutation:
|
|
67
|
+
mutation: e,
|
|
68
68
|
variables: {
|
|
69
|
-
tourId:
|
|
69
|
+
tourId: t,
|
|
70
70
|
stepId: n,
|
|
71
71
|
userId: u
|
|
72
72
|
}
|
|
@@ -76,18 +76,18 @@ function l({ globalClient: l, userId: u, productSlug: d, moduleId: f, pageId: p,
|
|
|
76
76
|
trackEvent: c(async (e, t, n) => {
|
|
77
77
|
if (!(!l || !u)) try {
|
|
78
78
|
await l.mutate({
|
|
79
|
-
mutation:
|
|
79
|
+
mutation: i,
|
|
80
80
|
variables: { input: {
|
|
81
81
|
tourId: t,
|
|
82
82
|
userId: u,
|
|
83
|
-
sessionId:
|
|
83
|
+
sessionId: a(),
|
|
84
84
|
eventType: e,
|
|
85
85
|
stepId: n?.stepId,
|
|
86
86
|
stepOrder: n?.stepOrder,
|
|
87
87
|
productId: d,
|
|
88
88
|
moduleId: f,
|
|
89
89
|
pageId: p,
|
|
90
|
-
deviceType:
|
|
90
|
+
deviceType: o(),
|
|
91
91
|
userAgent: typeof navigator < "u" ? navigator.userAgent : void 0,
|
|
92
92
|
duration: n?.duration,
|
|
93
93
|
metadata: n?.metadata,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const BACKEND_ERROR_EVENT: "burdenoff:backend-error";
|
|
2
|
+
export interface BackendErrorExtensions {
|
|
3
|
+
code?: string;
|
|
4
|
+
errorCode?: string;
|
|
5
|
+
userMessage?: string;
|
|
6
|
+
humanMessage?: string;
|
|
7
|
+
displayMessage?: string;
|
|
8
|
+
technicalMessage?: string;
|
|
9
|
+
serviceName?: string;
|
|
10
|
+
requestId?: string;
|
|
11
|
+
correlationId?: string;
|
|
12
|
+
traceId?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface GraphQLBackendErrorLike {
|
|
16
|
+
message?: string | null;
|
|
17
|
+
path?: ReadonlyArray<string | number> | null;
|
|
18
|
+
extensions?: BackendErrorExtensions | null;
|
|
19
|
+
}
|
|
20
|
+
export interface BackendErrorDisplay {
|
|
21
|
+
message: string;
|
|
22
|
+
subtitle?: string;
|
|
23
|
+
code?: string;
|
|
24
|
+
operationName?: string;
|
|
25
|
+
serviceName?: string;
|
|
26
|
+
path?: string;
|
|
27
|
+
extensions?: BackendErrorExtensions;
|
|
28
|
+
}
|
|
29
|
+
export interface ExtractBackendErrorOptions {
|
|
30
|
+
operationName?: string;
|
|
31
|
+
fallbackMessage?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function extractBackendError(input: unknown, options?: ExtractBackendErrorOptions): BackendErrorDisplay | null;
|
|
34
|
+
export declare function isBackendErrorDisplay(value: unknown): value is BackendErrorDisplay;
|
|
35
|
+
export declare function shouldToastBackendError(error: BackendErrorDisplay | null): error is BackendErrorDisplay;
|
|
36
|
+
export declare function dispatchBackendErrorEvent(input: unknown, options?: ExtractBackendErrorOptions): void;
|
|
37
|
+
//# sourceMappingURL=backendErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backendErrors.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/backendErrors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,yBAAkC,CAAC;AAEtE,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAED,MAAM,WAAW,0BAA0B;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA4MD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,0BAA+B,GACvC,mBAAmB,GAAG,IAAI,CA6C5B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,mBAAmB,CAE9B;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,mBAAmB,GAAG,IAAI,GAChC,KAAK,IAAI,mBAAmB,CAI9B;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,0BAA+B,GACvC,IAAI,CAcN"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
//#region src/shared/utils/backendErrors.ts
|
|
2
|
+
var e = "burdenoff:backend-error", t = "Something went wrong. Please try again.", n = {
|
|
3
|
+
BAD_REQUEST: "Please check the request and try again.",
|
|
4
|
+
BAD_USER_INPUT: "Please check the information and try again.",
|
|
5
|
+
CAPTCHA_FAILED: "The verification failed. Please try again.",
|
|
6
|
+
CAPTCHA_REQUIRED: "Please complete the verification to continue.",
|
|
7
|
+
COMPLEXITY_TOO_HIGH: "This request is too large to process. Please simplify it and try again.",
|
|
8
|
+
CONFLICT: "This change conflicts with existing data. Please refresh and try again.",
|
|
9
|
+
FORBIDDEN: "You do not have permission to do that.",
|
|
10
|
+
INTERNAL_SERVER_ERROR: t,
|
|
11
|
+
NOT_FOUND: "We could not find the requested item.",
|
|
12
|
+
PERMISSION_DENIED: "You do not have permission to do that.",
|
|
13
|
+
QUOTA_EXCEEDED: "You've reached your usage limit.",
|
|
14
|
+
QUOTA_EXHAUSTED: "You've reached your usage limit.",
|
|
15
|
+
RATE_LIMITED: "Too many requests. Please wait a moment and try again.",
|
|
16
|
+
RESOURCE_CAP_EXCEEDED: "You've reached your plan limit. Upgrade your plan to continue.",
|
|
17
|
+
STORAGE_QUOTA_EXCEEDED: "You've reached your storage limit. Upgrade your plan to continue.",
|
|
18
|
+
TIMEOUT: "The request took too long. Please try again.",
|
|
19
|
+
UNAUTHENTICATED: "Please sign in to continue.",
|
|
20
|
+
VALIDATION_ERROR: "Please check the information and try again.",
|
|
21
|
+
WORKSPACE_REQUIRED: "Please choose a workspace and try again."
|
|
22
|
+
}, r = new Set([
|
|
23
|
+
"UNAUTHENTICATED",
|
|
24
|
+
"TOKEN_EXPIRED",
|
|
25
|
+
"RESOURCE_CAP_EXCEEDED",
|
|
26
|
+
"STORAGE_QUOTA_EXCEEDED",
|
|
27
|
+
"QUOTA_EXHAUSTED"
|
|
28
|
+
]);
|
|
29
|
+
function i(e) {
|
|
30
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
31
|
+
}
|
|
32
|
+
function a(e, t) {
|
|
33
|
+
let n = e[t];
|
|
34
|
+
return typeof n == "string" && n.trim().length > 0 ? n : void 0;
|
|
35
|
+
}
|
|
36
|
+
function o(e) {
|
|
37
|
+
if (!(typeof e != "string" || e.trim().length === 0)) return e.trim().replace(/[\s-]+/g, "_").toUpperCase();
|
|
38
|
+
}
|
|
39
|
+
function s(e) {
|
|
40
|
+
if (!i(e)) return;
|
|
41
|
+
let t = e.errors;
|
|
42
|
+
if (Array.isArray(t)) return t;
|
|
43
|
+
let n = e.graphQLErrors;
|
|
44
|
+
if (Array.isArray(n)) return n;
|
|
45
|
+
let r = e.networkError;
|
|
46
|
+
if (i(r)) {
|
|
47
|
+
let e = r.result;
|
|
48
|
+
if (i(e) && Array.isArray(e.errors)) return e.errors;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function c(e) {
|
|
52
|
+
let t = s(e);
|
|
53
|
+
if (t && t.length > 0) return t[0];
|
|
54
|
+
if (i(e) && ("message" in e || "extensions" in e)) return e;
|
|
55
|
+
}
|
|
56
|
+
function l(e) {
|
|
57
|
+
if (e) return e.userMessage ?? e.humanMessage ?? e.displayMessage;
|
|
58
|
+
}
|
|
59
|
+
function u(e) {
|
|
60
|
+
return e.length > 220 || e.includes("\n") || /\b(prisma|sql|constraint|undefined|null|ECONN[A-Z_]*|ETIMEDOUT|ENOTFOUND)\b/i.test(e) || /failed to fetch|network error|graphql fetch failed/i.test(e) || /Cannot (read|set|find|access)/i.test(e);
|
|
61
|
+
}
|
|
62
|
+
function d(e) {
|
|
63
|
+
let t = e.toLowerCase();
|
|
64
|
+
if (t.includes("unauthenticated") || t.includes("unauthorized")) return "UNAUTHENTICATED";
|
|
65
|
+
if (t.includes("workspace context")) return "WORKSPACE_REQUIRED";
|
|
66
|
+
if (t.includes("forbidden") || t.includes("access denied")) return "FORBIDDEN";
|
|
67
|
+
if (t.includes("not found")) return "NOT_FOUND";
|
|
68
|
+
if (t.includes("quota") || t.includes("limit reached")) return "QUOTA_EXCEEDED";
|
|
69
|
+
if (t.includes("required") || t.includes("invalid") || t.includes("missing")) return "BAD_USER_INPUT";
|
|
70
|
+
}
|
|
71
|
+
function f(e, r, i, a) {
|
|
72
|
+
let o = l(e?.extensions ?? void 0);
|
|
73
|
+
if (o) return o;
|
|
74
|
+
let s = e?.message ?? a;
|
|
75
|
+
return s && !u(s) ? s : r && n[r] ? n[r] : i ?? t;
|
|
76
|
+
}
|
|
77
|
+
function p(e) {
|
|
78
|
+
if (!(!e || e.length === 0)) return e.map((e) => String(e)).join(".");
|
|
79
|
+
}
|
|
80
|
+
function m({ code: e, technicalMessage: t, message: n, operationName: r, serviceName: i, path: a, requestId: o }) {
|
|
81
|
+
let s = [
|
|
82
|
+
e,
|
|
83
|
+
i,
|
|
84
|
+
r,
|
|
85
|
+
a ? `path: ${a}` : void 0,
|
|
86
|
+
o
|
|
87
|
+
].filter((e) => typeof e == "string" && e.length > 0);
|
|
88
|
+
return t && t !== n && s.push(t), s.length > 0 ? s.join(" • ") : void 0;
|
|
89
|
+
}
|
|
90
|
+
function h(e, t = {}) {
|
|
91
|
+
if (e == null) return null;
|
|
92
|
+
let n = c(e), r = n?.extensions ?? void 0, s = e instanceof Error ? e.message : i(e) ? a(e, "message") : void 0, l = o(r?.code ?? r?.errorCode) ?? d(s ?? n?.message ?? ""), u = r?.serviceName, h = p(n?.path), g = r?.requestId ?? r?.correlationId ?? r?.traceId, _ = f(n, l, t.fallbackMessage, s);
|
|
93
|
+
return {
|
|
94
|
+
message: _,
|
|
95
|
+
subtitle: m({
|
|
96
|
+
code: l,
|
|
97
|
+
technicalMessage: r?.technicalMessage ?? (s && s !== _ ? s : void 0),
|
|
98
|
+
message: _,
|
|
99
|
+
operationName: t.operationName,
|
|
100
|
+
serviceName: u,
|
|
101
|
+
path: h,
|
|
102
|
+
requestId: g
|
|
103
|
+
}),
|
|
104
|
+
code: l,
|
|
105
|
+
operationName: t.operationName,
|
|
106
|
+
serviceName: u,
|
|
107
|
+
path: h,
|
|
108
|
+
extensions: r
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function g(e) {
|
|
112
|
+
return i(e) && typeof e.message == "string";
|
|
113
|
+
}
|
|
114
|
+
function _(e) {
|
|
115
|
+
return !e || e.code && r.has(e.code) ? !1 : e.message.trim().length > 0;
|
|
116
|
+
}
|
|
117
|
+
function v(t, n = {}) {
|
|
118
|
+
if (typeof window > "u" || t instanceof DOMException && t.name === "AbortError") return;
|
|
119
|
+
let r = g(t) ? t : h(t, n);
|
|
120
|
+
_(r) && window.dispatchEvent(new CustomEvent(e, { detail: r }));
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { e as BACKEND_ERROR_EVENT, v as dispatchBackendErrorEvent, h as extractBackendError, g as isBackendErrorDisplay, _ as shouldToastBackendError };
|
|
@@ -14,13 +14,15 @@ export { resolveGatewayBases, installGatewayFetchRewrite, suppressConsole, } fro
|
|
|
14
14
|
export type { GatewayBases, GatewayBaseMapping } from './gatewayFetchRewrite';
|
|
15
15
|
export { clearAuthSessionStorage, hasAuthGraphQLErrors, isAuthGraphQLError, isAuthNetworkError, attemptTokenRefresh, redirectToLogin, } from './authErrorHandling';
|
|
16
16
|
export type { GraphQLErrorLike, TokenRefreshConfig } from './authErrorHandling';
|
|
17
|
-
export {
|
|
17
|
+
export { BACKEND_ERROR_EVENT, dispatchBackendErrorEvent, extractBackendError, isBackendErrorDisplay, shouldToastBackendError, } from './backendErrors';
|
|
18
|
+
export type { BackendErrorDisplay, BackendErrorExtensions, ExtractBackendErrorOptions, GraphQLBackendErrorLike, } from './backendErrors';
|
|
19
|
+
export { AppInitializer, useShellNavigate, useRegistryHelpers, } from './appHelpers';
|
|
18
20
|
export type { AppInitializerProps } from './appHelpers';
|
|
19
|
-
export { initializeLogger, setUserContext, clearUserContext } from './loggerInit';
|
|
21
|
+
export { initializeLogger, setUserContext, clearUserContext, } from './loggerInit';
|
|
20
22
|
export type { InitLoggerOptions } from './loggerInit';
|
|
21
23
|
export { setSSoCookie, getSSoCookie, clearSSoCookie, setShellSsoCookies, readShellSsoCookie, clearShellSsoCookies, isSharedSsoCookieDomain, isTrustedSsoOrigin, } from './authCookie';
|
|
22
24
|
export type { ShellSsoCookieData } from './authCookie';
|
|
23
|
-
export { createProfileScopedStorage, getProfileScopedKey } from './profileScopedStorage';
|
|
24
|
-
export { QUOTA_EXHAUSTED_CODE, isQuotaExhaustedError, extractQuotaExhaustedExtensions, buildQuotaExhaustedMessage, } from './quotaErrors';
|
|
25
|
-
export type { QuotaExhaustedExtensions } from './quotaErrors';
|
|
25
|
+
export { createProfileScopedStorage, getProfileScopedKey, } from './profileScopedStorage';
|
|
26
|
+
export { QUOTA_EXHAUSTED_CODE, RESOURCE_CAP_EXCEEDED_CODE, STORAGE_QUOTA_EXCEEDED_CODE, UPGRADE_ERROR_CODES, isQuotaExhaustedError, isUpgradeError, extractUpgradeErrorExtensions, extractQuotaExhaustedExtensions, buildQuotaExhaustedMessage, } from './quotaErrors';
|
|
27
|
+
export type { QuotaExhaustedExtensions, UpgradeErrorCode, UpgradeErrorExtensions, } from './quotaErrors';
|
|
26
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,eAAe,CAAC"}
|
|
@@ -13,6 +13,9 @@ function i(e) {
|
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
function a(e) {
|
|
16
|
+
return o(e) !== null;
|
|
17
|
+
}
|
|
18
|
+
function o(e) {
|
|
16
19
|
if (typeof e != "object" || !e) return null;
|
|
17
20
|
let t = e, n = i(t.graphQLErrors);
|
|
18
21
|
if (n) return n;
|
|
@@ -23,7 +26,7 @@ function a(e) {
|
|
|
23
26
|
}
|
|
24
27
|
return null;
|
|
25
28
|
}
|
|
26
|
-
function
|
|
29
|
+
function s(e) {
|
|
27
30
|
return e ? e.code === "STORAGE_QUOTA_EXCEEDED" || typeof e.limitBytes == "number" ? {
|
|
28
31
|
current: e.currentBytes ?? null,
|
|
29
32
|
limit: e.limitBytes ?? null,
|
|
@@ -38,22 +41,22 @@ function o(e) {
|
|
|
38
41
|
unit: "count"
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
|
-
function
|
|
44
|
+
function c(e) {
|
|
42
45
|
if (!e) return null;
|
|
43
46
|
for (let t of e) if (t?.extensions?.code === "QUOTA_EXHAUSTED") return t.extensions;
|
|
44
47
|
return null;
|
|
45
48
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
49
|
+
function l(e) {
|
|
50
|
+
return u(e) !== null;
|
|
48
51
|
}
|
|
49
|
-
function
|
|
52
|
+
function u(t) {
|
|
50
53
|
if (typeof t != "object" || !t) return null;
|
|
51
54
|
let n = t;
|
|
52
|
-
return
|
|
55
|
+
return c(n.graphQLErrors) || c(n.networkError?.result?.errors) || (t instanceof Error && typeof t.message == "string" && t.message.includes("QUOTA_EXHAUSTED") ? { code: e } : null);
|
|
53
56
|
}
|
|
54
|
-
function
|
|
57
|
+
function d(e) {
|
|
55
58
|
let t = e?.quotaName ?? e?.field;
|
|
56
59
|
return t ? `You've reached your ${t} limit. Upgrade your plan.` : "You've reached your usage limit. Upgrade your plan.";
|
|
57
60
|
}
|
|
58
61
|
//#endregion
|
|
59
|
-
export { e as QUOTA_EXHAUSTED_CODE, n as RESOURCE_CAP_EXCEEDED_CODE, t as STORAGE_QUOTA_EXCEEDED_CODE,
|
|
62
|
+
export { e as QUOTA_EXHAUSTED_CODE, n as RESOURCE_CAP_EXCEEDED_CODE, t as STORAGE_QUOTA_EXCEEDED_CODE, r as UPGRADE_ERROR_CODES, d as buildQuotaExhaustedMessage, u as extractQuotaExhaustedExtensions, o as extractUpgradeErrorExtensions, l as isQuotaExhaustedError, a as isUpgradeError, s as resolveUpgradeUsage };
|
package/dist/shared-tours.js
CHANGED
|
@@ -7,6 +7,6 @@ import { TourPlayer as u, TourTriggerButton as d, usePlayTour as f } from "./sha
|
|
|
7
7
|
import { getTourContextRank as p, getTourRouteCatalog as m, getTourRouteModules as h, getTourRoutePages as g, isTourVisibleForContext as _, normalizeTourPath as v, registerTourRouteCatalog as y, resolveTourTargetPath as b } from "./shared/tours/routeCatalog.js";
|
|
8
8
|
import { withTourProgressStatus as x } from "./shared/tours/progress.js";
|
|
9
9
|
import { ToursProvider as S, useAutoStartTour as C, useSafeToursContext as w, useTours as T, useToursContext as E } from "./shared/tours/ToursContext.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
export {
|
|
10
|
+
import { TourInitializer as D } from "./shared/tours/TourInitializer.js";
|
|
11
|
+
import { TourTrigger as O } from "./shared/tours/TourTrigger.js";
|
|
12
|
+
export { D as TourInitializer, u as TourPlayer, a as TourPlayerProvider, r as TourSpotlight, i as TourTooltip, O as TourTrigger, d as TourTriggerButton, S as ToursProvider, e as detectDeviceType, t as getResponsiveSelector, p as getTourContextRank, m as getTourRouteCatalog, h as getTourRouteModules, g as getTourRoutePages, _ as isTourVisibleForContext, v as normalizeTourPath, y as registerTourRouteCatalog, b as resolveTourTargetPath, C as useAutoStartTour, o as useIsTourPlaying, f as usePlayTour, w as useSafeToursContext, s as useStartTour, c as useStopTour, n as useTourPlayer, l as useTourPlayerContext, T as useTours, E as useToursContext, x as withTourProgressStatus };
|
package/dist/shared-utils.js
CHANGED
|
@@ -3,17 +3,18 @@ import { alertTokens as t, categoryTokens as n, getAlertTokens as r, getCategory
|
|
|
3
3
|
import { capitalizeFirst as f, capitalizeWords as p, formatBytes as m, formatCompactNumber as h, formatCurrency as g, formatCurrencyCompact as _, formatDate as v, formatDateTime as y, formatDuration as b, formatList as x, formatNumber as S, formatOrdinal as C, formatPercentage as w, formatRelativeTime as T, formatTime as E, pluralize as D, slugify as O, toCamelCase as k, toPascalCase as A, truncateText as j } from "./shared/utils/format.js";
|
|
4
4
|
import { isChunkLoadError as M, lazyWithRetry as N } from "./shared/utils/lazyWithRetry.js";
|
|
5
5
|
import { installGatewayFetchRewrite as P, resolveGatewayBases as F, suppressConsole as I } from "./shared/utils/gatewayFetchRewrite.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { BACKEND_ERROR_EVENT as L, dispatchBackendErrorEvent as R, extractBackendError as z, isBackendErrorDisplay as B, shouldToastBackendError as V } from "./shared/utils/backendErrors.js";
|
|
7
|
+
import { attemptTokenRefresh as H, clearAuthSessionStorage as U, hasAuthGraphQLErrors as W, isAuthGraphQLError as G, isAuthNetworkError as K, redirectToLogin as q } from "./shared/utils/authErrorHandling.js";
|
|
8
|
+
import { clearSSoCookie as J, clearShellSsoCookies as Y, getSSoCookie as X, isSharedSsoCookieDomain as Z, isTrustedSsoOrigin as Q, readShellSsoCookie as $, setSSoCookie as ee, setShellSsoCookies as te } from "./shared/utils/authCookie.js";
|
|
9
|
+
import { AppInitializer as ne, useRegistryHelpers as re, useShellNavigate as ie } from "./shared/utils/appHelpers.js";
|
|
10
|
+
import { clearUserContext as ae, initializeLogger as oe, setUserContext as se } from "./shared/utils/loggerInit.js";
|
|
11
|
+
import { createProfileScopedStorage as ce, getProfileScopedKey as le } from "./shared/utils/profileScopedStorage.js";
|
|
12
|
+
import { QUOTA_EXHAUSTED_CODE as ue, RESOURCE_CAP_EXCEEDED_CODE as de, STORAGE_QUOTA_EXCEEDED_CODE as fe, UPGRADE_ERROR_CODES as pe, buildQuotaExhaustedMessage as me, extractQuotaExhaustedExtensions as he, extractUpgradeErrorExtensions as ge, isQuotaExhaustedError as _e, isUpgradeError as ve } from "./shared/utils/quotaErrors.js";
|
|
13
|
+
import { clsx as ye } from "clsx";
|
|
14
|
+
import { twMerge as be } from "tailwind-merge";
|
|
14
15
|
//#region src/shared/utils/index.ts
|
|
15
|
-
function
|
|
16
|
-
return
|
|
16
|
+
function xe(...e) {
|
|
17
|
+
return be(ye(e));
|
|
17
18
|
}
|
|
18
19
|
//#endregion
|
|
19
|
-
export {
|
|
20
|
+
export { ne as AppInitializer, L as BACKEND_ERROR_EVENT, ue as QUOTA_EXHAUSTED_CODE, de as RESOURCE_CAP_EXCEEDED_CODE, fe as STORAGE_QUOTA_EXCEEDED_CODE, pe as UPGRADE_ERROR_CODES, t as alertTokens, H as attemptTokenRefresh, me as buildQuotaExhaustedMessage, f as capitalizeFirst, p as capitalizeWords, n as categoryTokens, U as clearAuthSessionStorage, J as clearSSoCookie, Y as clearShellSsoCookies, ae as clearUserContext, xe as cn, e as createApolloClient, ce as createProfileScopedStorage, R as dispatchBackendErrorEvent, z as extractBackendError, he as extractQuotaExhaustedExtensions, ge as extractUpgradeErrorExtensions, m as formatBytes, h as formatCompactNumber, g as formatCurrency, _ as formatCurrencyCompact, v as formatDate, y as formatDateTime, b as formatDuration, x as formatList, S as formatNumber, C as formatOrdinal, w as formatPercentage, T as formatRelativeTime, E as formatTime, r as getAlertTokens, i as getCategoryTokens, le as getProfileScopedKey, a as getProgressTokens, X as getSSoCookie, o as getStatusBadgeTokens, s as getStatusTokens, c as getTrendTokens, W as hasAuthGraphQLErrors, oe as initializeLogger, P as installGatewayFetchRewrite, G as isAuthGraphQLError, K as isAuthNetworkError, B as isBackendErrorDisplay, M as isChunkLoadError, _e as isQuotaExhaustedError, Z as isSharedSsoCookieDomain, Q as isTrustedSsoOrigin, ve as isUpgradeError, N as lazyWithRetry, D as pluralize, l as progressTokens, $ as readShellSsoCookie, q as redirectToLogin, F as resolveGatewayBases, ee as setSSoCookie, te as setShellSsoCookies, se as setUserContext, V as shouldToastBackendError, O as slugify, u as statusTokens, I as suppressConsole, k as toCamelCase, A as toPascalCase, d as trendTokens, j as truncateText, re as useRegistryHelpers, ie as useShellNavigate };
|