@uniformdev/canvas 20.74.7 → 20.75.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.
package/dist/index.d.mts CHANGED
@@ -11081,6 +11081,94 @@ declare abstract class DeliveryClientBase extends ContentClientBase {
11081
11081
  protected coerceDiagnostics(diagnostics?: boolean | 'no-data'): boolean | 'no-data' | undefined;
11082
11082
  }
11083
11083
 
11084
+ /**
11085
+ * Data projection wire grammar (`select.*` query parameters) and shared spec
11086
+ * type used by every consumer of projections: API serializers (SDK clients),
11087
+ * the origin pruner (lib/canvas-sdk applyProjection), and localize (for the
11088
+ * representation-modifier operator `fields[locales]`).
11089
+ *
11090
+ * Wire grammar (mirrors `filters.*`):
11091
+ *
11092
+ * select.fields[only]=name,seo_*
11093
+ * select.fields[except]=internalNote
11094
+ * select.fields[only]= // strip every field
11095
+ * select.fields[except]=* // strip every field (wildcard form)
11096
+ * select.fields[locales]=slug,seo_*
11097
+ * select.fieldTypes[only]=text,number
11098
+ * select.fieldTypes[except]=richText
11099
+ * select.slots[only]=hero
11100
+ * select.slots[except]=footer
11101
+ * select.slots[depth]=2
11102
+ * select.slots.<name>[depth]=1
11103
+ * select.fields[blockDepth]=2
11104
+ * select.fields[blockDepth]=preserveAll
11105
+ */
11106
+ /**
11107
+ * Prefix used by every `select.*` query parameter on the wire. Exported so
11108
+ * downstream prefix scans (lambda validator, edge search-param reader,
11109
+ * origin handler short-circuits) and key builders don't hand-roll the
11110
+ * literal at every call site.
11111
+ */
11112
+ declare const SELECT_QUERY_PREFIX = "select.";
11113
+ type FieldsProjection = {
11114
+ /** Include only fields whose name matches one of these patterns. */
11115
+ only?: string[];
11116
+ /** Exclude fields whose name matches one of these patterns. */
11117
+ except?: string[];
11118
+ /**
11119
+ * Field-name patterns whose value should retain its full per-locale map
11120
+ * (`locales` / `localesConditions`) after `localize` runs. Representation
11121
+ * modifier; the pruner ignores this — see lib/canvas-sdk applyProjection.
11122
+ */
11123
+ locales?: string[];
11124
+ /**
11125
+ * Controls how far projection descends into block-typed fields (`$block`).
11126
+ * A block field's value is an array of structured content, each with its own
11127
+ * fields, so projection can recurse into it like any other node.
11128
+ *
11129
+ * - Omitted (default): projection descends into blocks without limit,
11130
+ * applying `only`/`except` at every block level.
11131
+ * - A non-negative integer `N`: keep block nesting up to `N` levels. Block
11132
+ * fields on a node at depth `>= N` are dropped; `only`/`except` still
11133
+ * apply within the levels that are kept. `0` removes every block-typed
11134
+ * field; `1` keeps top-level blocks but not blocks nested inside them.
11135
+ * - `'preserveAll'`: Projection does not evaluate within blocks at all:
11136
+ * `only`/`except` do not apply to fields within blocks. The top level block field
11137
+ * is still subject to projection rules, but its descendants are not.
11138
+ */
11139
+ blockDepth?: number | 'preserveAll';
11140
+ };
11141
+ type FieldTypesProjection = {
11142
+ /** Include only fields whose `type` matches one of these patterns. */
11143
+ only?: string[];
11144
+ /** Exclude fields whose `type` matches one of these patterns. */
11145
+ except?: string[];
11146
+ };
11147
+ type SlotsProjection = {
11148
+ /** Include only slots whose name matches one of these patterns. */
11149
+ only?: string[];
11150
+ /** Exclude slots whose name matches one of these patterns. */
11151
+ except?: string[];
11152
+ /**
11153
+ * Container-wide recursion-depth cap counted in slot levels from the root.
11154
+ * 0 means "no slots at all on the root"; 1 means "root's own slots but no
11155
+ * grandchildren slots". Per-name depth (see `named`) overrides this for
11156
+ * its specific slot.
11157
+ */
11158
+ depth?: number;
11159
+ /** Per-slot depth caps. Keyed by slot name. */
11160
+ named?: {
11161
+ [slotName: string]: {
11162
+ depth?: number;
11163
+ };
11164
+ };
11165
+ };
11166
+ type ProjectionSpec = {
11167
+ fields?: FieldsProjection;
11168
+ fieldTypes?: FieldTypesProjection;
11169
+ slots?: SlotsProjection;
11170
+ };
11171
+
11084
11172
  type PreviewPanelSettings = {
11085
11173
  isVisualEditingDisabled?: boolean;
11086
11174
  };
