@blogmcp/sdk 0.12.0 → 0.14.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 (75) hide show
  1. package/dist/community/links.d.ts +6 -0
  2. package/dist/community/links.js +9 -1
  3. package/dist/community/outcome.d.ts +1 -1
  4. package/dist/community/outcome.js +60 -23
  5. package/dist/community/private/browser.d.ts +18 -0
  6. package/dist/community/private/browser.js +17 -0
  7. package/dist/community/private/client.d.ts +259 -0
  8. package/dist/community/private/client.js +98 -0
  9. package/dist/community/private/dm.d.ts +547 -0
  10. package/dist/community/private/dm.js +852 -0
  11. package/dist/community/private/dpop.d.ts +59 -0
  12. package/dist/community/private/dpop.js +46 -0
  13. package/dist/community/private/encoding.d.ts +17 -0
  14. package/dist/community/private/encoding.js +50 -0
  15. package/dist/community/private/host-state.d.ts +20 -0
  16. package/dist/community/private/host-state.js +15 -0
  17. package/dist/community/private/index.d.ts +51 -0
  18. package/dist/community/private/index.js +71 -0
  19. package/dist/community/private/keystore.d.ts +73 -0
  20. package/dist/community/private/keystore.js +91 -0
  21. package/dist/community/private/marker.d.ts +17 -0
  22. package/dist/community/private/marker.js +11 -0
  23. package/dist/community/private/private-routes.d.ts +6 -0
  24. package/dist/community/private/private-routes.js +72 -0
  25. package/dist/community/private/promise.d.ts +65 -0
  26. package/dist/community/private/promise.js +39 -0
  27. package/dist/community/private/realtime.d.ts +127 -0
  28. package/dist/community/private/realtime.js +199 -0
  29. package/dist/community/private/session.d.ts +175 -0
  30. package/dist/community/private/session.js +441 -0
  31. package/dist/community/private/transport.d.ts +47 -0
  32. package/dist/community/private/transport.js +65 -0
  33. package/dist/community/server/grant-handoff.d.ts +53 -0
  34. package/dist/community/server/grant-handoff.js +96 -0
  35. package/dist/community/server/grant.d.ts +100 -0
  36. package/dist/community/server/grant.js +165 -0
  37. package/dist/community/server/index.d.ts +4 -0
  38. package/dist/community/server/index.js +20 -16
  39. package/dist/community/shapes.d.ts +27 -1
  40. package/dist/community/shapes.js +27 -17
  41. package/dist/core/client.d.ts +9 -0
  42. package/dist/core/client.js +54 -50
  43. package/dist/core/index.d.ts +2 -0
  44. package/dist/core/index.js +113 -103
  45. package/dist/core/queries.d.ts +1 -0
  46. package/dist/core/queries.js +76 -71
  47. package/dist/core/review/types.d.ts +7 -0
  48. package/dist/core/style-layers.d.ts +88 -0
  49. package/dist/core/style-layers.js +69 -0
  50. package/package.json +7 -3
  51. package/src/community/links.ts +8 -0
  52. package/src/community/outcome.ts +37 -0
  53. package/src/community/private/browser.ts +31 -0
  54. package/src/community/private/client.ts +304 -0
  55. package/src/community/private/dm.ts +1687 -0
  56. package/src/community/private/dpop.ts +110 -0
  57. package/src/community/private/encoding.ts +71 -0
  58. package/src/community/private/host-state.ts +37 -0
  59. package/src/community/private/index.ts +169 -0
  60. package/src/community/private/keystore.ts +179 -0
  61. package/src/community/private/marker.ts +28 -0
  62. package/src/community/private/private-routes.ts +80 -0
  63. package/src/community/private/promise.ts +125 -0
  64. package/src/community/private/realtime.ts +431 -0
  65. package/src/community/private/session.ts +848 -0
  66. package/src/community/private/transport.ts +125 -0
  67. package/src/community/server/grant-handoff.ts +179 -0
  68. package/src/community/server/grant.ts +292 -0
  69. package/src/community/server/index.ts +6 -0
  70. package/src/community/shapes.ts +46 -1
  71. package/src/core/client.ts +12 -0
  72. package/src/core/index.ts +14 -0
  73. package/src/core/queries.ts +8 -0
  74. package/src/core/review/types.ts +8 -0
  75. package/src/core/style-layers.ts +169 -0
