@uniformdev/canvas-react 19.173.1-alpha.17 → 19.176.1-alpha.9

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,34 +117,6 @@ 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;
148
120
  };
149
121
  } | undefined;
150
122
  variant?: string | undefined;
@@ -185,34 +157,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
185
157
  locales?: {
186
158
  [key: string]: unknown;
187
159
  } | 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;
216
160
  };
217
161
  } | undefined;
218
162
  variant?: string | undefined;
@@ -260,34 +204,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
260
204
  locales?: {
261
205
  [key: string]: unknown;
262
206
  } | 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;
291
207
  };
292
208
  } | undefined;
293
209
  slots?: {
@@ -353,34 +269,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
353
269
  locales?: {
354
270
  [key: string]: unknown;
355
271
  } | 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;
384
272
  };
385
273
  } | undefined;
386
274
  slots?: {
package/dist/index.d.ts CHANGED
@@ -117,34 +117,6 @@ 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;
148
120
  };
149
121
  } | undefined;
150
122
  variant?: string | undefined;
@@ -185,34 +157,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
185
157
  locales?: {
186
158
  [key: string]: unknown;
187
159
  } | 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;
216
160
  };
217
161
  } | undefined;
218
162
  variant?: string | undefined;
@@ -260,34 +204,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
260
204
  locales?: {
261
205
  [key: string]: unknown;
262
206
  } | 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;
291
207
  };
292
208
  } | undefined;
293
209
  slots?: {
@@ -353,34 +269,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
353
269
  locales?: {
354
270
  [key: string]: unknown;
355
271
  } | 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;
384
272
  };
385
273
  } | undefined;
386
274
  slots?: {
package/dist/index.esm.js CHANGED
@@ -234,11 +234,7 @@ var PureContextualEditingComponentWrapper = ({
234
234
  import React4, { createContext, useContext } from "react";
235
235
 
236
236
  // src/hooks/useClientConditionsComposition.ts
237
- import {
238
- evaluateWalkTreeNodeVisibility,
239
- evaluateWalkTreePropertyCriteria,
240
- walkNodeTree
241
- } from "@uniformdev/canvas";
237
+ import { evaluateWalkTreeVisibility, walkNodeTree } from "@uniformdev/canvas";
242
238
  import { produce } from "immer";
243
239
  import { useMemo as useMemo2 } from "react";
244
240
 
@@ -265,8 +261,7 @@ function useClientConditionsComposition(data) {
265
261
  try {
266
262
  return produce(data, (draft) => {
267
263
  walkNodeTree(draft, (context) => {
268
- evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false });
269
- evaluateWalkTreePropertyCriteria({ node: context.node, rules, keepIndeterminate: false });
264
+ evaluateWalkTreeVisibility({ context, rules, showIndeterminate: false });
270
265
  });
271
266
  });
272
267
  } catch (e) {
package/dist/index.js CHANGED
@@ -301,8 +301,7 @@ 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.evaluateWalkTreeNodeVisibility)({ context, rules, showIndeterminate: false });
305
- (0, import_canvas5.evaluateWalkTreePropertyCriteria)({ node: context.node, rules, keepIndeterminate: false });
304
+ (0, import_canvas5.evaluateWalkTreeVisibility)({ context, rules, showIndeterminate: false });
306
305
  });
307
306
  });
308
307
  } catch (e) {
package/dist/index.mjs CHANGED
@@ -234,11 +234,7 @@ var PureContextualEditingComponentWrapper = ({
234
234
  import React4, { createContext, useContext } from "react";
235
235
 
236
236
  // src/hooks/useClientConditionsComposition.ts
237
- import {
238
- evaluateWalkTreeNodeVisibility,
239
- evaluateWalkTreePropertyCriteria,
240
- walkNodeTree
241
- } from "@uniformdev/canvas";
237
+ import { evaluateWalkTreeVisibility, walkNodeTree } from "@uniformdev/canvas";
242
238
  import { produce } from "immer";
243
239
  import { useMemo as useMemo2 } from "react";
244
240
 
@@ -265,8 +261,7 @@ function useClientConditionsComposition(data) {
265
261
  try {
266
262
  return produce(data, (draft) => {
267
263
  walkNodeTree(draft, (context) => {
268
- evaluateWalkTreeNodeVisibility({ context, rules, showIndeterminate: false });
269
- evaluateWalkTreePropertyCriteria({ node: context.node, rules, keepIndeterminate: false });
264
+ evaluateWalkTreeVisibility({ context, rules, showIndeterminate: false });
270
265
  });
271
266
  });
272
267
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.173.1-alpha.17+25c1176cea",
3
+ "version": "19.176.1-alpha.9+f0d014e428",
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.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"
48
+ "@uniformdev/canvas": "19.176.1-alpha.9+f0d014e428",
49
+ "@uniformdev/context": "19.176.1-alpha.9+f0d014e428",
50
+ "@uniformdev/context-react": "19.176.1-alpha.9+f0d014e428",
51
+ "@uniformdev/richtext": "19.176.1-alpha.9+f0d014e428"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "immer": ">= 10",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "25c1176cea8d5114b92fc75cdd8bba4aa6463a50"
70
+ "gitHead": "f0d014e4289935e7192ae91d421883c8b49cc3fb"
71
71
  }