@bettercms-ai/types 1.59.0 → 1.60.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.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ declare const BLOCK_FIELD_TYPES: readonly ["text", "longtext", "richtext", "imag
|
|
|
73
73
|
* here is refused with `schema.block_field_unrenderable` only until its renderer ships, and then
|
|
74
74
|
* joins this list. When this equals BLOCK_FIELD_TYPES (G7), the staging is over.
|
|
75
75
|
*/
|
|
76
|
-
declare const BLOCK_FIELD_TYPES_RENDERABLE_NOW: readonly ["text", "longtext", "richtext", "image", "link", "slug", "email", "phone", "color", "select", "number", "rating", "date", "datetime", "boolean", "video", "file", "tags", "reference"];
|
|
76
|
+
declare const BLOCK_FIELD_TYPES_RENDERABLE_NOW: readonly ["text", "longtext", "richtext", "image", "link", "slug", "email", "phone", "color", "select", "number", "rating", "date", "datetime", "boolean", "video", "file", "tags", "reference", "object", "array"];
|
|
77
77
|
/** `openMode` values (content-model.ts OpenMode). */
|
|
78
78
|
declare const OPEN_MODES: readonly ["inline", "drill", "popover", "dialog"];
|
|
79
79
|
/**
|
|
@@ -222,7 +222,7 @@ declare const isDeriveReservedKey: (key: string) => boolean;
|
|
|
222
222
|
*/
|
|
223
223
|
declare const PRIMITIVE_ARRAY_RULE: {
|
|
224
224
|
readonly itemTypes: readonly ["text", "number", "date", "image", "link", "richtext"];
|
|
225
|
-
readonly configKeys: readonly ["itemType", "minItems", "maxItems", "aliases"];
|
|
225
|
+
readonly configKeys: readonly ["itemType", "minItems", "maxItems", "aliases", "item"];
|
|
226
226
|
readonly notWithZones: readonly ["image", "link", "richtext"];
|
|
227
227
|
};
|
|
228
228
|
declare function canonicalJson(value: unknown): string;
|
package/dist/index.js
CHANGED
|
@@ -4624,7 +4624,9 @@ var BLOCK_FIELD_TYPES_RENDERABLE_NOW = [
|
|
|
4624
4624
|
"video",
|
|
4625
4625
|
"file",
|
|
4626
4626
|
"tags",
|
|
4627
|
-
"reference"
|
|
4627
|
+
"reference",
|
|
4628
|
+
"object",
|
|
4629
|
+
"array"
|
|
4628
4630
|
];
|
|
4629
4631
|
var OPEN_MODES = ["inline", "drill", "popover", "dialog"];
|
|
4630
4632
|
var OPEN_MODE_TYPES = ["object", "array", "group", "repeater", "table", "code"];
|
|
@@ -4712,7 +4714,8 @@ var isReservedKey = (key) => KEY_FORBIDDEN.has(key) || KEY_RESERVED.has(key) ||
|
|
|
4712
4714
|
var isDeriveReservedKey = (key) => isReservedKey(key) || DERIVE_MINTED_RESERVED.has(key);
|
|
4713
4715
|
var PRIMITIVE_ARRAY_RULE = {
|
|
4714
4716
|
itemTypes: ["text", "number", "date", "image", "link", "richtext"],
|
|
4715
|
-
|
|
4717
|
+
// `item`: the per-item settings (the arrayItemSettings shape), as a component's `config.item`.
|
|
4718
|
+
configKeys: ["itemType", "minItems", "maxItems", "aliases", "item"],
|
|
4716
4719
|
notWithZones: ["image", "link", "richtext"]
|
|
4717
4720
|
};
|
|
4718
4721
|
function canonicalNumber(value) {
|