@keemakr/ui-sdk 2.0.0-dev-20261012160211 → 2.0.0-dev-20261012161109

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/README.md CHANGED
@@ -66,13 +66,9 @@ Folder names are screen identities. For example, `ui/campaigns/campaign/screen.t
66
66
  - `chart` with `chartType: 'funnel'` takes one series whose values are the steps, in category
67
67
  order, none negative. Name a step you cannot count in `missing`: it shows a dash and no bar,
68
68
  never a 0, and name it once. Only a funnel accepts `missing`.
69
- - A `button` with `approvalId` (an open core ask of your pack) renders the platform approval card;
70
- the viewer answers it with their own session. Core drops an id that is not such an ask. The
71
- card replaces the button, so its `label`, `variant` and `onPress` are ignored.
72
69
  - Any decision a person must make in your pack goes through core approvals: declare the capability
73
70
  `approval_required`. Home shows every open approval, so a pack keeps no approval queue of its
74
- own. A screen may show Approve and Reject for one through a button's `approvalId`; the web client
75
- answers it through `POST /api/asks/{id}/answer` with the viewer's own session, never the pack.
71
+ own, and a screen does not answer one.
76
72
 
77
73
  ## 5. Generate before Eve runs
78
74
 
package/dist/schema.d.ts CHANGED
@@ -93,7 +93,6 @@ export declare const buttonSchema: z.ZodObject<{
93
93
  disabled: z.ZodDefault<z.ZodBoolean>;
94
94
  hint: z.ZodOptional<z.ZodString>;
95
95
  disabledReason: z.ZodOptional<z.ZodString>;
96
- approvalId: z.ZodOptional<z.ZodUUID>;
97
96
  }, z.core.$strip>;
98
97
  /** A table cell. Dates are ISO 8601; core formats them tenant-locale-aware. */
99
98
  export declare const cellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -157,7 +156,6 @@ declare const leafNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
157
156
  disabled: z.ZodDefault<z.ZodBoolean>;
158
157
  hint: z.ZodOptional<z.ZodString>;
159
158
  disabledReason: z.ZodOptional<z.ZodString>;
160
- approvalId: z.ZodOptional<z.ZodUUID>;
161
159
  }, z.core.$strip>, z.ZodObject<{
162
160
  type: z.ZodLiteral<"form">;
163
161
  key: z.ZodString;
@@ -269,7 +267,6 @@ declare const leafNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
269
267
  disabled: z.ZodDefault<z.ZodBoolean>;
270
268
  hint: z.ZodOptional<z.ZodString>;
271
269
  disabledReason: z.ZodOptional<z.ZodString>;
272
- approvalId: z.ZodOptional<z.ZodUUID>;
273
270
  }, z.core.$strip>], "type">>;
274
271
  }, z.core.$strip>>;
275
272
  }, z.core.$strip>>;
@@ -440,7 +437,6 @@ declare const leafNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
440
437
  disabled: z.ZodDefault<z.ZodBoolean>;
441
438
  hint: z.ZodOptional<z.ZodString>;
442
439
  disabledReason: z.ZodOptional<z.ZodString>;
443
- approvalId: z.ZodOptional<z.ZodUUID>;
444
440
  }, z.core.$strip>>;
445
441
  }, z.core.$strip>, z.ZodObject<{
446
442
  type: z.ZodLiteral<"details">;
@@ -630,7 +626,6 @@ declare const leafNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
630
626
  disabled: z.ZodDefault<z.ZodBoolean>;
631
627
  hint: z.ZodOptional<z.ZodString>;
632
628
  disabledReason: z.ZodOptional<z.ZodString>;
633
- approvalId: z.ZodOptional<z.ZodUUID>;
634
629
  }, z.core.$strip>>>;
635
630
  onPress: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
636
631
  kind: z.ZodLiteral<"action">;
@@ -773,7 +768,6 @@ export declare const screenTreeSchema: z.ZodObject<{
773
768
  disabled: z.ZodDefault<z.ZodBoolean>;
774
769
  hint: z.ZodOptional<z.ZodString>;
775
770
  disabledReason: z.ZodOptional<z.ZodString>;
776
- approvalId: z.ZodOptional<z.ZodUUID>;
777
771
  }, z.core.$strip>>>;
778
772
  children: z.ZodArray<z.ZodType<ScreenRootNode, ScreenRootNodeInput, z.core.$ZodTypeInternals<ScreenRootNode, ScreenRootNodeInput>>>;
779
773
  refreshSeconds: z.ZodOptional<z.ZodNumber>;
@@ -833,7 +827,6 @@ export declare const screenLoadResponseSchema: z.ZodObject<{
833
827
  disabled: z.ZodDefault<z.ZodBoolean>;
834
828
  hint: z.ZodOptional<z.ZodString>;
835
829
  disabledReason: z.ZodOptional<z.ZodString>;
836
- approvalId: z.ZodOptional<z.ZodUUID>;
837
830
  }, z.core.$strip>>>;
838
831
  children: z.ZodArray<z.ZodType<ScreenRootNode, ScreenRootNodeInput, z.core.$ZodTypeInternals<ScreenRootNode, ScreenRootNodeInput>>>;
839
832
  refreshSeconds: z.ZodOptional<z.ZodNumber>;
package/dist/schema.js CHANGED
@@ -74,13 +74,6 @@ export const buttonSchema = z.object({
74
74
  * reader guessing.
75
75
  */
76
76
  disabledReason: z.string().min(1).max(200).optional(),
77
- /**
78
- * An open core ask of this pack. The client renders the platform approval card
79
- * in place of the button, ignoring `label`, `variant` and `onPress`, and answers
80
- * with the viewer's own session; the pack never answers. Core drops an id that
81
- * is not an open ask of this pack for the viewer.
82
- */
83
- approvalId: z.uuid().optional(),
84
77
  });
85
78
  /** A table cell. Dates are ISO 8601; core formats them tenant-locale-aware. */
86
79
  export const cellSchema = z.discriminatedUnion('kind', [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keemakr/ui-sdk",
3
- "version": "2.0.0-dev-20261012160211",
3
+ "version": "2.0.0-dev-20261012161109",
4
4
  "description": "Product screens for keemakr marketplace modules: a versioned, server-driven UI tree schema plus defineScreen() handlers. Module code never ships to the browser — keemakr-core validates the tree and renders it with platform components.",
5
5
  "license": "MIT",
6
6
  "type": "module",