@uniformdev/canvas-react 19.170.1 → 19.173.1-alpha.17

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
@@ -117,6 +117,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
117
117
  locales?: {
118
118
  [key: string]: unknown;
119
119
  } | undefined;
120
+ conditions?: {
121
+ when: {
122
+ op?: "&" | "|" | undefined;
123
+ clauses: (any | {
124
+ rule: string;
125
+ source?: string | undefined;
126
+ op: string;
127
+ value: string | string[];
128
+ })[];
129
+ };
130
+ value: unknown;
131
+ id: number;
132
+ }[] | undefined;
133
+ localesConditions?: {
134
+ [key: string]: {
135
+ when: {
136
+ op?: "&" | "|" | undefined;
137
+ clauses: (any | {
138
+ rule: string;
139
+ source?: string | undefined;
140
+ op: string;
141
+ value: string | string[];
142
+ })[];
143
+ };
144
+ value: unknown;
145
+ id: number;
146
+ }[];
147
+ } | undefined;
120
148
  };
121
149
  } | undefined;
122
150
  variant?: string | undefined;
@@ -157,6 +185,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
157
185
  locales?: {
158
186
  [key: string]: unknown;
159
187
  } | undefined;
188
+ conditions?: {
189
+ when: {
190
+ op?: "&" | "|" | undefined;
191
+ clauses: (any | {
192
+ rule: string;
193
+ source?: string | undefined;
194
+ op: string;
195
+ value: string | string[];
196
+ })[];
197
+ };
198
+ value: unknown;
199
+ id: number;
200
+ }[] | undefined;
201
+ localesConditions?: {
202
+ [key: string]: {
203
+ when: {
204
+ op?: "&" | "|" | undefined;
205
+ clauses: (any | {
206
+ rule: string;
207
+ source?: string | undefined;
208
+ op: string;
209
+ value: string | string[];
210
+ })[];
211
+ };
212
+ value: unknown;
213
+ id: number;
214
+ }[];
215
+ } | undefined;
160
216
  };
161
217
  } | undefined;
162
218
  variant?: string | undefined;
@@ -204,6 +260,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
204
260
  locales?: {
205
261
  [key: string]: unknown;
206
262
  } | undefined;
263
+ conditions?: {
264
+ when: {
265
+ op?: "&" | "|" | undefined;
266
+ clauses: (any | {
267
+ rule: string;
268
+ source?: string | undefined;
269
+ op: string;
270
+ value: string | string[];
271
+ })[];
272
+ };
273
+ value: unknown;
274
+ id: number;
275
+ }[] | undefined;
276
+ localesConditions?: {
277
+ [key: string]: {
278
+ when: {
279
+ op?: "&" | "|" | undefined;
280
+ clauses: (any | {
281
+ rule: string;
282
+ source?: string | undefined;
283
+ op: string;
284
+ value: string | string[];
285
+ })[];
286
+ };
287
+ value: unknown;
288
+ id: number;
289
+ }[];
290
+ } | undefined;
207
291
  };
208
292
  } | undefined;
209
293
  slots?: {
@@ -269,6 +353,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
269
353
  locales?: {
270
354
  [key: string]: unknown;
271
355
  } | undefined;
356
+ conditions?: {
357
+ when: {
358
+ op?: "&" | "|" | undefined;
359
+ clauses: (any | {
360
+ rule: string;
361
+ source?: string | undefined;
362
+ op: string;
363
+ value: string | string[];
364
+ })[];
365
+ };
366
+ value: unknown;
367
+ id: number;
368
+ }[] | undefined;
369
+ localesConditions?: {
370
+ [key: string]: {
371
+ when: {
372
+ op?: "&" | "|" | undefined;
373
+ clauses: (any | {
374
+ rule: string;
375
+ source?: string | undefined;
376
+ op: string;
377
+ value: string | string[];
378
+ })[];
379
+ };
380
+ value: unknown;
381
+ id: number;
382
+ }[];
383
+ } | undefined;
272
384
  };
273
385
  } | undefined;
