@carlonicora/nextjs-jsonapi 1.109.0 → 1.111.0
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/{AssistantMessageInterface-Cs1yb-gF.d.ts → AssistantMessageInterface-BNzf1etU.d.ts} +14 -1
- package/dist/{AssistantMessageInterface-DQ3mH5L8.d.mts → AssistantMessageInterface-DrgHDjZ5.d.mts} +14 -1
- package/dist/{BlockNoteEditor-3XYBZLWO.js → BlockNoteEditor-7OKW6HHN.js} +19 -20
- package/dist/BlockNoteEditor-7OKW6HHN.js.map +1 -0
- package/dist/{BlockNoteEditor-EBFZG7AL.mjs → BlockNoteEditor-K7IIWM3S.mjs} +4 -5
- package/dist/{BlockNoteEditor-EBFZG7AL.mjs.map → BlockNoteEditor-K7IIWM3S.mjs.map} +1 -1
- package/dist/BlockNoteViewer-OPSCTHKJ.mjs +31 -0
- package/dist/BlockNoteViewer-OPSCTHKJ.mjs.map +1 -0
- package/dist/BlockNoteViewer-UW5VZ5UF.js +31 -0
- package/dist/BlockNoteViewer-UW5VZ5UF.js.map +1 -0
- package/dist/billing/index.d.mts +41 -41
- package/dist/billing/index.d.ts +41 -41
- package/dist/billing/index.js +346 -347
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +3 -4
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-7E3O52U5.js → chunk-6XWW67F2.js} +25 -12
- package/dist/chunk-6XWW67F2.js.map +1 -0
- package/dist/{chunk-UHO3KUUH.js → chunk-AKXUNE3A.js} +977 -850
- package/dist/chunk-AKXUNE3A.js.map +1 -0
- package/dist/{chunk-UOYIWJEJ.mjs → chunk-CWVYU4YZ.mjs} +18 -5
- package/dist/{chunk-UOYIWJEJ.mjs.map → chunk-CWVYU4YZ.mjs.map} +1 -1
- package/dist/{chunk-CRTVAQEK.mjs → chunk-TXVVZLUQ.mjs} +1388 -1261
- package/dist/chunk-TXVVZLUQ.mjs.map +1 -0
- package/dist/{chunk-CFI4WZ5R.js → chunk-U2HR57MY.js} +111 -5
- package/dist/chunk-U2HR57MY.js.map +1 -0
- package/dist/chunk-WPAQRB5Q.mjs +7 -0
- package/dist/chunk-WPAQRB5Q.mjs.map +1 -0
- package/dist/chunk-YBZVWLPH.js +7 -0
- package/dist/chunk-YBZVWLPH.js.map +1 -0
- package/dist/{chunk-MSNNAHDB.mjs → chunk-ZYPNVEHB.mjs} +112 -6
- package/dist/{chunk-MSNNAHDB.mjs.map → chunk-ZYPNVEHB.mjs.map} +1 -1
- package/dist/client/index.d.mts +3 -4
- package/dist/client/index.d.ts +3 -4
- package/dist/client/index.js +4 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +3 -4
- package/dist/components/index.d.mts +418 -415
- package/dist/components/index.d.ts +418 -415
- package/dist/components/index.js +6 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -4
- package/dist/{config-CN23v3eJ.d.ts → config-BrkU_Ynz.d.ts} +2 -2
- package/dist/{config-gh88Qn4h.d.mts → config-snd2ToEB.d.mts} +2 -2
- package/dist/contexts/index.d.mts +15 -15
- package/dist/contexts/index.d.ts +15 -15
- package/dist/contexts/index.js +4 -5
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +3 -4
- package/dist/core/index.d.mts +35 -4
- package/dist/core/index.d.ts +35 -4
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/features/help/index.d.mts +25 -66
- package/dist/features/help/index.d.ts +25 -66
- package/dist/features/help/index.js +114 -124
- package/dist/features/help/index.js.map +1 -1
- package/dist/features/help/index.mjs +95 -105
- package/dist/features/help/index.mjs.map +1 -1
- package/dist/features/help/server.d.mts +27 -65
- package/dist/features/help/server.d.ts +27 -65
- package/dist/features/help/server.js +4 -119
- package/dist/features/help/server.js.map +1 -1
- package/dist/features/help/server.mjs +4 -119
- package/dist/features/help/server.mjs.map +1 -1
- package/dist/help-content-config.interface-C5ESIod9.d.mts +13 -0
- package/dist/help-content-config.interface-C5ESIod9.d.ts +13 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/scripts/generate-web-module/__tests__/container.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/container.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/container.spec.js +54 -0
- package/dist/scripts/generate-web-module/__tests__/container.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/data-service.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/data-service.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/data-service.spec.js +19 -0
- package/dist/scripts/generate-web-module/__tests__/data-service.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/editor.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/editor.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/editor.spec.js +35 -0
- package/dist/scripts/generate-web-module/__tests__/editor.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/fixtures.d.ts +4 -0
- package/dist/scripts/generate-web-module/__tests__/fixtures.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/fixtures.js +45 -0
- package/dist/scripts/generate-web-module/__tests__/fixtures.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/model-interface.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/model-interface.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/model-interface.spec.js +74 -0
- package/dist/scripts/generate-web-module/__tests__/model-interface.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/plumbing.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/plumbing.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/plumbing.spec.js +21 -0
- package/dist/scripts/generate-web-module/__tests__/plumbing.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/selector.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/selector.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/selector.spec.js +25 -0
- package/dist/scripts/generate-web-module/__tests__/selector.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/table-module-list.spec.d.ts +2 -0
- package/dist/scripts/generate-web-module/__tests__/table-module-list.spec.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/__tests__/table-module-list.spec.js +55 -0
- package/dist/scripts/generate-web-module/__tests__/table-module-list.spec.js.map +1 -0
- package/dist/scripts/generate-web-module/generator.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/generator.js +14 -11
- package/dist/scripts/generate-web-module/generator.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/container.template.d.ts +5 -1
- package/dist/scripts/generate-web-module/templates/components/container.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/container.template.js +43 -63
- package/dist/scripts/generate-web-module/templates/components/container.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/content.template.d.ts +7 -4
- package/dist/scripts/generate-web-module/templates/components/content.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/content.template.js +103 -14
- package/dist/scripts/generate-web-module/templates/components/content.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.d.ts +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +139 -150
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/index.d.ts +0 -1
- package/dist/scripts/generate-web-module/templates/components/index.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/index.js +1 -3
- package/dist/scripts/generate-web-module/templates/components/index.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/list-container.template.js +2 -2
- package/dist/scripts/generate-web-module/templates/components/list.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/list.template.js +6 -1
- package/dist/scripts/generate-web-module/templates/components/list.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/selector.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/selector.template.js +48 -52
- package/dist/scripts/generate-web-module/templates/components/selector.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/data/interface.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/data/interface.template.js +38 -11
- package/dist/scripts/generate-web-module/templates/data/interface.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/data/model.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/data/model.template.js +83 -26
- package/dist/scripts/generate-web-module/templates/data/model.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/data/service.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/data/service.template.js +21 -1
- package/dist/scripts/generate-web-module/templates/data/service.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/index.d.ts +1 -1
- package/dist/scripts/generate-web-module/templates/index.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/index.js +1 -2
- package/dist/scripts/generate-web-module/templates/index.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/module.template.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/module.template.js +11 -3
- package/dist/scripts/generate-web-module/templates/module.template.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/table-hook.template.js +31 -1
- package/dist/scripts/generate-web-module/templates/table-hook.template.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/import-resolver.d.ts +0 -1
- package/dist/scripts/generate-web-module/transformers/import-resolver.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/import-resolver.js +0 -1
- package/dist/scripts/generate-web-module/transformers/import-resolver.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-key.d.ts +5 -0
- package/dist/scripts/generate-web-module/transformers/relationship-key.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/relationship-key.js +21 -0
- package/dist/scripts/generate-web-module/transformers/relationship-key.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js +2 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js.map +1 -1
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts +21 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +17 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/testing/index.d.mts +1 -2
- package/dist/testing/index.d.ts +1 -2
- package/package.json +1 -6
- package/scripts/generate-web-module/__tests__/container.spec.ts +58 -0
- package/scripts/generate-web-module/__tests__/data-service.spec.ts +18 -0
- package/scripts/generate-web-module/__tests__/editor.spec.ts +36 -0
- package/scripts/generate-web-module/__tests__/fixtures.ts +43 -0
- package/scripts/generate-web-module/__tests__/model-interface.spec.ts +77 -0
- package/scripts/generate-web-module/__tests__/plumbing.spec.ts +21 -0
- package/scripts/generate-web-module/__tests__/selector.spec.ts +24 -0
- package/scripts/generate-web-module/__tests__/table-module-list.spec.ts +59 -0
- package/scripts/generate-web-module/generator.ts +14 -13
- package/scripts/generate-web-module/templates/components/container.template.ts +51 -66
- package/scripts/generate-web-module/templates/components/content.template.ts +107 -15
- package/scripts/generate-web-module/templates/components/editor.template.ts +140 -152
- package/scripts/generate-web-module/templates/components/index.ts +0 -1
- package/scripts/generate-web-module/templates/components/list-container.template.ts +2 -2
- package/scripts/generate-web-module/templates/components/list.template.ts +6 -1
- package/scripts/generate-web-module/templates/components/selector.template.ts +48 -52
- package/scripts/generate-web-module/templates/data/interface.template.ts +44 -12
- package/scripts/generate-web-module/templates/data/model.template.ts +88 -28
- package/scripts/generate-web-module/templates/data/service.template.ts +23 -1
- package/scripts/generate-web-module/templates/index.ts +0 -1
- package/scripts/generate-web-module/templates/module.template.ts +13 -3
- package/scripts/generate-web-module/templates/table-hook.template.ts +31 -2
- package/scripts/generate-web-module/transformers/import-resolver.ts +0 -2
- package/scripts/generate-web-module/transformers/relationship-key.ts +18 -0
- package/scripts/generate-web-module/transformers/relationship-resolver.ts +2 -0
- package/scripts/generate-web-module/types/json-schema.interface.ts +9 -0
- package/scripts/generate-web-module/types/template-data.interface.ts +7 -0
- package/src/client/config.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/viewers/BlockNoteViewer.tsx +27 -0
- package/src/components/viewers/BlockNoteViewerContainer.tsx +10 -0
- package/src/core/registry/helpStore.ts +2 -19
- package/src/features/assistant-message/components/parts/MessageSourcesContainer.tsx +4 -0
- package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +5 -5
- package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +3 -2
- package/src/features/help/components/HelpArticleBody.tsx +27 -19
- package/src/features/help/components/HelpHint.tsx +20 -11
- package/src/features/help/components/HelpSearchResultRow.tsx +16 -6
- package/src/features/help/components/HelpSideNav.tsx +54 -19
- package/src/features/help/components/__tests__/HelpAskAi.spec.tsx +1 -1
- package/src/features/help/components/__tests__/HelpHint.spec.tsx +17 -17
- package/src/features/help/components/__tests__/HelpSearchResultRow.spec.tsx +18 -19
- package/src/features/help/components/__tests__/HelpSideNav.spec.tsx +20 -22
- package/src/features/help/contexts/HelpContext.spec.tsx +1 -3
- package/src/features/help/index.ts +3 -6
- package/src/features/help/interfaces/help-content-config.interface.ts +0 -5
- package/src/features/help/server-entry.ts +6 -15
- package/src/features/help/types/help-article.types.ts +2 -4
- package/src/features/how-to/HowToModule.ts +14 -1
- package/src/features/how-to/components/forms/HowToEditor.tsx +108 -4
- package/src/features/how-to/data/HowTo.spec.ts +43 -0
- package/src/features/how-to/data/HowTo.ts +47 -4
- package/src/features/how-to/data/HowToInterface.ts +14 -1
- package/src/features/how-to/data/HowToService.ts +61 -0
- package/dist/BlockNoteEditor-3XYBZLWO.js.map +0 -1
- package/dist/chunk-3J7RQBF3.js +0 -123
- package/dist/chunk-3J7RQBF3.js.map +0 -1
- package/dist/chunk-7E3O52U5.js.map +0 -1
- package/dist/chunk-CFI4WZ5R.js.map +0 -1
- package/dist/chunk-CQID6RCF.mjs +0 -38
- package/dist/chunk-CQID6RCF.mjs.map +0 -1
- package/dist/chunk-CRTVAQEK.mjs.map +0 -1
- package/dist/chunk-MZTKPPET.mjs +0 -123
- package/dist/chunk-MZTKPPET.mjs.map +0 -1
- package/dist/chunk-UHO3KUUH.js.map +0 -1
- package/dist/chunk-YQQHAFBS.js +0 -38
- package/dist/chunk-YQQHAFBS.js.map +0 -1
- package/dist/features/help/server/createHelpAssetRouteHandler.d.mts +0 -11
- package/dist/features/help/server/createHelpAssetRouteHandler.d.ts +0 -11
- package/dist/features/help/server/createHelpAssetRouteHandler.js +0 -43
- package/dist/features/help/server/createHelpAssetRouteHandler.js.map +0 -1
- package/dist/features/help/server/createHelpAssetRouteHandler.mjs +0 -43
- package/dist/features/help/server/createHelpAssetRouteHandler.mjs.map +0 -1
- package/dist/help-content-config.interface-B9L02u9i.d.mts +0 -50
- package/dist/help-content-config.interface-B9L02u9i.d.ts +0 -50
- package/dist/scripts/generate-web-module/templates/components/details.template.d.ts +0 -14
- package/dist/scripts/generate-web-module/templates/components/details.template.d.ts.map +0 -1
- package/dist/scripts/generate-web-module/templates/components/details.template.js +0 -112
- package/dist/scripts/generate-web-module/templates/components/details.template.js.map +0 -1
- package/scripts/generate-web-module/templates/components/details.template.ts +0 -116
- package/src/features/help/components/mdx/Callout.tsx +0 -21
- package/src/features/help/components/mdx/EntityRef.tsx +0 -18
- package/src/features/help/components/mdx/KeyBinding.tsx +0 -6
- package/src/features/help/components/mdx/Related.tsx +0 -33
- package/src/features/help/components/mdx/Screenshot.tsx +0 -9
- package/src/features/help/components/mdx/Steps.tsx +0 -21
- package/src/features/help/components/mdx/Video.tsx +0 -8
- package/src/features/help/components/mdx/mdx-server-components.ts +0 -23
- package/src/features/help/components/mdx/mdxComponents.ts +0 -9
- package/src/features/help/hooks/useHelpArticle.ts +0 -7
- package/src/features/help/hooks/useHelpManifest.ts +0 -5
- package/src/features/help/server/__tests__/createHelpAssetRouteHandler.spec.ts +0 -43
- package/src/features/help/server/createHelpAssetRouteHandler.ts +0 -35
- package/src/features/help/server/generateHelpArticleMetadata.ts +0 -18
- package/src/features/help/server/generateHelpArticleStaticParams.ts +0 -7
- package/src/features/help/server/generateHelpModeStaticParams.ts +0 -5
- package/src/features/help/server/getHelpContent.ts +0 -17
- package/src/features/help/server/index.ts +0 -8
- package/src/features/help/server/serializeHelpArticle.tsx +0 -46
- package/src/features/help/utils/__tests__/helpNavigation.spec.ts +0 -70
- package/src/features/help/utils/helpNavigation.ts +0 -29
|
@@ -1,123 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
KeyBinding,
|
|
6
|
-
Screenshot,
|
|
7
|
-
Step,
|
|
8
|
-
Steps,
|
|
9
|
-
Video,
|
|
10
|
-
buildHelpNav,
|
|
11
|
-
findHelpArticle,
|
|
12
|
-
prevNextWithinMode
|
|
13
|
-
} from "../../chunk-MZTKPPET.mjs";
|
|
14
|
-
import {
|
|
15
|
-
_getStaticHelpContent,
|
|
16
|
-
_getStaticHelpReader,
|
|
17
|
-
setHelpReader
|
|
18
|
-
} from "../../chunk-CQID6RCF.mjs";
|
|
19
|
-
import "../../chunk-MSNNAHDB.mjs";
|
|
20
|
-
import "../../chunk-AUXK7QSA.mjs";
|
|
21
|
-
import "../../chunk-C7C7VY4F.mjs";
|
|
22
|
-
import "../../chunk-KK7PYKVI.mjs";
|
|
23
|
-
import {
|
|
24
|
-
__name
|
|
25
|
-
} from "../../chunk-PAWJFY3S.mjs";
|
|
26
|
-
|
|
27
|
-
// src/features/help/server/getHelpContent.ts
|
|
28
|
-
function getHelpContent() {
|
|
29
|
-
const cfg = _getStaticHelpContent();
|
|
30
|
-
if (!cfg) {
|
|
31
|
-
throw new Error(
|
|
32
|
-
"Help content not configured \u2014 call configureJsonApi({ helpContent: {...} }) before importing help pages."
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
return cfg;
|
|
36
|
-
}
|
|
37
|
-
__name(getHelpContent, "getHelpContent");
|
|
38
|
-
|
|
39
|
-
// src/features/help/server/serializeHelpArticle.tsx
|
|
40
|
-
import { MDXRemote } from "next-mdx-remote/rsc";
|
|
41
|
-
import remarkGfm from "remark-gfm";
|
|
42
|
-
import rehypeSlug from "rehype-slug";
|
|
43
|
-
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
|
44
|
-
|
|
45
|
-
// src/features/help/components/mdx/mdx-server-components.ts
|
|
46
|
-
var MDX_SERVER_COMPONENTS = {
|
|
47
|
-
Callout,
|
|
48
|
-
Steps,
|
|
49
|
-
Step,
|
|
50
|
-
Screenshot,
|
|
51
|
-
EntityRef,
|
|
52
|
-
KeyBinding,
|
|
53
|
-
Video
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
// src/features/help/server/serializeHelpArticle.tsx
|
|
57
|
-
import { jsx } from "react/jsx-runtime";
|
|
58
|
-
async function renderHelpArticle(article) {
|
|
59
|
-
const readRawMarkdown = _getStaticHelpReader();
|
|
60
|
-
if (!readRawMarkdown) {
|
|
61
|
-
throw new Error(
|
|
62
|
-
"Help reader not configured. Call setHelpReader(fn) from a server-only entrypoint (e.g. Next.js instrumentation register()) before rendering help articles."
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
const source = await readRawMarkdown(article);
|
|
66
|
-
return /* @__PURE__ */ jsx(
|
|
67
|
-
MDXRemote,
|
|
68
|
-
{
|
|
69
|
-
source,
|
|
70
|
-
components: MDX_SERVER_COMPONENTS,
|
|
71
|
-
options: {
|
|
72
|
-
parseFrontmatter: true,
|
|
73
|
-
mdxOptions: {
|
|
74
|
-
remarkPlugins: [remarkGfm],
|
|
75
|
-
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: "wrap" }]]
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
__name(renderHelpArticle, "renderHelpArticle");
|
|
82
|
-
var serializeHelpArticle = renderHelpArticle;
|
|
83
|
-
|
|
84
|
-
// src/features/help/server/generateHelpArticleStaticParams.ts
|
|
85
|
-
function generateHelpArticleStaticParams() {
|
|
86
|
-
return getHelpContent().manifest.filter((a) => !a.draft).map((a) => ({ mode: a.mode, slug: a.slug }));
|
|
87
|
-
}
|
|
88
|
-
__name(generateHelpArticleStaticParams, "generateHelpArticleStaticParams");
|
|
89
|
-
|
|
90
|
-
// src/features/help/server/generateHelpArticleMetadata.ts
|
|
91
|
-
async function generateHelpArticleMetadata({
|
|
92
|
-
params
|
|
93
|
-
}) {
|
|
94
|
-
const { mode, slug } = await params;
|
|
95
|
-
const article = findHelpArticle(getHelpContent().manifest, mode, slug);
|
|
96
|
-
if (!article) return {};
|
|
97
|
-
return {
|
|
98
|
-
title: article.title,
|
|
99
|
-
description: article.summary,
|
|
100
|
-
openGraph: { title: article.title, description: article.summary }
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
__name(generateHelpArticleMetadata, "generateHelpArticleMetadata");
|
|
104
|
-
|
|
105
|
-
// src/features/help/server/generateHelpModeStaticParams.ts
|
|
106
|
-
function generateHelpModeStaticParams() {
|
|
107
|
-
return HELP_MODES.map((mode) => ({ mode }));
|
|
108
|
-
}
|
|
109
|
-
__name(generateHelpModeStaticParams, "generateHelpModeStaticParams");
|
|
2
|
+
HELP_MODES
|
|
3
|
+
} from "../../chunk-WPAQRB5Q.mjs";
|
|
4
|
+
import "../../chunk-PAWJFY3S.mjs";
|
|
110
5
|
export {
|
|
111
|
-
HELP_MODES
|
|
112
|
-
buildHelpNav,
|
|
113
|
-
findHelpArticle,
|
|
114
|
-
generateHelpArticleMetadata,
|
|
115
|
-
generateHelpArticleStaticParams,
|
|
116
|
-
generateHelpModeStaticParams,
|
|
117
|
-
getHelpContent,
|
|
118
|
-
prevNextWithinMode,
|
|
119
|
-
renderHelpArticle,
|
|
120
|
-
serializeHelpArticle,
|
|
121
|
-
setHelpReader
|
|
6
|
+
HELP_MODES
|
|
122
7
|
};
|
|
123
8
|
//# sourceMappingURL=server.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface HelpBrandConfig {
|
|
2
|
+
/** URL of the brand logo image (served by the consuming app). */
|
|
3
|
+
logo?: string;
|
|
4
|
+
/** Brand label shown in the help header. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Where the "Open app" button navigates for logged-in users. Defaults to "/". */
|
|
7
|
+
appHref?: string;
|
|
8
|
+
}
|
|
9
|
+
interface HelpContentConfig {
|
|
10
|
+
brand?: HelpBrandConfig;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { HelpContentConfig as H, HelpBrandConfig as a };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface HelpBrandConfig {
|
|
2
|
+
/** URL of the brand logo image (served by the consuming app). */
|
|
3
|
+
logo?: string;
|
|
4
|
+
/** Brand label shown in the help header. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Where the "Open app" button navigates for logged-in users. Defaults to "/". */
|
|
7
|
+
appHref?: string;
|
|
8
|
+
}
|
|
9
|
+
interface HelpContentConfig {
|
|
10
|
+
brand?: HelpBrandConfig;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { HelpContentConfig as H, HelpBrandConfig as a };
|
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { AbstractApiData } from './core/index.mjs';
|
|
|
6
6
|
export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, formatLocalDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
7
7
|
import { b as AbstractService } from './s3.service-0BTClOYO.mjs';
|
|
8
8
|
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-0BTClOYO.mjs';
|
|
9
|
-
export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-
|
|
9
|
+
export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DrgHDjZ5.mjs';
|
|
10
10
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-xH3TGvVk.mjs';
|
|
11
11
|
export { ClassValue } from 'clsx';
|
|
12
12
|
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-DdxCFgUZ.mjs';
|
|
@@ -17,7 +17,7 @@ export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as Conte
|
|
|
17
17
|
export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-B1c8FhGA.mjs';
|
|
18
18
|
export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
|
|
19
19
|
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-o5FLpiN7.mjs';
|
|
20
|
-
export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-
|
|
20
|
+
export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-snd2ToEB.mjs';
|
|
21
21
|
export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.mjs';
|
|
22
22
|
import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.mjs';
|
|
23
23
|
export { a as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, c as PermToken, P as PermissionValue, b as PermissionsMap, d as RbacModuleBlock } from './RbacTypes-BTbr27Ew.mjs';
|
|
@@ -28,7 +28,7 @@ import 'sonner';
|
|
|
28
28
|
import '@simplewebauthn/browser';
|
|
29
29
|
import 'd3';
|
|
30
30
|
import 'lucide-react';
|
|
31
|
-
import './help-content-config.interface-
|
|
31
|
+
import './help-content-config.interface-C5ESIod9.mjs';
|
|
32
32
|
|
|
33
33
|
type RegistrationMode = "open" | "closed" | "waitlist";
|
|
34
34
|
interface LoginConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AbstractApiData } from './core/index.js';
|
|
|
6
6
|
export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, formatLocalDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
7
7
|
import { b as AbstractService } from './s3.service-CT27Fm1s.js';
|
|
8
8
|
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-CT27Fm1s.js';
|
|
9
|
-
export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-
|
|
9
|
+
export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-BNzf1etU.js';
|
|
10
10
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-xH3TGvVk.js';
|
|
11
11
|
export { ClassValue } from 'clsx';
|
|
12
12
|
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-Cd7lcYif.js';
|
|
@@ -17,7 +17,7 @@ export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as Conte
|
|
|
17
17
|
export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-BBUHxOCd.js';
|
|
18
18
|
export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
|
|
19
19
|
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-B6xmfDzK.js';
|
|
20
|
-
export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-
|
|
20
|
+
export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-BrkU_Ynz.js';
|
|
21
21
|
export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.js';
|
|
22
22
|
import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.js';
|
|
23
23
|
export { a as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, c as PermToken, P as PermissionValue, b as PermissionsMap, d as RbacModuleBlock } from './RbacTypes-BTbr27Ew.js';
|
|
@@ -28,7 +28,7 @@ import 'sonner';
|
|
|
28
28
|
import '@simplewebauthn/browser';
|
|
29
29
|
import 'd3';
|
|
30
30
|
import 'lucide-react';
|
|
31
|
-
import './help-content-config.interface-
|
|
31
|
+
import './help-content-config.interface-C5ESIod9.js';
|
|
32
32
|
|
|
33
33
|
type RegistrationMode = "open" | "closed" | "waitlist";
|
|
34
34
|
interface LoginConfig {
|
package/dist/index.js
CHANGED
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-YQQHAFBS.js');
|
|
21
|
+
var _chunk6XWW67F2js = require('./chunk-6XWW67F2.js');
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
|
|
@@ -200,7 +199,7 @@ require('./chunk-YQQHAFBS.js');
|
|
|
200
199
|
|
|
201
200
|
|
|
202
201
|
|
|
203
|
-
var
|
|
202
|
+
var _chunkU2HR57MYjs = require('./chunk-U2HR57MY.js');
|
|
204
203
|
require('./chunk-LXKSUWAV.js');
|
|
205
204
|
require('./chunk-IBS6NI7D.js');
|
|
206
205
|
|
|
@@ -424,5 +423,5 @@ require('./chunk-7QVYU63E.js');
|
|
|
424
423
|
|
|
425
424
|
|
|
426
425
|
|
|
427
|
-
exports.ACTION_TYPES = _chunk7E3O52U5js.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkCFI4WZ5Rjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkCFI4WZ5Rjs.AbstractApiData; exports.AbstractService = _chunkCFI4WZ5Rjs.AbstractService; exports.Action = _chunkCFI4WZ5Rjs.Action; exports.Assistant = _chunkCFI4WZ5Rjs.Assistant; exports.AssistantMessage = _chunkCFI4WZ5Rjs.AssistantMessage; exports.AssistantMessageModule = _chunkCFI4WZ5Rjs.AssistantMessageModule; exports.AssistantMessageService = _chunkCFI4WZ5Rjs.AssistantMessageService; exports.AssistantModule = _chunkCFI4WZ5Rjs.AssistantModule; exports.AssistantService = _chunkCFI4WZ5Rjs.AssistantService; exports.AuditLog = _chunkCFI4WZ5Rjs.AuditLog; exports.AuditLogModule = _chunkCFI4WZ5Rjs.AuditLogModule; exports.AuditLogService = _chunkCFI4WZ5Rjs.AuditLogService; exports.Auth = _chunkCFI4WZ5Rjs.Auth; exports.AuthComponent = _chunkCFI4WZ5Rjs.AuthComponent; exports.AuthModule = _chunkCFI4WZ5Rjs.AuthModule; exports.AuthService = _chunkCFI4WZ5Rjs.AuthService; exports.AuthorModule = _chunkCFI4WZ5Rjs.AuthorModule; exports.BackupCodeVerify = _chunkCFI4WZ5Rjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkCFI4WZ5Rjs.BackupCodeVerifyModule; exports.Billing = _chunkCFI4WZ5Rjs.Billing; exports.BillingModule = _chunkCFI4WZ5Rjs.BillingModule; exports.BillingService = _chunkCFI4WZ5Rjs.BillingService; exports.BlockNoteDiffUtil = _chunkCFI4WZ5Rjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkCFI4WZ5Rjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk7E3O52U5js.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkCFI4WZ5Rjs.Chunk; exports.ChunkModule = _chunkCFI4WZ5Rjs.ChunkModule; exports.ClientAbstractService = _chunkCFI4WZ5Rjs.ClientAbstractService; exports.ClientHttpMethod = _chunkCFI4WZ5Rjs.ClientHttpMethod; exports.Company = _chunkCFI4WZ5Rjs.Company; exports.CompanyFields = _chunkCFI4WZ5Rjs.CompanyFields; exports.CompanyModule = _chunkCFI4WZ5Rjs.CompanyModule; exports.CompanyService = _chunkCFI4WZ5Rjs.CompanyService; exports.Content = _chunkCFI4WZ5Rjs.Content; exports.ContentFields = _chunkCFI4WZ5Rjs.ContentFields; exports.ContentModule = _chunkCFI4WZ5Rjs.ContentModule; exports.ContentService = _chunkCFI4WZ5Rjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkCFI4WZ5Rjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkJ5LROFGLjs.DataClassRegistry; exports.DataClassRegistry = _chunkJ5LROFGLjs.DataClassRegistry; exports.EndpointCreator = _chunkCFI4WZ5Rjs.EndpointCreator; exports.Feature = _chunkCFI4WZ5Rjs.Feature; exports.FeatureModule = _chunkCFI4WZ5Rjs.FeatureModule; exports.FeatureService = _chunkCFI4WZ5Rjs.FeatureService; exports.HowTo = _chunkCFI4WZ5Rjs.HowTo; exports.HowToFields = _chunkCFI4WZ5Rjs.HowToFields; exports.HowToModule = _chunkCFI4WZ5Rjs.HowToModule; exports.HowToService = _chunkCFI4WZ5Rjs.HowToService; exports.HttpMethod = _chunkCFI4WZ5Rjs.HttpMethod; exports.InvoiceStatus = _chunkCFI4WZ5Rjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkJ5LROFGLjs.JsonApiDataFactory; exports.Module = _chunkCFI4WZ5Rjs.Module; exports.ModuleModule = _chunkCFI4WZ5Rjs.ModuleModule; exports.ModulePaths = _chunkCFI4WZ5Rjs.ModulePaths; exports.ModulePathsModule = _chunkCFI4WZ5Rjs.ModulePathsModule; exports.ModuleRegistrar = _chunkCFI4WZ5Rjs.ModuleRegistrar; exports.ModuleRegistry = _chunkCFI4WZ5Rjs.ModuleRegistry; exports.Modules = _chunkCFI4WZ5Rjs.Modules; exports.Notification = _chunkCFI4WZ5Rjs.Notification; exports.NotificationFields = _chunkCFI4WZ5Rjs.NotificationFields; exports.NotificationModule = _chunkCFI4WZ5Rjs.NotificationModule; exports.NotificationService = _chunkCFI4WZ5Rjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkCFI4WZ5Rjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkCFI4WZ5Rjs.OAuthClient; exports.OAuthModule = _chunkCFI4WZ5Rjs.OAuthModule; exports.OAuthService = _chunkCFI4WZ5Rjs.OAuthService; exports.Passkey = _chunkCFI4WZ5Rjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkCFI4WZ5Rjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkCFI4WZ5Rjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkCFI4WZ5Rjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkCFI4WZ5Rjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkCFI4WZ5Rjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkCFI4WZ5Rjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkCFI4WZ5Rjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkCFI4WZ5Rjs.PasskeyRename; exports.PasskeyRenameModule = _chunkCFI4WZ5Rjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkCFI4WZ5Rjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkCFI4WZ5Rjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkCFI4WZ5Rjs.PaymentMethod; exports.PermissionMapping = _chunkCFI4WZ5Rjs.PermissionMapping; exports.PermissionMappingModule = _chunkCFI4WZ5Rjs.PermissionMappingModule; exports.Push = _chunkCFI4WZ5Rjs.Push; exports.PushModule = _chunkCFI4WZ5Rjs.PushModule; exports.PushService = _chunkCFI4WZ5Rjs.PushService; exports.RbacMatrixModel = _chunkCFI4WZ5Rjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkCFI4WZ5Rjs.RbacMatrixModule; exports.RbacService = _chunk7E3O52U5js.RbacService; exports.ReferralModule = _chunkCFI4WZ5Rjs.ReferralModule; exports.ReferralService = _chunkCFI4WZ5Rjs.ReferralService; exports.ReferralStats = _chunkCFI4WZ5Rjs.ReferralStats; exports.ReferralStatsModule = _chunkCFI4WZ5Rjs.ReferralStatsModule; exports.RehydrationFactory = _chunkCFI4WZ5Rjs.RehydrationFactory; exports.Role = _chunkCFI4WZ5Rjs.Role; exports.RoleFields = _chunkCFI4WZ5Rjs.RoleFields; exports.RoleModule = _chunkCFI4WZ5Rjs.RoleModule; exports.RoleService = _chunkCFI4WZ5Rjs.RoleService; exports.S3 = _chunkCFI4WZ5Rjs.S3; exports.S3Module = _chunkCFI4WZ5Rjs.S3Module; exports.S3Service = _chunkCFI4WZ5Rjs.S3Service; exports.StripeCustomer = _chunkCFI4WZ5Rjs.StripeCustomer; exports.StripeCustomerModule = _chunkCFI4WZ5Rjs.StripeCustomerModule; exports.StripeCustomerService = _chunkCFI4WZ5Rjs.StripeCustomerService; exports.StripeInvoice = _chunkCFI4WZ5Rjs.StripeInvoice; exports.StripeInvoiceModule = _chunkCFI4WZ5Rjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkCFI4WZ5Rjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkCFI4WZ5Rjs.StripePaymentMethodModule; exports.StripePrice = _chunkCFI4WZ5Rjs.StripePrice; exports.StripePriceModule = _chunkCFI4WZ5Rjs.StripePriceModule; exports.StripePriceService = _chunkCFI4WZ5Rjs.StripePriceService; exports.StripeProduct = _chunkCFI4WZ5Rjs.StripeProduct; exports.StripeProductModule = _chunkCFI4WZ5Rjs.StripeProductModule; exports.StripeProductService = _chunkCFI4WZ5Rjs.StripeProductService; exports.StripePromotionCode = _chunkCFI4WZ5Rjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkCFI4WZ5Rjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkCFI4WZ5Rjs.StripePromotionCodeService; exports.StripeSubscription = _chunkCFI4WZ5Rjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkCFI4WZ5Rjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkCFI4WZ5Rjs.StripeSubscriptionService; exports.StripeUsage = _chunkCFI4WZ5Rjs.StripeUsage; exports.StripeUsageModule = _chunkCFI4WZ5Rjs.StripeUsageModule; exports.StripeUsageService = _chunkCFI4WZ5Rjs.StripeUsageService; exports.SubscriptionStatus = _chunkCFI4WZ5Rjs.SubscriptionStatus; exports.TableOptions = _chunkCFI4WZ5Rjs.TableOptions; exports.TotpAuthenticator = _chunkCFI4WZ5Rjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkCFI4WZ5Rjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkCFI4WZ5Rjs.TotpSetup; exports.TotpSetupModule = _chunkCFI4WZ5Rjs.TotpSetupModule; exports.TotpVerify = _chunkCFI4WZ5Rjs.TotpVerify; exports.TotpVerifyLogin = _chunkCFI4WZ5Rjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkCFI4WZ5Rjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkCFI4WZ5Rjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkCFI4WZ5Rjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkCFI4WZ5Rjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkCFI4WZ5Rjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkCFI4WZ5Rjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkCFI4WZ5Rjs.TwoFactorService; exports.TwoFactorStatus = _chunkCFI4WZ5Rjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkCFI4WZ5Rjs.TwoFactorStatusModule; exports.User = _chunkCFI4WZ5Rjs.User; exports.UserFields = _chunkCFI4WZ5Rjs.UserFields; exports.UserModule = _chunkCFI4WZ5Rjs.UserModule; exports.UserService = _chunkCFI4WZ5Rjs.UserService; exports.Waitlist = _chunkCFI4WZ5Rjs.Waitlist; exports.WaitlistModule = _chunkCFI4WZ5Rjs.WaitlistModule; exports.WaitlistService = _chunkCFI4WZ5Rjs.WaitlistService; exports.WaitlistStats = _chunkCFI4WZ5Rjs.WaitlistStats; exports.WaitlistStatsModule = _chunkCFI4WZ5Rjs.WaitlistStatsModule; exports.checkPermissions = _chunkCFI4WZ5Rjs.checkPermissions; exports.checkPermissionsFromServer = _chunkCFI4WZ5Rjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkCFI4WZ5Rjs.clearLastApiTotal; exports.cn = _chunkCFI4WZ5Rjs.cn; exports.composeRefs = _chunkCFI4WZ5Rjs.composeRefs; exports.configureAuth = _chunkCFI4WZ5Rjs.configureAuth; exports.configureI18n = _chunk7E3O52U5js.configureI18n; exports.configureJsonApi = _chunk7E3O52U5js.configureJsonApi; exports.configureLogin = _chunk7E3O52U5js.configureLogin; exports.configureReferral = _chunk7E3O52U5js.configureReferral; exports.configureRoles = _chunk7E3O52U5js.configureRoles; exports.configureWaitlist = _chunk7E3O52U5js.configureWaitlist; exports.createJsonApiInclusion = _chunkCFI4WZ5Rjs.createJsonApiInclusion; exports.dismissToast = _chunkCFI4WZ5Rjs.dismissToast; exports.entityObjectSchema = _chunkCFI4WZ5Rjs.entityObjectSchema; exports.exists = _chunkCFI4WZ5Rjs.exists; exports.formatDate = _chunkCFI4WZ5Rjs.formatDate; exports.formatLocalDate = _chunkCFI4WZ5Rjs.formatLocalDate; exports.getApiUrl = _chunk7E3O52U5js.getApiUrl; exports.getAppUrl = _chunk7E3O52U5js.getAppUrl; exports.getBootstrapper = _chunkJ5LROFGLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkCFI4WZ5Rjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkCFI4WZ5Rjs.getGlobalErrorHandler; exports.getIcon = _chunkCFI4WZ5Rjs.getIcon; exports.getIconByModule = _chunkCFI4WZ5Rjs.getIconByModule; exports.getIconByModuleName = _chunkCFI4WZ5Rjs.getIconByModuleName; exports.getInitials = _chunkCFI4WZ5Rjs.getInitials; exports.getLastApiTotal = _chunkCFI4WZ5Rjs.getLastApiTotal; exports.getLucideIcon = _chunkCFI4WZ5Rjs.getLucideIcon; exports.getLucideIconByModule = _chunkCFI4WZ5Rjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkCFI4WZ5Rjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk7E3O52U5js.getPublicApiUrl; exports.getReferralConfig = _chunk7E3O52U5js.getReferralConfig; exports.getRoleId = _chunk7E3O52U5js.getRoleId; exports.getStripePublishableKey = _chunk7E3O52U5js.getStripePublishableKey; exports.getTableComponents = _chunkCFI4WZ5Rjs.getTableComponents; exports.getTableOptions = _chunkCFI4WZ5Rjs.getTableOptions; exports.getTokenHandler = _chunkCFI4WZ5Rjs.getTokenHandler; exports.getTrackablePages = _chunk7E3O52U5js.getTrackablePages; exports.getValueFromPath = _chunkCFI4WZ5Rjs.getValueFromPath; exports.getWaitlistConfig = _chunk7E3O52U5js.getWaitlistConfig; exports.hasBootstrapper = _chunkJ5LROFGLjs.hasBootstrapper; exports.isReferralEnabled = _chunk7E3O52U5js.isReferralEnabled; exports.isRolesConfigured = _chunk7E3O52U5js.isRolesConfigured; exports.rehydrate = _chunkCFI4WZ5Rjs.rehydrate; exports.rehydrateList = _chunkCFI4WZ5Rjs.rehydrateList; exports.resetBootstrapStore = _chunkJ5LROFGLjs.resetBootstrapStore; exports.setBootstrapper = _chunkJ5LROFGLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkCFI4WZ5Rjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkCFI4WZ5Rjs.setGlobalErrorHandler; exports.showCustomToast = _chunkCFI4WZ5Rjs.showCustomToast; exports.showError = _chunkCFI4WZ5Rjs.showError; exports.showToast = _chunkCFI4WZ5Rjs.showToast; exports.translateData = _chunkJ5LROFGLjs.translateData; exports.translateResponse = _chunkJ5LROFGLjs.translateResponse; exports.tryBootstrap = _chunkJ5LROFGLjs.tryBootstrap; exports.useComposedRefs = _chunkCFI4WZ5Rjs.useComposedRefs; exports.useIsMobile = _chunkCFI4WZ5Rjs.useIsMobile; exports.userObjectSchema = _chunkCFI4WZ5Rjs.userObjectSchema;
|
|
426
|
+
exports.ACTION_TYPES = _chunk6XWW67F2js.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkU2HR57MYjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkU2HR57MYjs.AbstractApiData; exports.AbstractService = _chunkU2HR57MYjs.AbstractService; exports.Action = _chunkU2HR57MYjs.Action; exports.Assistant = _chunkU2HR57MYjs.Assistant; exports.AssistantMessage = _chunkU2HR57MYjs.AssistantMessage; exports.AssistantMessageModule = _chunkU2HR57MYjs.AssistantMessageModule; exports.AssistantMessageService = _chunkU2HR57MYjs.AssistantMessageService; exports.AssistantModule = _chunkU2HR57MYjs.AssistantModule; exports.AssistantService = _chunkU2HR57MYjs.AssistantService; exports.AuditLog = _chunkU2HR57MYjs.AuditLog; exports.AuditLogModule = _chunkU2HR57MYjs.AuditLogModule; exports.AuditLogService = _chunkU2HR57MYjs.AuditLogService; exports.Auth = _chunkU2HR57MYjs.Auth; exports.AuthComponent = _chunkU2HR57MYjs.AuthComponent; exports.AuthModule = _chunkU2HR57MYjs.AuthModule; exports.AuthService = _chunkU2HR57MYjs.AuthService; exports.AuthorModule = _chunkU2HR57MYjs.AuthorModule; exports.BackupCodeVerify = _chunkU2HR57MYjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkU2HR57MYjs.BackupCodeVerifyModule; exports.Billing = _chunkU2HR57MYjs.Billing; exports.BillingModule = _chunkU2HR57MYjs.BillingModule; exports.BillingService = _chunkU2HR57MYjs.BillingService; exports.BlockNoteDiffUtil = _chunkU2HR57MYjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkU2HR57MYjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk6XWW67F2js.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkU2HR57MYjs.Chunk; exports.ChunkModule = _chunkU2HR57MYjs.ChunkModule; exports.ClientAbstractService = _chunkU2HR57MYjs.ClientAbstractService; exports.ClientHttpMethod = _chunkU2HR57MYjs.ClientHttpMethod; exports.Company = _chunkU2HR57MYjs.Company; exports.CompanyFields = _chunkU2HR57MYjs.CompanyFields; exports.CompanyModule = _chunkU2HR57MYjs.CompanyModule; exports.CompanyService = _chunkU2HR57MYjs.CompanyService; exports.Content = _chunkU2HR57MYjs.Content; exports.ContentFields = _chunkU2HR57MYjs.ContentFields; exports.ContentModule = _chunkU2HR57MYjs.ContentModule; exports.ContentService = _chunkU2HR57MYjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkU2HR57MYjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkJ5LROFGLjs.DataClassRegistry; exports.DataClassRegistry = _chunkJ5LROFGLjs.DataClassRegistry; exports.EndpointCreator = _chunkU2HR57MYjs.EndpointCreator; exports.Feature = _chunkU2HR57MYjs.Feature; exports.FeatureModule = _chunkU2HR57MYjs.FeatureModule; exports.FeatureService = _chunkU2HR57MYjs.FeatureService; exports.HowTo = _chunkU2HR57MYjs.HowTo; exports.HowToFields = _chunkU2HR57MYjs.HowToFields; exports.HowToModule = _chunkU2HR57MYjs.HowToModule; exports.HowToService = _chunkU2HR57MYjs.HowToService; exports.HttpMethod = _chunkU2HR57MYjs.HttpMethod; exports.InvoiceStatus = _chunkU2HR57MYjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkJ5LROFGLjs.JsonApiDataFactory; exports.Module = _chunkU2HR57MYjs.Module; exports.ModuleModule = _chunkU2HR57MYjs.ModuleModule; exports.ModulePaths = _chunkU2HR57MYjs.ModulePaths; exports.ModulePathsModule = _chunkU2HR57MYjs.ModulePathsModule; exports.ModuleRegistrar = _chunkU2HR57MYjs.ModuleRegistrar; exports.ModuleRegistry = _chunkU2HR57MYjs.ModuleRegistry; exports.Modules = _chunkU2HR57MYjs.Modules; exports.Notification = _chunkU2HR57MYjs.Notification; exports.NotificationFields = _chunkU2HR57MYjs.NotificationFields; exports.NotificationModule = _chunkU2HR57MYjs.NotificationModule; exports.NotificationService = _chunkU2HR57MYjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkU2HR57MYjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkU2HR57MYjs.OAuthClient; exports.OAuthModule = _chunkU2HR57MYjs.OAuthModule; exports.OAuthService = _chunkU2HR57MYjs.OAuthService; exports.Passkey = _chunkU2HR57MYjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkU2HR57MYjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkU2HR57MYjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkU2HR57MYjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkU2HR57MYjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkU2HR57MYjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkU2HR57MYjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkU2HR57MYjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkU2HR57MYjs.PasskeyRename; exports.PasskeyRenameModule = _chunkU2HR57MYjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkU2HR57MYjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkU2HR57MYjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkU2HR57MYjs.PaymentMethod; exports.PermissionMapping = _chunkU2HR57MYjs.PermissionMapping; exports.PermissionMappingModule = _chunkU2HR57MYjs.PermissionMappingModule; exports.Push = _chunkU2HR57MYjs.Push; exports.PushModule = _chunkU2HR57MYjs.PushModule; exports.PushService = _chunkU2HR57MYjs.PushService; exports.RbacMatrixModel = _chunkU2HR57MYjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkU2HR57MYjs.RbacMatrixModule; exports.RbacService = _chunk6XWW67F2js.RbacService; exports.ReferralModule = _chunkU2HR57MYjs.ReferralModule; exports.ReferralService = _chunkU2HR57MYjs.ReferralService; exports.ReferralStats = _chunkU2HR57MYjs.ReferralStats; exports.ReferralStatsModule = _chunkU2HR57MYjs.ReferralStatsModule; exports.RehydrationFactory = _chunkU2HR57MYjs.RehydrationFactory; exports.Role = _chunkU2HR57MYjs.Role; exports.RoleFields = _chunkU2HR57MYjs.RoleFields; exports.RoleModule = _chunkU2HR57MYjs.RoleModule; exports.RoleService = _chunkU2HR57MYjs.RoleService; exports.S3 = _chunkU2HR57MYjs.S3; exports.S3Module = _chunkU2HR57MYjs.S3Module; exports.S3Service = _chunkU2HR57MYjs.S3Service; exports.StripeCustomer = _chunkU2HR57MYjs.StripeCustomer; exports.StripeCustomerModule = _chunkU2HR57MYjs.StripeCustomerModule; exports.StripeCustomerService = _chunkU2HR57MYjs.StripeCustomerService; exports.StripeInvoice = _chunkU2HR57MYjs.StripeInvoice; exports.StripeInvoiceModule = _chunkU2HR57MYjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkU2HR57MYjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkU2HR57MYjs.StripePaymentMethodModule; exports.StripePrice = _chunkU2HR57MYjs.StripePrice; exports.StripePriceModule = _chunkU2HR57MYjs.StripePriceModule; exports.StripePriceService = _chunkU2HR57MYjs.StripePriceService; exports.StripeProduct = _chunkU2HR57MYjs.StripeProduct; exports.StripeProductModule = _chunkU2HR57MYjs.StripeProductModule; exports.StripeProductService = _chunkU2HR57MYjs.StripeProductService; exports.StripePromotionCode = _chunkU2HR57MYjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkU2HR57MYjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkU2HR57MYjs.StripePromotionCodeService; exports.StripeSubscription = _chunkU2HR57MYjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkU2HR57MYjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkU2HR57MYjs.StripeSubscriptionService; exports.StripeUsage = _chunkU2HR57MYjs.StripeUsage; exports.StripeUsageModule = _chunkU2HR57MYjs.StripeUsageModule; exports.StripeUsageService = _chunkU2HR57MYjs.StripeUsageService; exports.SubscriptionStatus = _chunkU2HR57MYjs.SubscriptionStatus; exports.TableOptions = _chunkU2HR57MYjs.TableOptions; exports.TotpAuthenticator = _chunkU2HR57MYjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkU2HR57MYjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkU2HR57MYjs.TotpSetup; exports.TotpSetupModule = _chunkU2HR57MYjs.TotpSetupModule; exports.TotpVerify = _chunkU2HR57MYjs.TotpVerify; exports.TotpVerifyLogin = _chunkU2HR57MYjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkU2HR57MYjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkU2HR57MYjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkU2HR57MYjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkU2HR57MYjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkU2HR57MYjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkU2HR57MYjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkU2HR57MYjs.TwoFactorService; exports.TwoFactorStatus = _chunkU2HR57MYjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkU2HR57MYjs.TwoFactorStatusModule; exports.User = _chunkU2HR57MYjs.User; exports.UserFields = _chunkU2HR57MYjs.UserFields; exports.UserModule = _chunkU2HR57MYjs.UserModule; exports.UserService = _chunkU2HR57MYjs.UserService; exports.Waitlist = _chunkU2HR57MYjs.Waitlist; exports.WaitlistModule = _chunkU2HR57MYjs.WaitlistModule; exports.WaitlistService = _chunkU2HR57MYjs.WaitlistService; exports.WaitlistStats = _chunkU2HR57MYjs.WaitlistStats; exports.WaitlistStatsModule = _chunkU2HR57MYjs.WaitlistStatsModule; exports.checkPermissions = _chunkU2HR57MYjs.checkPermissions; exports.checkPermissionsFromServer = _chunkU2HR57MYjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkU2HR57MYjs.clearLastApiTotal; exports.cn = _chunkU2HR57MYjs.cn; exports.composeRefs = _chunkU2HR57MYjs.composeRefs; exports.configureAuth = _chunkU2HR57MYjs.configureAuth; exports.configureI18n = _chunk6XWW67F2js.configureI18n; exports.configureJsonApi = _chunk6XWW67F2js.configureJsonApi; exports.configureLogin = _chunk6XWW67F2js.configureLogin; exports.configureReferral = _chunk6XWW67F2js.configureReferral; exports.configureRoles = _chunk6XWW67F2js.configureRoles; exports.configureWaitlist = _chunk6XWW67F2js.configureWaitlist; exports.createJsonApiInclusion = _chunkU2HR57MYjs.createJsonApiInclusion; exports.dismissToast = _chunkU2HR57MYjs.dismissToast; exports.entityObjectSchema = _chunkU2HR57MYjs.entityObjectSchema; exports.exists = _chunkU2HR57MYjs.exists; exports.formatDate = _chunkU2HR57MYjs.formatDate; exports.formatLocalDate = _chunkU2HR57MYjs.formatLocalDate; exports.getApiUrl = _chunk6XWW67F2js.getApiUrl; exports.getAppUrl = _chunk6XWW67F2js.getAppUrl; exports.getBootstrapper = _chunkJ5LROFGLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkU2HR57MYjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkU2HR57MYjs.getGlobalErrorHandler; exports.getIcon = _chunkU2HR57MYjs.getIcon; exports.getIconByModule = _chunkU2HR57MYjs.getIconByModule; exports.getIconByModuleName = _chunkU2HR57MYjs.getIconByModuleName; exports.getInitials = _chunkU2HR57MYjs.getInitials; exports.getLastApiTotal = _chunkU2HR57MYjs.getLastApiTotal; exports.getLucideIcon = _chunkU2HR57MYjs.getLucideIcon; exports.getLucideIconByModule = _chunkU2HR57MYjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkU2HR57MYjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk6XWW67F2js.getPublicApiUrl; exports.getReferralConfig = _chunk6XWW67F2js.getReferralConfig; exports.getRoleId = _chunk6XWW67F2js.getRoleId; exports.getStripePublishableKey = _chunk6XWW67F2js.getStripePublishableKey; exports.getTableComponents = _chunkU2HR57MYjs.getTableComponents; exports.getTableOptions = _chunkU2HR57MYjs.getTableOptions; exports.getTokenHandler = _chunkU2HR57MYjs.getTokenHandler; exports.getTrackablePages = _chunk6XWW67F2js.getTrackablePages; exports.getValueFromPath = _chunkU2HR57MYjs.getValueFromPath; exports.getWaitlistConfig = _chunk6XWW67F2js.getWaitlistConfig; exports.hasBootstrapper = _chunkJ5LROFGLjs.hasBootstrapper; exports.isReferralEnabled = _chunk6XWW67F2js.isReferralEnabled; exports.isRolesConfigured = _chunk6XWW67F2js.isRolesConfigured; exports.rehydrate = _chunkU2HR57MYjs.rehydrate; exports.rehydrateList = _chunkU2HR57MYjs.rehydrateList; exports.resetBootstrapStore = _chunkJ5LROFGLjs.resetBootstrapStore; exports.setBootstrapper = _chunkJ5LROFGLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkU2HR57MYjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkU2HR57MYjs.setGlobalErrorHandler; exports.showCustomToast = _chunkU2HR57MYjs.showCustomToast; exports.showError = _chunkU2HR57MYjs.showError; exports.showToast = _chunkU2HR57MYjs.showToast; exports.translateData = _chunkJ5LROFGLjs.translateData; exports.translateResponse = _chunkJ5LROFGLjs.translateResponse; exports.tryBootstrap = _chunkJ5LROFGLjs.tryBootstrap; exports.useComposedRefs = _chunkU2HR57MYjs.useComposedRefs; exports.useIsMobile = _chunkU2HR57MYjs.useIsMobile; exports.userObjectSchema = _chunkU2HR57MYjs.userObjectSchema;
|
|
428
427
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uwYAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|
package/dist/index.mjs
CHANGED
|
@@ -18,8 +18,7 @@ import {
|
|
|
18
18
|
getWaitlistConfig,
|
|
19
19
|
isReferralEnabled,
|
|
20
20
|
isRolesConfigured
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-CQID6RCF.mjs";
|
|
21
|
+
} from "./chunk-CWVYU4YZ.mjs";
|
|
23
22
|
import {
|
|
24
23
|
AVAILABLE_OAUTH_SCOPES,
|
|
25
24
|
AbstractApiData,
|
|
@@ -200,7 +199,7 @@ import {
|
|
|
200
199
|
useComposedRefs,
|
|
201
200
|
useIsMobile,
|
|
202
201
|
userObjectSchema
|
|
203
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-ZYPNVEHB.mjs";
|
|
204
203
|
import "./chunk-AUXK7QSA.mjs";
|
|
205
204
|
import "./chunk-C7C7VY4F.mjs";
|
|
206
205
|
import {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.spec.d.ts","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/container.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vitest_1 = require("vitest");
|
|
4
|
+
const fixtures_1 = require("./fixtures");
|
|
5
|
+
const container_template_1 = require("../templates/components/container.template");
|
|
6
|
+
const list_container_template_1 = require("../templates/components/list-container.template");
|
|
7
|
+
const content_template_1 = require("../templates/components/content.template");
|
|
8
|
+
(0, vitest_1.describe)("container template", () => {
|
|
9
|
+
(0, vitest_1.it)("uses RoundPageContainer with tabs and id, not details prop, and renders Content", () => {
|
|
10
|
+
const out = (0, container_template_1.generateContainerTemplate)((0, fixtures_1.makeFrontendData)());
|
|
11
|
+
(0, vitest_1.expect)(out).toContain("tabs: Tab[]");
|
|
12
|
+
(0, vitest_1.expect)(out).toContain("id={widget.id}");
|
|
13
|
+
(0, vitest_1.expect)(out).not.toContain("details={");
|
|
14
|
+
(0, vitest_1.expect)(out).not.toContain("WidgetDetails");
|
|
15
|
+
(0, vitest_1.expect)(out).toContain("<WidgetContent widget={widget} />");
|
|
16
|
+
});
|
|
17
|
+
(0, vitest_1.it)("emits an Activity tab by default and no Tasks tab", () => {
|
|
18
|
+
const out = (0, container_template_1.generateContainerTemplate)((0, fixtures_1.makeFrontendData)());
|
|
19
|
+
(0, vitest_1.expect)(out).toContain("<ActivityFeed module={Modules.Widget} entityId={widget.id} />");
|
|
20
|
+
(0, vitest_1.expect)(out).not.toContain("TaskProvider");
|
|
21
|
+
});
|
|
22
|
+
(0, vitest_1.it)("omits the Activity tab when containerTabs.activity is false", () => {
|
|
23
|
+
const out = (0, container_template_1.generateContainerTemplate)((0, fixtures_1.makeFrontendData)({ containerTabs: { activity: false, relations: [] } }));
|
|
24
|
+
(0, vitest_1.expect)(out).not.toContain("ActivityFeed");
|
|
25
|
+
});
|
|
26
|
+
(0, vitest_1.it)("emits a relation tab when containerTabs.relations has an entry", () => {
|
|
27
|
+
const out = (0, container_template_1.generateContainerTemplate)((0, fixtures_1.makeFrontendData)({
|
|
28
|
+
containerTabs: { activity: true, relations: [{ module: "Quote", listProp: "widget", directory: "sales" }] },
|
|
29
|
+
}));
|
|
30
|
+
(0, vitest_1.expect)(out).toContain('import QuoteList from "@/features/sales/quote/components/lists/QuoteList"');
|
|
31
|
+
(0, vitest_1.expect)(out).toContain("key: Modules.Quote");
|
|
32
|
+
(0, vitest_1.expect)(out).toContain("<QuoteList widget={widget} />");
|
|
33
|
+
});
|
|
34
|
+
(0, vitest_1.it)("gates default export on hasPermissionToModule", () => {
|
|
35
|
+
const out = (0, container_template_1.generateContainerTemplate)((0, fixtures_1.makeFrontendData)());
|
|
36
|
+
(0, vitest_1.expect)(out).toContain("hasPermissionToModule({ module: Modules.Widget, action: Action.Delete, data: widget })");
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
(0, vitest_1.describe)("list-container template", () => {
|
|
40
|
+
(0, vitest_1.it)("always renders fullWidth", () => {
|
|
41
|
+
const out = (0, list_container_template_1.generateListContainerTemplate)((0, fixtures_1.makeFrontendData)());
|
|
42
|
+
(0, vitest_1.expect)(out).toContain("<RoundPageContainer module={Modules.Widget} fullWidth>");
|
|
43
|
+
(0, vitest_1.expect)(out).toContain("<WidgetList fullWidth />");
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
(0, vitest_1.describe)("content template", () => {
|
|
47
|
+
(0, vitest_1.it)("is always generated (returns a string) and renders AttributeElement", () => {
|
|
48
|
+
const out = (0, content_template_1.generateContentTemplate)((0, fixtures_1.makeFrontendData)());
|
|
49
|
+
(0, vitest_1.expect)(typeof out).toBe("string");
|
|
50
|
+
(0, vitest_1.expect)(out).toContain("export function WidgetContent");
|
|
51
|
+
(0, vitest_1.expect)(out).toContain("AttributeElement");
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=container.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.spec.js","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/container.spec.ts"],"names":[],"mappings":";;AAAA,mCAA8C;AAC9C,yCAA8C;AAC9C,mFAAuF;AACvF,6FAAgG;AAChG,+EAAmF;AAEnF,IAAA,iBAAQ,EAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAA,WAAE,EAAC,iFAAiF,EAAE,GAAG,EAAE;QACzF,MAAM,GAAG,GAAG,IAAA,8CAAyB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QAC1D,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACrC,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QACxC,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACvC,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,mCAAmC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,GAAG,GAAG,IAAA,8CAAyB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QAC1D,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,+DAA+D,CAAC,CAAC;QACvF,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,MAAM,GAAG,GAAG,IAAA,8CAAyB,EAAC,IAAA,2BAAgB,EAAC,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAC/G,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,gEAAgE,EAAE,GAAG,EAAE;QACxE,MAAM,GAAG,GAAG,IAAA,8CAAyB,EAAC,IAAA,2BAAgB,EAAC;YACrD,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;SAC5G,CAAC,CAAC,CAAC;QACJ,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,2EAA2E,CAAC,CAAC;QACnG,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAC5C,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,GAAG,GAAG,IAAA,8CAAyB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QAC1D,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,wFAAwF,CAAC,CAAC;IAClH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAA,iBAAQ,EAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,IAAA,WAAE,EAAC,0BAA0B,EAAE,GAAG,EAAE;QAClC,MAAM,GAAG,GAAG,IAAA,uDAA6B,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QAC9D,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,wDAAwD,CAAC,CAAC;QAChF,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAA,iBAAQ,EAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAA,WAAE,EAAC,qEAAqE,EAAE,GAAG,EAAE;QAC7E,MAAM,GAAG,GAAG,IAAA,0CAAuB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACxD,IAAA,eAAM,EAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClC,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;QACvD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-service.spec.d.ts","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/data-service.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vitest_1 = require("vitest");
|
|
4
|
+
const fixtures_1 = require("./fixtures");
|
|
5
|
+
const service_template_1 = require("../templates/data/service.template");
|
|
6
|
+
(0, vitest_1.describe)("frontend data service template", () => {
|
|
7
|
+
(0, vitest_1.it)("applies inclusions inside findOne", () => {
|
|
8
|
+
const out = (0, service_template_1.generateServiceTemplate)((0, fixtures_1.makeFrontendData)());
|
|
9
|
+
const findOne = out.split("static async findOne")[1].split("static async")[0];
|
|
10
|
+
(0, vitest_1.expect)(findOne).toContain("limitToFields");
|
|
11
|
+
(0, vitest_1.expect)(findOne).toContain("limitToType");
|
|
12
|
+
});
|
|
13
|
+
(0, vitest_1.it)("emits a patch method", () => {
|
|
14
|
+
const out = (0, service_template_1.generateServiceTemplate)((0, fixtures_1.makeFrontendData)());
|
|
15
|
+
(0, vitest_1.expect)(out).toContain("static async patch(params: { id: string } & Partial<Omit<WidgetInput, \"id\">>)");
|
|
16
|
+
(0, vitest_1.expect)(out).toContain("method: HttpMethod.PATCH");
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=data-service.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-service.spec.js","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/data-service.spec.ts"],"names":[],"mappings":";;AAAA,mCAA8C;AAC9C,yCAA8C;AAC9C,yEAA6E;AAE7E,IAAA,iBAAQ,EAAC,gCAAgC,EAAE,GAAG,EAAE;IAC9C,IAAA,WAAE,EAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,GAAG,GAAG,IAAA,0CAAuB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9E,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,sBAAsB,EAAE,GAAG,EAAE;QAC9B,MAAM,GAAG,GAAG,IAAA,0CAAuB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACxD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,iFAAiF,CAAC,CAAC;QACzG,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.spec.d.ts","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/editor.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vitest_1 = require("vitest");
|
|
4
|
+
const fixtures_1 = require("./fixtures");
|
|
5
|
+
const editor_template_1 = require("../templates/components/editor.template");
|
|
6
|
+
(0, vitest_1.describe)("editor template — EditorSheet", () => {
|
|
7
|
+
(0, vitest_1.it)("uses EditorSheet and not the legacy Dialog stack", () => {
|
|
8
|
+
const out = (0, editor_template_1.generateEditorTemplate)((0, fixtures_1.makeFrontendData)());
|
|
9
|
+
(0, vitest_1.expect)(out).toContain("EditorSheet");
|
|
10
|
+
(0, vitest_1.expect)(out).not.toContain("CommonEditorButtons");
|
|
11
|
+
(0, vitest_1.expect)(out).not.toContain("CommonEditorDiscardDialog");
|
|
12
|
+
(0, vitest_1.expect)(out).not.toContain("useEditorDialog");
|
|
13
|
+
(0, vitest_1.expect)(out).not.toMatch(/DialogContent/);
|
|
14
|
+
});
|
|
15
|
+
(0, vitest_1.it)("gates the default export on hasPermissionToModule", () => {
|
|
16
|
+
const out = (0, editor_template_1.generateEditorTemplate)((0, fixtures_1.makeFrontendData)());
|
|
17
|
+
(0, vitest_1.expect)(out).toContain("useCurrentUserContext");
|
|
18
|
+
(0, vitest_1.expect)(out).toContain("hasPermissionToModule({ module: Modules.Widget, action, data: props.widget })");
|
|
19
|
+
});
|
|
20
|
+
(0, vitest_1.it)("wraps formSchema in useMemo and defaults in useCallback", () => {
|
|
21
|
+
const out = (0, editor_template_1.generateEditorTemplate)((0, fixtures_1.makeFrontendData)());
|
|
22
|
+
(0, vitest_1.expect)(out).toContain("const formSchema = useMemo(");
|
|
23
|
+
(0, vitest_1.expect)(out).toContain("const getDefaultValues = useCallback(");
|
|
24
|
+
});
|
|
25
|
+
(0, vitest_1.it)("passes EditorSheet lifecycle props and onSubmit returns the saved entity", () => {
|
|
26
|
+
const out = (0, editor_template_1.generateEditorTemplate)((0, fixtures_1.makeFrontendData)());
|
|
27
|
+
(0, vitest_1.expect)(out).toContain("onRevalidate={revalidatePaths}");
|
|
28
|
+
(0, vitest_1.expect)(out).toContain("onReset={getDefaultValues}");
|
|
29
|
+
(0, vitest_1.expect)(out).toContain("module={Modules.Widget}");
|
|
30
|
+
// onSubmit returns the service result (no manual setOpen/errorToast)
|
|
31
|
+
(0, vitest_1.expect)(out).not.toContain("setOpen(false)");
|
|
32
|
+
(0, vitest_1.expect)(out).not.toContain("errorToast(");
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=editor.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.spec.js","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/editor.spec.ts"],"names":[],"mappings":";;AAAA,mCAA8C;AAC9C,yCAA8C;AAC9C,6EAAiF;AAEjF,IAAA,iBAAQ,EAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,IAAA,WAAE,EAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,GAAG,GAAG,IAAA,wCAAsB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACvD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACrC,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;QACjD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;QACvD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAC7C,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,MAAM,GAAG,GAAG,IAAA,wCAAsB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACvD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QAC/C,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,+EAA+E,CAAC,CAAC;IACzG,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,yDAAyD,EAAE,GAAG,EAAE;QACjE,MAAM,GAAG,GAAG,IAAA,wCAAsB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACvD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACrD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,uCAAuC,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,0EAA0E,EAAE,GAAG,EAAE;QAClF,MAAM,GAAG,GAAG,IAAA,wCAAsB,EAAC,IAAA,2BAAgB,GAAE,CAAC,CAAC;QACvD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;QACxD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC;QACpD,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QACjD,qEAAqE;QACrE,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAC5C,IAAA,eAAM,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FrontendRelationship, FrontendTemplateData } from "../types/template-data.interface";
|
|
2
|
+
export declare function makeRelationship(o?: Partial<FrontendRelationship>): FrontendRelationship;
|
|
3
|
+
export declare function makeFrontendData(o?: Partial<FrontendTemplateData>): FrontendTemplateData;
|
|
4
|
+
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE9F,wBAAgB,gBAAgB,CAAC,CAAC,GAAE,OAAO,CAAC,oBAAoB,CAAM,GAAG,oBAAoB,CAa5F;AAED,wBAAgB,gBAAgB,CAAC,CAAC,GAAE,OAAO,CAAC,oBAAoB,CAAM,GAAG,oBAAoB,CAyB5F"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeRelationship = makeRelationship;
|
|
4
|
+
exports.makeFrontendData = makeFrontendData;
|
|
5
|
+
function makeRelationship(o = {}) {
|
|
6
|
+
return {
|
|
7
|
+
name: "Account", variant: undefined, alias: undefined, directory: "crm",
|
|
8
|
+
single: true, nullable: false, isFoundation: false,
|
|
9
|
+
formFieldId: "account", formFieldIdPlural: "accounts", payloadFieldId: "accountId",
|
|
10
|
+
selectorComponent: "AccountSelector", zodSchema: "entityObjectSchema",
|
|
11
|
+
importPath: "@/features/crm/account/components/forms/AccountSelector",
|
|
12
|
+
interfaceImportPath: "@/features/crm/account/data/AccountInterface",
|
|
13
|
+
serviceImportPath: "@/features/crm/account/data/AccountService",
|
|
14
|
+
interfaceName: "AccountInterface", modelKebab: "account",
|
|
15
|
+
fields: undefined, targetHasName: true, dtoKey: "", showInTable: false,
|
|
16
|
+
...o,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function makeFrontendData(o = {}) {
|
|
20
|
+
return {
|
|
21
|
+
names: {
|
|
22
|
+
pascalCase: "Widget", camelCase: "widget", kebabCase: "widget",
|
|
23
|
+
pluralPascal: "Widgets", pluralCamel: "widgets", pluralKebab: "widgets",
|
|
24
|
+
titleCase: "Widget", pluralTitleCase: "Widgets",
|
|
25
|
+
},
|
|
26
|
+
moduleId: "00000000-0000-4000-a000-000000000001",
|
|
27
|
+
endpoint: "widgets", targetDir: "features/demo", importTargetDir: "demo",
|
|
28
|
+
extendsContent: false,
|
|
29
|
+
fields: [
|
|
30
|
+
{ name: "name", type: "string", tsType: "string", zodSchema: "z.string()", formComponent: "FormInput", nullable: false, isContentField: false },
|
|
31
|
+
{ name: "due_date", type: "date", tsType: "Date", zodSchema: "z.date().optional()", formComponent: "DatePicker", nullable: true, isContentField: false },
|
|
32
|
+
],
|
|
33
|
+
relationships: [],
|
|
34
|
+
i18nKeys: { moduleName: "widget", fields: {}, relationships: {}, type: { singular: "Widget", plural: "Widgets", icuPlural: "" } },
|
|
35
|
+
imports: { models: [], selectors: [], library: [] },
|
|
36
|
+
tableFieldNames: [],
|
|
37
|
+
relationshipServiceMethods: [],
|
|
38
|
+
featureId: undefined,
|
|
39
|
+
displayProp: "name",
|
|
40
|
+
containerTabs: { activity: true, relations: [] },
|
|
41
|
+
relatedInclusions: [],
|
|
42
|
+
...o,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/fixtures.ts"],"names":[],"mappings":";;AAEA,4CAaC;AAED,4CAyBC;AAxCD,SAAgB,gBAAgB,CAAC,IAAmC,EAAE;IACpE,OAAO;QACL,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK;QACvE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK;QAClD,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW;QAClF,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,EAAE,oBAAoB;QACrE,UAAU,EAAE,yDAAyD;QACrE,mBAAmB,EAAE,8CAA8C;QACnE,iBAAiB,EAAE,4CAA4C;QAC/D,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS;QACxD,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK;QACtE,GAAG,CAAC;KACL,CAAC;AACJ,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAmC,EAAE;IACpE,OAAO;QACL,KAAK,EAAE;YACL,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;YAC9D,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS;YACvE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS;SAChD;QACD,QAAQ,EAAE,sCAAsC;QAChD,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM;QACxE,cAAc,EAAE,KAAK;QACrB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE;YAC/I,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE;SACzJ;QACD,aAAa,EAAE,EAAE;QACjB,QAAQ,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE;QACjI,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACnD,eAAe,EAAE,EAAE;QACnB,0BAA0B,EAAE,EAAE;QAC9B,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,MAAM;QACnB,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;QAChD,iBAAiB,EAAE,EAAE;QACrB,GAAG,CAAC;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-interface.spec.d.ts","sourceRoot":"","sources":["../../../../scripts/generate-web-module/__tests__/model-interface.spec.ts"],"names":[],"mappings":""}
|