@rippling/pebble-sdui-web 0.14.0 → 0.15.1

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 (46) hide show
  1. package/dist/catalogs/custom-apps/catalog.d.ts +3 -1
  2. package/dist/catalogs/custom-apps/component-props.d.ts +2 -0
  3. package/dist/catalogs/custom-apps/components.d.ts +2 -2
  4. package/dist/catalogs/custom-apps/index.cjs +2 -2
  5. package/dist/catalogs/custom-apps/index.cjs.map +1 -1
  6. package/dist/catalogs/custom-apps/index.d.ts +1 -1
  7. package/dist/catalogs/custom-apps/index.js +284 -252
  8. package/dist/catalogs/custom-apps/index.js.map +1 -1
  9. package/dist/catalogs/hub_platform/catalog.d.ts +2 -0
  10. package/dist/catalogs/hub_platform/index.cjs +1 -1
  11. package/dist/catalogs/hub_platform/index.cjs.map +1 -1
  12. package/dist/catalogs/hub_platform/index.d.ts +1 -1
  13. package/dist/catalogs/hub_platform/index.js +83 -58
  14. package/dist/catalogs/hub_platform/index.js.map +1 -1
  15. package/dist/core/component-markdown.cjs +19 -0
  16. package/dist/core/component-markdown.cjs.map +1 -0
  17. package/dist/core/component-markdown.d.ts +8 -0
  18. package/dist/core/component-markdown.js +58 -0
  19. package/dist/core/component-markdown.js.map +1 -0
  20. package/dist/docs/typescript/web/catalogs/custom-apps/components.md +9 -5
  21. package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +1 -1
  22. package/dist/sdk-docs.cjs +15 -3
  23. package/dist/sdk-docs.cjs.map +1 -1
  24. package/dist/sdk-docs.js +15 -3
  25. package/dist/sdk-docs.js.map +1 -1
  26. package/package.json +1 -6
  27. package/dist/catalogs/core/action-params.d.ts +0 -96
  28. package/dist/catalogs/core/actions.d.ts +0 -21
  29. package/dist/catalogs/core/catalog.d.ts +0 -33
  30. package/dist/catalogs/core/component-events.d.ts +0 -193
  31. package/dist/catalogs/core/component-props.d.ts +0 -5312
  32. package/dist/catalogs/core/components.d.ts +0 -194
  33. package/dist/catalogs/core/function-params.d.ts +0 -5
  34. package/dist/catalogs/core/functions.d.ts +0 -5
  35. package/dist/catalogs/core/index.cjs +0 -137
  36. package/dist/catalogs/core/index.cjs.map +0 -1
  37. package/dist/catalogs/core/index.d.ts +0 -13
  38. package/dist/catalogs/core/index.js +0 -31848
  39. package/dist/catalogs/core/index.js.map +0 -1
  40. package/dist/catalogs/core/render.d.ts +0 -20
  41. package/dist/docs/typescript/web/catalogs/core/actions.md +0 -645
  42. package/dist/docs/typescript/web/catalogs/core/components.md +0 -6580
  43. package/dist/docs/typescript/web/catalogs/core/computed-functions.md +0 -6
  44. package/dist/docs/typescript/web/catalogs/core/definitions.md +0 -4431
  45. package/dist/docs/typescript/web/catalogs/core/readme.md +0 -16
  46. package/dist/docs/typescript/web/catalogs/core/types.md +0 -4833
@@ -1,8 +1,9 @@
1
1
  import { buildNode as u } from "../../core/component-utils.js";
2
- import { _ as I } from "../../2020-PBERvPzO.js";
3
- import { createCatalogSchemaValidator as w } from "../../core/catalog-validation.js";
2
+ import { _ as P } from "../../2020-PBERvPzO.js";
3
+ import { createCatalogSchemaValidator as I } from "../../core/catalog-validation.js";
4
+ import { renderComponentMarkdown as O } from "../../core/component-markdown.js";
4
5
  import { renderElementTree as j } from "../../core/spec.js";
