@lace-cloud/canvas 0.32.1 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2617,6 +2617,9 @@ declare const COMMANDS: {
2617
2617
  readonly values: readonly ["table", "json"];
2618
2618
  readonly short: "o";
2619
2619
  };
2620
+ readonly source: {
2621
+ readonly type: "string";
2622
+ };
2620
2623
  readonly sourcePath: {
2621
2624
  readonly type: "string";
2622
2625
  };
@@ -2830,7 +2833,7 @@ declare const SCHEMAS: {
2830
2833
  treeHash: z.ZodOptional<z.ZodString>;
2831
2834
  verdict: z.ZodOptional<z.ZodEnum<{
2832
2835
  "already-lace-style": "already-lace-style";
2833
- "representable-but-transpilable": "representable-but-transpilable";
2836
+ convertible: "convertible";
2834
2837
  uncomposable: "uncomposable";
2835
2838
  lossy: "lossy";
2836
2839
  }>>;
@@ -2921,7 +2924,7 @@ declare const SCHEMAS: {
2921
2924
  treeHash: z.ZodOptional<z.ZodString>;
2922
2925
  verdict: z.ZodOptional<z.ZodEnum<{
2923
2926
  "already-lace-style": "already-lace-style";
2924
- "representable-but-transpilable": "representable-but-transpilable";
2927
+ convertible: "convertible";
2925
2928
  uncomposable: "uncomposable";
2926
2929
  lossy: "lossy";
2927
2930
  }>>;
@@ -3139,7 +3142,12 @@ declare const SCHEMAS: {
3139
3142
  version: z.ZodString;
3140
3143
  source: z.ZodString;
3141
3144
  treeHash: z.ZodString;
3142
- verdict: z.ZodString;
3145
+ verdict: z.ZodEnum<{
3146
+ "already-lace-style": "already-lace-style";
3147
+ convertible: "convertible";
3148
+ uncomposable: "uncomposable";
3149
+ lossy: "lossy";
3150
+ }>;
3143
3151
  interface: z.ZodObject<{
3144
3152
  inputs: z.ZodArray<z.ZodObject<{
3145
3153
  name: z.ZodString;
@@ -3271,8 +3279,8 @@ declare const SCHEMAS: {
3271
3279
  liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3272
3280
  diff: z.ZodArray<z.ZodObject<{
3273
3281
  path: z.ZodString;
3274
- declared: z.ZodUnknown;
3275
- detected: z.ZodUnknown;
3282
+ declared: z.ZodOptional<z.ZodUnknown>;
3283
+ detected: z.ZodOptional<z.ZodUnknown>;
3276
3284
  }, z.core.$strip>>;
3277
3285
  findingId: z.ZodNullable<z.ZodString>;
3278
3286
  }, z.core.$strip>>;
@@ -3654,8 +3662,8 @@ declare const SCHEMAS: {
3654
3662
  liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3655
3663
  diff: z.ZodArray<z.ZodObject<{
3656
3664
  path: z.ZodString;
3657
- declared: z.ZodUnknown;
3658
- detected: z.ZodUnknown;
3665
+ declared: z.ZodOptional<z.ZodUnknown>;
3666
+ detected: z.ZodOptional<z.ZodUnknown>;
3659
3667
  }, z.core.$strip>>;
3660
3668
  findingId: z.ZodNullable<z.ZodString>;
3661
3669
  }, z.core.$strip>>;
@@ -3722,7 +3730,7 @@ declare const SCHEMAS: {
3722
3730
  treeHash: z.ZodOptional<z.ZodString>;
3723
3731
  verdict: z.ZodOptional<z.ZodEnum<{
3724
3732
  "already-lace-style": "already-lace-style";
3725
- "representable-but-transpilable": "representable-but-transpilable";
3733
+ convertible: "convertible";
3726
3734
  uncomposable: "uncomposable";
3727
3735
  lossy: "lossy";
3728
3736
  }>>;
@@ -3878,9 +3886,9 @@ declare const SCHEMAS: {
3878
3886
  runId: z.ZodString;
3879
3887
  status: z.ZodNullable<z.ZodString>;
3880
3888
  summary: z.ZodNullable<z.ZodObject<{
3881
- resourceAdd: z.ZodNumber;
3882
- resourceChange: z.ZodNumber;
3883
- resourceDestroy: z.ZodNumber;
3889
+ resourceAdd: z.ZodNullable<z.ZodNumber>;
3890
+ resourceChange: z.ZodNullable<z.ZodNumber>;
3891
+ resourceDestroy: z.ZodNullable<z.ZodNumber>;
3884
3892
  }, z.core.$strip>>;
3885
3893
  planHuman: z.ZodNullable<z.ZodObject<{
3886
3894
  url: z.ZodString;
@@ -3949,11 +3957,11 @@ declare const SCHEMAS: {
3949
3957
  }, z.core.$strip>], "type">;
3950
3958
  whoami: z.ZodObject<{
3951
3959
  organization: z.ZodNullable<z.ZodString>;
3952
- user: z.ZodObject<{
3960
+ user: z.ZodOptional<z.ZodObject<{
3953
3961
  email: z.ZodString;
3954
3962
  id: z.ZodString;
3955
3963
  name: z.ZodString;
3956
- }, z.core.$strip>;
3964
+ }, z.core.$strip>>;
3957
3965
  }, z.core.$strip>;
3958
3966
  'org list': z.ZodObject<{
3959
3967
  items: z.ZodArray<z.ZodObject<{
@@ -3983,12 +3991,12 @@ declare const SCHEMAS: {
3983
3991
  orgId: z.ZodString;
3984
3992
  name: z.ZodString;
3985
3993
  slug: z.ZodString;
3986
- description: z.ZodString;
3994
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3987
3995
  createdBy: z.ZodString;
3988
3996
  createdAt: z.ZodString;
3989
3997
  updatedAt: z.ZodString;
3990
- role: z.ZodString;
3991
- memberCount: z.ZodNumber;
3998
+ role: z.ZodOptional<z.ZodString>;
3999
+ memberCount: z.ZodOptional<z.ZodNumber>;
3992
4000
  }, z.core.$strip>>;
3993
4001
  nextCursor: z.ZodNullable<z.ZodString>;
3994
4002
  hasMore: z.ZodBoolean;
@@ -4290,11 +4298,14 @@ declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtur
4290
4298
  /** The keys an action may bind with no modifier. */
4291
4299
  declare const BARE_KEYS: readonly ["Delete", "Backspace"];
4292
4300
  type BareKey = (typeof BARE_KEYS)[number];
4293
- /** The type an action's `keys` hold: a key that starts with `Mod+`, or a
4294
- * bare key. The `Mod+` arm is the grammar's prefix check alone — the type
4301
+ /** The modifiers a chord names. */
4302
+ declare const MODIFIERS: readonly ["Mod", "Ctrl"];
4303
+ type Modifier = (typeof MODIFIERS)[number];
4304
+ /** The type an action's `keys` hold: a key that starts with a modifier, or a
4305
+ * bare key. The modifier arm is the grammar's prefix check alone — the type
4295
4306
  * cannot spell an optional `Shift` then one key — and `parseChord` refuses
4296
4307
  * the rest at runtime. */
4297
- type KeySpec = `Mod+${string}` | BareKey;
4308
+ type KeySpec = `${Modifier}+${string}` | BareKey;
4298
4309
 
4299
4310
  type CanvasSelection = {
4300
4311
  nodes: readonly string[];
@@ -2617,6 +2617,9 @@ declare const COMMANDS: {
2617
2617
  readonly values: readonly ["table", "json"];
2618
2618
  readonly short: "o";
2619
2619
  };
2620
+ readonly source: {
2621
+ readonly type: "string";
2622
+ };
2620
2623
  readonly sourcePath: {
2621
2624
  readonly type: "string";
2622
2625
  };
@@ -2830,7 +2833,7 @@ declare const SCHEMAS: {
2830
2833
  treeHash: z.ZodOptional<z.ZodString>;
2831
2834
  verdict: z.ZodOptional<z.ZodEnum<{
2832
2835
  "already-lace-style": "already-lace-style";
2833
- "representable-but-transpilable": "representable-but-transpilable";
2836
+ convertible: "convertible";
2834
2837
  uncomposable: "uncomposable";
2835
2838
  lossy: "lossy";
2836
2839
  }>>;
@@ -2921,7 +2924,7 @@ declare const SCHEMAS: {
2921
2924
  treeHash: z.ZodOptional<z.ZodString>;
2922
2925
  verdict: z.ZodOptional<z.ZodEnum<{
2923
2926
  "already-lace-style": "already-lace-style";
2924
- "representable-but-transpilable": "representable-but-transpilable";
2927
+ convertible: "convertible";
2925
2928
  uncomposable: "uncomposable";
2926
2929
  lossy: "lossy";
2927
2930
  }>>;
@@ -3139,7 +3142,12 @@ declare const SCHEMAS: {
3139
3142
  version: z.ZodString;
3140
3143
  source: z.ZodString;
3141
3144
  treeHash: z.ZodString;
3142
- verdict: z.ZodString;
3145
+ verdict: z.ZodEnum<{
3146
+ "already-lace-style": "already-lace-style";
3147
+ convertible: "convertible";
3148
+ uncomposable: "uncomposable";
3149
+ lossy: "lossy";
3150
+ }>;
3143
3151
  interface: z.ZodObject<{
3144
3152
  inputs: z.ZodArray<z.ZodObject<{
3145
3153
  name: z.ZodString;
@@ -3271,8 +3279,8 @@ declare const SCHEMAS: {
3271
3279
  liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3272
3280
  diff: z.ZodArray<z.ZodObject<{
3273
3281
  path: z.ZodString;
3274
- declared: z.ZodUnknown;
3275
- detected: z.ZodUnknown;
3282
+ declared: z.ZodOptional<z.ZodUnknown>;
3283
+ detected: z.ZodOptional<z.ZodUnknown>;
3276
3284
  }, z.core.$strip>>;
3277
3285
  findingId: z.ZodNullable<z.ZodString>;
3278
3286
  }, z.core.$strip>>;
@@ -3654,8 +3662,8 @@ declare const SCHEMAS: {
3654
3662
  liveProperties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3655
3663
  diff: z.ZodArray<z.ZodObject<{
3656
3664
  path: z.ZodString;
3657
- declared: z.ZodUnknown;
3658
- detected: z.ZodUnknown;
3665
+ declared: z.ZodOptional<z.ZodUnknown>;
3666
+ detected: z.ZodOptional<z.ZodUnknown>;
3659
3667
  }, z.core.$strip>>;
3660
3668
  findingId: z.ZodNullable<z.ZodString>;
3661
3669
  }, z.core.$strip>>;
@@ -3722,7 +3730,7 @@ declare const SCHEMAS: {
3722
3730
  treeHash: z.ZodOptional<z.ZodString>;
3723
3731
  verdict: z.ZodOptional<z.ZodEnum<{
3724
3732
  "already-lace-style": "already-lace-style";
3725
- "representable-but-transpilable": "representable-but-transpilable";
3733
+ convertible: "convertible";
3726
3734
  uncomposable: "uncomposable";
3727
3735
  lossy: "lossy";
3728
3736
  }>>;
@@ -3878,9 +3886,9 @@ declare const SCHEMAS: {
3878
3886
  runId: z.ZodString;
3879
3887
  status: z.ZodNullable<z.ZodString>;
3880
3888
  summary: z.ZodNullable<z.ZodObject<{
3881
- resourceAdd: z.ZodNumber;
3882
- resourceChange: z.ZodNumber;
3883
- resourceDestroy: z.ZodNumber;
3889
+ resourceAdd: z.ZodNullable<z.ZodNumber>;
3890
+ resourceChange: z.ZodNullable<z.ZodNumber>;
3891
+ resourceDestroy: z.ZodNullable<z.ZodNumber>;
3884
3892
  }, z.core.$strip>>;
3885
3893
  planHuman: z.ZodNullable<z.ZodObject<{
3886
3894
  url: z.ZodString;
@@ -3949,11 +3957,11 @@ declare const SCHEMAS: {
3949
3957
  }, z.core.$strip>], "type">;
3950
3958
  whoami: z.ZodObject<{
3951
3959
  organization: z.ZodNullable<z.ZodString>;
3952
- user: z.ZodObject<{
3960
+ user: z.ZodOptional<z.ZodObject<{
3953
3961
  email: z.ZodString;
3954
3962
  id: z.ZodString;
3955
3963
  name: z.ZodString;
3956
- }, z.core.$strip>;
3964
+ }, z.core.$strip>>;
3957
3965
  }, z.core.$strip>;
3958
3966
  'org list': z.ZodObject<{
3959
3967
  items: z.ZodArray<z.ZodObject<{
@@ -3983,12 +3991,12 @@ declare const SCHEMAS: {
3983
3991
  orgId: z.ZodString;
3984
3992
  name: z.ZodString;
3985
3993
  slug: z.ZodString;
3986
- description: z.ZodString;
3994
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3987
3995
  createdBy: z.ZodString;
3988
3996
  createdAt: z.ZodString;
3989
3997
  updatedAt: z.ZodString;
3990
- role: z.ZodString;
3991
- memberCount: z.ZodNumber;
3998
+ role: z.ZodOptional<z.ZodString>;
3999
+ memberCount: z.ZodOptional<z.ZodNumber>;
3992
4000
  }, z.core.$strip>>;
3993
4001
  nextCursor: z.ZodNullable<z.ZodString>;
3994
4002
  hasMore: z.ZodBoolean;
@@ -4290,11 +4298,14 @@ declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtur
4290
4298
  /** The keys an action may bind with no modifier. */
4291
4299
  declare const BARE_KEYS: readonly ["Delete", "Backspace"];
4292
4300
  type BareKey = (typeof BARE_KEYS)[number];
4293
- /** The type an action's `keys` hold: a key that starts with `Mod+`, or a
4294
- * bare key. The `Mod+` arm is the grammar's prefix check alone — the type
4301
+ /** The modifiers a chord names. */
4302
+ declare const MODIFIERS: readonly ["Mod", "Ctrl"];
4303
+ type Modifier = (typeof MODIFIERS)[number];
4304
+ /** The type an action's `keys` hold: a key that starts with a modifier, or a
4305
+ * bare key. The modifier arm is the grammar's prefix check alone — the type
4295
4306
  * cannot spell an optional `Shift` then one key — and `parseChord` refuses
4296
4307
  * the rest at runtime. */
4297
- type KeySpec = `Mod+${string}` | BareKey;
4308
+ type KeySpec = `${Modifier}+${string}` | BareKey;
4298
4309
 
4299
4310
  type CanvasSelection = {
4300
4311
  nodes: readonly string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lace-cloud/canvas",
3
- "version": "0.32.1",
3
+ "version": "0.34.0",
4
4
  "lace": {
5
5
  "owner": "authoring"
6
6
  },
@@ -26,16 +26,19 @@
26
26
  "react": "^18.3.1",
27
27
  "react-dom": "^18.3.1",
28
28
  "zod": "^4.1.11",
29
- "@lace-cloud/ui": "0.32.1",
30
- "@lace-cloud/proto": "0.32.1"
29
+ "@lace-cloud/ui": "0.34.0",
30
+ "@lace-cloud/proto": "0.34.0"
31
31
  },
32
32
  "devDependencies": {
33
+ "@size-limit/file": "12.1.0",
33
34
  "@types/react": "^18.3.12",
34
35
  "@types/react-dom": "^18.3.1",
36
+ "size-limit": "12.1.0",
35
37
  "tsup": "^9.0.0",
36
38
  "tsx": "^4.19.0",
37
39
  "typescript": "^6.0.2",
38
40
  "vitest": "^4.1.0",
41
+ "@lace-cloud/api-types": "0.0.0",
39
42
  "@lace-cloud/cast-ban-scanner": "0.0.0",
40
43
  "@lace-cloud/import-graph": "0.0.0"
41
44
  },
@@ -53,9 +56,11 @@
53
56
  "directory": "packages/canvas"
54
57
  },
55
58
  "scripts": {
56
- "build": "bash ../../scripts/proto-gen.sh canvas && tsx scripts/gen-commands.ts && tsup",
59
+ "build": "bash ../../scripts/proto-gen.sh canvas && tsx scripts/gen-commands.ts && node scripts/api-types.mjs && tsup",
57
60
  "clean": "rm -rf dist",
58
- "test": "vitest run"
61
+ "test": "vitest run",
62
+ "typecheck": "node ../../scripts/typecheck-all.mjs --package",
63
+ "size": "size-limit"
59
64
  },
60
65
  "module": "./dist/index.mjs"
61
66
  }