274
386
  slots?: {
package/dist/index.d.ts CHANGED
@@ -117,6 +117,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
117
117
  locales?: {
118
118
  [key: string]: unknown;
119
119
  } | undefined;
120
+ conditions?: {
121
+ when: {
122
+ op?: "&" | "|" | undefined;
123
+ clauses: (any | {
124
+ rule: string;
125
+ source?: string | undefined;
126
+ op: string;
127
+ value: string | string[];
128
+ })[];
129
+ };
130
+ value: unknown;
131
+ id: number;
132
+ }[] | undefined;
133
+ localesConditions?: {
134
+ [key: string]: {
135
+ when: {
136
+ op?: "&" | "|" | undefined;
137
+ clauses: (any | {
138
+ rule: string;
139
+ source?: string | undefined;
140
+ op: string;
141
+ value: string | string[];
142
+ })[];
143
+ };
144
+ value: unknown;
145
+ id: number;
146
+ }[];
147
+ } | undefined;
120
148
  };
121
149
  } | undefined;
122
150
  variant?: string | undefined;
@@ -157,6 +185,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
157
185
  locales?: {
158
186
  [key: string]: unknown;
159
187
  } | undefined;
188
+ conditions?: {
189
+ when: {
190
+ op?: "&" | "|" | undefined;
191
+ clauses: (any | {
192
+ rule: string;
193
+ source?: string | undefined;
194
+ op: string;
195
+ value: string | string[];
196
+ })[];
197
+ };
198
+ value: unknown;
199
+ id: number;
200
+ }[] | undefined;
201
+ localesConditions?: {
202
+ [key: string]: {
203
+ when: {
204
+ op?: "&" | "|" | undefined;
205
+ clauses: (any | {
206
+ rule: string;
207
+ source?: string | undefined;
208
+ op: string;
209
+ value: string | string[];
210
+ })[];
211
+ };
212
+ value: unknown;
213
+ id: number;
214
+ }[];
215
+ } | undefined;
160
216
  };
161
217
  } | undefined;
162
218
  variant?: string | undefined;
@@ -204,6 +260,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
204
260
  locales?: {
205
261
  [key: string]: unknown;
206
262
  } | undefined;
263
+ conditions?: {
264
+ when: {
265
+ op?: "&" | "|" | undefined;
266
+ clauses: (any | {
267
+ rule: string;
268
+ source?: string | undefined;
269
+ op: string;
270
+ value: string | string[];
271
+ })[];
272
+ };
273
+ value: unknown;
274
+ id: number;
275
+ }[] | undefined;
276
+ localesConditions?: {
277
+ [key: string]: {
278
+ when: {
279
+ op?: "&" | "|" | undefined;
280
+ clauses: (any | {
281
+ rule: string;
282
+ source?: string | undefined;
283
+ op: string;
284
+ value: string | string[];
285
+ })[];
286
+ };
287
+ value: unknown;
288
+ id: number;
289
+ }[];
290
+ } | undefined;
207
291
  };
208
292
  } | undefined;
209
293
  slots?: {
@@ -269,6 +353,34 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
269
353
  locales?: {
270
354
  [key: string]: unknown;
271
355
  } | undefined;
356
+ conditions?: {
357
+ when: {
358
+ op?: "&" | "|" | undefined;
359
+ clauses: (any | {
360
+ rule: string;
361
+ source?: string | undefined;
362
+ op: string;
363
+ value: string | string[];
364
+ })[];
365
+ };
366
+ value: unknown;
367
+ id: number;
368
+ }[] | undefined;
369
+ localesConditions?: {
370
+ [key: string]: {
371
+ when: {
372
+ op?: "&" | "|" | undefined;
373
+ clauses: (any | {
374
+ rule: string;
375
+ source?: string | undefined;
376
+ op: string;
377
+ value: string | string[];
378
+ })[];
379
+ };
380
+ value: unknown;
381
+ id: number;
382
+ }[];
383
+ } | undefined;
272
384
  };
273
385
  } | undefined;
