@inf-monkeys-tech/monkeys 1.0.42 → 1.0.44

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/lib/esm/index.mjs CHANGED
@@ -8713,7 +8713,8 @@ var MenuGroupNodeSchema = z10.object({
8713
8713
  ...MenuNodeBaseShape,
8714
8714
  kind: z10.literal("group"),
8715
8715
  label: LocalizedTextSchema.optional(),
8716
- iconRef: ContractIdentifierSchema.optional()
8716
+ iconRef: ContractIdentifierSchema.optional(),
8717
+ disabled: z10.boolean().optional()
8717
8718
  }).strict();
8718
8719
  var MenuDividerNodeSchema = z10.object({
8719
8720
  ...MenuNodeBaseShape,
@@ -8725,6 +8726,7 @@ var MenuItemNodeSchema = z10.object({
8725
8726
  label: LocalizedTextSchema,
8726
8727
  iconRef: ContractIdentifierSchema.optional(),
8727
8728
  tone: z10.enum(["default", "danger"]).optional(),
8729
+ disabled: z10.boolean().optional(),
8728
8730
  requiredPermission: ContractIdentifierSchema.optional(),
8729
8731
  behavior: MenuBehaviorSchema
8730
8732
  }).strict();
@@ -11752,7 +11754,8 @@ var TenantApplicationConfigSchema = z13.object({
11752
11754
  logo: AssetVariantsSchema.optional(),
11753
11755
  brandDisplayMode: z13.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
11754
11756
  density: z13.enum(["compact", "default", "comfortable"]).optional(),
11755
- sessionCentric: z13.boolean().optional()
11757
+ sessionCentric: z13.boolean().optional(),
11758
+ quickStartEnabled: z13.boolean().optional()
11756
11759
  }).strict().optional()
11757
11760
  }).strict(),
11758
11761
  landingPage: TenantLandingPageConfigSchema.optional(),
@@ -13733,7 +13736,11 @@ var compileMenuRuntimeBundle = (input) => {
13733
13736
  );
13734
13737
  }
13735
13738
  const compiledNodes = definition.nodes.map((node, nodeIndex) => {
13736
- if (node.kind !== "item") return node;
13739
+ if (node.kind === "divider") return node;
13740
+ if (node.kind === "group") {
13741
+ const { disabled: disabled2, ...presentation2 } = node;
13742
+ return disabled2 === true ? { ...presentation2, disabled: disabled2 } : presentation2;
13743
+ }
13737
13744
  const nodePath = `definitions[${definitionIndex}].nodes[${nodeIndex}]`;
13738
13745
  if (node.requiredPermission && !knownPermissions.has(node.requiredPermission)) {
13739
13746
  throw new MenuCompilationError(
@@ -13795,9 +13802,15 @@ var compileMenuRuntimeBundle = (input) => {
13795
13802
  });
13796
13803
  }
13797
13804
  if (definition.applicationId === applicationId) requestedTargetKeys.add(identity);
13798
- const { requiredPermission: requiredPermission2, behavior: _behavior2, ...presentation2 } = node;
13805
+ const {
13806
+ requiredPermission: requiredPermission2,
13807
+ behavior: _behavior2,
13808
+ disabled: disabled2,
13809
+ ...presentation2
13810
+ } = node;
13799
13811
  return CompiledMenuItemNodeSchema.parse({
13800
13812
  ...presentation2,
13813
+ ...disabled2 === true ? { disabled: disabled2 } : {},
13801
13814
  behavior: {
13802
13815
  kind: "navigate",
13803
13816
  page: node.behavior.page,
@@ -13819,9 +13832,15 @@ var compileMenuRuntimeBundle = (input) => {
13819
13832
  validatePermissionCodes(access.permissionAllOf, knownPermissions, `${nodePath}.targetAccess.permissionAllOf`);
13820
13833
  validatePermissionCodes(access.permissionAnyOf, knownPermissions, `${nodePath}.targetAccess.permissionAnyOf`);
13821
13834
  const actionInput = node.behavior.input ? validateInput(node.behavior.input, action.inputSchemaRef, inputValidators, `${nodePath}.behavior.input`) : void 0;
13822
- const { requiredPermission, behavior: _behavior, ...presentation } = node;
13835
+ const {
13836
+ requiredPermission,
13837
+ behavior: _behavior,
13838
+ disabled,
13839
+ ...presentation
13840
+ } = node;
13823
13841
  return CompiledMenuItemNodeSchema.parse({
13824
13842
  ...presentation,
13843
+ ...disabled === true ? { disabled } : {},
13825
13844
  behavior: { kind: "action", actionRef: node.behavior.actionRef, input: actionInput },
13826
13845
  access: { ...access, requiredPermission }
13827
13846
  });