@contentstack/studio-internal 1.5.0 → 1.6.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/constants/condition.d.ts +46 -0
- package/dist/constants/condition.d.ts.map +1 -1
- package/dist/constants/condition.js +41 -1
- package/dist/constants/condition.js.map +1 -1
- package/dist/index.d.ts +86 -8
- package/dist/interfaces/node.d.ts +9 -6
- package/dist/interfaces/node.d.ts.map +1 -1
- package/dist/interfaces/node.js.map +1 -1
- package/dist/types/condition-types.d.ts +31 -2
- package/dist/types/condition-types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -212,6 +212,38 @@ export declare const IMAGE_EXTENSION_OPERATOR: readonly [{
|
|
|
212
212
|
readonly label: "Is Not";
|
|
213
213
|
readonly value: "isNot";
|
|
214
214
|
}];
|
|
215
|
+
/**
|
|
216
|
+
* Existence operators apply to EVERY condition subject — a field, a field
|
|
217
|
+
* property, or a complex field via its `exists` sub-type — so they are
|
|
218
|
+
* evaluated before `evaluateCondition`'s type switch rather than inside it.
|
|
219
|
+
*
|
|
220
|
+
* They ask about the KEY, not the value: `exists` is true for a key present
|
|
221
|
+
* with `null` / `0` / `false` / `""`. That is deliberately narrower than
|
|
222
|
+
* `isEmpty`, which asks about the value and is also true for a missing key.
|
|
223
|
+
*/
|
|
224
|
+
export declare const EXISTENCE_OPERATORS: readonly [{
|
|
225
|
+
readonly label: "Exists";
|
|
226
|
+
readonly value: "exists";
|
|
227
|
+
}, {
|
|
228
|
+
readonly label: "Does not exist";
|
|
229
|
+
readonly value: "notExists";
|
|
230
|
+
}];
|
|
231
|
+
/**
|
|
232
|
+
* Emptiness operators ask about the VALUE, where existence asks about the key:
|
|
233
|
+
* `null`, `""`, `[]` and `{}` are empty; `0` and `false` are not — they are
|
|
234
|
+
* values a user deliberately chose.
|
|
235
|
+
*
|
|
236
|
+
* They are also members of TEXT_OPERATORS (where they have always lived, and
|
|
237
|
+
* where `StringOperator` derives from), so any list that already carries them
|
|
238
|
+
* must not gain a duplicate when these are appended.
|
|
239
|
+
*/
|
|
240
|
+
export declare const EMPTINESS_OPERATORS: readonly [{
|
|
241
|
+
readonly label: "Is empty";
|
|
242
|
+
readonly value: "isEmpty";
|
|
243
|
+
}, {
|
|
244
|
+
readonly label: "Is not empty";
|
|
245
|
+
readonly value: "isNotEmpty";
|
|
246
|
+
}];
|
|
215
247
|
export declare const CONDITION_OPERATORS: {
|
|
216
248
|
TEXT_OPERATORS: ({
|
|
217
249
|
readonly label: "Equals";
|
|
@@ -409,5 +441,19 @@ export declare const CONDITION_OPERATORS: {
|
|
|
409
441
|
readonly label: "Is Not";
|
|
410
442
|
readonly value: "isNot";
|
|
411
443
|
})[];
|
|
444
|
+
EXISTENCE_OPERATORS: ({
|
|
445
|
+
readonly label: "Exists";
|
|
446
|
+
readonly value: "exists";
|
|
447
|
+
} | {
|
|
448
|
+
readonly label: "Does not exist";
|
|
449
|
+
readonly value: "notExists";
|
|
450
|
+
})[];
|
|
451
|
+
EMPTINESS_OPERATORS: ({
|
|
452
|
+
readonly label: "Is empty";
|
|
453
|
+
readonly value: "isEmpty";
|
|
454
|
+
} | {
|
|
455
|
+
readonly label: "Is not empty";
|
|
456
|
+
readonly value: "isNotEmpty";
|
|
457
|
+
})[];
|
|
412
458
|
};
|
|
413
459
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../src/constants/condition.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BjB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;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,MAAM,sBAAsB;;;;;;EASzB,CAAC;AAEX,eAAO,MAAM,gCAAgC;;;;;;;;EAOnC,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;EAI3B,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;;;EAStB,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;;;EAStB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC"}
|
|
@@ -152,6 +152,44 @@ const IMAGE_EXTENSION_OPERATOR = [
|
|
|
152
152
|
{ ...EQUAL_OPERATOR },
|
|
153
153
|
{ ...IS_NOT_OPERATOR },
|
|
154
154
|
];
|
|
155
|
+
/**
|
|
156
|
+
* Existence operators apply to EVERY condition subject — a field, a field
|
|
157
|
+
* property, or a complex field via its `exists` sub-type — so they are
|
|
158
|
+
* evaluated before `evaluateCondition`'s type switch rather than inside it.
|
|
159
|
+
*
|
|
160
|
+
* They ask about the KEY, not the value: `exists` is true for a key present
|
|
161
|
+
* with `null` / `0` / `false` / `""`. That is deliberately narrower than
|
|
162
|
+
* `isEmpty`, which asks about the value and is also true for a missing key.
|
|
163
|
+
*/
|
|
164
|
+
const EXISTENCE_OPERATORS = [
|
|
165
|
+
{
|
|
166
|
+
label: "Exists",
|
|
167
|
+
value: "exists",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
label: "Does not exist",
|
|
171
|
+
value: "notExists",
|
|
172
|
+
},
|
|
173
|
+
];
|
|
174
|
+
/**
|
|
175
|
+
* Emptiness operators ask about the VALUE, where existence asks about the key:
|
|
176
|
+
* `null`, `""`, `[]` and `{}` are empty; `0` and `false` are not — they are
|
|
177
|
+
* values a user deliberately chose.
|
|
178
|
+
*
|
|
179
|
+
* They are also members of TEXT_OPERATORS (where they have always lived, and
|
|
180
|
+
* where `StringOperator` derives from), so any list that already carries them
|
|
181
|
+
* must not gain a duplicate when these are appended.
|
|
182
|
+
*/
|
|
183
|
+
const EMPTINESS_OPERATORS = [
|
|
184
|
+
{
|
|
185
|
+
label: "Is empty",
|
|
186
|
+
value: "isEmpty",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: "Is not empty",
|
|
190
|
+
value: "isNotEmpty",
|
|
191
|
+
},
|
|
192
|
+
];
|
|
155
193
|
const CONDITION_OPERATORS = {
|
|
156
194
|
TEXT_OPERATORS: [...TEXT_OPERATORS],
|
|
157
195
|
COMPARISON_OPERATORS: [...COMPARISON_OPERATORS],
|
|
@@ -164,7 +202,9 @@ const CONDITION_OPERATORS = {
|
|
|
164
202
|
REFERENCE_OPERATORS: [...REFERENCE_OPERATORS],
|
|
165
203
|
REFERENCE_CONTENT_TYPE_OPERATORS: [...REFERENCE_CONTENT_TYPE_OPERATORS],
|
|
166
204
|
IMAGE_EXTENSION_OPERATOR: [...IMAGE_EXTENSION_OPERATOR],
|
|
205
|
+
EXISTENCE_OPERATORS: [...EXISTENCE_OPERATORS],
|
|
206
|
+
EMPTINESS_OPERATORS: [...EMPTINESS_OPERATORS],
|
|
167
207
|
};
|
|
168
208
|
|
|
169
|
-
export { ARRAY_OPERATORS, BOOLEAN_OPERATORS, COMPARISON_OPERATORS, CONDITION_OPERATORS, EQUAL_OPERATOR, IMAGE_EXTENSION_OPERATOR, IS_NOT_OPERATOR, IS_OPERATOR, MODULAR_BLOCK_NAME_OPERATORS, MODULAR_BLOCK_OPERATORS, MULTI_SELECT_OPERATORS, NOT_EQUAL_OPERATOR, REFERENCE_CONTENT_TYPE_OPERATORS, REFERENCE_OPERATORS, SINGLE_SELECT_OPERATORS, TEXT_OPERATORS };
|
|
209
|
+
export { ARRAY_OPERATORS, BOOLEAN_OPERATORS, COMPARISON_OPERATORS, CONDITION_OPERATORS, EMPTINESS_OPERATORS, EQUAL_OPERATOR, EXISTENCE_OPERATORS, IMAGE_EXTENSION_OPERATOR, IS_NOT_OPERATOR, IS_OPERATOR, MODULAR_BLOCK_NAME_OPERATORS, MODULAR_BLOCK_OPERATORS, MULTI_SELECT_OPERATORS, NOT_EQUAL_OPERATOR, REFERENCE_CONTENT_TYPE_OPERATORS, REFERENCE_OPERATORS, SINGLE_SELECT_OPERATORS, TEXT_OPERATORS };
|
|
170
210
|
//# sourceMappingURL=condition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.js","sources":["../../src/constants/condition.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;AACzB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,KAAK,EAAE,IAAI;;AAGN,MAAM,eAAe,GAAG;AAC7B,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,OAAO;;AAGT,MAAM,cAAc,GAAG;AAC5B,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;;AAGP,MAAM,kBAAkB,GAAG;AAChC,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE,IAAI;;AAGP,MAAM,cAAc,GAAG;AAC5B,IAAA;AACE,QAAA,GAAG,cAAc;AAClB,KAAA;AACD,IAAA;AACE,QAAA,GAAG,kBAAkB;AACtB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,KAAK,EAAE,UAAU;AAClB,KAAA;AACD,IAAA;AACE,QAAA,KA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IAAA,GAAG,gCAAgC;AACnC,IAAA,GAAG,eAAe;;AAGb,MAAM,wBAAwB,GAAG;IACtC,EAAE,GAAG,WAAW,EAAE;IAClB,EAAE,GAAG,cAAc,EAAE;IACrB,EAAE,GAAG,eAAe,EAAE;;
|
|
1
|
+
{"version":3,"file":"condition.js","sources":["../../src/constants/condition.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;AACzB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,KAAK,EAAE,IAAI;;AAGN,MAAM,eAAe,GAAG;AAC7B,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,OAAO;;AAGT,MAAM,cAAc,GAAG;AAC5B,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;;AAGP,MAAM,kBAAkB,GAAG;AAChC,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,MAAM,EAAE,IAAI;;AAGP,MAAM,cAAc,GAAG;AAC5B,IAAA;AACE,QAAA,GAAG,cAAc;AAClB,KAAA;AACD,IAAA;AACE,QAAA,GAAG,kBAAkB;AACtB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,KAAK,EAAE,UAAU;AAClB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,KAAK,EAAE,YAAY;AACpB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,WAAW;AAClB,QAAA,KAAK,EAAE,UAAU;AAClB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,KAA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E,WAAW;AACnB,KAAA;;AAGH;;;;;;;;AAQG;AACI,MAAM,mBAAmB,GAAG;AACjC,IAAA;AACE,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE,cAAc;AACrB,QAAA,KAAK,EAAE,YAAY;AACpB,KAAA;;AAGI,MAAM,mBAAmB,GAAG;AACjC,IAAA,cAAc,EAAE,CAAC,GAAG,cAAc,CAAC;AACnC,IAAA,oBAAoB,EAAE,CAAC,GAAG,oBAAoB,CAAC;AAC/C,IAAA,uBAAuB,EAAE,CAAC,GAAG,uBAAuB,CAAC;AACrD,IAAA,4BAA4B,EAAE,CAAC,GAAG,4BAA4B,CAAC;AAC/D,IAAA,eAAe,EAAE,CAAC,GAAG,eAAe,CAAC;AACrC,IAAA,iBAAiB,EAAE,CAAC,GAAG,iBAAiB,CAAC;AACzC,IAAA,uBAAuB,EAAE,CAAC,GAAG,uBAAuB,CAAC;AACrD,IAAA,sBAAsB,EAAE,CAAC,GAAG,sBAAsB,CAAC;AACnD,IAAA,mBAAmB,EAAE,CAAC,GAAG,mBAAmB,CAAC;AAC7C,IAAA,gCAAgC,EAAE,CAAC,GAAG,gCAAgC,CAAC;AACvE,IAAA,wBAAwB,EAAE,CAAC,GAAG,wBAAwB,CAAC;AACvD,IAAA,mBAAmB,EAAE,CAAC,GAAG,mBAAmB,CAAC;AAC7C,IAAA,mBAAmB,EAAE,CAAC,GAAG,mBAAmB,CAAC;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -200,6 +200,38 @@ declare const IMAGE_EXTENSION_OPERATOR: readonly [{
|
|
|
200
200
|
readonly label: "Is Not";
|
|
201
201
|
readonly value: "isNot";
|
|
202
202
|
}];
|
|
203
|
+
/**
|
|
204
|
+
* Existence operators apply to EVERY condition subject — a field, a field
|
|
205
|
+
* property, or a complex field via its `exists` sub-type — so they are
|
|
206
|
+
* evaluated before `evaluateCondition`'s type switch rather than inside it.
|
|
207
|
+
*
|
|
208
|
+
* They ask about the KEY, not the value: `exists` is true for a key present
|
|
209
|
+
* with `null` / `0` / `false` / `""`. That is deliberately narrower than
|
|
210
|
+
* `isEmpty`, which asks about the value and is also true for a missing key.
|
|
211
|
+
*/
|
|
212
|
+
declare const EXISTENCE_OPERATORS: readonly [{
|
|
213
|
+
readonly label: "Exists";
|
|
214
|
+
readonly value: "exists";
|
|
215
|
+
}, {
|
|
216
|
+
readonly label: "Does not exist";
|
|
217
|
+
readonly value: "notExists";
|
|
218
|
+
}];
|
|
219
|
+
/**
|
|
220
|
+
* Emptiness operators ask about the VALUE, where existence asks about the key:
|
|
221
|
+
* `null`, `""`, `[]` and `{}` are empty; `0` and `false` are not — they are
|
|
222
|
+
* values a user deliberately chose.
|
|
223
|
+
*
|
|
224
|
+
* They are also members of TEXT_OPERATORS (where they have always lived, and
|
|
225
|
+
* where `StringOperator` derives from), so any list that already carries them
|
|
226
|
+
* must not gain a duplicate when these are appended.
|
|
227
|
+
*/
|
|
228
|
+
declare const EMPTINESS_OPERATORS: readonly [{
|
|
229
|
+
readonly label: "Is empty";
|
|
230
|
+
readonly value: "isEmpty";
|
|
231
|
+
}, {
|
|
232
|
+
readonly label: "Is not empty";
|
|
233
|
+
readonly value: "isNotEmpty";
|
|
234
|
+
}];
|
|
203
235
|
declare const CONDITION_OPERATORS: {
|
|
204
236
|
TEXT_OPERATORS: ({
|
|
205
237
|
readonly label: "Equals";
|
|
@@ -397,6 +429,20 @@ declare const CONDITION_OPERATORS: {
|
|
|
397
429
|
readonly label: "Is Not";
|
|
398
430
|
readonly value: "isNot";
|
|
399
431
|
})[];
|
|
432
|
+
EXISTENCE_OPERATORS: ({
|
|
433
|
+
readonly label: "Exists";
|
|
434
|
+
readonly value: "exists";
|
|
435
|
+
} | {
|
|
436
|
+
readonly label: "Does not exist";
|
|
437
|
+
readonly value: "notExists";
|
|
438
|
+
})[];
|
|
439
|
+
EMPTINESS_OPERATORS: ({
|
|
440
|
+
readonly label: "Is empty";
|
|
441
|
+
readonly value: "isEmpty";
|
|
442
|
+
} | {
|
|
443
|
+
readonly label: "Is not empty";
|
|
444
|
+
readonly value: "isNotEmpty";
|
|
445
|
+
})[];
|
|
400
446
|
};
|
|
401
447
|
|
|
402
448
|
type ComparisonOperator = (typeof COMPARISON_OPERATORS)[number]["value"];
|
|
@@ -409,6 +455,8 @@ type SingleSelectOperator = (typeof SINGLE_SELECT_OPERATORS)[number]["value"];
|
|
|
409
455
|
type MultiSelectOperator = (typeof MULTI_SELECT_OPERATORS)[number]["value"];
|
|
410
456
|
type SelectOperator = SingleSelectOperator | MultiSelectOperator;
|
|
411
457
|
type ReferenceOperator = (typeof REFERENCE_OPERATORS)[number]["value"];
|
|
458
|
+
type ExistenceOperator = (typeof EXISTENCE_OPERATORS)[number]["value"];
|
|
459
|
+
type EmptinessOperator = (typeof EMPTINESS_OPERATORS)[number]["value"];
|
|
412
460
|
type ConditionBindings = {
|
|
413
461
|
conditionBinding: BindingType;
|
|
414
462
|
dataBinding: BindingType;
|
|
@@ -465,12 +513,35 @@ type ImageSizeCondition = {
|
|
|
465
513
|
value: number;
|
|
466
514
|
} & ConditionBindings;
|
|
467
515
|
type ImageCondition = ImageSizeCondition | ImageExtensionCondition;
|
|
468
|
-
|
|
516
|
+
/**
|
|
517
|
+
* The subject types a presence check (existence or emptiness) can be authored
|
|
518
|
+
* against. Mirrors the `type` of every other condition so a subject keeps
|
|
519
|
+
* describing what it IS even when the operator ignores its value — plus
|
|
520
|
+
* `"file"`, which exists only here because an asset has no comparable value of
|
|
521
|
+
* its own (every other file condition is expressed through a sub-type:
|
|
522
|
+
* `image_extension` / `image_size`).
|
|
523
|
+
*/
|
|
524
|
+
type PresenceConditionType = "string" | "number" | "boolean" | "date" | "select" | "array" | "reference" | "modular_block" | "file";
|
|
525
|
+
/** @deprecated Use {@link PresenceConditionType}. */
|
|
526
|
+
type ExistenceConditionType = PresenceConditionType;
|
|
527
|
+
/**
|
|
528
|
+
* A presence check carries no value — the operator asks only about the bound
|
|
529
|
+
* key (existence) or about whether its value is empty. Both apply to every
|
|
530
|
+
* subject type, which is why they share one shape.
|
|
531
|
+
*
|
|
532
|
+
* `value` is required-but-null rather than optional: making it optional widens
|
|
533
|
+
* `Condition["value"]` with `undefined` for every consumer that reads a value
|
|
534
|
+
* off an unnarrowed condition.
|
|
535
|
+
*/
|
|
536
|
+
type PresenceCondition = {
|
|
537
|
+
type: PresenceConditionType;
|
|
538
|
+
operator: ExistenceOperator | EmptinessOperator;
|
|
539
|
+
value: null;
|
|
540
|
+
} & ConditionBindings;
|
|
541
|
+
/** @deprecated Use {@link PresenceCondition}. */
|
|
542
|
+
type ExistenceCondition = PresenceCondition;
|
|
543
|
+
type Condition = NumberCondition | StringCondition | BooleanCondition | ArrayCondition | ModularBlockCondition | DateCondition | SelectCondition | ReferenceCondition | ImageCondition | PresenceCondition;
|
|
469
544
|
|
|
470
|
-
type SymbolProp = {
|
|
471
|
-
uid: string;
|
|
472
|
-
[key: string]: unknown;
|
|
473
|
-
};
|
|
474
545
|
type BindingMap = Record<string, string>;
|
|
475
546
|
type NodeProp = NodePropsWithBinding | NodePropWithUnknownValue | NodePropsForObject | NodePropsForArray | NodePropsWithSlot;
|
|
476
547
|
type BindableNodeProp = NodePropsWithBinding | NodePropWithBindingMap;
|
|
@@ -516,6 +587,13 @@ type NodePropTypes = {
|
|
|
516
587
|
json_rte: "json_rte";
|
|
517
588
|
/** Plain text only — singleline or multiline; excludes HTML RTE and Markdown fields. */
|
|
518
589
|
plaintext: "plaintext";
|
|
590
|
+
/**
|
|
591
|
+
* A registered Studio function reference. The prop's saved value is the
|
|
592
|
+
* function NAME (string, chosen from `registerStudioFunctions` names in the
|
|
593
|
+
* Studio props panel); at render time the SDK replaces it with a callable
|
|
594
|
+
* that invokes `callStudioFunction(name, ...args)`. Works on any component.
|
|
595
|
+
*/
|
|
596
|
+
action: "action";
|
|
519
597
|
};
|
|
520
598
|
type NodePropStaticValueTypes = {
|
|
521
599
|
string: string;
|
|
@@ -530,6 +608,8 @@ type NodePropStaticValueTypes = {
|
|
|
530
608
|
any: any;
|
|
531
609
|
json_rte: Record<string, any>;
|
|
532
610
|
plaintext: string;
|
|
611
|
+
/** Saved as the registered function's name. */
|
|
612
|
+
action: string;
|
|
533
613
|
};
|
|
534
614
|
type NodePropType = NodePropTypes[keyof NodePropTypes];
|
|
535
615
|
type BindableNodePropType = Exclude<NodePropType, "slot">;
|
|
@@ -632,8 +712,6 @@ type Node = {
|
|
|
632
712
|
bindings?: Record<string, BindingType>;
|
|
633
713
|
condition?: Condition;
|
|
634
714
|
repeaterWrapper?: boolean;
|
|
635
|
-
symbolProps?: SymbolProp[];
|
|
636
|
-
symbolUID?: string;
|
|
637
715
|
slotNames?: Record<string, string>;
|
|
638
716
|
[key: string]: any;
|
|
639
717
|
};
|
|
@@ -1192,4 +1270,4 @@ interface SectionSlotContext {
|
|
|
1192
1270
|
declare function indexSectionSlotContexts(sectionUI: any): Record<string, SectionSlotContext>;
|
|
1193
1271
|
|
|
1194
1272
|
export { CONDITION_OPERATORS, Editor, ID_LENGTH, Node, Operation, Path, PathRef, Transforms, apply, compressSpec, createEditor, decompressSpec, getDirtyPaths, hasUnsavedChanges, indexSectionSlotContexts, insertNodes, isNormalizing, liftNodes, moveNodes, node, nodes, normalize, normalizeNode, pathRef, pathRefs, removeNodes, setActiveContextPath, setClasses, setHasUnSavedChanges, setNodes, setNormalizing, setProp, setResponsiveStyles, setSelection, shouldNormalize, unsetProp, unsetResponsiveStyles, unwrapNodes, validateCompression, withoutNormalizing, wrapNodes };
|
|
1195
|
-
export type { Ancestor, ArrayCondition, ArrayOperator, BaseEditor, BindableNodeProp, BindableNodePropType, BindingMap, BindingType, BooleanCondition, BooleanOperator, ComparisonOperator, Condition, ConditionBindings, CustomTypes, DateCondition, Descendant, EditorInterface, EditorNodesOptions, EditorNormalizeOptions, EditorPathOptions, EditorPathRefOptions, ExtendedType, ImageCondition, ImageExtensionCondition, ImageExtensionOperator, ImageSizeCondition, InsertNodeOperation, LeafEdge, MaximizeMode, ModularBlockCondition, ModularBlockOperator, MoveNodeOperation, MoveUnit, MultiSelectOperator, NodeAncestorsOptions, NodeEntry, NodeInterface, NodeMatch, NodeOperation, NodeProp, NodePropStaticValueTypes, NodePropType, NodePropTypes, NodePropWithBindingMap, NodePropWithUnknownValue, NodeProps, NodePropsForArray, NodePropsForObject, NodePropsWithBinding, NodePropsWithSlot, NodeStyle, NodeStyles, NumberCondition, OmitFirstArg, OperationInterface, PathAncestorsOptions, PathIndex, PathInterface, PathLevelsOptions, PathNode, PathRefInterface, PathTransformOptions, PropsCompare, PropsMerge, RangeDirection, RangeMode, ReferenceCondition, ReferenceOperator, RemoveNodeOperation, SectionSlotContext, SelectCondition, SelectOperator, SelectionEdge, SelectionMode, SelectionOperation, SetActiveContextPathOperation, SetNodeOperation, SetPropOperation, SetSelectionOperation, SingleSelectOperator, SlotUid, StaticValueNodePropType, StringCondition, StringOperator,
|
|
1273
|
+
export type { Ancestor, ArrayCondition, ArrayOperator, BaseEditor, BindableNodeProp, BindableNodePropType, BindingMap, BindingType, BooleanCondition, BooleanOperator, ComparisonOperator, Condition, ConditionBindings, CustomTypes, DateCondition, Descendant, EditorInterface, EditorNodesOptions, EditorNormalizeOptions, EditorPathOptions, EditorPathRefOptions, EmptinessOperator, ExistenceCondition, ExistenceConditionType, ExistenceOperator, ExtendedType, ImageCondition, ImageExtensionCondition, ImageExtensionOperator, ImageSizeCondition, InsertNodeOperation, LeafEdge, MaximizeMode, ModularBlockCondition, ModularBlockOperator, MoveNodeOperation, MoveUnit, MultiSelectOperator, NodeAncestorsOptions, NodeEntry, NodeInterface, NodeMatch, NodeOperation, NodeProp, NodePropStaticValueTypes, NodePropType, NodePropTypes, NodePropWithBindingMap, NodePropWithUnknownValue, NodeProps, NodePropsForArray, NodePropsForObject, NodePropsWithBinding, NodePropsWithSlot, NodeStyle, NodeStyles, NumberCondition, OmitFirstArg, OperationInterface, PathAncestorsOptions, PathIndex, PathInterface, PathLevelsOptions, PathNode, PathRefInterface, PathTransformOptions, PresenceCondition, PresenceConditionType, PropsCompare, PropsMerge, RangeDirection, RangeMode, ReferenceCondition, ReferenceOperator, RemoveNodeOperation, SectionSlotContext, SelectCondition, SelectOperator, SelectionEdge, SelectionMode, SelectionOperation, SetActiveContextPathOperation, SetNodeOperation, SetPropOperation, SetSelectionOperation, SingleSelectOperator, SlotUid, StaticValueNodePropType, StringCondition, StringOperator, TextDirection, TextUnit, TextUnitAdjustment, UnknownNodePropType, UnsetPropOperation };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Properties } from "csstype";
|
|
2
2
|
import { Editor, Path, SlotUid } from ".";
|
|
3
3
|
import { Condition } from "../types";
|
|
4
|
-
export type SymbolProp = {
|
|
5
|
-
uid: string;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
};
|
|
8
4
|
export type Node = {
|
|
9
5
|
uid: string;
|
|
10
6
|
type: string;
|
|
@@ -16,8 +12,6 @@ export type Node = {
|
|
|
16
12
|
bindings?: Record<string, BindingType>;
|
|
17
13
|
condition?: Condition;
|
|
18
14
|
repeaterWrapper?: boolean;
|
|
19
|
-
symbolProps?: SymbolProp[];
|
|
20
|
-
symbolUID?: string;
|
|
21
15
|
slotNames?: Record<string, string>;
|
|
22
16
|
[key: string]: any;
|
|
23
17
|
};
|
|
@@ -72,6 +66,13 @@ export type NodePropTypes = {
|
|
|
72
66
|
json_rte: "json_rte";
|
|
73
67
|
/** Plain text only — singleline or multiline; excludes HTML RTE and Markdown fields. */
|
|
74
68
|
plaintext: "plaintext";
|
|
69
|
+
/**
|
|
70
|
+
* A registered Studio function reference. The prop's saved value is the
|
|
71
|
+
* function NAME (string, chosen from `registerStudioFunctions` names in the
|
|
72
|
+
* Studio props panel); at render time the SDK replaces it with a callable
|
|
73
|
+
* that invokes `callStudioFunction(name, ...args)`. Works on any component.
|
|
74
|
+
*/
|
|
75
|
+
action: "action";
|
|
75
76
|
};
|
|
76
77
|
export type NodePropStaticValueTypes = {
|
|
77
78
|
string: string;
|
|
@@ -86,6 +87,8 @@ export type NodePropStaticValueTypes = {
|
|
|
86
87
|
any: any;
|
|
87
88
|
json_rte: Record<string, any>;
|
|
88
89
|
plaintext: string;
|
|
90
|
+
/** Saved as the registered function's name. */
|
|
91
|
+
action: string;
|
|
89
92
|
};
|
|
90
93
|
export type NodePropType = NodePropTypes[keyof NodePropTypes];
|
|
91
94
|
export type BindableNodePropType = Exclude<NodePropType, "slot">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/interfaces/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/interfaces/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,MAAM,MAAM,IAAI,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,QAAQ,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACvC,SAAS,CAAC,EAAE,SAAS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MAAM,GAAG,UAAU,CAAA;CAAE,CAAC;AACxC,iBAAS,kBAAkB,CACzB,CAAC,EAAE,IAAI,EACP,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sources":["../../src/interfaces/node.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"node.js","sources":["../../src/interfaces/node.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAkOO,MAAM,IAAI,GAAkB;AACjC,IAAA,SAAS,CACP,IAAU,EACV,IAAU,EACV,UAAgC,EAAE,EAAA;QAElC,MAAM,SAAS,GAAe,EAAE;AAChC,QAAA,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE;AAC7C,YAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACnC;AACA,QAAA,OAAO,SAAS;IAClB,CAAC;AAED,IAAA,MAAM,CAAC,IAAY,EAAA;AACjB,QAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,YAAA,MAAM,IAAI,KAAK,CAAC,CAAA,qCAAA,CAAuC,CAAC;QAC1D;QAEA,OAAO;AACL,YAAA,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC;AACtB,YAAA,KAAK,EAAE,EAAE;YACT,IAAI;AACJ,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,MAAM,EAAE,EAAE;SACX;IACH,CAAC;IAED,GAAG,CAAC,IAAU,EAAE,IAAU,EAAA;QACxB,IAAI,IAAI,GAAG,IAAI;AAEf,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAA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AAC,CAAC,MAAM,CAAC,UAAU,CAAC;IAEnC,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,OAAO,EAAE;IACX;IAEA,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,MAAM,CAAC,gBAAgB;IAChC;IAEA,OAAO,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,EAAE;AAClD;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindingType } from "../interfaces";
|
|
2
|
-
import { ARRAY_OPERATORS, TEXT_OPERATORS, MODULAR_BLOCK_OPERATORS, COMPARISON_OPERATORS, BOOLEAN_OPERATORS, SINGLE_SELECT_OPERATORS, MULTI_SELECT_OPERATORS, REFERENCE_OPERATORS, IMAGE_EXTENSION_OPERATOR } from "../constants/condition";
|
|
2
|
+
import { ARRAY_OPERATORS, TEXT_OPERATORS, MODULAR_BLOCK_OPERATORS, COMPARISON_OPERATORS, BOOLEAN_OPERATORS, SINGLE_SELECT_OPERATORS, MULTI_SELECT_OPERATORS, REFERENCE_OPERATORS, IMAGE_EXTENSION_OPERATOR, EXISTENCE_OPERATORS, EMPTINESS_OPERATORS } from "../constants/condition";
|
|
3
3
|
export type ComparisonOperator = (typeof COMPARISON_OPERATORS)[number]["value"];
|
|
4
4
|
export type StringOperator = (typeof TEXT_OPERATORS)[number]["value"];
|
|
5
5
|
export type ImageExtensionOperator = (typeof IMAGE_EXTENSION_OPERATOR)[number]["value"];
|
|
@@ -10,6 +10,8 @@ export type SingleSelectOperator = (typeof SINGLE_SELECT_OPERATORS)[number]["val
|
|
|
10
10
|
export type MultiSelectOperator = (typeof MULTI_SELECT_OPERATORS)[number]["value"];
|
|
11
11
|
export type SelectOperator = SingleSelectOperator | MultiSelectOperator;
|
|
12
12
|
export type ReferenceOperator = (typeof REFERENCE_OPERATORS)[number]["value"];
|
|
13
|
+
export type ExistenceOperator = (typeof EXISTENCE_OPERATORS)[number]["value"];
|
|
14
|
+
export type EmptinessOperator = (typeof EMPTINESS_OPERATORS)[number]["value"];
|
|
13
15
|
export type ConditionBindings = {
|
|
14
16
|
conditionBinding: BindingType;
|
|
15
17
|
dataBinding: BindingType;
|
|
@@ -66,5 +68,32 @@ export type ImageSizeCondition = {
|
|
|
66
68
|
value: number;
|
|
67
69
|
} & ConditionBindings;
|
|
68
70
|
export type ImageCondition = ImageSizeCondition | ImageExtensionCondition;
|
|
69
|
-
|
|
71
|
+
/**
|
|
72
|
+
* The subject types a presence check (existence or emptiness) can be authored
|
|
73
|
+
* against. Mirrors the `type` of every other condition so a subject keeps
|
|
74
|
+
* describing what it IS even when the operator ignores its value — plus
|
|
75
|
+
* `"file"`, which exists only here because an asset has no comparable value of
|
|
76
|
+
* its own (every other file condition is expressed through a sub-type:
|
|
77
|
+
* `image_extension` / `image_size`).
|
|
78
|
+
*/
|
|
79
|
+
export type PresenceConditionType = "string" | "number" | "boolean" | "date" | "select" | "array" | "reference" | "modular_block" | "file";
|
|
80
|
+
/** @deprecated Use {@link PresenceConditionType}. */
|
|
81
|
+
export type ExistenceConditionType = PresenceConditionType;
|
|
82
|
+
/**
|
|
83
|
+
* A presence check carries no value — the operator asks only about the bound
|
|
84
|
+
* key (existence) or about whether its value is empty. Both apply to every
|
|
85
|
+
* subject type, which is why they share one shape.
|
|
86
|
+
*
|
|
87
|
+
* `value` is required-but-null rather than optional: making it optional widens
|
|
88
|
+
* `Condition["value"]` with `undefined` for every consumer that reads a value
|
|
89
|
+
* off an unnarrowed condition.
|
|
90
|
+
*/
|
|
91
|
+
export type PresenceCondition = {
|
|
92
|
+
type: PresenceConditionType;
|
|
93
|
+
operator: ExistenceOperator | EmptinessOperator;
|
|
94
|
+
value: null;
|
|
95
|
+
} & ConditionBindings;
|
|
96
|
+
/** @deprecated Use {@link PresenceCondition}. */
|
|
97
|
+
export type ExistenceCondition = PresenceCondition;
|
|
98
|
+
export type Condition = NumberCondition | StringCondition | BooleanCondition | ArrayCondition | ModularBlockCondition | DateCondition | SelectCondition | ReferenceCondition | ImageCondition | PresenceCondition;
|
|
70
99
|
//# sourceMappingURL=condition-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-types.d.ts","sourceRoot":"","sources":["../../src/types/condition-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"condition-types.d.ts","sourceRoot":"","sources":["../../src/types/condition-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,M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GACX,eAAe,GACf,MAAM,CAAC;AAEX,qDAAqD;AACrD,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAChD,KAAK,EAAE,IAAI,CAAC;CACb,GAAG,iBAAiB,CAAC;AAEtB,iDAAiD;AACjD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAEnD,MAAM,MAAM,SAAS,GACjB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,cAAc,GACd,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/studio-internal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "This is core package which is a flavour of slate js and consist of all editor functionality",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"homepage": "https://github.com/contentstack/composable-studio-sdk/tree/main/packages/studio-internal#readme",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"uuid": "^11.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@contentstack/common-config": "^1.2.
|
|
42
|
+
"@contentstack/common-config": "^1.2.3",
|
|
43
43
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
44
44
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
45
45
|
"@rollup/plugin-terser": "^1.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"rollup-plugin-node-externals": "^8.0.1",
|
|
52
52
|
"rollup-plugin-preserve-directives": "^0.4.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1e35733997b7c0e030296d3ebcf053aee69151a3"
|
|
55
55
|
}
|