@uniformdev/canvas-react 19.173.1-alpha.17 → 19.175.1-alpha.35

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;
@@ -227,6 +171,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
227
171
  isPatternParameter?: boolean | undefined;
228
172
  ignorePatternParameterDefault?: boolean | undefined;
229
173
  optionalPatternParameter?: boolean | undefined;
174
+ isDraft?: boolean | undefined;
230
175
  variables?: {
231
176
  [key: string]: string;
232
177
  } | undefined;
@@ -238,6 +183,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
238
183
  isPatternParameter?: boolean | undefined;
239
184
  ignorePatternParameterDefault?: boolean | undefined;
240
185
  optionalPatternParameter?: boolean | undefined;
186
+ isDraft?: boolean | undefined;
241
187
  variables?: {
242
188
  [key: string]: string;
243
189
  } | undefined;
@@ -260,34 +206,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
260
206
  locales?: {
261
207
  [key: string]: unknown;
262
208
  } | 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
209
  };
292
210
  } | undefined;
293
211
  slots?: {
@@ -320,6 +238,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
320
238
  isPatternParameter?: boolean | undefined;
321
239
  ignorePatternParameterDefault?: boolean | undefined;
322
240
  optionalPatternParameter?: boolean | undefined;
241
+ isDraft?: boolean | undefined;
323
242
  variables?: {
324
243
  [key: string]: string;
325
244
  } | undefined;
@@ -331,6 +250,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
331
250
  isPatternParameter?: boolean | undefined;
332
251
  ignorePatternParameterDefault?: boolean | undefined;
333
252
  optionalPatternParameter?: boolean | undefined;
253
+ isDraft?: boolean | undefined;
334
254
  variables?: {
335
255
  [key: string]: string;
336
256
  } | undefined;
@@ -353,34 +273,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
353
273
  locales?: {
354
274
  [key: string]: unknown;
355
275
  } | 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
276
  };
385
277
  } | undefined;
386
278
  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;
@@ -227,6 +171,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
227
171
  isPatternParameter?: boolean | undefined;
228
172
  ignorePatternParameterDefault?: boolean | undefined;
229
173
  optionalPatternParameter?: boolean | undefined;
174
+ isDraft?: boolean | undefined;
230
175
  variables?: {
231
176
  [key: string]: string;
232
177
  } | undefined;
@@ -238,6 +183,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
238
183
  isPatternParameter?: boolean | undefined;
239
184
  ignorePatternParameterDefault?: boolean | undefined;
240
185
  optionalPatternParameter?: boolean | undefined;
186
+ isDraft?: boolean | undefined;
241
187
  variables?: {
242
188
  [key: string]: string;
243
189
  } | undefined;
@@ -260,34 +206,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
260
206
  locales?: {
261
207
  [key: string]: unknown;
262
208
  } | 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
209
  };
292
210
  } | undefined;
293
211
  slots?: {
@@ -320,6 +238,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
320
238
  isPatternParameter?: boolean | undefined;
321
239
  ignorePatternParameterDefault?: boolean | undefined;
322
240
  optionalPatternParameter?: boolean | undefined;
241
+ isDraft?: boolean | undefined;
323
242
  variables?: {
324
243
  [key: string]: string;
325
244
  } | undefined;
@@ -331,6 +250,7 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
331
250
  isPatternParameter?: boolean | undefined;
332
251
  ignorePatternParameterDefault?: boolean | undefined;
333
252
  optionalPatternParameter?: boolean | undefined;
253
+ isDraft?: boolean | undefined;
334
254
  variables?: {
335
255
  [key: string]: string;
336
256
  } | undefined;
@@ -353,34 +273,6 @@ declare const useUniformContextualEditing: ({ initialCompositionValue, enhance,
353
273
  locales?: {
354
274
  [key: string]: unknown;
355
275
  } | 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
276
  };
385
277
  } | undefined;
386
278
  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.175.1-alpha.35+f2ac62967d",
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.175.1-alpha.35+f2ac62967d",
49
+ "@uniformdev/context": "19.175.1-alpha.35+f2ac62967d",
50
+ "@uniformdev/context-react": "19.175.1-alpha.35+f2ac62967d",
51
+ "@uniformdev/richtext": "19.175.1-alpha.35+f2ac62967d"
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": "f2ac62967d4046285a3cf007cf90fd2889510262"
71
71
  }