@@ -13117,94 +13205,6 @@ type WorkflowsPutParameters = WorkflowsApi['put']['requestBody']['content']['app
13117
13205
  /** Shape of the DELETE request body for /api/v1/workflows */
13118
13206
  type WorkflowsDeleteParameters = WorkflowsApi['delete']['requestBody']['content']['application/json'];
13119
13207
 
13120
- /**
13121
- * Data projection wire grammar (`select.*` query parameters) and shared spec
13122
- * type used by every consumer of projections: API serializers (SDK clients),
13123
- * the origin pruner (lib/canvas-sdk applyProjection), and localize (for the
13124
- * representation-modifier operator `fields[locales]`).
13125
- *
13126
- * Wire grammar (mirrors `filters.*`):
13127
- *
13128
- * select.fields[only]=name,seo_*
13129
- * select.fields[except]=internalNote
13130
- * select.fields[only]= // strip every field
13131
- * select.fields[except]=* // strip every field (wildcard form)
13132
- * select.fields[locales]=slug,seo_*
13133
- * select.fieldTypes[only]=text,number
13134
- * select.fieldTypes[except]=richText
13135
- * select.slots[only]=hero
13136
- * select.slots[except]=footer
13137
- * select.slots[depth]=2
13138
- * select.slots.<name>[depth]=1
13139
- * select.fields[blockDepth]=2
13140
- * select.fields[blockDepth]=preserveAll
13141
- */
13142
- /**
13143
- * Prefix used by every `select.*` query parameter on the wire. Exported so
13144
- * downstream prefix scans (lambda validator, edge search-param reader,
13145
- * origin handler short-circuits) and key builders don't hand-roll the
13146
- * literal at every call site.
13147
- */
13148
- declare const SELECT_QUERY_PREFIX = "select.";
13149
- type FieldsProjection = {
13150
- /** Include only fields whose name matches one of these patterns. */
13151
- only?: string[];
13152
- /** Exclude fields whose name matches one of these patterns. */
13153
- except?: string[];
13154
- /**
13155
- * Field-name patterns whose value should retain its full per-locale map
13156
- * (`locales` / `localesConditions`) after `localize` runs. Representation
13157
- * modifier; the pruner ignores this — see lib/canvas-sdk applyProjection.
13158
- */
13159
- locales?: string[];
13160
- /**
13161
- * Controls how far projection descends into block-typed fields (`$block`).
13162
- * A block field's value is an array of structured content, each with its own
13163
- * fields, so projection can recurse into it like any other node.
13164
- *
13165
- * - Omitted (default): projection descends into blocks without limit,
13166
- * applying `only`/`except` at every block level.
13167
- * - A non-negative integer `N`: keep block nesting up to `N` levels. Block
13168
- * fields on a node at depth `>= N` are dropped; `only`/`except` still
13169
- * apply within the levels that are kept. `0` removes every block-typed
13170
- * field; `1` keeps top-level blocks but not blocks nested inside them.
13171
- * - `'preserveAll'`: Projection does not evaluate within blocks at all:
13172
- * `only`/`except` do not apply to fields within blocks. The top level block field
13173
- * is still subject to projection rules, but its descendants are not.
13174
- */
13175
- blockDepth?: number | 'preserveAll';
13176
- };
13177
- type FieldTypesProjection = {
13178
- /** Include only fields whose `type` matches one of these patterns. */
13179
- only?: string[];
13180
- /** Exclude fields whose `type` matches one of these patterns. */
13181
- except?: string[];
13182
- };
13183
- type SlotsProjection = {
13184
- /** Include only slots whose name matches one of these patterns. */
13185
- only?: string[];
13186
- /** Exclude slots whose name matches one of these patterns. */
13187
- except?: string[];
13188
- /**
13189
- * Container-wide recursion-depth cap counted in slot levels from the root.
13190
- * 0 means "no slots at all on the root"; 1 means "root's own slots but no
13191
- * grandchildren slots". Per-name depth (see `named`) overrides this for
13192
- * its specific slot.
13193
- */
13194
- depth?: number;
13195
- /** Per-slot depth caps. Keyed by slot name. */
13196
- named?: {
13197
- [slotName: string]: {
13198
- depth?: number;
13199
- };
13200
- };
13201
- };
13202
- type ProjectionSpec = {
13203
- fields?: FieldsProjection;
13204
- fieldTypes?: FieldTypesProjection;
13205
- slots?: SlotsProjection;
13206
- };
13207
-
13208
13208
  /**
13209
13209
  * Optional data projection, shared by delivery + management `get`/`list` for
13210
13210
  * entries and compositions. Serialized to `select.*` querystring parameters
@@ -15657,7 +15657,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
15657
15657
  */
15658
15658
  declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable', offset: number) => void | false): number;
15659
15659
 
15660
- declare const version = "20.74.7";
15660
+ declare const version = "20.75.0";
15661
15661
 
15662
15662
  /** API client to enable managing workflow definitions */
15663
15663
  declare class WorkflowClient extends ApiClient {
package/dist/index.d.ts CHANGED
@@ -11081,6 +11081,94 @@ declare abstract class DeliveryClientBase extends ContentClientBase {
11081
11081
  protected coerceDiagnostics(diagnostics?: boolean | 'no-data'): boolean | 'no-data' | undefined;
11082
11082
  }
11083
11083
 
11084
+ /**
11085
+ * Data projection wire grammar (`select.*` query parameters) and shared spec
11086
+ * type used by every consumer of projections: API serializers (SDK clients),
11087
+ * the origin pruner (lib/canvas-sdk applyProjection), and localize (for the
11088
+ * representation-modifier operator `fields[locales]`).
11089
+ *
11090
+ * Wire grammar (mirrors `filters.*`):
11091
+ *
11092
+ * select.fields[only]=name,seo_*
11093
+ * select.fields[except]=internalNote
11094
+ * select.fields[only]= // strip every field
11095
+ * select.fields[except]=* // strip every field (wildcard form)
11096
+ * select.fields[locales]=slug,seo_*
11097
+ * select.fieldTypes[only]=text,number
11098
+ * select.fieldTypes[except]=richText
11099
+ * select.slots[only]=hero
11100
+ * select.slots[except]=footer
11101
+ * select.slots[depth]=2
11102
+ * select.slots.<name>[depth]=1
11103
+ * select.fields[blockDepth]=2
11104
+ * select.fields[blockDepth]=preserveAll
11105
+ */
11106
+ /**
11107
+ * Prefix used by every `select.*` query parameter on the wire. Exported so
11108
+ * downstream prefix scans (lambda validator, edge search-param reader,
11109
+ * origin handler short-circuits) and key builders don't hand-roll the
11110
+ * literal at every call site.
11111
+ */
11112
+ declare const SELECT_QUERY_PREFIX = "select.";
11113
+ type FieldsProjection = {
11114
+ /** Include only fields whose name matches one of these patterns. */
11115
+ only?: string[];
11116
+ /** Exclude fields whose name matches one of these patterns. */
11117
+ except?: string[];
11118
+ /**
11119
+ * Field-name patterns whose value should retain its full per-locale map
11120
+ * (`locales` / `localesConditions`) after `localize` runs. Representation
11121
+ * modifier; the pruner ignores this — see lib/canvas-sdk applyProjection.
11122
+ */
11123
+ locales?: string[];
11124
+ /**
11125
+ * Controls how far projection descends into block-typed fields (`$block`).
11126
+ * A block field's value is an array of structured content, each with its own
11127
+ * fields, so projection can recurse into it like any other node.
11128
+ *
11129
+ * - Omitted (default): projection descends into blocks without limit,
11130
+ * applying `only`/`except` at every block level.
11131
+ * - A non-negative integer `N`: keep block nesting up to `N` levels. Block
11132
+ * fields on a node at depth `>= N` are dropped; `only`/`except` still
11133
+ * apply within the levels that are kept. `0` removes every block-typed
11134
+ * field; `1` keeps top-level blocks but not blocks nested inside them.
11135
+ * - `'preserveAll'`: Projection does not evaluate within blocks at all:
11136
+ * `only`/`except` do not apply to fields within blocks. The top level block field
11137
+ * is still subject to projection rules, but its descendants are not.
11138
+ */
11139
+ blockDepth?: number | 'preserveAll';
11140
+ };
11141
+ type FieldTypesProjection = {
11142
+ /** Include only fields whose `type` matches one of these patterns. */
11143
+ only?: string[];
11144
+ /** Exclude fields whose `type` matches one of these patterns. */
11145
+ except?: string[];
11146
+ };
11147
+ type SlotsProjection = {
11148
+ /** Include only slots whose name matches one of these patterns. */
11149
+ only?: string[];
11150
+ /** Exclude slots whose name matches one of these patterns. */
11151
+ except?: string[];
11152
+ /**
11153
+ * Container-wide recursion-depth cap counted in slot levels from the root.
11154
+ * 0 means "no slots at all on the root"; 1 means "root's own slots but no
11155
+ * grandchildren slots". Per-name depth (see `named`) overrides this for
11156
+ * its specific slot.
11157
+ */
11158
+ depth?: number;
11159
+ /** Per-slot depth caps. Keyed by slot name. */
11160
+ named?: {
11161
+ [slotName: string]: {
11162
+ depth?: number;
11163
+ };
11164
+ };
11165
+ };
11166
+ type ProjectionSpec = {
11167
+ fields?: FieldsProjection;
11168
+ fieldTypes?: FieldTypesProjection;
11169
+ slots?: SlotsProjection;
11170
+ };
11171
+
11084
11172
  type PreviewPanelSettings = {
11085
11173
  isVisualEditingDisabled?: boolean;
11086
11174
  };
@@ -13117,94 +13205,6 @@ type WorkflowsPutParameters = WorkflowsApi['put']['requestBody']['content']['app
13117
13205
  /** Shape of the DELETE request body for /api/v1/workflows */
13118
13206
  type WorkflowsDeleteParameters = WorkflowsApi['delete']['requestBody']['content']['application/json'];
13119
13207
 
13120
- /**
13121
- * Data projection wire grammar (`select.*` query parameters) and shared spec
13122
- * type used by every consumer of projections: API serializers (SDK clients),
13123
- * the origin pruner (lib/canvas-sdk applyProjection), and localize (for the
13124
- * representation-modifier operator `fields[locales]`).
13125
- *
13126
- * Wire grammar (mirrors `filters.*`):
13127
- *
13128
- * select.fields[only]=name,seo_*
13129
- * select.fields[except]=internalNote
13130
- * select.fields[only]= // strip every field
13131
- * select.fields[except]=* // strip every field (wildcard form)
13132
- * select.fields[locales]=slug,seo_*
13133
- * select.fieldTypes[only]=text,number
13134
- * select.fieldTypes[except]=richText
13135
- * select.slots[only]=hero
13136
- * select.slots[except]=footer
13137
- * select.slots[depth]=2
13138
- * select.slots.<name>[depth]=1
13139
- * select.fields[blockDepth]=2
13140
- * select.fields[blockDepth]=preserveAll
13141
- */
13142
- /**
13143
- * Prefix used by every `select.*` query parameter on the wire. Exported so
13144
- * downstream prefix scans (lambda validator, edge search-param reader,
13145
- * origin handler short-circuits) and key builders don't hand-roll the
13146
- * literal at every call site.
13147
- */
13148
- declare const SELECT_QUERY_PREFIX = "select.";
13149
- type FieldsProjection = {
13150
- /** Include only fields whose name matches one of these patterns. */
13151
- only?: string[];
13152
- /** Exclude fields whose name matches one of these patterns. */
13153
- except?: string[];
13154
- /**
13155
- * Field-name patterns whose value should retain its full per-locale map
13156
- * (`locales` / `localesConditions`) after `localize` runs. Representation
13157
- * modifier; the pruner ignores this — see lib/canvas-sdk applyProjection.
13158
- */
13159
- locales?: string[];
13160
- /**
13161
- * Controls how far projection descends into block-typed fields (`$block`).
13162
- * A block field's value is an array of structured content, each with its own
13163
- * fields, so projection can recurse into it like any other node.
13164
- *
13165
- * - Omitted (default): projection descends into blocks without limit,
13166
- * applying `only`/`except` at every block level.
13167
- * - A non-negative integer `N`: keep block nesting up to `N` levels. Block
13168
- * fields on a node at depth `>= N` are dropped; `only`/`except` still
13169
- * apply within the levels that are kept. `0` removes every block-typed
13170
- * field; `1` keeps top-level blocks but not blocks nested inside them.
13171
- * - `'preserveAll'`: Projection does not evaluate within blocks at all:
13172
- * `only`/`except` do not apply to fields within blocks. The top level block field
13173
- * is still subject to projection rules, but its descendants are not.
13174
- */
13175
- blockDepth?: number | 'preserveAll';
13176
- };
13177
- type FieldTypesProjection = {
13178
- /** Include only fields whose `type` matches one of these patterns. */
13179
- only?: string[];
13180
- /** Exclude fields whose `type` matches one of these patterns. */
13181
- except?: string[];
13182
- };
13183
- type SlotsProjection = {
13184
- /** Include only slots whose name matches one of these patterns. */
13185
- only?: string[];
13186
- /** Exclude slots whose name matches one of these patterns. */
13187
- except?: string[];
13188
- /**
13189
- * Container-wide recursion-depth cap counted in slot levels from the root.
13190
- * 0 means "no slots at all on the root"; 1 means "root's own slots but no
13191
- * grandchildren slots". Per-name depth (see `named`) overrides this for
13192
- * its specific slot.
13193
- */
13194
- depth?: number;
13195
- /** Per-slot depth caps. Keyed by slot name. */
13196
- named?: {
13197
- [slotName: string]: {
13198
- depth?: number;
13199
- };
13200
- };
13201
- };
13202
- type ProjectionSpec = {
13203
- fields?: FieldsProjection;
13204
- fieldTypes?: FieldTypesProjection;
13205
- slots?: SlotsProjection;
13206
- };
13207
-
13208
13208
  /**
13209
13209
  * Optional data projection, shared by delivery + management `get`/`list` for
13210
13210
  * entries and compositions. Serialized to `select.*` querystring parameters
@@ -15657,7 +15657,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
15657
15657
  */
15658
15658
  declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable', offset: number) => void | false): number;
15659
15659
 
15660
- declare const version = "20.74.7";
15660
+ declare const version = "20.75.0";
15661
15661
 
15662
15662
  /** API client to enable managing workflow definitions */
15663
15663
  declare class WorkflowClient extends ApiClient {
package/dist/index.esm.js CHANGED
@@ -3998,7 +3998,7 @@ function handleRichTextNodeBinding(object, options) {
3998
3998
  import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
3999
3999
 
4000
4000
  // src/.version.ts
4001
- var version = "20.74.7";
4001
+ var version = "20.75.0";
4002
4002
 
4003
4003
  // src/WorkflowClient.ts
4004
4004
  import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
package/dist/index.js CHANGED
@@ -4213,7 +4213,7 @@ function handleRichTextNodeBinding(object, options) {
4213
4213
  var import_api27 = require("@uniformdev/context/api");
4214
4214
 
4215
4215
  // src/.version.ts
4216
- var version = "20.74.7";
4216
+ var version = "20.75.0";
4217
4217
 
4218
4218
  // src/WorkflowClient.ts
4219
4219
  var import_api26 = require("@uniformdev/context/api");
package/dist/index.mjs CHANGED
@@ -3998,7 +3998,7 @@ function handleRichTextNodeBinding(object, options) {
3998
3998
  import { ApiClientError as ApiClientError5 } from "@uniformdev/context/api";
3999
3999
 
4000
4000
  // src/.version.ts
4001
- var version = "20.74.7";
4001
+ var version = "20.75.0";
4002
4002
 
4003
4003
  // src/WorkflowClient.ts
4004
4004
  import { ApiClient as ApiClient18 } from "@uniformdev/context/api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "20.74.7",
3
+ "version": "20.75.0",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,9 +36,9 @@
36
36
  "svix": "1.96.0"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/assets": "20.74.7",
40
- "@uniformdev/context": "20.74.7",
41
- "@uniformdev/richtext": "20.74.7",
39
+ "@uniformdev/assets": "20.75.0",
40
+ "@uniformdev/context": "20.75.0",
41
+ "@uniformdev/richtext": "20.75.0",
42
42
  "immer": "10.2.0",
43
43
  "p-limit": "6.2.0",
44
44
  "p-retry": "6.2.1",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "97c2206b4a765c62db9a7d125e2de6b77e982e38"
53
+ "gitHead": "945b06786c480e1595d06bfc51f539ddcf15f7c5"
54
54
  }