@ksvedal/docs 0.1.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.
Files changed (137) hide show
  1. package/README.md +74 -0
  2. package/dist/Starthjelp-CDnMsPRF.js +6 -0
  3. package/dist/Starthjelp-DTDqsiPb.js +6 -0
  4. package/dist/_baseUniq-FW_jgYGR.js +477 -0
  5. package/dist/access_policy-BV-cRgLX.js +17 -0
  6. package/dist/access_policy-pBOJMSEK.js +17 -0
  7. package/dist/access_token_lifetime-6ypKk6LU.js +31 -0
  8. package/dist/access_token_lifetime-CVau9UC3.js +31 -0
  9. package/dist/allowed_grant_types-BrnsQvWi.js +101 -0
  10. package/dist/allowed_grant_types-ovkxJeQq.js +101 -0
  11. package/dist/application_type-BAESO1T4.js +36 -0
  12. package/dist/application_type-BtouPPrt.js +39 -0
  13. package/dist/arc-zSbgd3Dl.js +83 -0
  14. package/dist/architecture-U656AL7Q-bG73RCfJ.js +5 -0
  15. package/dist/architectureDiagram-VXUJARFQ-DbJ1yKpS.js +4668 -0
  16. package/dist/authentication_method-B28p58-a.js +43 -0
  17. package/dist/authentication_method-D8EwmEki.js +43 -0
  18. package/dist/authorization_lifetime-CfhrWQ9Y.js +39 -0
  19. package/dist/authorization_lifetime-DrFRbscQ.js +39 -0
  20. package/dist/backchannel_logout_uri-BTceN7xq.js +33 -0
  21. package/dist/backchannel_logout_uri-CBdktUL7.js +33 -0
  22. package/dist/blockDiagram-VD42YOAC-CmPMJI6H.js +2265 -0
  23. package/dist/breadcrumbs.json +1202 -0
  24. package/dist/c4Diagram-YG6GDRKO-BtTnslb7.js +1581 -0
  25. package/dist/channel-B9C38GUl.js +5 -0
  26. package/dist/chunk-4BX2VUAB-BLcImAIn.js +9 -0
  27. package/dist/chunk-55IACEB6-Cd_NYMQ6.js +8 -0
  28. package/dist/chunk-B4BG7PRW-C5mt8tWU.js +1376 -0
  29. package/dist/chunk-DI55MBZ5-BliqH_si.js +1382 -0
  30. package/dist/chunk-FMBD7UC4-D8OxNP20.js +19 -0
  31. package/dist/chunk-QN33PNHL-DBPrGAkF.js +20 -0
  32. package/dist/chunk-QZHKN3VN-Ce2k3n1F.js +15 -0
  33. package/dist/chunk-TZMSLE5B-BB3w_n2J.js +64 -0
  34. package/dist/classDiagram-2ON5EDUG-BJg1PJs9.js +16 -0
  35. package/dist/classDiagram-v2-WZHVMYZB-BJg1PJs9.js +16 -0
  36. package/dist/client_types-BmacnRwO.js +17 -0
  37. package/dist/client_types-Cu_f02j7.js +17 -0
  38. package/dist/clone-DZF-mLM1.js +8 -0
  39. package/dist/components/Docs.d.ts +5 -0
  40. package/dist/components/DocsBreadcrumbs.d.ts +10 -0
  41. package/dist/components/DocsErrorBoundary.d.ts +21 -0
  42. package/dist/components/DocsPage.d.ts +10 -0
  43. package/dist/components/DocsSearch.d.ts +12 -0
  44. package/dist/components/DocsViewer.d.ts +11 -0
  45. package/dist/components/index.d.ts +6 -0
  46. package/dist/components/useDocsStyles.d.ts +1 -0
  47. package/dist/cose-bilkent-S5V4N54A-xEniAY-c.js +2608 -0
  48. package/dist/cytoscape.esm-CjI2IsL8.js +18735 -0
  49. package/dist/dagre-6UL2VRFP-DWEj74f8.js +446 -0
  50. package/dist/defaultLocale-BgPVtth8.js +171 -0
  51. package/dist/delegation_source-B8L65LAZ.js +17 -0
  52. package/dist/delegation_source-DBE0sh58.js +17 -0
  53. package/dist/diagram-PSM6KHXK-Z3KtWXiy.js +533 -0
  54. package/dist/diagram-QEK2KX5R-BVA9QmB8.js +221 -0
  55. package/dist/diagram-S2PKOQOG-BOmc_fL6.js +143 -0
  56. package/dist/docs/folder.d.ts +12 -0
  57. package/dist/docs/types.d.ts +12 -0
  58. package/dist/entraid-CPkATiHs.js +6 -0
  59. package/dist/entraid-CSwp8dMQ.js +6 -0
  60. package/dist/erDiagram-Q2GNP2WA-Blro_6F2.js +842 -0
  61. package/dist/faq-CqjYqwL1.js +8 -0
  62. package/dist/faq-TqD11_1a.js +8 -0
  63. package/dist/flowDiagram-NV44I4VS-BN9iLCEi.js +1627 -0
  64. package/dist/frontchannel_logout_uri-Bt6bvoBs.js +36 -0
  65. package/dist/frontchannel_logout_uri-DRGyFXRl.js +36 -0
  66. package/dist/ganttDiagram-JELNMOA3-CXLPJQlh.js +2670 -0
  67. package/dist/general--WqS-xp8.js +89 -0
  68. package/dist/general-B37q4SsA.js +63 -0
  69. package/dist/general-BCOYLf6V.js +152 -0
  70. package/dist/general-CQFRRoeE.js +63 -0
  71. package/dist/general-Dk7lWiBC.js +152 -0
  72. package/dist/general-QQfgnjEE.js +89 -0
  73. package/dist/gitGraph-F6HP7TQM-ChFlbGFG.js +5 -0
  74. package/dist/gitGraphDiagram-NY62KEGX-DXSPVlhd.js +712 -0
  75. package/dist/graph-dALvSPTP.js +381 -0
  76. package/dist/index-D_FT2Td-.js +25338 -0
  77. package/dist/index.d.ts +2 -0
  78. package/dist/index.js +9 -0
  79. package/dist/info-NVLQJR56-BSQ5ueiP.js +5 -0
  80. package/dist/infoDiagram-WHAUD3N6-D0hbJwWb.js +24 -0
  81. package/dist/init-DjUOC4st.js +16 -0
  82. package/dist/integration_guide-BXkM8zJ-.js +7 -0
  83. package/dist/integration_guide-CLABphnS.js +313 -0
  84. package/dist/integration_guide-Ci8Nz8oL.js +313 -0
  85. package/dist/integration_guide-Ct8RYoMV.js +6 -0
  86. package/dist/integration_guide-DWfjt6Qk.js +6 -0
  87. package/dist/integration_guide-DrKTpPnR.js +6 -0
  88. package/dist/journeyDiagram-XKPGCS4Q-DTU9EVLJ.js +834 -0
  89. package/dist/kanban-definition-3W4ZIXB7-CcKx9EnU.js +721 -0
  90. package/dist/katex-C6SjTJMZ.js +11690 -0
  91. package/dist/layout-DUskCdLZ.js +1441 -0
  92. package/dist/linear-RKbqvfvG.js +259 -0
  93. package/dist/mermaid-parser.core-C-16ojim.js +15189 -0
  94. package/dist/min-CsCJm_uR.js +38 -0
  95. package/dist/mindmap-definition-VGOIOE7T-LpgPu_oq.js +787 -0
  96. package/dist/on_behalf_of-EcHpNqmZ.js +36 -0
  97. package/dist/on_behalf_of-qrlvHfcG.js +36 -0
  98. package/dist/ordinal-DfAQgscy.js +61 -0
  99. package/dist/overview-Bw11cTNo.js +21 -0
  100. package/dist/overview-ZreyAEkN.js +21 -0
  101. package/dist/packet-BFZMPI3H-CwJrUCZn.js +5 -0
  102. package/dist/pie-7BOR55EZ-WUF72bRP.js +5 -0
  103. package/dist/pieDiagram-ADFJNKIX-BRjx2vS_.js +161 -0
  104. package/dist/pkce-BkSKWYmh.js +34 -0
  105. package/dist/pkce-C3U_jCxQ.js +33 -0
  106. package/dist/post_logout_redirect_uri-BSzuTRwg.js +33 -0
  107. package/dist/post_logout_redirect_uri-BnhzB1De.js +33 -0
  108. package/dist/pseudonymous_login-B3oa6s2f.js +17 -0
  109. package/dist/pseudonymous_login-x98obOlL.js +17 -0
  110. package/dist/quadrantDiagram-AYHSOK5B-BOwjGYKH.js +1024 -0
  111. package/dist/radar-NHE76QYJ-DRN4buPP.js +5 -0
  112. package/dist/redirect_uri-Cnlv_2rt.js +38 -0
  113. package/dist/redirect_uri-DgNidm8d.js +38 -0
  114. package/dist/refresh_token_lifetime-DCzCzIyu.js +34 -0
  115. package/dist/refresh_token_lifetime-QcGf0aOG.js +34 -0
  116. package/dist/refresh_token_usage-C2LdxQHa.js +33 -0
  117. package/dist/refresh_token_usage-DXI98e4O.js +33 -0
  118. package/dist/requirementDiagram-UZGBJVZJ-KRDecAgT.js +852 -0
  119. package/dist/sankeyDiagram-TZEHDZUN-MKxbwv35.js +810 -0
  120. package/dist/search-index.json +450 -0
  121. package/dist/sequenceDiagram-WL72ISMW-DEo0cUN3.js +2518 -0
  122. package/dist/sso-BuAlvelZ.js +79 -0
  123. package/dist/sso-DYMIpoUd.js +78 -0
  124. package/dist/stateDiagram-FKZM4ZOC-CaTGomRc.js +263 -0
  125. package/dist/stateDiagram-v2-4FDKWEC3-l4p7_3uG.js +16 -0
  126. package/dist/timeline-definition-IT6M3QCI-ChX0PfWC.js +799 -0
  127. package/dist/token_lifetimes-Cp22x6RM.js +17 -0
  128. package/dist/token_lifetimes-CwzcMEnb.js +17 -0
  129. package/dist/token_type-B8DCg80j.js +17 -0
  130. package/dist/token_type-C7Y04-Fc.js +17 -0
  131. package/dist/treemap-KMMF4GRG-DNEhU-LQ.js +5 -0
  132. package/dist/user_involvement-4nbn_fQ7.js +17 -0
  133. package/dist/user_involvement-COT572uK.js +17 -0
  134. package/dist/visibility-BSqCGXMv.js +17 -0
  135. package/dist/visibility-CidZ07d9.js +17 -0
  136. package/dist/xychartDiagram-PRI3JC2R-CBQAJ13t.js +1340 -0
  137. package/package.json +60 -0