5
- const D = (e) => u("SuperGroupEditor", e), q = (e) => u("SuperGroupGridRenderer", e), U = (e) => u("SuperGroupMembersViewer", e), k = (e) => u("SuperGroupPreviewV2", e), M = (e) => u("SuperGroupStateProvider", e), G = "hub_platform", O = "1.0.0", s = {
6
+ const U = (e) => u("SuperGroupEditor", e), M = (e) => u("SuperGroupGridRenderer", e), $ = (e) => u("SuperGroupMembersViewer", e), J = (e) => u("SuperGroupPreviewV2", e), W = (e) => u("SuperGroupStateProvider", e), G = "hub_platform", N = "1.0.0", o = {
6
7
  SuperGroupEditor: {
7
8
  description: "Managed editable SuperGroup editor. Use this when SDUI needs to create, edit, save, reset, or extract a SuperGroup without passing React refs or callback props.",
8
9
  events: [
@@ -896,16 +897,16 @@ const D = (e) => u("SuperGroupEditor", e), q = (e) => u("SuperGroupGridRenderer"
896
897
  },
897
898
  acceptsChildren: !0
898
899
  }
899
- }, c = {}, l = {}, N = {}, f = {};
900
- function J() {
900
+ }, c = {}, l = {}, A = {}, f = {};
901
+ function _() {
901
902
  return Object.fromEntries(
902
- Object.entries(s).map(([e, t]) => [
903
+ Object.entries(o).map(([e, t]) => [
903
904
  e,
904
905
  String(t.description ?? "")
905
906
  ])
906
907
  );
907
908
  }
908
- function $() {
909
+ function L() {
909
910
  return Object.fromEntries(
910
911
  Object.entries(c).map(([e, t]) => [
911
912
  e,
@@ -913,7 +914,7 @@ function $() {
913
914
  ])
914
915
  );
915
916
  }
916
- function W() {
917
+ function V() {
917
918
  return Object.fromEntries(
918
919
  Object.entries(l).map(([e, t]) => [
919
920
  e,
@@ -921,116 +922,140 @@ function W() {
921
922
  ])
922
923
  );
923
924
  }
924
- function _() {
925
+ function z() {
925
926
  return l;
926
927
  }
927
- function V() {
928
+ function F() {
928
929
  return f;
929
930
  }
930
- function L(e) {
931
- if (!(e in s))
931
+ function B(e) {
932
+ if (!Object.hasOwn(o, e))
932
933
  throw new Error(
933
- `Unknown component '${e}'. Available: ${Object.keys(s).join(", ")}`
934
+ `Unknown component '${e}'. Available: ${Object.keys(o).join(", ")}`
934
935
  );
935
- const t = { ...s[e] };
936
+ const t = { ...o[e] };
936
937
  return delete t.example, t;
937
938
  }
938
- function z(e) {
939
+ const C = [
940
+ { field: "category", title: "Categories" },
941
+ { field: "keywords", title: "Keywords" },
942
+ { field: "anatomy", title: "Anatomy" },
943
+ { field: "guidance", title: "Guidance" },
944
+ { field: "antiPatterns", title: "Anti-patterns" },
945
+ { field: "aiGuardrails", title: "AI guardrails" },
946
+ { field: "propGuidance", title: "Prop guidance" },
947
+ { field: "selection", title: "Component selection" },
948
+ { field: "relatedComponents", title: "Related components" },
949
+ { field: "subComponents", title: "Sub-components" }
950
+ ];
951
+ function K(e) {
952
+ if (!Object.hasOwn(o, e))
953
+ throw new Error(
954
+ `Unknown component '${e}'. Available: ${Object.keys(o).join(", ")}`
955
+ );
956
+ return O(
957
+ e,
958
+ o[e],
959
+ C
960
+ );
961
+ }
962
+ function H(e) {
939
963
  if (!(e in c))
940
964
  throw new Error(
941
965
  `Unknown action '${e}'. Available: ${Object.keys(c).join(", ")}`
942
966
  );
943
967
  return c[e];
944
968
  }
945
- function F(e) {
969
+ function X(e) {
946
970
  if (!(e in l))
947
971
  throw new Error(
948
972
  `Unknown function '${e}'. Available: ${Object.keys(l).join(", ")}`
949
973
  );
950
974
  return l[e];
951
975
  }
952
- function A(e) {
976
+ function R(e) {
953
977
  return e ? e.slice(1).split("/").map((t) => t.replace(/~1/g, "/").replace(/~0/g, "~")).join(".") : "(root)";
954
978
  }
955
979
  function b(e, t) {
956
- const a = new I.Ajv2020({ allErrors: !0, strict: !1 });
980
+ const a = new P.Ajv2020({ allErrors: !0, strict: !1 });
957
981
  a.removeKeyword("id");
958
- const i = a.compile(e);
959
- if (i(t)) return [];
960
- const o = i.errors ?? [], p = new Set(
961
- o.filter((r) => r.keyword === "anyOf").map((r) => r.instancePath)
982
+ const n = a.compile(e);
983
+ if (n(t)) return [];
984
+ const i = n.errors ?? [], p = new Set(
985
+ i.filter((r) => r.keyword === "anyOf").map((r) => r.instancePath)
962
986
  );
963
- return o.filter(
987
+ return i.filter(
964
988
  (r) => r.keyword === "anyOf" || !(r.schemaPath.includes("/anyOf/") && p.has(r.instancePath))
965
989
  ).map((r) => {
966
- const n = A(r.instancePath);
967
- return r.keyword === "anyOf" ? `props ${n}: must match the declared schema or a reactive reference` : `props ${n}: ${r.message ?? "failed schema validation"}`;
990
+ const s = R(r.instancePath);
991
+ return r.keyword === "anyOf" ? `props ${s}: must match the declared schema or a reactive reference` : `props ${s}: ${r.message ?? "failed schema validation"}`;
968
992
  });
969
993
  }
970
- const g = w({
994
+ const g = I({
971
995
  defs: f,
972
- directives: N,
996
+ directives: A,
973
997
  supportsStandardDirectives: !0,
974
998
  validateSchema: b
975
999
  });
976
- function B(e) {
977
- const t = [], a = e.elements ?? {}, i = e.root;
978
- i && !(i in a) && t.push(`Root element '${i}' not found in elements map`);
979
- for (const [o, p] of Object.entries(a)) {
1000
+ function Q(e) {
1001
+ const t = [], a = e.elements ?? {}, n = e.root;
1002
+ n && !(n in a) && t.push(`Root element '${n}' not found in elements map`);
1003
+ for (const [i, p] of Object.entries(a)) {
980
1004
  const r = p.type ?? "";
981
- if (!(r in s)) {
982
- t.push(`Element '${o}': unknown type '${r}'`);
1005
+ if (!(r in o)) {
1006
+ t.push(`Element '${i}': unknown type '${r}'`);
983
1007
  continue;
984
1008
  }
985
- const n = s[r], h = n.propsSchema;
1009
+ const s = o[r], h = s.propsSchema;
986
1010
  if (h) {
987
1011
  const d = p.props ?? {};
988
1012
  for (const y of b(
989
1013
  g.preparePropsSchema(h),
990
1014
  d
991
1015
  ))
992
- t.push(`Element '${o}': ${y}`);
1016
+ t.push(`Element '${i}': ${y}`);
993
1017
  for (const [y, v] of Object.entries(d))
994
- for (const P of g.nestedDirectiveErrors(
1018
+ for (const w of g.nestedDirectiveErrors(
995
1019
  v,
996
1020
  y
997
1021
  ))
998
- t.push(`Element '${o}': ${P}`);
1022
+ t.push(`Element '${i}': ${w}`);
999
1023
  }
1000
- const S = p.on ?? {}, m = n.events ?? [];
1024
+ const S = p.on ?? {}, m = s.events ?? [];
1001
1025
  for (const d of Object.keys(S))
1002
1026
  m.includes(d) || t.push(
1003
- `Element '${o}': unknown event '${d}'. Valid: ${m.join(", ")}`
1027
+ `Element '${i}': unknown event '${d}'. Valid: ${m.join(", ")}`
1004
1028
  );
1005
- (p.children ?? []).length > 0 && !n.acceptsChildren && t.push(`Element '${o}': '${r}' does not accept children`);
1029
+ (p.children ?? []).length > 0 && !s.acceptsChildren && t.push(`Element '${i}': '${r}' does not accept children`);
1006
1030
  }
1007
1031
  return t;
1008
1032
  }
1009
- function H(e) {
1033
+ function Y(e) {
1010
1034
  return {
1011
1035
  ...j(e.root, e.state),
1012
1036
  platform: "web",
1013
1037
  catalog: G,
1014
- catalogVersion: O
1038
+ catalogVersion: N
1015
1039
  };
1016
1040
  }
1017
1041
  export {
1018
1042
  G as CATALOG_NAME,
1019
- O as CATALOG_VERSION,
1020
- D as SuperGroupEditor,
1021
- q as SuperGroupGridRenderer,
1022
- U as SuperGroupMembersViewer,
1023
- k as SuperGroupPreviewV2,
1024
- M as SuperGroupStateProvider,
1025
- z as getAction,
1026
- $ as getActions,
1027
- L as getComponent,
1028
- J as getComponents,
1029
- _ as getComputedFunctions,
1030
- V as getDefs,
1031
- F as getFunction,
1032
- W as getFunctions,
1033
- H as render,
1034
- B as validate
1043
+ N as CATALOG_VERSION,
1044
+ U as SuperGroupEditor,
1045
+ M as SuperGroupGridRenderer,
1046
+ $ as SuperGroupMembersViewer,
1047
+ J as SuperGroupPreviewV2,
1048
+ W as SuperGroupStateProvider,
1049
+ H as getAction,
1050
+ L as getActions,
1051
+ B as getComponent,
1052
+ K as getComponentMarkdown,
1053
+ _ as getComponents,
1054
+ z as getComputedFunctions,
1055
+ F as getDefs,
1056
+ X as getFunction,
1057
+ V as getFunctions,
1058
+ Y as render,
1059
+ Q as validate
1035
1060
  };
1036
1061
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/catalogs/hub_platform/components.ts","../../../src/catalogs/hub_platform/catalog.ts","../../../src/catalogs/hub_platform/render.ts"],"sourcesContent":["/**\n * Generated component builders for hub_platform.\n *\n * Auto-generated from catalogs/hub_platform.catalog.json — do not edit.\n */\n\nimport type { ComponentInputs } from '#core/component-utils';\nimport { buildNode } from '#core/component-utils';\nimport type { ElementNode } from '#core/elements';\nimport type {\n SuperGroupEditorProps,\n SuperGroupGridRendererProps,\n SuperGroupMembersViewerProps,\n SuperGroupPreviewV2Props,\n SuperGroupStateProviderProps,\n} from './component-props';\nimport type {\n SuperGroupEditorEvents,\n SuperGroupGridRendererEvents,\n SuperGroupMembersViewerEvents,\n SuperGroupPreviewV2Events,\n SuperGroupStateProviderEvents,\n} from './component-events';\n\ntype CatalogElementNode = ElementNode<'web', 'hub_platform'>;\n\nexport const SuperGroupEditor = (\n input: ComponentInputs<SuperGroupEditorProps, SuperGroupEditorEvents>\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupEditor', input);\n\nexport const SuperGroupGridRenderer = (\n input: ComponentInputs<\n SuperGroupGridRendererProps,\n SuperGroupGridRendererEvents\n >\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupGridRenderer', input);\n\nexport const SuperGroupMembersViewer = (\n input: ComponentInputs<\n SuperGroupMembersViewerProps,\n SuperGroupMembersViewerEvents\n >\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupMembersViewer', input);\n\nexport const SuperGroupPreviewV2 = (\n input: ComponentInputs<SuperGroupPreviewV2Props, SuperGroupPreviewV2Events>\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupPreviewV2', input);\n\nexport const SuperGroupStateProvider = (\n input: ComponentInputs<\n SuperGroupStateProviderProps,\n SuperGroupStateProviderEvents,\n true\n >\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupStateProvider', input);\n","/**\n * Catalog introspection utilities for hub_platform.\n *\n * Auto-generated from catalogs/hub_platform.catalog.json — do not edit.\n *\n * Provides runtime access to the raw catalog schema: component definitions,\n * action definitions, directive definitions, and spec validation.\n */\n\nimport { Ajv2020, type ErrorObject } from 'ajv/dist/2020';\nimport {\n createCatalogSchemaValidator,\n type JsonSchema,\n} from '../../core/catalog-validation';\n\nexport const CATALOG_NAME = 'hub_platform';\nexport const CATALOG_VERSION = '1.0.0';\n\n// ---------------------------------------------------------------------------\n// Raw catalog data — embedded verbatim from the catalog JSON\n// ---------------------------------------------------------------------------\n\nconst _COMPONENTS: Record<string, Record<string, unknown>> = {\n SuperGroupEditor: {\n description:\n 'Managed editable SuperGroup editor. Use this when SDUI needs to create, edit, save, reset, or extract a SuperGroup without passing React refs or callback props.',\n events: [\n 'load',\n 'change',\n 'validationChange',\n 'editToggle',\n 'saveStart',\n 'saveSuccess',\n 'saveError',\n 'cancel',\n 'roleStateChange',\n 'scopeFilterChange',\n 'timeBasedConfigChange',\n ],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n canEditRoleStatesApplied: {\n type: 'boolean',\n },\n canSelectAll: {\n description:\n 'When true, enables select-all support where SuperGroup supports it.',\n type: 'boolean',\n },\n command: {\n additionalProperties: {},\n properties: {\n createIfMissing: {\n type: 'boolean',\n },\n errorPath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n includeRoleStates: {\n type: 'boolean',\n },\n mode: {\n enum: ['read', 'edit'],\n type: 'string',\n },\n refreshMembers: {\n type: 'boolean',\n },\n requestId: {\n type: 'string',\n },\n responsePath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n retainFocus: {\n type: 'boolean',\n },\n skipMembershipUpdateNotification: {\n type: 'boolean',\n },\n type: {\n enum: ['save', 'extractDraft', 'reset', 'setMode'],\n type: 'string',\n },\n },\n required: ['type', 'requestId'],\n type: 'object',\n },\n commandPath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n createPolicy: {\n description:\n 'Declarative create config used for lazy group creation.',\n oneOf: [\n {\n additionalProperties: {},\n properties: {\n groupName: {\n type: 'string',\n },\n groupType: {\n type: 'string',\n },\n kind: {\n const: 'role',\n type: 'string',\n },\n overRideRoleStates: {\n items: {\n type: 'string',\n },\n type: 'array',\n },\n parent: {\n type: 'string',\n },\n provisionRoleState: {\n type: 'string',\n },\n spokeId: {\n type: 'string',\n },\n subGroupType: {\n type: 'string',\n },\n },\n required: ['kind', 'groupName'],\n type: 'object',\n },\n {\n additionalProperties: {},\n properties: {\n controllerKey: {\n type: 'string',\n },\n family: {\n type: 'string',\n },\n kind: {\n const: 'nonRole',\n type: 'string',\n },\n parent: {\n type: 'string',\n },\n referenceId: {\n type: 'string',\n },\n },\n required: ['kind', 'family'],\n type: 'object',\n },\n ],\n },\n defaultEditable: {\n description: 'When true, the editor starts in edit mode.',\n type: 'boolean',\n },\n defaultRoleStates: {\n items: {\n type: 'string',\n },\n type: 'array',\n },\n defaultSelectedDateTimeConfig: {\n additionalProperties: {},\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n defaultSelectedScheduleEffectiveDateValue: {\n type: 'string',\n },\n dropdownPanelMaxHeight: {\n description: 'Maximum dropdown panel height in pixels.',\n type: 'number',\n },\n editorPlaceholder: {\n additionalProperties: {\n type: 'string',\n },\n description: 'Editor placeholders keyed by INCLUSION and EXCLUSION.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n editorTitle: {\n additionalProperties: {\n type: 'string',\n },\n description: 'Editor title labels keyed by INCLUSION and EXCLUSION.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n errorPath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupDetailsConfig: {\n additionalProperties: {},\n description: 'JSON-safe group details configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n initialGroup: {\n additionalProperties: {},\n description:\n 'Initial serialized group used before a backend group exists.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n isDisabled: {\n description: 'Disables editing controls.',\n type: 'boolean',\n },\n isEntityScopeSupported: {\n type: 'boolean',\n },\n isScheduleGroupChangesSupported: {\n type: 'boolean',\n },\n isTimeBasedConfigurationSupported: {\n type: 'boolean',\n },\n minSearchLength: {\n description:\n 'Minimum characters required before SuperGroup search runs.',\n type: 'number',\n },\n mode: {\n description:\n 'Controlled initial mode. Defaults to edit when defaultEditable is true.',\n enum: ['read', 'edit'],\n type: 'string',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n refreshMembers: {\n description:\n 'Alias for shouldShowRefreshMembersAction. Command-level refreshMembers controls live member refresh during save.',\n type: 'boolean',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n responsePath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n ruleOptions: {\n additionalProperties: {},\n description: 'JSON-safe SuperGroup rule option configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n saveMode: {\n description:\n 'self renders SuperGroup actions; external expects parent-issued commands.',\n enum: ['self', 'external'],\n type: 'string',\n },\n scheduleEffectiveDateOptions: {\n items: {},\n type: 'array',\n },\n shouldHideEditorTitle: {\n description: 'When true, hides inclusion/exclusion editor titles.',\n type: 'boolean',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldRefreshGroupMembersLive: {\n type: 'boolean',\n },\n shouldShowActions: {\n description: 'When false, hides built-in save and cancel actions.',\n type: 'boolean',\n },\n shouldShowExclusions: {\n description: 'When false, hides exclusion rule editing.',\n type: 'boolean',\n },\n shouldShowImportRolesOption: {\n type: 'boolean',\n },\n shouldShowRefreshMembersAction: {\n description:\n 'When true, exposes the manual refresh-members action for role groups.',\n type: 'boolean',\n },\n shouldShowRoleStateConfiguration: {\n type: 'boolean',\n },\n shouldSkipMembershipUpdateNotification: {\n type: 'boolean',\n },\n statePaths: {\n additionalProperties: false,\n description:\n 'Optional state paths the wrapper writes as editor state changes.',\n properties: {\n draftGroup: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n errors: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n groupId: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isBusy: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isCreating: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isDirty: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isLoading: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isResetting: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isSaving: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isValidating: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n lastChangeSource: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n lastSavedAt: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n savedGroup: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n serverErrors: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n validation: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n },\n type: 'object',\n },\n timeBasedConfigurationOptions: {\n items: {},\n type: 'array',\n },\n validations: {\n additionalProperties: {},\n description: 'JSON-safe built-in validation configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n },\n required: ['appName', 'saveMode'],\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupGridRenderer: {\n description:\n 'Compact read-only SuperGroup renderer for table and grid cells.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n emptyPlaceholder: {\n description: 'Text displayed when the group has no members.',\n type: 'string',\n },\n emptyText: {\n description: 'Alias for emptyPlaceholder. Text displayed when empty.',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n includedRoleTypes: {\n description: 'Role type filters applied to the preview result.',\n items: {\n type: 'string',\n },\n type: 'array',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n previewRulesLimit: {\n description: 'Maximum number of rules shown before truncation.',\n type: 'number',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n ruleOptions: {\n additionalProperties: {},\n description: 'JSON-safe SuperGroup rule option configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldIncludeThirdPartyAdmins: {\n description:\n 'When true, includes third-party admins in member previews.',\n type: 'boolean',\n },\n shouldShowExclusions: {\n description: 'When true, renders excluded-member rules.',\n type: 'boolean',\n },\n shouldShowTitle: {\n description: 'When true, renders the preview title.',\n type: 'boolean',\n },\n showPreviewMembersInTooltip: {\n description:\n 'When true, shows preview members inside the grid-cell tooltip.',\n type: 'boolean',\n },\n skipThrottling: {\n description: 'When true, skips SuperGroup mount throttling.',\n type: 'boolean',\n },\n },\n required: ['appName'],\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupMembersViewer: {\n description:\n 'Read-only SuperGroup members viewer for detail pages and summaries.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n gridTitle: {\n description: 'Title for the members grid.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup whose members should be rendered.',\n type: 'string',\n },\n groupMembersDrawerCaption: {\n description: 'Caption text for the members drawer.',\n type: 'string',\n },\n groupMembersDrawerTitle: {\n description: 'Title for the members drawer.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n isPreview: {\n description: 'When true, renders in preview mode.',\n type: 'boolean',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldShowRefreshMembersAction: {\n description: 'When true, exposes the refresh-members action.',\n type: 'boolean',\n },\n theme: {\n description:\n 'Inline member display mode. Omit for the full member view.',\n enum: ['INLINE_TEXT', 'INLINE_COUNT'],\n type: 'string',\n },\n },\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupPreviewV2: {\n description:\n 'Read-only SuperGroup rule preview. Use this to show membership rules for an existing group without exposing editing controls.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n emptyPlaceholder: {\n description: 'Text displayed when the group has no members.',\n type: 'string',\n },\n emptyText: {\n description: 'Alias for emptyPlaceholder. Text displayed when empty.',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n includedRoleTypes: {\n description: 'Role type filters applied to the preview result.',\n items: {\n type: 'string',\n },\n type: 'array',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n previewRulesLimit: {\n description: 'Maximum number of rules shown before truncation.',\n type: 'number',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n ruleOptions: {\n additionalProperties: {},\n description: 'JSON-safe SuperGroup rule option configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldIncludeThirdPartyAdmins: {\n description:\n 'When true, includes third-party admins in member previews.',\n type: 'boolean',\n },\n shouldShowExclusions: {\n description: 'When true, renders excluded-member rules.',\n type: 'boolean',\n },\n shouldShowTitle: {\n description: 'When true, renders the preview title.',\n type: 'boolean',\n },\n skipThrottling: {\n description: 'When true, skips SuperGroup mount throttling.',\n type: 'boolean',\n },\n },\n required: ['appName'],\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupStateProvider: {\n description:\n 'Provider that shares SuperGroup secondary data across nested read-only SuperGroup renderers.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n },\n required: ['appName'],\n type: 'object',\n },\n acceptsChildren: true,\n },\n};\nconst _ACTIONS: Record<string, Record<string, unknown>> = {};\nconst _FUNCTIONS: Record<string, Record<string, unknown>> = {};\nconst _DIRECTIVES: Record<string, Record<string, unknown>> = {};\nconst _DEFS: Record<string, Record<string, unknown>> = {};\n\n// ---------------------------------------------------------------------------\n// Public introspection API\n// ---------------------------------------------------------------------------\n\n/** Return component descriptions keyed by component name. */\nexport function getComponents(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(_COMPONENTS).map(([name, defn]) => [\n name,\n String(defn.description ?? ''),\n ])\n );\n}\n\n/** Return action descriptions keyed by action name. */\nexport function getActions(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(_ACTIONS).map(([name, defn]) => [\n name,\n String(defn.description ?? ''),\n ])\n );\n}\n\n/** Return computed function descriptions keyed by function name. */\nexport function getFunctions(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(_FUNCTIONS).map(([name, defn]) => [\n name,\n String(defn.description ?? ''),\n ])\n );\n}\n\n/** Return full computed function definitions keyed by function name. */\nexport function getComputedFunctions(): Record<\n string,\n Record<string, unknown>\n> {\n return _FUNCTIONS;\n}\n\n/** Return reusable JSON Schema definitions keyed by definition name. */\nexport function getDefs(): Record<string, Record<string, unknown>> {\n return _DEFS;\n}\n\n/** Get the full JSON definition of a component by name. */\nexport function getComponent(name: string): Record<string, unknown> {\n if (!(name in _COMPONENTS)) {\n throw new Error(\n `Unknown component '${name}'. Available: ${Object.keys(_COMPONENTS).join(', ')}`\n );\n }\n const definition = { ..._COMPONENTS[name] };\n delete definition.example;\n return definition;\n}\n\n/** Get the full JSON definition of an action by name. */\nexport function getAction(name: string): Record<string, unknown> {\n if (!(name in _ACTIONS)) {\n throw new Error(\n `Unknown action '${name}'. Available: ${Object.keys(_ACTIONS).join(', ')}`\n );\n }\n return _ACTIONS[name];\n}\n\n/** Get the full JSON definition of a computed function by name. */\nexport function getFunction(name: string): Record<string, unknown> {\n if (!(name in _FUNCTIONS)) {\n throw new Error(\n `Unknown function '${name}'. Available: ${Object.keys(_FUNCTIONS).join(', ')}`\n );\n }\n return _FUNCTIONS[name];\n}\n\nfunction _formatJsonPointer(pointer: string): string {\n if (!pointer) return '(root)';\n return pointer\n .slice(1)\n .split('/')\n .map(part => part.replace(/~1/g, '/').replace(/~0/g, '~'))\n .join('.');\n}\n\nfunction _schemaErrors(\n schema: Record<string, unknown>,\n value: unknown\n): string[] {\n const ajv = new Ajv2020({ allErrors: true, strict: false });\n ajv.removeKeyword('id');\n const validateSchema = ajv.compile(schema);\n if (validateSchema(value)) return [];\n\n const validationErrors = validateSchema.errors ?? [];\n const anyOfPaths = new Set(\n validationErrors\n .filter((error: ErrorObject) => error.keyword === 'anyOf')\n .map((error: ErrorObject) => error.instancePath)\n );\n return validationErrors\n .filter(\n (error: ErrorObject) =>\n error.keyword === 'anyOf' ||\n !(\n error.schemaPath.includes('/anyOf/') &&\n anyOfPaths.has(error.instancePath)\n )\n )\n .map((error: ErrorObject) => {\n const path = _formatJsonPointer(error.instancePath);\n return error.keyword === 'anyOf'\n ? `props ${path}: must match the declared schema or a reactive reference`\n : `props ${path}: ${error.message ?? 'failed schema validation'}`;\n });\n}\n\nconst _catalogSchemaValidator = createCatalogSchemaValidator({\n defs: _DEFS,\n directives: _DIRECTIVES,\n supportsStandardDirectives: true,\n validateSchema: _schemaErrors,\n});\n\n/**\n * Validate a rendered spec against this catalog's schema.\n * Returns a list of error messages. Empty list means valid.\n */\nexport function validate(spec: { [key: string]: unknown }): string[] {\n const errors: string[] = [];\n const elements = (spec.elements ?? {}) as Record<\n string,\n Record<string, unknown>\n >;\n\n // Check root exists\n const rootId = spec.root as string | undefined;\n if (rootId && !(rootId in elements)) {\n errors.push(`Root element '${rootId}' not found in elements map`);\n }\n\n // Check each element\n for (const [elId, el] of Object.entries(elements)) {\n const elType = (el.type ?? '') as string;\n if (!(elType in _COMPONENTS)) {\n errors.push(`Element '${elId}': unknown type '${elType}'`);\n continue;\n }\n\n const defn = _COMPONENTS[elType];\n\n // Validate props against propsSchema\n const propsSchema = defn.propsSchema as JsonSchema | undefined;\n if (propsSchema) {\n const props = (el.props ?? {}) as Record<string, unknown>;\n for (const error of _schemaErrors(\n _catalogSchemaValidator.preparePropsSchema(propsSchema),\n props\n )) {\n errors.push(`Element '${elId}': ${error}`);\n }\n for (const [propName, value] of Object.entries(props)) {\n for (const error of _catalogSchemaValidator.nestedDirectiveErrors(\n value,\n propName\n )) {\n errors.push(`Element '${elId}': ${error}`);\n }\n }\n }\n\n // Valid event names\n const onHandlers = (el.on ?? {}) as Record<string, unknown>;\n const validEvents = (defn.events ?? []) as string[];\n for (const eventName of Object.keys(onHandlers)) {\n if (!validEvents.includes(eventName)) {\n errors.push(\n `Element '${elId}': unknown event '${eventName}'. Valid: ${validEvents.join(', ')}`\n );\n }\n }\n\n // Children on leaf components\n const children = (el.children ?? []) as unknown[];\n if (children.length > 0 && !(defn.acceptsChildren as boolean)) {\n errors.push(`Element '${elId}': '${elType}' does not accept children`);\n }\n }\n return errors;\n}\n","/**\n * Catalog-scoped render for hub_platform.\n *\n * Auto-generated from catalogs/hub_platform.catalog.json — do not edit.\n */\n\nimport type { ElementNode } from '#core/elements';\nimport type { CoreSpec } from '#core/spec';\nimport { renderElementTree } from '#core/spec';\nimport { CATALOG_NAME, CATALOG_VERSION } from './catalog';\n\nexport interface CatalogSpec extends CoreSpec {\n platform: 'web';\n catalog: string;\n catalogVersion: string;\n}\n\ntype CatalogElementNode = ElementNode<'web', 'hub_platform'>;\n\n/**\n * Render an element tree into a flat json-render spec tagged with\n * the hub_platform catalog name and version.\n *\n * This is the catalog-level render — consumers import this instead\n * of using createSpec().render() directly.\n */\nexport function render<TState extends object = Record<string, unknown>>(opts: {\n root: CatalogElementNode;\n state?: TState;\n}): CatalogSpec {\n const spec = renderElementTree(opts.root, opts.state);\n\n return {\n ...spec,\n platform: 'web',\n catalog: CATALOG_NAME,\n catalogVersion: CATALOG_VERSION,\n };\n}\n"],"names":["SuperGroupEditor","input","buildNode","SuperGroupGridRenderer","SuperGroupMembersViewer","SuperGroupPreviewV2","SuperGroupStateProvider","CATALOG_NAME","CATALOG_VERSION","_COMPONENTS","_ACTIONS","_FUNCTIONS","_DIRECTIVES","_DEFS","getComponents","name","defn","getActions","getFunctions","getComputedFunctions","getDefs","getComponent","definition","getAction","getFunction","_formatJsonPointer","pointer","part","_schemaErrors","schema","value","ajv","Ajv2020","validateSchema","validationErrors","anyOfPaths","error","path","_catalogSchemaValidator","createCatalogSchemaValidator","validate","spec","errors","elements","rootId","elId","el","elType","propsSchema","props","propName","onHandlers","validEvents","eventName","render","opts","renderElementTree"],"mappings":";;;;AA0BO,MAAMA,IAAmB,CAC9BC,MAEAC,EAAiC,oBAAoBD,CAAK,GAE/CE,IAAyB,CACpCF,MAKAC,EAAiC,0BAA0BD,CAAK,GAErDG,IAA0B,CACrCH,MAKAC,EAAiC,2BAA2BD,CAAK,GAEtDI,IAAsB,CACjCJ,MAEAC,EAAiC,uBAAuBD,CAAK,GAElDK,IAA0B,CACrCL,MAMAC,EAAiC,2BAA2BD,CAAK,GC5CtDM,IAAe,gBACfC,IAAkB,SAMzBC,IAAuD;AAAA,EAC3D,kBAAkB;AAAA,IAChB,aACE;AAAA,IACF,QAAQ;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF,aAAa;AAAA,MACX,SAAS;AAAA,MACT,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,SAAS;AAAA,UACP,aACE;AAAA,UACF,MAAM;AAAA,QAAA;AAAA,QAER,0BAA0B;AAAA,UACxB,MAAM;AAAA,QAAA;AAAA,QAER,cAAc;AAAA,UACZ,aACE;AAAA,UACF,MAAM;AAAA,QAAA;AAAA,QAER,SAAS;AAAA,UACP,sBAAsB,CAAA;AAAA,UACtB,YAAY;AAAA,YACV,iBAAiB;AAAA,cACf,MAAM;AAAA,YAAA;AAAA,YAER,WAAW;AAAA,cACT,aAAa;AAAA,cACb,SAAS;AAAA,cACT,MAAM;AAAA,YAAA;AAAA,YAER,OAAO;AAAA,cACL,sBAAsB,CAAA;AAAA,cACtB,eAAe;AAAA,gBACb,MAAM;AAAA,cAAA;AAAA,cAER,MAAM;AAAA,YAAA;AAAA,YAER,m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KAAK,YAAYG,CAAI,MAAMT,CAAK,EAAE;AAAA,IAG/C;AAGA,UAAMe,IAAcL,EAAG,MAAM,CAAA,GACvBM,IAAepC,EAAK,UAAU,CAAA;AACpC,eAAWqC,KAAa,OAAO,KAAKF,CAAU;AAC5C,MAAKC,EAAY,SAASC,CAAS,KACjCX,EAAO;AAAA,QACL,YAAYG,CAAI,qBAAqBQ,CAAS,aAAaD,EAAY,KAAK,IAAI,CAAC;AAAA,MAAA;AAOvF,KADkBN,EAAG,YAAY,CAAA,GACpB,SAAS,KAAK,CAAE9B,EAAK,mBAChC0B,EAAO,KAAK,YAAYG,CAAI,OAAOE,CAAM,4BAA4B;AAAA,EAEzE;AACA,SAAOL;AACT;AC9mCO,SAASY,EAAwDC,GAGxD;AAGd,SAAO;AAAA,IACL,GAHWC,EAAkBD,EAAK,MAAMA,EAAK,KAAK;AAAA,IAIlD,UAAU;AAAA,IACV,SAAShD;AAAA,IACT,gBAAgBC;AAAA,EAAA;AAEpB;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/catalogs/hub_platform/components.ts","../../../src/catalogs/hub_platform/catalog.ts","../../../src/catalogs/hub_platform/render.ts"],"sourcesContent":["/**\n * Generated component builders for hub_platform.\n *\n * Auto-generated from catalogs/hub_platform.catalog.json — do not edit.\n */\n\nimport type { ComponentInputs } from '#core/component-utils';\nimport { buildNode } from '#core/component-utils';\nimport type { ElementNode } from '#core/elements';\nimport type {\n SuperGroupEditorProps,\n SuperGroupGridRendererProps,\n SuperGroupMembersViewerProps,\n SuperGroupPreviewV2Props,\n SuperGroupStateProviderProps,\n} from './component-props';\nimport type {\n SuperGroupEditorEvents,\n SuperGroupGridRendererEvents,\n SuperGroupMembersViewerEvents,\n SuperGroupPreviewV2Events,\n SuperGroupStateProviderEvents,\n} from './component-events';\n\ntype CatalogElementNode = ElementNode<'web', 'hub_platform'>;\n\nexport const SuperGroupEditor = (\n input: ComponentInputs<SuperGroupEditorProps, SuperGroupEditorEvents>\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupEditor', input);\n\nexport const SuperGroupGridRenderer = (\n input: ComponentInputs<\n SuperGroupGridRendererProps,\n SuperGroupGridRendererEvents\n >\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupGridRenderer', input);\n\nexport const SuperGroupMembersViewer = (\n input: ComponentInputs<\n SuperGroupMembersViewerProps,\n SuperGroupMembersViewerEvents\n >\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupMembersViewer', input);\n\nexport const SuperGroupPreviewV2 = (\n input: ComponentInputs<SuperGroupPreviewV2Props, SuperGroupPreviewV2Events>\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupPreviewV2', input);\n\nexport const SuperGroupStateProvider = (\n input: ComponentInputs<\n SuperGroupStateProviderProps,\n SuperGroupStateProviderEvents,\n true\n >\n): CatalogElementNode =>\n buildNode<'web', 'hub_platform'>('SuperGroupStateProvider', input);\n","/**\n * Catalog introspection utilities for hub_platform.\n *\n * Auto-generated from catalogs/hub_platform.catalog.json — do not edit.\n *\n * Provides runtime access to the raw catalog schema: component definitions,\n * action definitions, directive definitions, and spec validation.\n */\n\nimport { Ajv2020, type ErrorObject } from 'ajv/dist/2020';\nimport {\n createCatalogSchemaValidator,\n type JsonSchema,\n} from '../../core/catalog-validation';\nimport { renderComponentMarkdown } from '../../core/component-markdown';\n\nexport const CATALOG_NAME = 'hub_platform';\nexport const CATALOG_VERSION = '1.0.0';\n\n// ---------------------------------------------------------------------------\n// Raw catalog data — embedded verbatim from the catalog JSON\n// ---------------------------------------------------------------------------\n\nconst _COMPONENTS: Record<string, Record<string, unknown>> = {\n SuperGroupEditor: {\n description:\n 'Managed editable SuperGroup editor. Use this when SDUI needs to create, edit, save, reset, or extract a SuperGroup without passing React refs or callback props.',\n events: [\n 'load',\n 'change',\n 'validationChange',\n 'editToggle',\n 'saveStart',\n 'saveSuccess',\n 'saveError',\n 'cancel',\n 'roleStateChange',\n 'scopeFilterChange',\n 'timeBasedConfigChange',\n ],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n canEditRoleStatesApplied: {\n type: 'boolean',\n },\n canSelectAll: {\n description:\n 'When true, enables select-all support where SuperGroup supports it.',\n type: 'boolean',\n },\n command: {\n additionalProperties: {},\n properties: {\n createIfMissing: {\n type: 'boolean',\n },\n errorPath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n includeRoleStates: {\n type: 'boolean',\n },\n mode: {\n enum: ['read', 'edit'],\n type: 'string',\n },\n refreshMembers: {\n type: 'boolean',\n },\n requestId: {\n type: 'string',\n },\n responsePath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n retainFocus: {\n type: 'boolean',\n },\n skipMembershipUpdateNotification: {\n type: 'boolean',\n },\n type: {\n enum: ['save', 'extractDraft', 'reset', 'setMode'],\n type: 'string',\n },\n },\n required: ['type', 'requestId'],\n type: 'object',\n },\n commandPath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n createPolicy: {\n description:\n 'Declarative create config used for lazy group creation.',\n oneOf: [\n {\n additionalProperties: {},\n properties: {\n groupName: {\n type: 'string',\n },\n groupType: {\n type: 'string',\n },\n kind: {\n const: 'role',\n type: 'string',\n },\n overRideRoleStates: {\n items: {\n type: 'string',\n },\n type: 'array',\n },\n parent: {\n type: 'string',\n },\n provisionRoleState: {\n type: 'string',\n },\n spokeId: {\n type: 'string',\n },\n subGroupType: {\n type: 'string',\n },\n },\n required: ['kind', 'groupName'],\n type: 'object',\n },\n {\n additionalProperties: {},\n properties: {\n controllerKey: {\n type: 'string',\n },\n family: {\n type: 'string',\n },\n kind: {\n const: 'nonRole',\n type: 'string',\n },\n parent: {\n type: 'string',\n },\n referenceId: {\n type: 'string',\n },\n },\n required: ['kind', 'family'],\n type: 'object',\n },\n ],\n },\n defaultEditable: {\n description: 'When true, the editor starts in edit mode.',\n type: 'boolean',\n },\n defaultRoleStates: {\n items: {\n type: 'string',\n },\n type: 'array',\n },\n defaultSelectedDateTimeConfig: {\n additionalProperties: {},\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n defaultSelectedScheduleEffectiveDateValue: {\n type: 'string',\n },\n dropdownPanelMaxHeight: {\n description: 'Maximum dropdown panel height in pixels.',\n type: 'number',\n },\n editorPlaceholder: {\n additionalProperties: {\n type: 'string',\n },\n description: 'Editor placeholders keyed by INCLUSION and EXCLUSION.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n editorTitle: {\n additionalProperties: {\n type: 'string',\n },\n description: 'Editor title labels keyed by INCLUSION and EXCLUSION.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n errorPath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupDetailsConfig: {\n additionalProperties: {},\n description: 'JSON-safe group details configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n initialGroup: {\n additionalProperties: {},\n description:\n 'Initial serialized group used before a backend group exists.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n isDisabled: {\n description: 'Disables editing controls.',\n type: 'boolean',\n },\n isEntityScopeSupported: {\n type: 'boolean',\n },\n isScheduleGroupChangesSupported: {\n type: 'boolean',\n },\n isTimeBasedConfigurationSupported: {\n type: 'boolean',\n },\n minSearchLength: {\n description:\n 'Minimum characters required before SuperGroup search runs.',\n type: 'number',\n },\n mode: {\n description:\n 'Controlled initial mode. Defaults to edit when defaultEditable is true.',\n enum: ['read', 'edit'],\n type: 'string',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n refreshMembers: {\n description:\n 'Alias for shouldShowRefreshMembersAction. Command-level refreshMembers controls live member refresh during save.',\n type: 'boolean',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n responsePath: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n ruleOptions: {\n additionalProperties: {},\n description: 'JSON-safe SuperGroup rule option configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n saveMode: {\n description:\n 'self renders SuperGroup actions; external expects parent-issued commands.',\n enum: ['self', 'external'],\n type: 'string',\n },\n scheduleEffectiveDateOptions: {\n items: {},\n type: 'array',\n },\n shouldHideEditorTitle: {\n description: 'When true, hides inclusion/exclusion editor titles.',\n type: 'boolean',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldRefreshGroupMembersLive: {\n type: 'boolean',\n },\n shouldShowActions: {\n description: 'When false, hides built-in save and cancel actions.',\n type: 'boolean',\n },\n shouldShowExclusions: {\n description: 'When false, hides exclusion rule editing.',\n type: 'boolean',\n },\n shouldShowImportRolesOption: {\n type: 'boolean',\n },\n shouldShowRefreshMembersAction: {\n description:\n 'When true, exposes the manual refresh-members action for role groups.',\n type: 'boolean',\n },\n shouldShowRoleStateConfiguration: {\n type: 'boolean',\n },\n shouldSkipMembershipUpdateNotification: {\n type: 'boolean',\n },\n statePaths: {\n additionalProperties: false,\n description:\n 'Optional state paths the wrapper writes as editor state changes.',\n properties: {\n draftGroup: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n errors: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n groupId: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isBusy: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isCreating: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isDirty: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isLoading: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isResetting: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isSaving: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n isValidating: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n lastChangeSource: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n lastSavedAt: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n savedGroup: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n serverErrors: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n validation: {\n description: 'JSON pointer path in the SDUI state model.',\n pattern: '^\\\\/.*',\n type: 'string',\n },\n },\n type: 'object',\n },\n timeBasedConfigurationOptions: {\n items: {},\n type: 'array',\n },\n validations: {\n additionalProperties: {},\n description: 'JSON-safe built-in validation configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n },\n required: ['appName', 'saveMode'],\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupGridRenderer: {\n description:\n 'Compact read-only SuperGroup renderer for table and grid cells.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n emptyPlaceholder: {\n description: 'Text displayed when the group has no members.',\n type: 'string',\n },\n emptyText: {\n description: 'Alias for emptyPlaceholder. Text displayed when empty.',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n includedRoleTypes: {\n description: 'Role type filters applied to the preview result.',\n items: {\n type: 'string',\n },\n type: 'array',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n previewRulesLimit: {\n description: 'Maximum number of rules shown before truncation.',\n type: 'number',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n ruleOptions: {\n additionalProperties: {},\n description: 'JSON-safe SuperGroup rule option configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldIncludeThirdPartyAdmins: {\n description:\n 'When true, includes third-party admins in member previews.',\n type: 'boolean',\n },\n shouldShowExclusions: {\n description: 'When true, renders excluded-member rules.',\n type: 'boolean',\n },\n shouldShowTitle: {\n description: 'When true, renders the preview title.',\n type: 'boolean',\n },\n showPreviewMembersInTooltip: {\n description:\n 'When true, shows preview members inside the grid-cell tooltip.',\n type: 'boolean',\n },\n skipThrottling: {\n description: 'When true, skips SuperGroup mount throttling.',\n type: 'boolean',\n },\n },\n required: ['appName'],\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupMembersViewer: {\n description:\n 'Read-only SuperGroup members viewer for detail pages and summaries.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n gridTitle: {\n description: 'Title for the members grid.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup whose members should be rendered.',\n type: 'string',\n },\n groupMembersDrawerCaption: {\n description: 'Caption text for the members drawer.',\n type: 'string',\n },\n groupMembersDrawerTitle: {\n description: 'Title for the members drawer.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n isPreview: {\n description: 'When true, renders in preview mode.',\n type: 'boolean',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldShowRefreshMembersAction: {\n description: 'When true, exposes the refresh-members action.',\n type: 'boolean',\n },\n theme: {\n description:\n 'Inline member display mode. Omit for the full member view.',\n enum: ['INLINE_TEXT', 'INLINE_COUNT'],\n type: 'string',\n },\n },\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupPreviewV2: {\n description:\n 'Read-only SuperGroup rule preview. Use this to show membership rules for an existing group without exposing editing controls.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n emptyPlaceholder: {\n description: 'Text displayed when the group has no members.',\n type: 'string',\n },\n emptyText: {\n description: 'Alias for emptyPlaceholder. Text displayed when empty.',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n includedRoleTypes: {\n description: 'Role type filters applied to the preview result.',\n items: {\n type: 'string',\n },\n type: 'array',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n previewRulesLimit: {\n description: 'Maximum number of rules shown before truncation.',\n type: 'number',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n ruleOptions: {\n additionalProperties: {},\n description: 'JSON-safe SuperGroup rule option configuration.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n shouldIncludeThirdPartyAdmins: {\n description:\n 'When true, includes third-party admins in member previews.',\n type: 'boolean',\n },\n shouldShowExclusions: {\n description: 'When true, renders excluded-member rules.',\n type: 'boolean',\n },\n shouldShowTitle: {\n description: 'When true, renders the preview title.',\n type: 'boolean',\n },\n skipThrottling: {\n description: 'When true, skips SuperGroup mount throttling.',\n type: 'boolean',\n },\n },\n required: ['appName'],\n type: 'object',\n },\n acceptsChildren: false,\n },\n SuperGroupStateProvider: {\n description:\n 'Provider that shares SuperGroup secondary data across nested read-only SuperGroup renderers.',\n events: [],\n propsSchema: {\n $schema: 'https://json-schema.org/draft/2020-12/schema',\n additionalProperties: false,\n properties: {\n appName: {\n description:\n 'Application name used by SuperGroup APIs. Required for all SuperGroup renderers.',\n type: 'string',\n },\n family: {\n description: 'Object family used when resolving group metadata.',\n type: 'string',\n },\n group: {\n additionalProperties: {},\n description:\n 'Already-fetched SuperGroup object. Prefer groupId unless the group is already available in the spec context.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n groupId: {\n description: 'Id of the SuperGroup to fetch and render.',\n type: 'string',\n },\n groupTypeConfig: {\n additionalProperties: {},\n description: 'Group type metadata used by SuperGroup API adapters.',\n properties: {\n isInternal: {\n type: 'boolean',\n },\n type: {\n type: 'string',\n },\n },\n type: 'object',\n },\n ownerId: {\n description:\n 'SpokeOwner id. Required for non-internal application groups.',\n type: 'string',\n },\n provisionedRoles: {\n description:\n 'Role ids or serialized role objects provisioned by the parent app or object. Required for role groups unless shouldIgnoreProvisioningGroup is true.',\n items: {\n anyOf: [\n {\n type: 'string',\n },\n {\n additionalProperties: {},\n properties: {\n id: {\n type: 'string',\n },\n },\n required: ['id'],\n type: 'object',\n },\n ],\n },\n type: 'array',\n },\n requestOptions: {\n additionalProperties: {},\n description:\n 'Additional request options forwarded to SuperGroup APIs.',\n propertyNames: {\n type: 'string',\n },\n type: 'object',\n },\n shouldIgnoreProvisioningGroup: {\n description:\n 'When true, excludes provisioning group matching from member previews.',\n type: 'boolean',\n },\n },\n required: ['appName'],\n type: 'object',\n },\n acceptsChildren: true,\n },\n};\nconst _ACTIONS: Record<string, Record<string, unknown>> = {};\nconst _FUNCTIONS: Record<string, Record<string, unknown>> = {};\nconst _DIRECTIVES: Record<string, Record<string, unknown>> = {};\nconst _DEFS: Record<string, Record<string, unknown>> = {};\n\n// ---------------------------------------------------------------------------\n// Public introspection API\n// ---------------------------------------------------------------------------\n\n/** Return component descriptions keyed by component name. */\nexport function getComponents(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(_COMPONENTS).map(([name, defn]) => [\n name,\n String(defn.description ?? ''),\n ])\n );\n}\n\n/** Return action descriptions keyed by action name. */\nexport function getActions(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(_ACTIONS).map(([name, defn]) => [\n name,\n String(defn.description ?? ''),\n ])\n );\n}\n\n/** Return computed function descriptions keyed by function name. */\nexport function getFunctions(): Record<string, string> {\n return Object.fromEntries(\n Object.entries(_FUNCTIONS).map(([name, defn]) => [\n name,\n String(defn.description ?? ''),\n ])\n );\n}\n\n/** Return full computed function definitions keyed by function name. */\nexport function getComputedFunctions(): Record<\n string,\n Record<string, unknown>\n> {\n return _FUNCTIONS;\n}\n\n/** Return reusable JSON Schema definitions keyed by definition name. */\nexport function getDefs(): Record<string, Record<string, unknown>> {\n return _DEFS;\n}\n\n/** Get the full JSON definition of a component by name. */\nexport function getComponent(name: string): Record<string, unknown> {\n if (!Object.hasOwn(_COMPONENTS, name)) {\n throw new Error(\n `Unknown component '${name}'. Available: ${Object.keys(_COMPONENTS).join(', ')}`\n );\n }\n const definition = { ..._COMPONENTS[name] };\n delete definition.example;\n return definition;\n}\n\nconst _COMPONENT_KNOWLEDGE_SECTIONS = [\n { field: 'category', title: 'Categories' },\n { field: 'keywords', title: 'Keywords' },\n { field: 'anatomy', title: 'Anatomy' },\n { field: 'guidance', title: 'Guidance' },\n { field: 'antiPatterns', title: 'Anti-patterns' },\n { field: 'aiGuardrails', title: 'AI guardrails' },\n { field: 'propGuidance', title: 'Prop guidance' },\n { field: 'selection', title: 'Component selection' },\n { field: 'relatedComponents', title: 'Related components' },\n { field: 'subComponents', title: 'Sub-components' },\n] as const;\n\n/** Render LLM-ready Markdown with the SDUI contract taking precedence. */\nexport function getComponentMarkdown(name: string): string {\n if (!Object.hasOwn(_COMPONENTS, name)) {\n throw new Error(\n `Unknown component '${name}'. Available: ${Object.keys(_COMPONENTS).join(', ')}`\n );\n }\n return renderComponentMarkdown(\n name,\n _COMPONENTS[name],\n _COMPONENT_KNOWLEDGE_SECTIONS\n );\n}\n\n/** Get the full JSON definition of an action by name. */\nexport function getAction(name: string): Record<string, unknown> {\n if (!(name in _ACTIONS)) {\n throw new Error(\n `Unknown action '${name}'. Available: ${Object.keys(_ACTIONS).join(', ')}`\n );\n }\n return _ACTIONS[name];\n}\n\n/** Get the full JSON definition of a computed function by name. */\nexport function getFunction(name: string): Record<string, unknown> {\n if (!(name in _FUNCTIONS)) {\n throw new Error(\n `Unknown function '${name}'. Available: ${Object.keys(_FUNCTIONS).join(', ')}`\n );\n }\n return _FUNCTIONS[name];\n}\n\nfunction _formatJsonPointer(pointer: string): string {\n if (!pointer) return '(root)';\n return pointer\n .slice(1)\n .split('/')\n .map(part => part.replace(/~1/g, '/').replace(/~0/g, '~'))\n .join('.');\n}\n\nfunction _schemaErrors(\n schema: Record<string, unknown>,\n value: unknown\n): string[] {\n const ajv = new Ajv2020({ allErrors: true, strict: false });\n ajv.removeKeyword('id');\n const validateSchema = ajv.compile(schema);\n if (validateSchema(value)) return [];\n\n const validationErrors = validateSchema.errors ?? [];\n const anyOfPaths = new Set(\n validationErrors\n .filter((error: ErrorObject) => error.keyword === 'anyOf')\n .map((error: ErrorObject) => error.instancePath)\n );\n return validationErrors\n .filter(\n (error: ErrorObject) =>\n error.keyword === 'anyOf' ||\n !(\n error.schemaPath.includes('/anyOf/') &&\n anyOfPaths.has(error.instancePath)\n )\n )\n .map((error: ErrorObject) => {\n const path = _formatJsonPointer(error.instancePath);\n return error.keyword === 'anyOf'\n ? `props ${path}: must match the declared schema or a reactive reference`\n : `props ${path}: ${error.message ?? 'failed schema validation'}`;\n });\n}\n\nconst _catalogSchemaValidator = createCatalogSchemaValidator({\n defs: _DEFS,\n directives: _DIRECTIVES,\n supportsStandardDirectives: true,\n validateSchema: _schemaErrors,\n});\n\n/**\n * Validate a rendered spec against this catalog's schema.\n * Returns a list of error messages. Empty list means valid.\n */\nexport function validate(spec: { [key: string]: unknown }): string[] {\n const errors: string[] = [];\n const elements = (spec.elements ?? {}) as Record<\n string,\n Record<string, unknown>\n >;\n\n // Check root exists\n const rootId = spec.root as string | undefined;\n if (rootId && !(rootId in elements)) {\n errors.push(`Root element '${rootId}' not found in elements map`);\n }\n\n // Check each element\n for (const [elId, el] of Object.entries(elements)) {\n const elType = (el.type ?? '') as string;\n if (!(elType in _COMPONENTS)) {\n errors.push(`Element '${elId}': unknown type '${elType}'`);\n continue;\n }\n\n const defn = _COMPONENTS[elType];\n\n // Validate props against propsSchema\n const propsSchema = defn.propsSchema as JsonSchema | undefined;\n if (propsSchema) {\n const props = (el.props ?? {}) as Record<string, unknown>;\n for (const error of _schemaErrors(\n _catalogSchemaValidator.preparePropsSchema(propsSchema),\n props\n )) {\n errors.push(`Element '${elId}': ${error}`);\n }\n for (const [propName, value] of Object.entries(props)) {\n for (const error of _catalogSchemaValidator.nestedDirectiveErrors(\n value,\n propName\n )) {\n errors.push(`Element '${elId}': ${error}`);\n }\n }\n }\n\n // Valid event names\n const onHandlers = (el.on ?? {}) as Record<string, unknown>;\n const validEvents = (defn.events ?? []) as string[];\n for (const eventName of Object.keys(onHandlers)) {\n if (!validEvents.includes(eventName)) {\n errors.push(\n `Element '${elId}': unknown event '${eventName}'. Valid: ${validEvents.join(', ')}`\n );\n }\n }\n\n // Children on leaf components\n const children = (el.children ?? []) as unknown[];\n if (children.length > 0 && !(defn.acceptsChildren as boolean)) {\n errors.push(`Element '${elId}': '${elType}' does not accept children`);\n }\n }\n return errors;\n}\n","/**\n * Catalog-scoped render for hub_platform.\n *\n * Auto-generated from catalogs/hub_platform.catalog.json — do not edit.\n */\n\nimport type { ElementNode } from '#core/elements';\nimport type { CoreSpec } from '#core/spec';\nimport { renderElementTree } from '#core/spec';\nimport { CATALOG_NAME, CATALOG_VERSION } from './catalog';\n\nexport interface CatalogSpec extends CoreSpec {\n platform: 'web';\n catalog: string;\n catalogVersion: string;\n}\n\ntype CatalogElementNode = ElementNode<'web', 'hub_platform'>;\n\n/**\n * Render an element tree into a flat json-render spec tagged with\n * the hub_platform catalog name and version.\n *\n * This is the catalog-level render — consumers import this instead\n * of using createSpec().render() directly.\n */\nexport function render<TState extends object = Record<string, unknown>>(opts: {\n root: CatalogElementNode;\n state?: TState;\n}): CatalogSpec {\n const spec = renderElementTree(opts.root, opts.state);\n\n return {\n ...spec,\n platform: 'web',\n catalog: CATALOG_NAME,\n catalogVersion: CATALOG_VERSION,\n };\n}\n"],"names":["SuperGroupEditor","input","buildNode","SuperGroupGridRenderer","SuperGroupMembersViewer","SuperGroupPreviewV2","SuperGroupStateProvider","CATALOG_NAME","CATALOG_VERSION","_COMPONENTS","_ACTIONS","_FUNCTIONS","_DIRECTIVES","_DEFS","getComponents","name","defn","getActions","getFunctions","getComputedFunctions","getDefs","getComponent","definition","_COMPONENT_KNOWLEDGE_SECTIONS","getComponentMarkdown","renderComponentMarkdown","getAction","getFunction","_formatJsonPointer","pointer","part","_schemaErrors","schema","value","ajv","Ajv2020","validateSchema","validationErrors","anyOfPaths","error","path","_catalogSchemaValidator","createCatalogSchemaValidator","validate","spec","errors","elements","rootId","elId","el","elType","propsSchema","props","propName","onHandlers","validEvents","eventName","render","opts","renderElementTree"],"mappings":";;;;;AA0BO,MAAMA,IAAmB,CAC9BC,MAEAC,EAAiC,oBAAoBD,CAAK,GAE/CE,IAAyB,CACpCF,MAKAC,EAAiC,0BAA0BD,CAAK,GAErDG,IAA0B,CACrCH,MAKAC,EAAiC,2BAA2BD,CAAK,GAEtDI,IAAsB,CACjCJ,MAEAC,EAAiC,uBAAuBD,CAAK,GAElDK,IAA0B,CACrCL,MAMAC,EAAiC,2BAA2BD,CAAK,GC3CtDM,IAAe,gBACfC,IAAkB,SAMzBC,IAAuD;AAAA,EAC3D,kBAAkB;AAAA,IAChB,aACE;AAAA,IACF,QAAQ;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF,aAAa;AAAA,MACX,SAAS;AAAA,MACT,sBAAsB;AAAA,MACtB,YAAY;AAAA,QACV,SAAS;AAAA,UACP,aACE;AA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,MAAMT,CAAK,EAAE;AAAA,IAG/C;AAGA,UAAMe,IAAcL,EAAG,MAAM,CAAA,GACvBM,IAAevC,EAAK,UAAU,CAAA;AACpC,eAAWwC,KAAa,OAAO,KAAKF,CAAU;AAC5C,MAAKC,EAAY,SAASC,CAAS,KACjCX,EAAO;AAAA,QACL,YAAYG,CAAI,qBAAqBQ,CAAS,aAAaD,EAAY,KAAK,IAAI,CAAC;AAAA,MAAA;AAOvF,KADkBN,EAAG,YAAY,CAAA,GACpB,SAAS,KAAK,CAAEjC,EAAK,mBAChC6B,EAAO,KAAK,YAAYG,CAAI,OAAOE,CAAM,4BAA4B;AAAA,EAEzE;AACA,SAAOL;AACT;AC1oCO,SAASY,EAAwDC,GAGxD;AAGd,SAAO;AAAA,IACL,GAHWC,EAAkBD,EAAK,MAAMA,EAAK,KAAK;AAAA,IAIlD,UAAU;AAAA,IACV,SAASnD;AAAA,IACT,gBAAgBC;AAAA,EAAA;AAEpB;"}
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(t){return`\`\`\`json
2
+ ${JSON.stringify(t,null,2)??"null"}
3
+ \`\`\``}function l(t){return t.replace(/\r\n?|\n/g," ").trim()}function y(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")?t.map(e=>`- ${l(e)}`).join(`
4
+ `):a(t)}function m(t,e,g){const r=[`# ${t}`,"> **Source precedence:** The SDUI contract and usage notes below are authoritative. Supplementary design-system guidance is additional context; ignore it where it conflicts with the SDUI contract.","## SDUI contract"],s=e.description,o=e.docs;typeof s=="string"&&s.length>0&&r.push(`### Description
5
+
6
+ ${s}`),typeof o=="string"&&o.length>0&&r.push(`### Usage notes
7
+
8
+ ${o}`);const u=Array.isArray(e.events)?e.events.filter(n=>typeof n=="string"):[],i=Array.isArray(e.slots)?e.slots.filter(n=>typeof n=="string"):[];r.push(["### Structure and events","",`- Accepts children: ${e.acceptsChildren===!0?"yes":"no"}`,`- Events: ${u.length>0?u.map(n=>`\`${l(n)}\``).join(", "):"none"}`,`- Slots: ${i.length>0?i.map(n=>`\`${l(n)}\``).join(", "):"none"}`].join(`
9
+ `)),e.propsSchema!==void 0&&r.push(`### Props schema
10
+
11
+ ${a(e.propsSchema)}`),e.example!==void 0&&r.push(`### Example
12
+
13
+ ${a(e.example)}`);const c=[];for(const{field:n,title:h}of g){const p=e[n];p!=null&&c.push(`### ${h}
14
+
15
+ ${y(p)}`)}return c.length>0&&r.push("## Supplementary design-system guidance",...c),`${r.join(`
16
+
17
+ `)}
18
+ `}exports.renderComponentMarkdown=m;
19
+ //# sourceMappingURL=component-markdown.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-markdown.cjs","sources":["../../../sdui-core/src/component-markdown.ts"],"sourcesContent":["type CatalogObject = Record<string, unknown>;\ntype KnowledgeSection = Readonly<{ field: string; title: string }>;\n\nfunction jsonBlock(value: unknown): string {\n return `\\`\\`\\`json\\n${JSON.stringify(value, null, 2) ?? 'null'}\\n\\`\\`\\``;\n}\n\nfunction singleLine(value: string): string {\n return value.replace(/\\r\\n?|\\n/g, ' ').trim();\n}\n\nfunction renderValue(value: unknown): string {\n if (Array.isArray(value) && value.every(item => typeof item === 'string')) {\n return value.map(item => `- ${singleLine(item)}`).join('\\n');\n }\n return jsonBlock(value);\n}\n\n/** Render self-contained, LLM-ready Markdown from one raw catalog component. */\nexport function renderComponentMarkdown(\n name: string,\n definition: CatalogObject,\n knowledgeSections: readonly KnowledgeSection[]\n): string {\n const sections: string[] = [\n `# ${name}`,\n '> **Source precedence:** The SDUI contract and usage notes below are authoritative. Supplementary design-system guidance is additional context; ignore it where it conflicts with the SDUI contract.',\n '## SDUI contract',\n ];\n const description = definition.description;\n const docs = definition.docs;\n\n if (typeof description === 'string' && description.length > 0) {\n sections.push(`### Description\\n\\n${description}`);\n }\n if (typeof docs === 'string' && docs.length > 0) {\n sections.push(`### Usage notes\\n\\n${docs}`);\n }\n\n const events = Array.isArray(definition.events)\n ? definition.events.filter(\n (event): event is string => typeof event === 'string'\n )\n : [];\n const slots = Array.isArray(definition.slots)\n ? definition.slots.filter(\n (slot): slot is string => typeof slot === 'string'\n )\n : [];\n sections.push(\n [\n '### Structure and events',\n '',\n `- Accepts children: ${definition.acceptsChildren === true ? 'yes' : 'no'}`,\n `- Events: ${events.length > 0 ? events.map(event => `\\`${singleLine(event)}\\``).join(', ') : 'none'}`,\n `- Slots: ${slots.length > 0 ? slots.map(slot => `\\`${singleLine(slot)}\\``).join(', ') : 'none'}`,\n ].join('\\n')\n );\n\n if (definition.propsSchema !== undefined) {\n sections.push(`### Props schema\\n\\n${jsonBlock(definition.propsSchema)}`);\n }\n if (definition.example !== undefined) {\n sections.push(`### Example\\n\\n${jsonBlock(definition.example)}`);\n }\n\n const knowledge: string[] = [];\n for (const { field, title } of knowledgeSections) {\n const value = definition[field];\n if (value !== undefined && value !== null) {\n knowledge.push(`### ${title}\\n\\n${renderValue(value)}`);\n }\n }\n if (knowledge.length > 0) {\n sections.push('## Supplementary design-system guidance', ...knowledge);\n }\n\n return `${sections.join('\\n\\n')}\\n`;\n}\n"],"names":["jsonBlock","value","singleLine","renderValue","item","renderComponentMarkdown","name","definition","knowledgeSections","sections","description","docs","events","event","slots","slot","knowledge","field","title"],"mappings":"gFAGA,SAASA,EAAUC,EAAwB,CACzC,MAAO;AAAA,EAAe,KAAK,UAAUA,EAAO,KAAM,CAAC,GAAK,MAAM;AAAA,OAChE,CAEA,SAASC,EAAWD,EAAuB,CACzC,OAAOA,EAAM,QAAQ,YAAa,GAAG,EAAE,KAAA,CACzC,CAEA,SAASE,EAAYF,EAAwB,CAC3C,OAAI,MAAM,QAAQA,CAAK,GAAKA,EAAM,MAAMG,GAAQ,OAAOA,GAAS,QAAQ,EAC/DH,EAAM,IAAIG,GAAQ,KAAKF,EAAWE,CAAI,CAAC,EAAE,EAAE,KAAK;AAAA,CAAI,EAEtDJ,EAAUC,CAAK,CACxB,CAGO,SAASI,EACdC,EACAC,EAC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AAK,CAAC,EAAE,CAE1D,CACA,OAAIe,EAAU,OAAS,GACrBP,EAAS,KAAK,0CAA2C,GAAGO,CAAS,EAGhE,GAAGP,EAAS,KAAK;AAAA;AAAA,CAAM,CAAC;AAAA,CACjC"}
@@ -0,0 +1,8 @@
1
+ type CatalogObject = Record<string, unknown>;
2
+ type KnowledgeSection = Readonly<{
3
+ field: string;
4
+ title: string;
5
+ }>;
6
+ /** Render self-contained, LLM-ready Markdown from one raw catalog component. */
7
+ export declare function renderComponentMarkdown(name: string, definition: CatalogObject, knowledgeSections: readonly KnowledgeSection[]): string;
8
+ export {};