274
386
  slots?: {
package/dist/index.esm.js CHANGED
@@ -234,7 +234,11 @@ var PureContextualEditingComponentWrapper = ({
234
234
  import React4, { createContext, useContext } from "react";
235
235
 
236
236
  // src/hooks/useClientConditionsComposition.ts
237
- import { evaluateWalkTreeVisibility, walkNodeTree } from "@uniformdev/canvas";
237
+ import {
238
+ evaluateWalkTreeNodeVisibility,
239
+ evaluateWalkTreePropertyCriteria,
240
+ walkNodeTree
241
+ } from "@uniformdev/canvas";
238
242
  import { produce } from "immer";
239
243
  import { useMemo as useMemo2 } from "react";
240
244
 
@@ -261,7 +265,8 @@ function useClientConditionsComposition(data) {
261
265
  try {
262
266
  return produce(data, (draft) => {
263
267
  walkNodeTree(draft, (context) => {
264
- evaluateWalkTreeVisibility({ context, rules, showIndeterminate: false });
268
+ evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false });
269
+ evaluateWalkTreePropertyCriteria({ node: context.node, rules, keepIndeterminate: false });
265
270
  });
266
271
  });
267
272
  } catch (e) {
package/dist/index.js CHANGED
@@ -301,7 +301,8 @@ function useClientConditionsComposition(data) {
301
301
  try {
302
302
  return (0, import_immer.produce)(data, (draft) => {
303
303
  (0, import_canvas5.walkNodeTree)(draft, (context) => {
304
- (0, import_canvas5.evaluateWalkTreeVisibility)({ context, rules, showIndeterminate: false });
304
+ (0, import_canvas5.evaluateWalkTreeNodeVisibility)({ context, rules, showIndeterminate: false });
305
+ (0, import_canvas5.evaluateWalkTreePropertyCriteria)({ node: context.node, rules, keepIndeterminate: false });
305
306
  });
306
307
  });
307
308
  } catch (e) {
package/dist/index.mjs CHANGED
@@ -234,7 +234,11 @@ var PureContextualEditingComponentWrapper = ({
234
234
  import React4, { createContext, useContext } from "react";
235
235
 
236
236
  // src/hooks/useClientConditionsComposition.ts
237
- import { evaluateWalkTreeVisibility, walkNodeTree } from "@uniformdev/canvas";
237
+ import {
238
+ evaluateWalkTreeNodeVisibility,
239
+ evaluateWalkTreePropertyCriteria,
240
+ walkNodeTree
241
+ } from "@uniformdev/canvas";
238
242
  import { produce } from "immer";
239
243
  import { useMemo as useMemo2 } from "react";
240
244
 
@@ -261,7 +265,8 @@ function useClientConditionsComposition(data) {
261
265
  try {
262
266
  return produce(data, (draft) => {
263
267
  walkNodeTree(draft, (context) => {
264
- evaluateWalkTreeVisibility({ context, rules, showIndeterminate: false });
268
+ evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false });
269
+ evaluateWalkTreePropertyCriteria({ node: context.node, rules, keepIndeterminate: false });
265
270
  });
266
271
  });
267
272
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.170.1",
3
+ "version": "19.173.1-alpha.17+25c1176cea",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,10 +45,10 @@
45
45
  "document": "api-extractor run --local"
46
46
  },
47
47
  "dependencies": {
48
- "@uniformdev/canvas": "19.170.1",
49
- "@uniformdev/context": "19.170.1",
50
- "@uniformdev/context-react": "19.170.1",
51
- "@uniformdev/richtext": "19.170.1"
48
+ "@uniformdev/canvas": "19.173.1-alpha.17+25c1176cea",
49
+ "@uniformdev/context": "19.173.1-alpha.17+25c1176cea",
50
+ "@uniformdev/context-react": "19.173.1-alpha.17+25c1176cea",
51
+ "@uniformdev/richtext": "19.173.1-alpha.17+25c1176cea"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "immer": ">= 10",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "702c0e149e1470e21ac9a61526c7f2ab668abd84"
70
+ "gitHead": "25c1176cea8d5114b92fc75cdd8bba4aa6463a50"
71
71
  }