@@ -0,0 +1,19 @@
1
+ import { _ as e } from "./index-D_FT2Td-.js";
2
+ var l = /* @__PURE__ */ e(() => `
3
+ /* Font Awesome icon styling - consolidated */
4
+ .label-icon {
5
+ display: inline-block;
6
+ height: 1em;
7
+ overflow: visible;
8
+ vertical-align: -0.125em;
9
+ }
10
+
11
+ .node .label-icon path {
12
+ fill: currentColor;
13
+ stroke: revert;
14
+ stroke-width: revert;
15
+ }
16
+ `, "getIconStyles");
17
+ export {
18
+ l as g
19
+ };
@@ -0,0 +1,20 @@
1
+ import { _ as a, e as w, l as x } from "./index-D_FT2Td-.js";
2
+ var d = /* @__PURE__ */ a((e, t, i, o) => {
3
+ e.attr("class", i);
4
+ const { width: r, height: h, x: n, y: c } = u(e, t);
5
+ w(e, h, r, o);
6
+ const s = l(n, c, r, h, t);
7
+ e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
8
+ }, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
9
+ var o;
10
+ const i = ((o = e.node()) == null ? void 0 : o.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
11
+ return {
12
+ width: i.width + t * 2,
13
+ height: i.height + t * 2,
14
+ x: i.x,
15
+ y: i.y
16
+ };
17
+ }, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, o, r) => `${e - r} ${t - r} ${i} ${o}`, "createViewBox");
18
+ export {
19
+ d as s
20
+ };
@@ -0,0 +1,15 @@
1
+ import { _ as s } from "./index-D_FT2Td-.js";
2
+ var t, e = (t = class {
3
+ /**
4
+ * @param init - Function that creates the default state.
5
+ */
6
+ constructor(i) {
7
+ this.init = i, this.records = this.init();
8
+ }
9
+ reset() {
10
+ this.records = this.init();
11
+ }
12
+ }, s(t, "ImperativeState"), t);
13
+ export {
14
+ e as I
15
+ };
@@ -0,0 +1,64 @@
1
+ import { _ as n, n as o, j as l } from "./index-D_FT2Td-.js";
2
+ var x = /* @__PURE__ */ n((s, t) => {
3
+ const e = s.append("rect");
4
+ if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
5
+ for (const r in t.attrs)
6
+ e.attr(r, t.attrs[r]);
7
+ return t.class && e.attr("class", t.class), e;
8
+ }, "drawRect"), d = /* @__PURE__ */ n((s, t) => {
9
+ const e = {
10
+ x: t.startx,
11
+ y: t.starty,
12
+ width: t.stopx - t.startx,
13
+ height: t.stopy - t.starty,
14
+ fill: t.fill,
15
+ stroke: t.stroke,
16
+ class: "rect"
17
+ };
18
+ x(s, e).lower();
19
+ }, "drawBackgroundRect"), g = /* @__PURE__ */ n((s, t) => {
20
+ const e = t.text.replace(o, " "), r = s.append("text");
21
+ r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class && r.attr("class", t.class);
22
+ const a = r.append("tspan");
23
+ return a.attr("x", t.x + t.textMargin * 2), a.text(e), r;
24
+ }, "drawText"), h = /* @__PURE__ */ n((s, t, e, r) => {
25
+ const a = s.append("image");
26
+ a.attr("x", t), a.attr("y", e);
27
+ const i = l.sanitizeUrl(r);
28
+ a.attr("xlink:href", i);
29
+ }, "drawImage"), m = /* @__PURE__ */ n((s, t, e, r) => {
30
+ const a = s.append("use");
31
+ a.attr("x", t), a.attr("y", e);
32
+ const i = l.sanitizeUrl(r);
33
+ a.attr("xlink:href", `#${i}`);
34
+ }, "drawEmbeddedImage"), y = /* @__PURE__ */ n(() => ({
35
+ x: 0,
36
+ y: 0,
37
+ width: 100,
38
+ height: 100,
39
+ fill: "#EDF2AE",
40
+ stroke: "#666",
41
+ anchor: "start",
42
+ rx: 0,
43
+ ry: 0
44
+ }), "getNoteRect"), p = /* @__PURE__ */ n(() => ({
45
+ x: 0,
46
+ y: 0,
47
+ width: 100,
48
+ height: 100,
49
+ "text-anchor": "start",
50
+ style: "#666",
51
+ textMargin: 0,
52
+ rx: 0,
53
+ ry: 0,
54
+ tspan: !0
55
+ }), "getTextObj");
56
+ export {
57
+ d as a,
58
+ p as b,
59
+ m as c,
60
+ x as d,
61
+ h as e,
62
+ g as f,
63
+ y as g
64
+ };
@@ -0,0 +1,16 @@
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-C5mt8tWU.js";
2
+ import { _ as l } from "./index-D_FT2Td-.js";
3
+ var d = {
4
+ parser: e,
5
+ get db() {
6
+ return new t();
7
+ },
8
+ renderer: s,
9
+ styles: r,
10
+ init: /* @__PURE__ */ l((a) => {
11
+ a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
12
+ }, "init")
13
+ };
14
+ export {
15
+ d as diagram
16
+ };
@@ -0,0 +1,16 @@
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-C5mt8tWU.js";
2
+ import { _ as l } from "./index-D_FT2Td-.js";
3
+ var d = {
4
+ parser: e,
5
+ get db() {
6
+ return new t();
7
+ },
8
+ renderer: s,
9
+ styles: r,
10
+ init: /* @__PURE__ */ l((a) => {
11
+ a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
12
+ }, "init")
13
+ };
14
+ export {
15
+ d as diagram
16
+ };
@@ -0,0 +1,17 @@
1
+ const e = `# Client types
2
+
3
+ ## What does this mean?
4
+
5
+ Choices like \`Ansattporten\`, \`API-klient\`, and \`Maskinporten\` describe what kind of integration or usage scenario the scope belongs to. This often affects which other fields are relevant and how access should be interpreted.
6
+
7
+ ## Typical interpretation
8
+
9
+ \`API-klient\` is usually relevant when a client obtains tokens and calls an API directly. \`Maskinporten\` often points to machine-to-machine scenarios where organizations act on their own behalf. \`Ansattporten\` is more relevant when an end user acts in a work context or on behalf of an organization.
10
+
11
+ ## Why it matters
12
+
13
+ The client type helps set expectations for authentication, token content, delegation, and user involvement. It should therefore reflect the real usage pattern, not only the technology being used.
14
+ `;
15
+ export {
16
+ e as default
17
+ };
@@ -0,0 +1,17 @@
1
+ const e = `# Klienttyper
2
+
3
+ ## Hva betyr dette?
4
+
5
+ Valg som \`Ansattporten\`, \`API-klient\` og \`Maskinporten\` sier noe om hvilken type integrasjon eller brukssituasjon scopet hører til. Dette påvirker ofte hvilke andre felter som er relevante, og hvordan tilgang bør forstås.
6
+
7
+ ## Typisk tolkning
8
+
9
+ \`API-klient\` brukes gjerne når en klient skal hente token og kalle API direkte. \`Maskinporten\` peker ofte mot maskin-til-maskin-scenarioer der virksomheter representerer seg selv. \`Ansattporten\` er mer relevant når en sluttbruker opptrer i en jobbsammenheng eller på vegne av en virksomhet.
10
+
11
+ ## Hvorfor er det viktig?
12
+
13
+ Klienttypen er med på å sette forventninger til autentisering, tokeninnhold, delegasjon og brukerinvolvering. Den bør derfor stemme med faktisk bruksmønster, ikke bare med teknologien som brukes.
14
+ `;
15
+ export {
16
+ e as default
17
+ };
@@ -0,0 +1,8 @@
1
+ import { b as r } from "./graph-dALvSPTP.js";
2
+ var e = 4;
3
+ function a(o) {
4
+ return r(o, e);
5
+ }
6
+ export {
7
+ a as c
8
+ };
@@ -0,0 +1,5 @@
1
+ export type DocsProps = {
2
+ docPath: string;
3
+ };
4
+ export declare function Docs({ docPath }: DocsProps): import("react/jsx-runtime").JSX.Element;
5
+ export default Docs;
@@ -0,0 +1,10 @@
1
+ type Crumb = {
2
+ title: string;
3
+ path: string;
4
+ };
5
+ export type DocsBreadcrumbsProps = {
6
+ crumbs: Crumb[];
7
+ onNavigate: (path: string) => void;
8
+ };
9
+ export declare function DocsBreadcrumbs({ crumbs, onNavigate }: DocsBreadcrumbsProps): import("react/jsx-runtime").JSX.Element | null;
10
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Component } from 'react';
2
+ import type { ErrorInfo, ReactNode } from 'react';
3
+ export type DocsErrorBoundaryProps = {
4
+ children: ReactNode;
5
+ fallback?: ReactNode;
6
+ };
7
+ type State = {
8
+ hasError: boolean;
9
+ error: Error | null;
10
+ };
11
+ /**
12
+ * Catches render-time errors inside the docs components so they
13
+ * don't crash the entire host application that imports this library.
14
+ */
15
+ export declare class DocsErrorBoundary extends Component<DocsErrorBoundaryProps, State> {
16
+ constructor(props: DocsErrorBoundaryProps);
17
+ static getDerivedStateFromError(error: Error): State;
18
+ componentDidCatch(error: Error, info: ErrorInfo): void;
19
+ render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
20
+ }
21
+ export {};
@@ -0,0 +1,10 @@
1
+ export type DocsPageProps = {
2
+ currentPath?: string;
3
+ onNavigate?: (path: string) => void;
4
+ errorFallback?: React.ReactNode;
5
+ editable?: boolean;
6
+ startPageHeader?: string;
7
+ startPageParagraphs?: string[];
8
+ };
9
+ export declare function DocsPage(props: DocsPageProps): import("react/jsx-runtime").JSX.Element;
10
+ export default DocsPage;
@@ -0,0 +1,12 @@
1
+ import type { DocIndexItem } from '../docs/types';
2
+ export type DocsSearchProps = {
3
+ index: DocIndexItem[];
4
+ onSelectPath: (path: string) => void;
5
+ lang?: string;
6
+ className?: string;
7
+ maxResults?: number;
8
+ ariaLabel?: string;
9
+ label?: string;
10
+ };
11
+ export declare function DocsSearch({ index, onSelectPath, lang, className, ariaLabel, label, maxResults, }: DocsSearchProps): import("react/jsx-runtime").JSX.Element;
12
+ export default DocsSearch;
@@ -0,0 +1,11 @@
1
+ import type { BreadcrumbsMap, DocIndexItem } from '../docs/types';
2
+ export type DocsViewerProps = {
3
+ index: DocIndexItem[];
4
+ breadcrumbsByPath: BreadcrumbsMap;
5
+ currentPath: string;
6
+ onNavigate: (path: string) => void;
7
+ editable?: boolean;
8
+ startPageHeader?: string;
9
+ startPageParagraphs?: string[];
10
+ };
11
+ export declare function DocsViewer({ index, breadcrumbsByPath, currentPath, onNavigate, editable, startPageHeader, startPageParagraphs, }: DocsViewerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export * from './Docs';
2
+ export * from './DocsBreadcrumbs';
3
+ export * from './DocsErrorBoundary';
4
+ export * from './DocsPage';
5
+ export * from './DocsSearch';
6
+ export * from './DocsViewer';
@@ -0,0 +1 @@
1
+ export declare function useDocsStyles(): void;