@@ -1,97 +1,101 @@
1
- import { UPDATE_MY_PROFILE as S, ARTICLE_VERSION as _, ACCESSIBLE_ARTICLES_WITH_LOCKED_LOCALIZED as I, ACCESSIBLE_ARTICLES_LOCALIZED as C, UPDATE_MY_REPORT_SETTINGS as l, MY_REPORT_SETTINGS as L, CHANGE_PASSWORD as d, RESEND_VERIFICATION as R, RESET_PASSWORD as c, FORGOT_PASSWORD as u, VERIFY_EMAIL as O, REGISTER as p, LOGIN as N, DELETE_COMMENT as h, UPDATE_COMMENT as g, CREATE_COMMENT as m, GET_COMMENT as G, ARTICLE_COMMENTS as P, GET_TRANSLATION as D, ARTICLE_TRANSLATIONS as M, KB_NAVIGATION as y, KB_LANGUAGES as B, LOCALIZED_TAGS as f, ACCESSIBLE_TAGS as W, GET_KB_CONTEXT as v, SEARCH_KNOWLEDGE_BASE as w, ARTICLE_ALIAS_TARGET as K, ARTICLE_PREVIEW_BY_ID as V, ARTICLE_PREVIEW as k, ARTICLE_WITH_TRANSLATION_BY_ID as b, ARTICLE_WITH_TRANSLATION as x, ACCESSIBLE_ARTICLES_WITH_LOCKED as H, ACCESSIBLE_ARTICLES as U } from "./queries.js";
2
- import { createMemoryTokenStorage as Y } from "./auth.js";
3
- import { KbGraphQLError as F } from "./errors.js";
4
- import { createConsultationSessionApi as Q, createConsultationsApi as Z } from "./consultations.js";
5
- function j() {
6
- return async (n, o) => (await fetch(n, {
7
- method: o.method,
8
- headers: o.headers,
9
- body: o.body
1
+ import { parseStyleLayers as S } from "./style-layers.js";
2
+ import { UPDATE_MY_PROFILE as _, ARTICLE_VERSION as I, ACCESSIBLE_ARTICLES_WITH_LOCKED_LOCALIZED as l, ACCESSIBLE_ARTICLES_LOCALIZED as L, UPDATE_MY_REPORT_SETTINGS as C, MY_REPORT_SETTINGS as R, CHANGE_PASSWORD as d, RESEND_VERIFICATION as c, RESET_PASSWORD as u, FORGOT_PASSWORD as O, VERIFY_EMAIL as p, REGISTER as N, LOGIN as h, DELETE_COMMENT as m, UPDATE_COMMENT as y, CREATE_COMMENT as g, GET_COMMENT as G, ARTICLE_COMMENTS as P, GET_TRANSLATION as D, ARTICLE_TRANSLATIONS as B, KB_STYLE_LAYERS as M, KB_NAVIGATION as f, KB_LANGUAGES as w, LOCALIZED_TAGS as W, ACCESSIBLE_TAGS as v, GET_KB_CONTEXT as K, SEARCH_KNOWLEDGE_BASE as k, ARTICLE_ALIAS_TARGET as V, ARTICLE_PREVIEW_BY_ID as Y, ARTICLE_PREVIEW as b, ARTICLE_WITH_TRANSLATION_BY_ID as x, ARTICLE_WITH_TRANSLATION as H, ACCESSIBLE_ARTICLES_WITH_LOCKED as U, ACCESSIBLE_ARTICLES as F } from "./queries.js";
3
+ import { createMemoryTokenStorage as Q } from "./auth.js";
4
+ import { KbGraphQLError as Z } from "./errors.js";
5
+ import { createConsultationSessionApi as j, createConsultationsApi as z } from "./consultations.js";
6
+ function q() {
7
+ return async (n, a) => (await fetch(n, {
8
+ method: a.method,
9
+ headers: a.headers,
10
+ body: a.body
10
11
  })).json();
11
12
  }
12
- async function z(n, o, E) {
13
+ async function J(n, a, o) {
13
14
  const T = {
14
15
  ...n.headers ?? {},
15
16
  "Content-Type": "application/json"
16
- }, a = n.tokenStorage.getToken();
17
- a && (T.Authorization = `Bearer ${a}`);
17
+ }, s = n.tokenStorage.getToken();
18
+ s && (T.Authorization = `Bearer ${s}`);
18
19
  const t = await n.fetcher(n.endpoint, {
19
20
  method: "POST",
20
21
  headers: T,
21
- body: JSON.stringify({ query: o, variables: E })
22
+ body: JSON.stringify({ query: a, variables: o })
22
23
  });
23
24
  if (t.errors?.length)
24
- throw new F(t.errors);
25
+ throw new Z(t.errors);
25
26
  return t.data;
26
27
  }
27
- function ee(n) {
28
- const o = n.fetcher || j(), E = n.tokenStorage || Y(), a = { endpoint: n.isServer && n.serverEndpoint ? n.serverEndpoint : n.endpoint, fetcher: o, tokenStorage: E, headers: n.headers };
28
+ function ne(n) {
29
+ const a = n.fetcher || q(), o = n.tokenStorage || Q(), s = { endpoint: n.isServer && n.serverEndpoint ? n.serverEndpoint : n.endpoint, fetcher: a, tokenStorage: o, headers: n.headers };
29
30
  function t(e, r) {
30
- return z(a, e, r);
31
+ return J(s, e, r);
31
32
  }
32
33
  return {
33
34
  articles: {
34
35
  list: (e) => {
35
- const { includeLocked: r, languageCode: s, includeUntranslated: A, ...i } = e ?? {};
36
- return s ? t(
37
- r ? I : C,
38
- { ...i, languageCode: s, includeUntranslated: A === !0 }
39
- ) : t(r ? H : U, i);
36
+ const { includeLocked: r, languageCode: E, includeUntranslated: A, ...i } = e ?? {};
37
+ return E ? t(
38
+ r ? l : L,
39
+ { ...i, languageCode: E, includeUntranslated: A === !0 }
40
+ ) : t(r ? U : F, i);
40
41
  },
41
- getWithTranslation: (e, r) => t(x, { filename: e, languageCode: r }),
42
- getWithTranslationById: (e, r) => t(b, { id: e, languageCode: r }),
43
- getPreview: (e, r) => t(k, { filename: e, languageCode: r }),
44
- getPreviewById: (e, r) => t(V, { id: e, languageCode: r }),
45
- resolveAlias: (e) => t(K, { filename: e }),
46
- getVersion: (e, r) => t(_, { versionId: e, previewKey: r?.previewKey ?? null })
42
+ getWithTranslation: (e, r) => t(H, { filename: e, languageCode: r }),
43
+ getWithTranslationById: (e, r) => t(x, { id: e, languageCode: r }),
44
+ getPreview: (e, r) => t(b, { filename: e, languageCode: r }),
45
+ getPreviewById: (e, r) => t(Y, { id: e, languageCode: r }),
46
+ resolveAlias: (e) => t(V, { filename: e }),
47
+ getVersion: (e, r) => t(I, { versionId: e, previewKey: r?.previewKey ?? null })
47
48
  },
48
49
  search: {
49
- query: (e) => t(w, e),
50
- getContext: (e, r) => t(v, { query: e, maxChunks: r })
50
+ query: (e) => t(k, e),
51
+ getContext: (e, r) => t(K, { query: e, maxChunks: r })
51
52
  },
52
53
  tags: {
53
- list: () => t(W),
54
- listLocalized: (e) => t(f, { languageCode: e })
54
+ list: () => t(v),
55
+ listLocalized: (e) => t(W, { languageCode: e })
55
56
  },
56
57
  languages: {
57
- list: () => t(B)
58
+ list: () => t(w)
58
59
  },
59
60
  navigation: {
60
- get: (e) => t(y, e ?? {})
61
+ get: (e) => t(f, e ?? {})
62
+ },
63
+ styleLayers: {
64
+ list: async () => S((await t(M))?.kbStyleLayers)
61
65
  },
62
66
  translations: {
63
- list: (e) => t(M, { articleId: e }),
67
+ list: (e) => t(B, { articleId: e }),
64
68
  get: (e, r) => t(D, { sourceFilename: e, languageCode: r })
65
69
  },
66
70
  comments: {
67
71
  list: (e, r) => t(P, { articleId: e, languageCode: r }),
68
72
  get: (e, r) => t(G, { commentId: e, languageCode: r }),
69
- create: (e) => t(m, e),
70
- update: (e, r) => t(g, { commentId: e, content: r }),
71
- delete: (e) => t(h, { commentId: e })
73
+ create: (e) => t(g, e),
74
+ update: (e, r) => t(y, { commentId: e, content: r }),
75
+ delete: (e) => t(m, { commentId: e })
72
76
  },
73
77
  auth: {
74
- login: (e, r) => t(N, { email: e, password: r }),
75
- register: (e, r, s) => t(p, { email: e, password: r, name: s }),
76
- verifyEmail: (e) => t(O, { token: e }),
77
- forgotPassword: (e) => t(u, { email: e }),
78
- resetPassword: (e, r) => t(c, { token: e, password: r }),
79
- resendVerification: (e) => t(R, { email: e }),
78
+ login: (e, r) => t(h, { email: e, password: r }),
79
+ register: (e, r, E) => t(N, { email: e, password: r, name: E }),
80
+ verifyEmail: (e) => t(p, { token: e }),
81
+ forgotPassword: (e) => t(O, { email: e }),
82
+ resetPassword: (e, r) => t(u, { token: e, password: r }),
83
+ resendVerification: (e) => t(c, { email: e }),
80
84
  changePassword: (e, r) => t(d, { currentPassword: e, newPassword: r }),
81
- updateProfile: (e) => t(S, {
85
+ updateProfile: (e) => t(_, {
82
86
  name: e.name ?? null,
83
87
  email: e.email ?? null
84
88
  })
85
89
  },
86
90
  reportSettings: {
87
- get: () => t(L),
88
- update: (e) => t(l, e)
91
+ get: () => t(R),
92
+ update: (e) => t(C, e)
89
93
  },
90
- consultations: Z(t),
91
- consultationSession: Q(t),
94
+ consultations: z(t),
95
+ consultationSession: j(t),
92
96
  executeGraphQL: t
93
97
  };
94
98
  }
95
99
  export {
96
- ee as createKbClient
100
+ ne as createKbClient
97
101
  };
@@ -9,6 +9,8 @@ export type { KbClient } from './client.js';
9
9
  export { createKbClient } from './client.js';
10
10
  export type { NavNode, NavNodeType, NavBadge, NavGroupLink, NavNextPrev, FlatNavNode } from './navigation.js';
11
11
  export { navWalk, findNavNode, navBreadcrumbs, navSiblings, navSubtree, navNextPrev, isNavigable, flattenNav, } from './navigation.js';
12
+ export type { StyleLayer, StyleLayerMatch } from './style-layers.js';
13
+ export { LAYER_SCOPE_TOKEN, parseStyleLayers, sortStyleLayers, layerMatches, matchLayers, mergePinnedLayers, layerScope, applyLayerScope, layerStyleText, } from './style-layers.js';
12
14
  export type { AuthManager } from './auth.js';
13
15
  export { createAuthManager, createMemoryTokenStorage, createLocalStorageTokenStorage, decodeJwtUser, hasAccessLevel, } from './auth.js';
14
16
  export { createDelegatedTokenMinter, DelegatedTokenError, } from './delegated-identity.js';
@@ -1,116 +1,126 @@
1
1
  import { ACCESS_LEVEL_ORDER as t } from "./types.js";
2
- import { CONSULTATION_ERROR_CODES as i, KbGraphQLError as n, isConsultationErrorCode as s, isKbGraphQLError as m } from "./errors.js";
3
- import { commentErrorCode as p, commentErrorMessageKey as f } from "./comments-legacy.js";
2
+ import { CONSULTATION_ERROR_CODES as i, KbGraphQLError as n, isConsultationErrorCode as s, isKbGraphQLError as l } from "./errors.js";
3
+ import { commentErrorCode as p, commentErrorMessageKey as E } from "./comments-legacy.js";
4
4
  import { createKbClient as R } from "./client.js";
5
- import { findNavNode as x, flattenNav as T, isNavigable as c, navBreadcrumbs as v, navNextPrev as g, navSiblings as A, navSubtree as S, navWalk as _ } from "./navigation.js";
6
- import { createAuthManager as C, createLocalStorageTokenStorage as I, createMemoryTokenStorage as w, decodeJwtUser as b, hasAccessLevel as L } from "./auth.js";
7
- import { DelegatedTokenError as k, createDelegatedTokenMinter as M } from "./delegated-identity.js";
8
- import { ConsultationAdapterError as O, createConsultationAdapterClient as W, isConsultationAdapterError as D } from "./consultation-adapter.js";
9
- import { generateDescription as P, stripLeadingH1 as V } from "./article-seo.js";
10
- import { createMarkedInstance as K, defaultImageHtml as F, parseMarkdownSafe as G } from "./markdown.js";
11
- import { deepMerge as B } from "./blog-config.js";
12
- import { retryWithBackoff as z } from "./retry.js";
13
- import { buildThemeCssVars as J, darkenColor as Y, hexToHsl as j, hexToRgb as X, hslToRgb as Z, lightenColor as $, rgbTriplet as ee } from "./theme.js";
14
- import { buildArticleSeo as oe, buildHomeSeo as te, buildListPageSeo as ae, localizedHref as ie, pageUrl as ne, stripLocalePrefix as se } from "./seo.js";
15
- import { buildArticleListItem as le, formatArticleDate as pe, lockedRequiredAccess as fe, resolveArticleAccessLevel as Ee, toIsoDate as Re } from "./view-model.js";
16
- import { createKbI18n as xe, mergeTranslations as Te } from "./i18n.js";
5
+ import { findNavNode as d, flattenNav as x, isNavigable as T, navBreadcrumbs as S, navNextPrev as v, navSiblings as g, navSubtree as A, navWalk as _ } from "./navigation.js";
6
+ import { LAYER_SCOPE_TOKEN as C, applyLayerScope as u, layerMatches as I, layerScope as w, layerStyleText as b, matchLayers as y, mergePinnedLayers as N, parseStyleLayers as h, sortStyleLayers as M } from "./style-layers.js";
7
+ import { createAuthManager as k, createLocalStorageTokenStorage as P, createMemoryTokenStorage as W, decodeJwtUser as D, hasAccessLevel as H } from "./auth.js";
8
+ import { DelegatedTokenError as K, createDelegatedTokenMinter as U } from "./delegated-identity.js";
9
+ import { ConsultationAdapterError as G, createConsultationAdapterClient as B, isConsultationAdapterError as q } from "./consultation-adapter.js";
10
+ import { generateDescription as Q, stripLeadingH1 as Y } from "./article-seo.js";
11
+ import { createMarkedInstance as j, defaultImageHtml as X, parseMarkdownSafe as Z } from "./markdown.js";
12
+ import { deepMerge as ee } from "./blog-config.js";
13
+ import { retryWithBackoff as oe } from "./retry.js";
14
+ import { buildThemeCssVars as ae, darkenColor as ie, hexToHsl as ne, hexToRgb as se, hslToRgb as le, lightenColor as me, rgbTriplet as pe } from "./theme.js";
15
+ import { buildArticleSeo as fe, buildHomeSeo as Re, buildListPageSeo as ce, localizedHref as de, pageUrl as xe, stripLocalePrefix as Te } from "./seo.js";
16
+ import { buildArticleListItem as ve, formatArticleDate as ge, lockedRequiredAccess as Ae, resolveArticleAccessLevel as _e, toIsoDate as Le } from "./view-model.js";
17
+ import { createKbI18n as ue, mergeTranslations as Ie } from "./i18n.js";
17
18
  import * as e from "./queries.js";
18
- import { prepareProps as ve } from "@blogmcp/mdx-schema/prepareProps";
19
- import { extractTitleHeading as Ae, inlineMarkdownToPlainText as Se } from "@blogmcp/mdx-schema/title";
20
- import { componentMetadata as ue, getComponentMetadata as Ce, getComponentNames as Ie } from "@blogmcp/mdx-schema/metadata";
21
- import { REVIEW_PAGE_PATH as be, REVIEW_ROUTE_PATTERN as Le, isReviewTokenFormat as Ne } from "./review/types.js";
22
- import { formatReviewForAgent as Me, formatReviewRound as he } from "./review/format.js";
23
- import { REVIEW_REASON_STATUS as We, createReviewClient as De, getReviewSession as He } from "./review/client.js";
24
- import { REVIEW_LAYER_SCRIPT_URL as Ve, REVIEW_SESSION_ELEMENT_ID as Ue, renderReviewStatusHtml as Ke, reviewBootstrapHtml as Fe, reviewContentWithMedia as Ge, reviewFieldAttrs as ye, reviewIgnoreAttrs as Be, reviewResponseHeaders as qe, reviewRootAttrs as ze, reviewStatusText as Qe } from "./review/page.js";
25
- import { createReviewPlan as Ye, normalizeReviewText as je } from "./review/plan.js";
26
- import { REVIEW_FIELD_ATTR as Ze, REVIEW_IGNORE_ATTR as $e, REVIEW_ROOT_ATTR as er, stampReviewDom as rr } from "./review/stamp.js";
27
- import { default as tr } from "./translations/cs.json.js";
28
- import { default as ir } from "./translations/en.json.js";
19
+ import { prepareProps as be } from "@blogmcp/mdx-schema/prepareProps";
20
+ import { extractTitleHeading as Ne, inlineMarkdownToPlainText as he } from "@blogmcp/mdx-schema/title";
21
+ import { componentMetadata as Oe, getComponentMetadata as ke, getComponentNames as Pe } from "@blogmcp/mdx-schema/metadata";
22
+ import { REVIEW_PAGE_PATH as De, REVIEW_ROUTE_PATTERN as He, isReviewTokenFormat as Ve } from "./review/types.js";
23
+ import { formatReviewForAgent as Ue, formatReviewRound as Fe } from "./review/format.js";
24
+ import { REVIEW_REASON_STATUS as Be, createReviewClient as qe, getReviewSession as ze } from "./review/client.js";
25
+ import { REVIEW_LAYER_SCRIPT_URL as Ye, REVIEW_SESSION_ELEMENT_ID as Je, renderReviewStatusHtml as je, reviewBootstrapHtml as Xe, reviewContentWithMedia as Ze, reviewFieldAttrs as $e, reviewIgnoreAttrs as er, reviewResponseHeaders as rr, reviewRootAttrs as or, reviewStatusText as tr } from "./review/page.js";
26
+ import { createReviewPlan as ir, normalizeReviewText as nr } from "./review/plan.js";
27
+ import { REVIEW_FIELD_ATTR as lr, REVIEW_IGNORE_ATTR as mr, REVIEW_ROOT_ATTR as pr, stampReviewDom as Er } from "./review/stamp.js";
28
+ import { default as Rr } from "./translations/cs.json.js";
29
+ import { default as dr } from "./translations/en.json.js";
29
30
  export {
30
31
  t as ACCESS_LEVEL_ORDER,
31
32
  i as CONSULTATION_ERROR_CODES,
32
- O as ConsultationAdapterError,
33
- k as DelegatedTokenError,
33
+ G as ConsultationAdapterError,
34
+ K as DelegatedTokenError,
34
35
  n as KbGraphQLError,
35
- Ze as REVIEW_FIELD_ATTR,
36
- $e as REVIEW_IGNORE_ATTR,
37
- Ve as REVIEW_LAYER_SCRIPT_URL,
38
- be as REVIEW_PAGE_PATH,
39
- We as REVIEW_REASON_STATUS,
40
- er as REVIEW_ROOT_ATTR,
41
- Le as REVIEW_ROUTE_PATTERN,
42
- Ue as REVIEW_SESSION_ELEMENT_ID,
43
- le as buildArticleListItem,
44
- oe as buildArticleSeo,
45
- te as buildHomeSeo,
46
- ae as buildListPageSeo,
47
- J as buildThemeCssVars,
36
+ C as LAYER_SCOPE_TOKEN,
37
+ lr as REVIEW_FIELD_ATTR,
38
+ mr as REVIEW_IGNORE_ATTR,
39
+ Ye as REVIEW_LAYER_SCRIPT_URL,
40
+ De as REVIEW_PAGE_PATH,
41
+ Be as REVIEW_REASON_STATUS,
42
+ pr as REVIEW_ROOT_ATTR,
43
+ He as REVIEW_ROUTE_PATTERN,
44
+ Je as REVIEW_SESSION_ELEMENT_ID,
45
+ u as applyLayerScope,
46
+ ve as buildArticleListItem,
47
+ fe as buildArticleSeo,
48
+ Re as buildHomeSeo,
49
+ ce as buildListPageSeo,
50
+ ae as buildThemeCssVars,
48
51
  p as commentErrorCode,
49
- f as commentErrorMessageKey,
50
- ue as componentMetadata,
51
- C as createAuthManager,
52
- W as createConsultationAdapterClient,
53
- M as createDelegatedTokenMinter,
52
+ E as commentErrorMessageKey,
53
+ Oe as componentMetadata,
54
+ k as createAuthManager,
55
+ B as createConsultationAdapterClient,
56
+ U as createDelegatedTokenMinter,
54
57
  R as createKbClient,
55
- xe as createKbI18n,
56
- I as createLocalStorageTokenStorage,
57
- K as createMarkedInstance,
58
- w as createMemoryTokenStorage,
59
- De as createReviewClient,
60
- Ye as createReviewPlan,
61
- tr as csTranslations,
62
- Y as darkenColor,
63
- b as decodeJwtUser,
64
- B as deepMerge,
65
- F as defaultImageHtml,
66
- ir as enTranslations,
67
- Ae as extractTitleHeading,
68
- x as findNavNode,
69
- T as flattenNav,
70
- pe as formatArticleDate,
71
- Me as formatReviewForAgent,
72
- he as formatReviewRound,
73
- P as generateDescription,
74
- Ce as getComponentMetadata,
75
- Ie as getComponentNames,
76
- He as getReviewSession,
77
- L as hasAccessLevel,
78
- j as hexToHsl,
79
- X as hexToRgb,
80
- Z as hslToRgb,
81
- Se as inlineMarkdownToPlainText,
82
- D as isConsultationAdapterError,
58
+ ue as createKbI18n,
59
+ P as createLocalStorageTokenStorage,
60
+ j as createMarkedInstance,
61
+ W as createMemoryTokenStorage,
62
+ qe as createReviewClient,
63
+ ir as createReviewPlan,
64
+ Rr as csTranslations,
65
+ ie as darkenColor,
66
+ D as decodeJwtUser,
67
+ ee as deepMerge,
68
+ X as defaultImageHtml,
69
+ dr as enTranslations,
70
+ Ne as extractTitleHeading,
71
+ d as findNavNode,
72
+ x as flattenNav,
73
+ ge as formatArticleDate,
74
+ Ue as formatReviewForAgent,
75
+ Fe as formatReviewRound,
76
+ Q as generateDescription,
77
+ ke as getComponentMetadata,
78
+ Pe as getComponentNames,
79
+ ze as getReviewSession,
80
+ H as hasAccessLevel,
81
+ ne as hexToHsl,
82
+ se as hexToRgb,
83
+ le as hslToRgb,
84
+ he as inlineMarkdownToPlainText,
85
+ q as isConsultationAdapterError,
83
86
  s as isConsultationErrorCode,
84
- m as isKbGraphQLError,
85
- c as isNavigable,
86
- Ne as isReviewTokenFormat,
87
- $ as lightenColor,
88
- ie as localizedHref,
89
- fe as lockedRequiredAccess,
90
- Te as mergeTranslations,
91
- v as navBreadcrumbs,
92
- g as navNextPrev,
93
- A as navSiblings,
94
- S as navSubtree,
87
+ l as isKbGraphQLError,
88
+ T as isNavigable,
89
+ Ve as isReviewTokenFormat,
90
+ I as layerMatches,
91
+ w as layerScope,
92
+ b as layerStyleText,
93
+ me as lightenColor,
94
+ de as localizedHref,
95
+ Ae as lockedRequiredAccess,
96
+ y as matchLayers,
97
+ N as mergePinnedLayers,
98
+ Ie as mergeTranslations,
99
+ S as navBreadcrumbs,
100
+ v as navNextPrev,
101
+ g as navSiblings,
102
+ A as navSubtree,
95
103
  _ as navWalk,
96
- je as normalizeReviewText,
97
- ne as pageUrl,
98
- G as parseMarkdownSafe,
99
- ve as prepareProps,
104
+ nr as normalizeReviewText,
105
+ xe as pageUrl,
106
+ Z as parseMarkdownSafe,
107
+ h as parseStyleLayers,
108
+ be as prepareProps,
100
109
  e as queries,
101
- Ke as renderReviewStatusHtml,
102
- Ee as resolveArticleAccessLevel,
103
- z as retryWithBackoff,
104
- Fe as reviewBootstrapHtml,
105
- Ge as reviewContentWithMedia,
106
- ye as reviewFieldAttrs,
107
- Be as reviewIgnoreAttrs,
108
- qe as reviewResponseHeaders,
109
- ze as reviewRootAttrs,
110
- Qe as reviewStatusText,
111
- ee as rgbTriplet,
112
- rr as stampReviewDom,
113
- V as stripLeadingH1,
114
- se as stripLocalePrefix,
115
- Re as toIsoDate
110
+ je as renderReviewStatusHtml,
111
+ _e as resolveArticleAccessLevel,
112
+ oe as retryWithBackoff,
113
+ Xe as reviewBootstrapHtml,
114
+ Ze as reviewContentWithMedia,
115
+ $e as reviewFieldAttrs,
116
+ er as reviewIgnoreAttrs,
117
+ rr as reviewResponseHeaders,
118
+ or as reviewRootAttrs,
119
+ tr as reviewStatusText,
120
+ pe as rgbTriplet,
121
+ M as sortStyleLayers,
122
+ Er as stampReviewDom,
123
+ Y as stripLeadingH1,
124
+ Te as stripLocalePrefix,
125
+ Le as toIsoDate
116
126
  };
@@ -18,6 +18,7 @@ export declare const ARTICLE_VERSION = "\n query ArticleVersion($versionId: ID!
18
18
  export declare const SEARCH_KNOWLEDGE_BASE = "\n query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {\n searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {\n articleId\n filename\n title\n chunkText\n similarity\n }\n }\n";
19
19
  export declare const GET_KB_CONTEXT = "\n query GetKBContext($query: String!, $maxChunks: Int) {\n getKBContext(query: $query, maxChunks: $maxChunks) {\n chunks {\n filename\n title\n text\n similarity\n }\n totalChunks\n }\n }\n";
20
20
  export declare const KB_NAVIGATION = "\n query KbNavigation($scope: String, $locale: String) {\n kbNavigation(scope: $scope, locale: $locale)\n }\n";
21
+ export declare const KB_STYLE_LAYERS = "\n query KbStyleLayers {\n kbStyleLayers\n }\n";
21
22
  export declare const ACCESSIBLE_TAGS = "\n query AccessibleTags {\n accessibleKbTags {\n tags {\n id\n slug\n name\n description\n color\n }\n totalCount\n }\n }\n";
22
23
  export declare const LOCALIZED_TAGS = "\n query LocalizedTags($languageCode: String!) {\n localizedTags(languageCode: $languageCode) {\n id\n name\n slug\n description\n color\n accessLevel\n languageCode\n isFallback\n }\n }\n";
23
24
  export declare const KB_LANGUAGES = "\n query KBLanguages {\n kbLanguages {\n id\n code\n name\n nativeName\n isSource\n isEnabled\n sortOrder\n }\n }\n";