@rippling/pebble-sdui-web 0.9.0 → 0.9.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.
- package/dist/catalogs/custom-apps/catalog.d.ts +2 -2
- package/dist/catalogs/custom-apps/component-events.d.ts +1 -0
- package/dist/catalogs/custom-apps/component-props.d.ts +93 -53
- package/dist/catalogs/custom-apps/components.d.ts +3 -2
- package/dist/catalogs/custom-apps/index.cjs +4 -3
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +3 -3
- package/dist/catalogs/custom-apps/index.js +330 -333
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/catalogs/hub_platform/catalog.d.ts +1 -1
- package/dist/catalogs/hub_platform/component-props.d.ts +14 -6
- package/dist/catalogs/hub_platform/index.cjs +1 -1
- package/dist/catalogs/hub_platform/index.cjs.map +1 -1
- package/dist/catalogs/hub_platform/index.d.ts +1 -1
- package/dist/catalogs/hub_platform/index.js +86 -137
- package/dist/catalogs/hub_platform/index.js.map +1 -1
- package/dist/core/catalog-validation.cjs +2 -0
- package/dist/core/catalog-validation.cjs.map +1 -0
- package/dist/core/catalog-validation.d.ts +21 -0
- package/dist/core/catalog-validation.js +245 -0
- package/dist/core/catalog-validation.js.map +1 -0
- package/dist/core/directives.cjs +2 -0
- package/dist/core/directives.cjs.map +1 -0
- package/dist/core/directives.d.ts +72 -0
- package/dist/core/directives.js +35 -0
- package/dist/core/directives.js.map +1 -0
- package/dist/core/expressions.d.ts +5 -15
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +28 -20
- package/dist/core/index.js.map +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/actions.md +3 -2
- package/dist/docs/typescript/web/catalogs/custom-apps/components.md +38 -7
- package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/types.md +64 -0
- package/dist/docs/typescript/web/catalogs/hub_platform/components.md +1 -1
- package/dist/docs/typescript/web/catalogs/hub_platform/types.md +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -17
- package/dist/index.js.map +1 -1
- package/dist/sdk-docs.cjs +208 -1
- package/dist/sdk-docs.cjs.map +1 -1
- package/dist/sdk-docs.js +213 -0
- package/dist/sdk-docs.js.map +1 -1
- package/package.json +1 -6
- package/dist/catalogs/ai_gateway/action-params.d.ts +0 -5
- package/dist/catalogs/ai_gateway/actions.d.ts +0 -5
- package/dist/catalogs/ai_gateway/catalog.d.ts +0 -33
- package/dist/catalogs/ai_gateway/component-events.d.ts +0 -6
- package/dist/catalogs/ai_gateway/component-props.d.ts +0 -51
- package/dist/catalogs/ai_gateway/components.d.ts +0 -7
- package/dist/catalogs/ai_gateway/function-params.d.ts +0 -5
- package/dist/catalogs/ai_gateway/functions.d.ts +0 -5
- package/dist/catalogs/ai_gateway/index.cjs +0 -2
- package/dist/catalogs/ai_gateway/index.cjs.map +0 -1
- package/dist/catalogs/ai_gateway/index.d.ts +0 -11
- package/dist/catalogs/ai_gateway/index.js +0 -366
- package/dist/catalogs/ai_gateway/index.js.map +0 -1
- package/dist/catalogs/ai_gateway/render.d.ts +0 -20
- package/dist/docs/typescript/web/catalogs/ai_gateway/actions.md +0 -6
- package/dist/docs/typescript/web/catalogs/ai_gateway/components.md +0 -31
- package/dist/docs/typescript/web/catalogs/ai_gateway/computed-functions.md +0 -6
- package/dist/docs/typescript/web/catalogs/ai_gateway/definitions.md +0 -6
- package/dist/docs/typescript/web/catalogs/ai_gateway/readme.md +0 -16
- package/dist/docs/typescript/web/catalogs/ai_gateway/types.md +0 -75
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { buildNode as
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
|
|
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";
|
|
4
|
+
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 = {
|
|
5
6
|
SuperGroupEditor: {
|
|
6
7
|
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.",
|
|
7
8
|
events: [
|
|
@@ -895,8 +896,8 @@ const x = (e) => d("SuperGroupEditor", e), C = (e) => d("SuperGroupGridRenderer"
|
|
|
895
896
|
},
|
|
896
897
|
acceptsChildren: !0
|
|
897
898
|
}
|
|
898
|
-
},
|
|
899
|
-
function
|
|
899
|
+
}, c = {}, l = {}, N = {}, f = {};
|
|
900
|
+
function J() {
|
|
900
901
|
return Object.fromEntries(
|
|
901
902
|
Object.entries(s).map(([e, t]) => [
|
|
902
903
|
e,
|
|
@@ -904,27 +905,27 @@ function k() {
|
|
|
904
905
|
])
|
|
905
906
|
);
|
|
906
907
|
}
|
|
907
|
-
function
|
|
908
|
+
function $() {
|
|
908
909
|
return Object.fromEntries(
|
|
909
|
-
Object.entries(
|
|
910
|
+
Object.entries(c).map(([e, t]) => [
|
|
910
911
|
e,
|
|
911
912
|
String(t.description ?? "")
|
|
912
913
|
])
|
|
913
914
|
);
|
|
914
915
|
}
|
|
915
|
-
function
|
|
916
|
+
function W() {
|
|
916
917
|
return Object.fromEntries(
|
|
917
|
-
Object.entries(
|
|
918
|
+
Object.entries(l).map(([e, t]) => [
|
|
918
919
|
e,
|
|
919
920
|
String(t.description ?? "")
|
|
920
921
|
])
|
|
921
922
|
);
|
|
922
923
|
}
|
|
923
|
-
function W() {
|
|
924
|
-
return a;
|
|
925
|
-
}
|
|
926
924
|
function _() {
|
|
927
|
-
return
|
|
925
|
+
return l;
|
|
926
|
+
}
|
|
927
|
+
function V() {
|
|
928
|
+
return f;
|
|
928
929
|
}
|
|
929
930
|
function L(e) {
|
|
930
931
|
if (!(e in s))
|
|
@@ -934,154 +935,102 @@ function L(e) {
|
|
|
934
935
|
const t = { ...s[e] };
|
|
935
936
|
return delete t.example, t;
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
-
if (!(e in
|
|
938
|
+
function z(e) {
|
|
939
|
+
if (!(e in c))
|
|
939
940
|
throw new Error(
|
|
940
|
-
`Unknown action '${e}'. Available: ${Object.keys(
|
|
941
|
+
`Unknown action '${e}'. Available: ${Object.keys(c).join(", ")}`
|
|
941
942
|
);
|
|
942
|
-
return
|
|
943
|
+
return c[e];
|
|
943
944
|
}
|
|
944
945
|
function F(e) {
|
|
945
|
-
if (!(e in
|
|
946
|
+
if (!(e in l))
|
|
946
947
|
throw new Error(
|
|
947
|
-
`Unknown function '${e}'. Available: ${Object.keys(
|
|
948
|
+
`Unknown function '${e}'. Available: ${Object.keys(l).join(", ")}`
|
|
948
949
|
);
|
|
949
|
-
return
|
|
950
|
+
return l[e];
|
|
950
951
|
}
|
|
951
|
-
|
|
952
|
-
{
|
|
953
|
-
type: "object",
|
|
954
|
-
additionalProperties: !1,
|
|
955
|
-
properties: { $state: { type: "string" } },
|
|
956
|
-
required: ["$state"]
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
type: "object",
|
|
960
|
-
additionalProperties: !1,
|
|
961
|
-
properties: { $bindState: { type: "string" } },
|
|
962
|
-
required: ["$bindState"]
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
type: "object",
|
|
966
|
-
additionalProperties: !1,
|
|
967
|
-
properties: { $item: { type: "string" } },
|
|
968
|
-
required: ["$item"]
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
type: "object",
|
|
972
|
-
additionalProperties: !1,
|
|
973
|
-
properties: { $bindItem: { type: "string" } },
|
|
974
|
-
required: ["$bindItem"]
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
type: "object",
|
|
978
|
-
additionalProperties: !1,
|
|
979
|
-
properties: { $index: {} },
|
|
980
|
-
required: ["$index"]
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
type: "object",
|
|
984
|
-
additionalProperties: !1,
|
|
985
|
-
properties: { $template: { type: "string" } },
|
|
986
|
-
required: ["$template"]
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
type: "object",
|
|
990
|
-
additionalProperties: !1,
|
|
991
|
-
properties: { $cond: {}, $then: {}, $else: {} },
|
|
992
|
-
required: ["$cond", "$then", "$else"]
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
type: "object",
|
|
996
|
-
additionalProperties: !1,
|
|
997
|
-
properties: { $computed: { type: "string" }, args: { type: "object" } },
|
|
998
|
-
required: ["$computed", "args"]
|
|
999
|
-
}
|
|
1000
|
-
];
|
|
1001
|
-
function j(e) {
|
|
1002
|
-
return Object.keys(y).length === 0 ? e : {
|
|
1003
|
-
...e,
|
|
1004
|
-
$defs: {
|
|
1005
|
-
...y,
|
|
1006
|
-
...e.$defs ?? {}
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
}
|
|
1010
|
-
function O(e) {
|
|
1011
|
-
const t = JSON.parse(JSON.stringify(e)), p = t.properties ?? {};
|
|
1012
|
-
for (const o of Object.keys(p)) {
|
|
1013
|
-
const r = p[o];
|
|
1014
|
-
Array.isArray(r.anyOf) ? r.anyOf = [...r.anyOf, ...g] : p[o] = {
|
|
1015
|
-
anyOf: [r, ...g]
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
return t;
|
|
1019
|
-
}
|
|
1020
|
-
function G(e) {
|
|
952
|
+
function A(e) {
|
|
1021
953
|
return e ? e.slice(1).split("/").map((t) => t.replace(/~1/g, "/").replace(/~0/g, "~")).join(".") : "(root)";
|
|
1022
954
|
}
|
|
1023
|
-
function
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
const o =
|
|
1029
|
-
|
|
1030
|
-
return [];
|
|
1031
|
-
const r = o.errors ?? [], n = new Set(
|
|
1032
|
-
r.filter((i) => i.keyword === "anyOf").map((i) => i.instancePath)
|
|
955
|
+
function b(e, t) {
|
|
956
|
+
const a = new I.Ajv2020({ allErrors: !0, strict: !1 });
|
|
957
|
+
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)
|
|
1033
962
|
);
|
|
1034
|
-
return
|
|
963
|
+
return o.filter(
|
|
964
|
+
(r) => r.keyword === "anyOf" || !(r.schemaPath.includes("/anyOf/") && p.has(r.instancePath))
|
|
965
|
+
).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"}`;
|
|
968
|
+
});
|
|
1035
969
|
}
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
970
|
+
const g = w({
|
|
971
|
+
defs: f,
|
|
972
|
+
directives: N,
|
|
973
|
+
supportsStandardDirectives: !0,
|
|
974
|
+
validateSchema: b
|
|
975
|
+
});
|
|
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)) {
|
|
980
|
+
const r = p.type ?? "";
|
|
981
|
+
if (!(r in s)) {
|
|
982
|
+
t.push(`Element '${o}': unknown type '${r}'`);
|
|
1043
983
|
continue;
|
|
1044
984
|
}
|
|
1045
|
-
const
|
|
985
|
+
const n = s[r], h = n.propsSchema;
|
|
1046
986
|
if (h) {
|
|
1047
|
-
const
|
|
1048
|
-
for (const
|
|
1049
|
-
|
|
987
|
+
const d = p.props ?? {};
|
|
988
|
+
for (const y of b(
|
|
989
|
+
g.preparePropsSchema(h),
|
|
990
|
+
d
|
|
991
|
+
))
|
|
992
|
+
t.push(`Element '${o}': ${y}`);
|
|
993
|
+
for (const [y, v] of Object.entries(d))
|
|
994
|
+
for (const P of g.nestedDirectiveErrors(
|
|
995
|
+
v,
|
|
996
|
+
y
|
|
997
|
+
))
|
|
998
|
+
t.push(`Element '${o}': ${P}`);
|
|
1050
999
|
}
|
|
1051
|
-
const
|
|
1052
|
-
for (const
|
|
1053
|
-
m.includes(
|
|
1054
|
-
`Element '${
|
|
1000
|
+
const S = p.on ?? {}, m = n.events ?? [];
|
|
1001
|
+
for (const d of Object.keys(S))
|
|
1002
|
+
m.includes(d) || t.push(
|
|
1003
|
+
`Element '${o}': unknown event '${d}'. Valid: ${m.join(", ")}`
|
|
1055
1004
|
);
|
|
1056
|
-
(
|
|
1005
|
+
(p.children ?? []).length > 0 && !n.acceptsChildren && t.push(`Element '${o}': '${r}' does not accept children`);
|
|
1057
1006
|
}
|
|
1058
1007
|
return t;
|
|
1059
1008
|
}
|
|
1060
|
-
function
|
|
1009
|
+
function H(e) {
|
|
1061
1010
|
return {
|
|
1062
|
-
...
|
|
1011
|
+
...j(e.root, e.state),
|
|
1063
1012
|
platform: "web",
|
|
1064
|
-
catalog:
|
|
1065
|
-
catalogVersion:
|
|
1013
|
+
catalog: G,
|
|
1014
|
+
catalogVersion: O
|
|
1066
1015
|
};
|
|
1067
1016
|
}
|
|
1068
1017
|
export {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1018
|
+
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,
|
|
1078
1027
|
L as getComponent,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1028
|
+
J as getComponents,
|
|
1029
|
+
_ as getComputedFunctions,
|
|
1030
|
+
V as getDefs,
|
|
1082
1031
|
F as getFunction,
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1032
|
+
W as getFunctions,
|
|
1033
|
+
H as render,
|
|
1034
|
+
B as validate
|
|
1086
1035
|
};
|
|
1087
1036
|
//# 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, and spec validation.\n */\n\nimport { Ajv2020, type ErrorObject } from 'ajv/dist/2020';\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};\n\nconst _ACTIONS: Record<string, Record<string, unknown>> = {};\n\nconst _FUNCTIONS: Record<string, Record<string, unknown>> = {};\n\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\n// Prop value refs — objects like {\"$state\": \"/path\"}, {\"$item\": \"field\"}, etc.\nconst _PROP_VALUE_REF_SCHEMAS = [\n {\n type: 'object',\n additionalProperties: false,\n properties: { $state: { type: 'string' } },\n required: ['$state'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $bindState: { type: 'string' } },\n required: ['$bindState'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $item: { type: 'string' } },\n required: ['$item'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $bindItem: { type: 'string' } },\n required: ['$bindItem'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $index: {} },\n required: ['$index'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $template: { type: 'string' } },\n required: ['$template'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $cond: {}, $then: {}, $else: {} },\n required: ['$cond', '$then', '$else'],\n },\n {\n type: 'object',\n additionalProperties: false,\n properties: { $computed: { type: 'string' }, args: { type: 'object' } },\n required: ['$computed', 'args'],\n },\n];\n\ntype JsonSchema = Record<string, unknown> & {\n anyOf?: unknown[];\n properties?: Record<string, JsonSchema>;\n $defs?: Record<string, Record<string, unknown>>;\n};\n\nfunction _withCatalogDefs(schema: JsonSchema): JsonSchema {\n if (Object.keys(_DEFS).length === 0) {\n return schema;\n }\n\n return {\n ...schema,\n $defs: {\n ..._DEFS,\n ...(schema.$defs ?? {}),\n },\n };\n}\n\nfunction _withPropValueRefs(schema: JsonSchema): JsonSchema {\n const result = JSON.parse(JSON.stringify(schema)) as JsonSchema;\n const properties = result.properties ?? {};\n for (const propName of Object.keys(properties)) {\n const propSchema = properties[propName];\n if (Array.isArray(propSchema.anyOf)) {\n propSchema.anyOf = [...propSchema.anyOf, ..._PROP_VALUE_REF_SCHEMAS];\n } else {\n properties[propName] = {\n anyOf: [propSchema, ..._PROP_VALUE_REF_SCHEMAS],\n };\n }\n }\n return result;\n}\n\nfunction _formatJsonPointer(pointer: string): string {\n if (!pointer) {\n return '(root)';\n }\n\n return pointer\n .slice(1)\n .split('/')\n .map(part => part.replace(/~1/g, '/').replace(/~0/g, '~'))\n .join('.');\n}\n\nfunction _formatValidationError(error: ErrorObject): string {\n const path = _formatJsonPointer(error.instancePath);\n if (error.keyword === 'anyOf') {\n return `props ${path}: must match the declared schema or a reactive reference`;\n }\n\n return `props ${path}: ${error.message ?? 'failed schema validation'}`;\n}\n\nfunction _schemaErrors(\n schema: Record<string, unknown>,\n value: unknown\n): string[] {\n const ajv = new Ajv2020({ allErrors: true, strict: false });\n const validateSchema = ajv.compile(schema);\n if (validateSchema(value)) {\n return [];\n }\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\n return validationErrors\n .filter((error: ErrorObject) => {\n if (error.keyword === 'anyOf') {\n return true;\n }\n return !(\n error.schemaPath.includes('/anyOf/') &&\n anyOfPaths.has(error.instancePath)\n );\n })\n .map(_formatValidationError);\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\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 extended = _withCatalogDefs(_withPropValueRefs(propsSchema));\n const props = (el.props ?? {}) as Record<string, unknown>;\n for (const error of _schemaErrors(extended, props)) {\n errors.push(`Element '${elId}': ${error}`);\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\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","_DEFS","getComponents","name","defn","getActions","getFunctions","getComputedFunctions","getDefs","getComponent","definition","getAction","getFunction","_PROP_VALUE_REF_SCHEMAS","_withCatalogDefs","schema","_withPropValueRefs","result","properties","propName","propSchema","_formatJsonPointer","pointer","part","_formatValidationError","error","path","_schemaErrors","value","validateSchema","Ajv2020","validationErrors","anyOfPaths","validate","spec","errors","elements","rootId","elId","el","elType","propsSchema","extended","props","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,GChDtDM,IAAe,gBACfC,IAAkB,SAMzBC,IAAuD;AAAA,EAC3D,kBAAkB;AAAA,IAChB,aACE;AAAA,IACF,QAAQ;AAAA,MACN;AA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AAA,GACpB,SAAS,KAAK,CAAEnC,EAAK,mBAChC+B,EAAO,KAAK,YAAYG,CAAI,OAAOE,CAAM,4BAA4B;AAAA,EAEzE;AAEA,SAAOL;AACT;AC/rCO,SAASY,EAAwDC,GAGxD;AAGd,SAAO;AAAA,IACL,GAHWC,EAAkBD,EAAK,MAAMA,EAAK,KAAK;AAAA,IAIlD,UAAU;AAAA,IACV,SAASpD;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';\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,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AAK,MAAMA,EAAK,KAAK;AAAA,IAIlD,UAAU;AAAA,IACV,SAAShD;AAAA,IACT,gBAAgBC;AAAA,EAAA;AAEpB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=[{type:"object",additionalProperties:!1,properties:{$state:{type:"string"}},required:["$state"]},{type:"object",additionalProperties:!1,properties:{$bindState:{type:"string"}},required:["$bindState"]},{type:"object",additionalProperties:!1,properties:{$item:{type:"string"}},required:["$item"]},{type:"object",additionalProperties:!1,properties:{$bindItem:{type:"string"}},required:["$bindItem"]},{type:"object",additionalProperties:!1,properties:{$index:{}},required:["$index"]},{type:"object",additionalProperties:!1,properties:{$template:{type:"string"}},required:["$template"]},{type:"object",additionalProperties:!1,properties:{$cond:{},$then:{},$else:{}},required:["$cond","$then","$else"]},{type:"object",additionalProperties:!1,properties:{$computed:{type:"string"},args:{type:"object"}},required:["$computed","args"]}],b=[{type:"object",additionalProperties:!1,properties:{$format:{enum:["date","currency","number","percent"]},value:{},locale:{type:"string"},currency:{type:"string"},notation:{type:"string"},style:{type:"string"},options:{type:"object"},now:{type:"number"}},required:["$format","value"]},{type:"object",additionalProperties:!1,properties:{$math:{enum:["add","subtract","multiply","divide","mod","min","max"]},a:{},b:{}},required:["$math","a","b"]},{type:"object",additionalProperties:!1,properties:{$math:{enum:["round","floor","ceil","abs"]},a:{}},required:["$math","a"]},{type:"object",additionalProperties:!1,properties:{$concat:{type:"array"}},required:["$concat"]},{type:"object",additionalProperties:!1,properties:{$count:{}},required:["$count"]},{type:"object",additionalProperties:!1,properties:{$truncate:{},length:{type:"number"},suffix:{type:"string"}},required:["$truncate"]},{type:"object",additionalProperties:!1,properties:{$pluralize:{},zero:{type:"string"},one:{type:"string"},other:{type:"string"}},required:["$pluralize","one","other"]},{type:"object",additionalProperties:!1,properties:{$join:{},separator:{type:"string"}},required:["$join"]}],A=new Set(["$format","$math","$concat","$count","$truncate","$pluralize","$join"]),j="__pebbleExpression",q={$ref:`#/$defs/${j}`};function f(p){return!!(p&&typeof p=="object"&&!Array.isArray(p))}function y(p){const n=Object.fromEntries(Object.entries(p).map(([t,i])=>t==="properties"||t==="patternProperties"||t==="$defs"?[t,f(i)?Object.fromEntries(Object.entries(i).map(([c,l])=>[c,f(l)?y(l):l])):i]:t==="items"||t==="additionalProperties"?[t,f(i)?y(i):i]:t==="allOf"||t==="anyOf"||t==="oneOf"?[t,Array.isArray(i)?i.map(c=>f(c)?y(c):c):i]:[t,i]));return n["x-pebble-accepts-dynamic-value"]!==!0?n:(delete n["x-pebble-accepts-dynamic-value"],{anyOf:[n,q]})}function _({defs:p,directives:n={},supportsStandardDirectives:t,validateSchema:i}){const c=()=>Object.values(n).map(e=>e.schema).filter(f).map(y),l=()=>({anyOf:[...S,...t?b:[],...c()]}),O=e=>({...e,...Object.keys(p).length>0?{$defs:{...Object.fromEntries(Object.entries(p).map(([r,o])=>[r,y(o)])),...e.$defs??{}}}:{}}),P=e=>{const r=JSON.parse(JSON.stringify(e)),o=r.properties??{},$=Object.keys(n).length>0,m=[...S,...t?b:[],...c()];for(const a of Object.keys(o)){const s=o[a];Array.isArray(s.anyOf)?s.anyOf=[...s.anyOf,...m]:o[a]={anyOf:[s,...m]}}return $&&(r.$defs={...r.$defs??{},[j]:l()}),O(r)},h=e=>{if(!t)return[];const r=Object.keys(e).find(o=>A.has(o));return r?b.filter(o=>Object.prototype.hasOwnProperty.call(o.properties,r)):[]},u=(e,r,o)=>{var m;if(Array.isArray(e))return e.flatMap((a,s)=>u(a,`${r}.${s}`,!0));if(!f(e))return[];const $=[];if(o){const a=h(e);a.length>0&&$.push(...i({anyOf:a},e).map(d=>`nested directive ${r}: ${d}`));const s=Object.keys(e).find(d=>d in n),g=s?(m=n[s])==null?void 0:m.schema:void 0;if(f(g)){const d=O(y(g));d.$defs={...d.$defs??{},[j]:l()},$.push(...i(d,e).map(E=>`nested directive ${r}: ${E}`))}}for(const[a,s]of Object.entries(e))$.push(...u(s,`${r}.${a}`,!0));return $};return{preparePropsSchema:P,nestedDirectiveErrors:(e,r)=>u(e,r,!1)}}exports.createCatalogSchemaValidator=_;
|
|
2
|
+
//# sourceMappingURL=catalog-validation.cjs.map
|