@prismicio/client 7.21.2 → 7.21.3-pr.431.23cc5c6

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.
Files changed (217) hide show
  1. package/dist/iac/customType.cjs +54 -0
  2. package/dist/iac/customType.cjs.map +1 -0
  3. package/dist/iac/customType.d.cts +43 -0
  4. package/dist/iac/customType.d.cts.map +1 -0
  5. package/dist/iac/customType.d.ts +43 -0
  6. package/dist/iac/customType.d.ts.map +1 -0
  7. package/dist/iac/customType.js +53 -0
  8. package/dist/iac/customType.js.map +1 -0
  9. package/dist/iac/fields/boolean.cjs +38 -0
  10. package/dist/iac/fields/boolean.cjs.map +1 -0
  11. package/dist/iac/fields/boolean.d.cts +22 -0
  12. package/dist/iac/fields/boolean.d.cts.map +1 -0
  13. package/dist/iac/fields/boolean.d.ts +22 -0
  14. package/dist/iac/fields/boolean.d.ts.map +1 -0
  15. package/dist/iac/fields/boolean.js +38 -0
  16. package/dist/iac/fields/boolean.js.map +1 -0
  17. package/dist/iac/fields/color.cjs +29 -0
  18. package/dist/iac/fields/color.cjs.map +1 -0
  19. package/dist/iac/fields/color.d.cts +11 -0
  20. package/dist/iac/fields/color.d.cts.map +1 -0
  21. package/dist/iac/fields/color.d.ts +11 -0
  22. package/dist/iac/fields/color.d.ts.map +1 -0
  23. package/dist/iac/fields/color.js +29 -0
  24. package/dist/iac/fields/color.js.map +1 -0
  25. package/dist/iac/fields/contentRelationship.cjs +50 -0
  26. package/dist/iac/fields/contentRelationship.cjs.map +1 -0
  27. package/dist/iac/fields/contentRelationship.d.cts +23 -0
  28. package/dist/iac/fields/contentRelationship.d.cts.map +1 -0
  29. package/dist/iac/fields/contentRelationship.d.ts +23 -0
  30. package/dist/iac/fields/contentRelationship.d.ts.map +1 -0
  31. package/dist/iac/fields/contentRelationship.js +50 -0
  32. package/dist/iac/fields/contentRelationship.js.map +1 -0
  33. package/dist/iac/fields/date.cjs +29 -0
  34. package/dist/iac/fields/date.cjs.map +1 -0
  35. package/dist/iac/fields/date.d.cts +11 -0
  36. package/dist/iac/fields/date.d.cts.map +1 -0
  37. package/dist/iac/fields/date.d.ts +11 -0
  38. package/dist/iac/fields/date.d.ts.map +1 -0
  39. package/dist/iac/fields/date.js +29 -0
  40. package/dist/iac/fields/date.js.map +1 -0
  41. package/dist/iac/fields/embed.cjs +29 -0
  42. package/dist/iac/fields/embed.cjs.map +1 -0
  43. package/dist/iac/fields/embed.d.cts +11 -0
  44. package/dist/iac/fields/embed.d.cts.map +1 -0
  45. package/dist/iac/fields/embed.d.ts +11 -0
  46. package/dist/iac/fields/embed.d.ts.map +1 -0
  47. package/dist/iac/fields/embed.js +29 -0
  48. package/dist/iac/fields/embed.js.map +1 -0
  49. package/dist/iac/fields/geoPoint.cjs +26 -0
  50. package/dist/iac/fields/geoPoint.cjs.map +1 -0
  51. package/dist/iac/fields/geoPoint.d.cts +10 -0
  52. package/dist/iac/fields/geoPoint.d.cts.map +1 -0
  53. package/dist/iac/fields/geoPoint.d.ts +10 -0
  54. package/dist/iac/fields/geoPoint.d.ts.map +1 -0
  55. package/dist/iac/fields/geoPoint.js +26 -0
  56. package/dist/iac/fields/geoPoint.js.map +1 -0
  57. package/dist/iac/fields/group.cjs +38 -0
  58. package/dist/iac/fields/group.cjs.map +1 -0
  59. package/dist/iac/fields/group.d.cts +17 -0
  60. package/dist/iac/fields/group.d.cts.map +1 -0
  61. package/dist/iac/fields/group.d.ts +17 -0
  62. package/dist/iac/fields/group.d.ts.map +1 -0
  63. package/dist/iac/fields/group.js +38 -0
  64. package/dist/iac/fields/group.js.map +1 -0
  65. package/dist/iac/fields/image.cjs +48 -0
  66. package/dist/iac/fields/image.cjs.map +1 -0
  67. package/dist/iac/fields/image.d.cts +21 -0
  68. package/dist/iac/fields/image.d.cts.map +1 -0
  69. package/dist/iac/fields/image.d.ts +21 -0
  70. package/dist/iac/fields/image.d.ts.map +1 -0
  71. package/dist/iac/fields/image.js +48 -0
  72. package/dist/iac/fields/image.js.map +1 -0
  73. package/dist/iac/fields/integration.cjs +33 -0
  74. package/dist/iac/fields/integration.cjs.map +1 -0
  75. package/dist/iac/fields/integration.d.cts +15 -0
  76. package/dist/iac/fields/integration.d.cts.map +1 -0
  77. package/dist/iac/fields/integration.d.ts +15 -0
  78. package/dist/iac/fields/integration.d.ts.map +1 -0
  79. package/dist/iac/fields/integration.js +33 -0
  80. package/dist/iac/fields/integration.js.map +1 -0
  81. package/dist/iac/fields/link.cjs +45 -0
  82. package/dist/iac/fields/link.cjs.map +1 -0
  83. package/dist/iac/fields/link.d.cts +39 -0
  84. package/dist/iac/fields/link.d.cts.map +1 -0
  85. package/dist/iac/fields/link.d.ts +39 -0
  86. package/dist/iac/fields/link.d.ts.map +1 -0
  87. package/dist/iac/fields/link.js +45 -0
  88. package/dist/iac/fields/link.js.map +1 -0
  89. package/dist/iac/fields/linkToMedia.cjs +31 -0
  90. package/dist/iac/fields/linkToMedia.cjs.map +1 -0
  91. package/dist/iac/fields/linkToMedia.d.cts +11 -0
  92. package/dist/iac/fields/linkToMedia.d.cts.map +1 -0
  93. package/dist/iac/fields/linkToMedia.d.ts +11 -0
  94. package/dist/iac/fields/linkToMedia.d.ts.map +1 -0
  95. package/dist/iac/fields/linkToMedia.js +31 -0
  96. package/dist/iac/fields/linkToMedia.js.map +1 -0
  97. package/dist/iac/fields/number.cjs +29 -0
  98. package/dist/iac/fields/number.cjs.map +1 -0
  99. package/dist/iac/fields/number.d.cts +11 -0
  100. package/dist/iac/fields/number.d.cts.map +1 -0
  101. package/dist/iac/fields/number.d.ts +11 -0
  102. package/dist/iac/fields/number.d.ts.map +1 -0
  103. package/dist/iac/fields/number.js +29 -0
  104. package/dist/iac/fields/number.js.map +1 -0
  105. package/dist/iac/fields/richText.cjs +49 -0
  106. package/dist/iac/fields/richText.cjs.map +1 -0
  107. package/dist/iac/fields/richText.d.cts +33 -0
  108. package/dist/iac/fields/richText.d.cts.map +1 -0
  109. package/dist/iac/fields/richText.d.ts +33 -0
  110. package/dist/iac/fields/richText.d.ts.map +1 -0
  111. package/dist/iac/fields/richText.js +49 -0
  112. package/dist/iac/fields/richText.js.map +1 -0
  113. package/dist/iac/fields/select.cjs +46 -0
  114. package/dist/iac/fields/select.cjs.map +1 -0
  115. package/dist/iac/fields/select.d.cts +15 -0
  116. package/dist/iac/fields/select.d.cts.map +1 -0
  117. package/dist/iac/fields/select.d.ts +15 -0
  118. package/dist/iac/fields/select.d.ts.map +1 -0
  119. package/dist/iac/fields/select.js +46 -0
  120. package/dist/iac/fields/select.js.map +1 -0
  121. package/dist/iac/fields/sliceZone.cjs +37 -0
  122. package/dist/iac/fields/sliceZone.cjs.map +1 -0
  123. package/dist/iac/fields/sliceZone.d.cts +30 -0
  124. package/dist/iac/fields/sliceZone.d.cts.map +1 -0
  125. package/dist/iac/fields/sliceZone.d.ts +30 -0
  126. package/dist/iac/fields/sliceZone.d.ts.map +1 -0
  127. package/dist/iac/fields/sliceZone.js +37 -0
  128. package/dist/iac/fields/sliceZone.js.map +1 -0
  129. package/dist/iac/fields/table.cjs +26 -0
  130. package/dist/iac/fields/table.cjs.map +1 -0
  131. package/dist/iac/fields/table.d.cts +10 -0
  132. package/dist/iac/fields/table.d.cts.map +1 -0
  133. package/dist/iac/fields/table.d.ts +10 -0
  134. package/dist/iac/fields/table.d.ts.map +1 -0
  135. package/dist/iac/fields/table.js +26 -0
  136. package/dist/iac/fields/table.js.map +1 -0
  137. package/dist/iac/fields/text.cjs +29 -0
  138. package/dist/iac/fields/text.cjs.map +1 -0
  139. package/dist/iac/fields/text.d.cts +11 -0
  140. package/dist/iac/fields/text.d.cts.map +1 -0
  141. package/dist/iac/fields/text.d.ts +11 -0
  142. package/dist/iac/fields/text.d.ts.map +1 -0
  143. package/dist/iac/fields/text.js +29 -0
  144. package/dist/iac/fields/text.js.map +1 -0
  145. package/dist/iac/fields/timestamp.cjs +29 -0
  146. package/dist/iac/fields/timestamp.cjs.map +1 -0
  147. package/dist/iac/fields/timestamp.d.cts +11 -0
  148. package/dist/iac/fields/timestamp.d.cts.map +1 -0
  149. package/dist/iac/fields/timestamp.d.ts +11 -0
  150. package/dist/iac/fields/timestamp.d.ts.map +1 -0
  151. package/dist/iac/fields/timestamp.js +29 -0
  152. package/dist/iac/fields/timestamp.js.map +1 -0
  153. package/dist/iac/fields/uid.cjs +29 -0
  154. package/dist/iac/fields/uid.cjs.map +1 -0
  155. package/dist/iac/fields/uid.d.cts +11 -0
  156. package/dist/iac/fields/uid.d.cts.map +1 -0
  157. package/dist/iac/fields/uid.d.ts +11 -0
  158. package/dist/iac/fields/uid.d.ts.map +1 -0
  159. package/dist/iac/fields/uid.js +29 -0
  160. package/dist/iac/fields/uid.js.map +1 -0
  161. package/dist/iac/sharedSlice.cjs +54 -0
  162. package/dist/iac/sharedSlice.cjs.map +1 -0
  163. package/dist/iac/sharedSlice.d.cts +28 -0
  164. package/dist/iac/sharedSlice.d.cts.map +1 -0
  165. package/dist/iac/sharedSlice.d.ts +28 -0
  166. package/dist/iac/sharedSlice.d.ts.map +1 -0
  167. package/dist/iac/sharedSlice.js +54 -0
  168. package/dist/iac/sharedSlice.js.map +1 -0
  169. package/dist/iac/variation.cjs +45 -0
  170. package/dist/iac/variation.cjs.map +1 -0
  171. package/dist/iac/variation.d.cts +46 -0
  172. package/dist/iac/variation.d.cts.map +1 -0
  173. package/dist/iac/variation.d.ts +46 -0
  174. package/dist/iac/variation.d.ts.map +1 -0
  175. package/dist/iac/variation.js +44 -0
  176. package/dist/iac/variation.js.map +1 -0
  177. package/dist/iac.cjs +86 -0
  178. package/dist/iac.cjs.map +1 -0
  179. package/dist/iac.d.cts +109 -0
  180. package/dist/iac.d.cts.map +1 -0
  181. package/dist/iac.d.ts +110 -0
  182. package/dist/iac.d.ts.map +1 -0
  183. package/dist/iac.js +86 -0
  184. package/dist/iac.js.map +1 -0
  185. package/dist/index.d.cts +2 -2
  186. package/dist/index.d.ts +2 -2
  187. package/dist/package.cjs +1 -1
  188. package/dist/package.cjs.map +1 -1
  189. package/dist/package.js +1 -1
  190. package/dist/package.js.map +1 -1
  191. package/dist/types/model/types.d.cts +2 -2
  192. package/dist/types/model/types.d.ts +2 -2
  193. package/package.json +9 -2
  194. package/src/iac/customType.ts +98 -0
  195. package/src/iac/fields/boolean.ts +55 -0
  196. package/src/iac/fields/color.ts +33 -0
  197. package/src/iac/fields/contentRelationship.ts +74 -0
  198. package/src/iac/fields/date.ts +33 -0
  199. package/src/iac/fields/embed.ts +33 -0
  200. package/src/iac/fields/geoPoint.ts +33 -0
  201. package/src/iac/fields/group.ts +58 -0
  202. package/src/iac/fields/image.ts +65 -0
  203. package/src/iac/fields/index.ts +62 -0
  204. package/src/iac/fields/integration.ts +43 -0
  205. package/src/iac/fields/link.ts +79 -0
  206. package/src/iac/fields/linkToMedia.ts +37 -0
  207. package/src/iac/fields/number.ts +35 -0
  208. package/src/iac/fields/richText.ts +84 -0
  209. package/src/iac/fields/select.ts +63 -0
  210. package/src/iac/fields/sliceZone.ts +82 -0
  211. package/src/iac/fields/table.ts +31 -0
  212. package/src/iac/fields/text.ts +33 -0
  213. package/src/iac/fields/timestamp.ts +35 -0
  214. package/src/iac/fields/uid.ts +33 -0
  215. package/src/iac/index.ts +122 -0
  216. package/src/iac/sharedSlice.ts +81 -0
  217. package/src/iac/variation.ts +107 -0
@@ -0,0 +1,15 @@
1
+ //#region src/iac/fields/integration.d.ts
2
+ /**
3
+ * Configuration for an integration field.
4
+ */
5
+ interface IntegrationFieldConfig {
6
+ label?: string | null;
7
+ placeholder?: string;
8
+ /**
9
+ * The catalog ID for the integration.
10
+ */
11
+ catalog?: string;
12
+ }
13
+ //#endregion
14
+ export { IntegrationFieldConfig };
15
+ //# sourceMappingURL=integration.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.d.cts","names":[],"sources":["../../../src/iac/fields/integration.ts"],"sourcesContent":[],"mappings":";AAMA;;;UAAiB,sBAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/iac/fields/integration.d.ts
2
+ /**
3
+ * Configuration for an integration field.
4
+ */
5
+ interface IntegrationFieldConfig {
6
+ label?: string | null;
7
+ placeholder?: string;
8
+ /**
9
+ * The catalog ID for the integration.
10
+ */
11
+ catalog?: string;
12
+ }
13
+ //#endregion
14
+ export { IntegrationFieldConfig };
15
+ //# sourceMappingURL=integration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.d.ts","names":[],"sources":["../../../src/iac/fields/integration.ts"],"sourcesContent":[],"mappings":";AAMA;;;UAAiB,sBAAA"}
@@ -0,0 +1,33 @@
1
+ import { CustomTypeModelFieldType } from "../../types/model/types.js";
2
+
3
+ //#region src/iac/fields/integration.ts
4
+ /**
5
+ * Creates an integration field model.
6
+ *
7
+ * @example
8
+ *
9
+ * ```ts
10
+ * model.integration({
11
+ * label: "Product",
12
+ * catalog: "my-catalog-id"
13
+ * })
14
+ * ```
15
+ *
16
+ * @param config - Configuration for the field.
17
+ *
18
+ * @returns An integration field model.
19
+ */
20
+ const integration = (config) => {
21
+ return {
22
+ type: CustomTypeModelFieldType.Integration,
23
+ config: {
24
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
25
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
26
+ catalog: config === null || config === void 0 ? void 0 : config.catalog
27
+ }
28
+ };
29
+ };
30
+
31
+ //#endregion
32
+ export { integration };
33
+ //# sourceMappingURL=integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.js","names":[],"sources":["../../../src/iac/fields/integration.ts"],"sourcesContent":["import type { CustomTypeModelIntegrationField } from \"../../types/model/integration\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\n\n/**\n * Configuration for an integration field.\n */\nexport interface IntegrationFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n\t/**\n\t * The catalog ID for the integration.\n\t */\n\tcatalog?: string\n}\n\n/**\n * Creates an integration field model.\n *\n * @example\n *\n * ```ts\n * model.integration({\n * label: \"Product\",\n * catalog: \"my-catalog-id\"\n * })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns An integration field model.\n */\nexport const integration = (\n\tconfig?: IntegrationFieldConfig,\n): CustomTypeModelIntegrationField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Integration,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t\tcatalog: config?.catalog,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA+BA,MAAa,eACZ,WACqC;AACrC,QAAO;EACN,MAAM,yBAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,yDAAS,OAAQ;GACjB;EACD"}
@@ -0,0 +1,45 @@
1
+ const require_types = require('../../types/model/types.cjs');
2
+
3
+ //#region src/iac/fields/link.ts
4
+ /**
5
+ * Creates a link field model.
6
+ *
7
+ * @example
8
+ *
9
+ * ```ts
10
+ * // Any link type
11
+ * model.link({ label: "CTA Link" })
12
+ *
13
+ * // Web links only
14
+ * model.link({ label: "External Link", select: "web" })
15
+ *
16
+ * // With custom text and target blank
17
+ * model.link({
18
+ * label: "Button Link",
19
+ * allowText: true,
20
+ * allowTargetBlank: true
21
+ * })
22
+ * ```
23
+ *
24
+ * @param config - Configuration for the field.
25
+ *
26
+ * @returns A link field model.
27
+ */
28
+ const link = (config) => {
29
+ return {
30
+ type: require_types.CustomTypeModelFieldType.Link,
31
+ config: {
32
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
33
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
34
+ select: config === null || config === void 0 ? void 0 : config.select,
35
+ allowText: config === null || config === void 0 ? void 0 : config.allowText,
36
+ allowTargetBlank: config === null || config === void 0 ? void 0 : config.allowTargetBlank,
37
+ repeat: config === null || config === void 0 ? void 0 : config.repeat,
38
+ variants: config === null || config === void 0 ? void 0 : config.variants
39
+ }
40
+ };
41
+ };
42
+
43
+ //#endregion
44
+ exports.link = link;
45
+ //# sourceMappingURL=link.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.cjs","names":["CustomTypeModelFieldType"],"sources":["../../../src/iac/fields/link.ts"],"sourcesContent":["import type {\n\tCustomTypeModelLinkField,\n\tCustomTypeModelLinkSelectType,\n} from \"../../types/model/link\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\n\n/**\n * Configuration for a link field.\n */\nexport interface LinkFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n\t/**\n\t * Restrict the link type.\n\t *\n\t * - `\"document\"` - Only allow content relationship links.\n\t * - `\"media\"` - Only allow media links.\n\t * - `\"web\"` - Only allow web links.\n\t * - `null` or `undefined` - Allow all link types.\n\t */\n\tselect?:\n\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\t| null\n\t/**\n\t * Allow custom link text.\n\t */\n\tallowText?: boolean\n\t/**\n\t * Allow opening links in a new tab.\n\t */\n\tallowTargetBlank?: boolean\n\t/**\n\t * Allow multiple links (repeatable).\n\t */\n\trepeat?: boolean\n\t/**\n\t * Link variants.\n\t */\n\tvariants?: string[]\n}\n\n/**\n * Creates a link field model.\n *\n * @example\n *\n * ```ts\n * // Any link type\n * model.link({ label: \"CTA Link\" })\n *\n * // Web links only\n * model.link({ label: \"External Link\", select: \"web\" })\n *\n * // With custom text and target blank\n * model.link({\n * label: \"Button Link\",\n * allowText: true,\n * allowTargetBlank: true\n * })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A link field model.\n */\nexport const link = (config?: LinkFieldConfig): CustomTypeModelLinkField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Link,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t\tselect: config?.select,\n\t\t\tallowText: config?.allowText,\n\t\t\tallowTargetBlank: config?.allowTargetBlank,\n\t\t\trepeat: config?.repeat,\n\t\t\tvariants: config?.variants,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,MAAa,QAAQ,WAAuD;AAC3E,QAAO;EACN,MAAMA,uCAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,wDAAQ,OAAQ;GAChB,2DAAW,OAAQ;GACnB,kEAAkB,OAAQ;GAC1B,wDAAQ,OAAQ;GAChB,0DAAU,OAAQ;GAClB;EACD"}
@@ -0,0 +1,39 @@
1
+ import { CustomTypeModelLinkSelectType } from "../../types/model/link.cjs";
2
+
3
+ //#region src/iac/fields/link.d.ts
4
+
5
+ /**
6
+ * Configuration for a link field.
7
+ */
8
+ interface LinkFieldConfig {
9
+ label?: string | null;
10
+ placeholder?: string;
11
+ /**
12
+ * Restrict the link type.
13
+ *
14
+ * - `"document"` - Only allow content relationship links.
15
+ * - `"media"` - Only allow media links.
16
+ * - `"web"` - Only allow web links.
17
+ * - `null` or `undefined` - Allow all link types.
18
+ */
19
+ select?: (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType] | null;
20
+ /**
21
+ * Allow custom link text.
22
+ */
23
+ allowText?: boolean;
24
+ /**
25
+ * Allow opening links in a new tab.
26
+ */
27
+ allowTargetBlank?: boolean;
28
+ /**
29
+ * Allow multiple links (repeatable).
30
+ */
31
+ repeat?: boolean;
32
+ /**
33
+ * Link variants.
34
+ */
35
+ variants?: string[];
36
+ }
37
+ //#endregion
38
+ export { LinkFieldConfig };
39
+ //# sourceMappingURL=link.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.cts","names":[],"sources":["../../../src/iac/fields/link.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;UAAiB,eAAA;;;;;;;;;;;mBAYL,4CAA4C"}
@@ -0,0 +1,39 @@
1
+ import { CustomTypeModelLinkSelectType } from "../../types/model/link.js";
2
+
3
+ //#region src/iac/fields/link.d.ts
4
+
5
+ /**
6
+ * Configuration for a link field.
7
+ */
8
+ interface LinkFieldConfig {
9
+ label?: string | null;
10
+ placeholder?: string;
11
+ /**
12
+ * Restrict the link type.
13
+ *
14
+ * - `"document"` - Only allow content relationship links.
15
+ * - `"media"` - Only allow media links.
16
+ * - `"web"` - Only allow web links.
17
+ * - `null` or `undefined` - Allow all link types.
18
+ */
19
+ select?: (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType] | null;
20
+ /**
21
+ * Allow custom link text.
22
+ */
23
+ allowText?: boolean;
24
+ /**
25
+ * Allow opening links in a new tab.
26
+ */
27
+ allowTargetBlank?: boolean;
28
+ /**
29
+ * Allow multiple links (repeatable).
30
+ */
31
+ repeat?: boolean;
32
+ /**
33
+ * Link variants.
34
+ */
35
+ variants?: string[];
36
+ }
37
+ //#endregion
38
+ export { LinkFieldConfig };
39
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","names":[],"sources":["../../../src/iac/fields/link.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;UAAiB,eAAA;;;;;;;;;;;mBAYL,4CAA4C"}
@@ -0,0 +1,45 @@
1
+ import { CustomTypeModelFieldType } from "../../types/model/types.js";
2
+
3
+ //#region src/iac/fields/link.ts
4
+ /**
5
+ * Creates a link field model.
6
+ *
7
+ * @example
8
+ *
9
+ * ```ts
10
+ * // Any link type
11
+ * model.link({ label: "CTA Link" })
12
+ *
13
+ * // Web links only
14
+ * model.link({ label: "External Link", select: "web" })
15
+ *
16
+ * // With custom text and target blank
17
+ * model.link({
18
+ * label: "Button Link",
19
+ * allowText: true,
20
+ * allowTargetBlank: true
21
+ * })
22
+ * ```
23
+ *
24
+ * @param config - Configuration for the field.
25
+ *
26
+ * @returns A link field model.
27
+ */
28
+ const link = (config) => {
29
+ return {
30
+ type: CustomTypeModelFieldType.Link,
31
+ config: {
32
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
33
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
34
+ select: config === null || config === void 0 ? void 0 : config.select,
35
+ allowText: config === null || config === void 0 ? void 0 : config.allowText,
36
+ allowTargetBlank: config === null || config === void 0 ? void 0 : config.allowTargetBlank,
37
+ repeat: config === null || config === void 0 ? void 0 : config.repeat,
38
+ variants: config === null || config === void 0 ? void 0 : config.variants
39
+ }
40
+ };
41
+ };
42
+
43
+ //#endregion
44
+ export { link };
45
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","names":[],"sources":["../../../src/iac/fields/link.ts"],"sourcesContent":["import type {\n\tCustomTypeModelLinkField,\n\tCustomTypeModelLinkSelectType,\n} from \"../../types/model/link\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\n\n/**\n * Configuration for a link field.\n */\nexport interface LinkFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n\t/**\n\t * Restrict the link type.\n\t *\n\t * - `\"document\"` - Only allow content relationship links.\n\t * - `\"media\"` - Only allow media links.\n\t * - `\"web\"` - Only allow web links.\n\t * - `null` or `undefined` - Allow all link types.\n\t */\n\tselect?:\n\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\t| null\n\t/**\n\t * Allow custom link text.\n\t */\n\tallowText?: boolean\n\t/**\n\t * Allow opening links in a new tab.\n\t */\n\tallowTargetBlank?: boolean\n\t/**\n\t * Allow multiple links (repeatable).\n\t */\n\trepeat?: boolean\n\t/**\n\t * Link variants.\n\t */\n\tvariants?: string[]\n}\n\n/**\n * Creates a link field model.\n *\n * @example\n *\n * ```ts\n * // Any link type\n * model.link({ label: \"CTA Link\" })\n *\n * // Web links only\n * model.link({ label: \"External Link\", select: \"web\" })\n *\n * // With custom text and target blank\n * model.link({\n * label: \"Button Link\",\n * allowText: true,\n * allowTargetBlank: true\n * })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A link field model.\n */\nexport const link = (config?: LinkFieldConfig): CustomTypeModelLinkField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Link,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t\tselect: config?.select,\n\t\t\tallowText: config?.allowText,\n\t\t\tallowTargetBlank: config?.allowTargetBlank,\n\t\t\trepeat: config?.repeat,\n\t\t\tvariants: config?.variants,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEA,MAAa,QAAQ,WAAuD;AAC3E,QAAO;EACN,MAAM,yBAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,wDAAQ,OAAQ;GAChB,2DAAW,OAAQ;GACnB,kEAAkB,OAAQ;GAC1B,wDAAQ,OAAQ;GAChB,0DAAU,OAAQ;GAClB;EACD"}
@@ -0,0 +1,31 @@
1
+ const require_types = require('../../types/model/types.cjs');
2
+ const require_link = require('../../types/model/link.cjs');
3
+
4
+ //#region src/iac/fields/linkToMedia.ts
5
+ /**
6
+ * Creates a link to media field model.
7
+ *
8
+ * @example
9
+ *
10
+ * ```ts
11
+ * model.linkToMedia({ label: "Download File" })
12
+ * ```
13
+ *
14
+ * @param config - Configuration for the field.
15
+ *
16
+ * @returns A link to media field model.
17
+ */
18
+ const linkToMedia = (config) => {
19
+ return {
20
+ type: require_types.CustomTypeModelFieldType.Link,
21
+ config: {
22
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
23
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
24
+ select: require_link.CustomTypeModelLinkSelectType.Media
25
+ }
26
+ };
27
+ };
28
+
29
+ //#endregion
30
+ exports.linkToMedia = linkToMedia;
31
+ //# sourceMappingURL=linkToMedia.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkToMedia.cjs","names":["CustomTypeModelFieldType","CustomTypeModelLinkSelectType"],"sources":["../../../src/iac/fields/linkToMedia.ts"],"sourcesContent":["import type { CustomTypeModelLinkToMediaField } from \"../../types/model/linkToMedia\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\nimport { CustomTypeModelLinkSelectType } from \"../../types/model/link\"\n\n/**\n * Configuration for a link to media field.\n */\nexport interface LinkToMediaFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n}\n\n/**\n * Creates a link to media field model.\n *\n * @example\n *\n * ```ts\n * model.linkToMedia({ label: \"Download File\" })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A link to media field model.\n */\nexport const linkToMedia = (\n\tconfig?: LinkToMediaFieldConfig,\n): CustomTypeModelLinkToMediaField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Link,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t\tselect: CustomTypeModelLinkSelectType.Media,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAyBA,MAAa,eACZ,WACqC;AACrC,QAAO;EACN,MAAMA,uCAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,QAAQC,2CAA8B;GACtC;EACD"}
@@ -0,0 +1,11 @@
1
+ //#region src/iac/fields/linkToMedia.d.ts
2
+ /**
3
+ * Configuration for a link to media field.
4
+ */
5
+ interface LinkToMediaFieldConfig {
6
+ label?: string | null;
7
+ placeholder?: string;
8
+ }
9
+ //#endregion
10
+ export { LinkToMediaFieldConfig };
11
+ //# sourceMappingURL=linkToMedia.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkToMedia.d.cts","names":[],"sources":["../../../src/iac/fields/linkToMedia.ts"],"sourcesContent":[],"mappings":";AAOA;;;UAAiB,sBAAA"}
@@ -0,0 +1,11 @@
1
+ //#region src/iac/fields/linkToMedia.d.ts
2
+ /**
3
+ * Configuration for a link to media field.
4
+ */
5
+ interface LinkToMediaFieldConfig {
6
+ label?: string | null;
7
+ placeholder?: string;
8
+ }
9
+ //#endregion
10
+ export { LinkToMediaFieldConfig };
11
+ //# sourceMappingURL=linkToMedia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkToMedia.d.ts","names":[],"sources":["../../../src/iac/fields/linkToMedia.ts"],"sourcesContent":[],"mappings":";AAOA;;;UAAiB,sBAAA"}
@@ -0,0 +1,31 @@
1
+ import { CustomTypeModelFieldType } from "../../types/model/types.js";
2
+ import { CustomTypeModelLinkSelectType } from "../../types/model/link.js";
3
+
4
+ //#region src/iac/fields/linkToMedia.ts
5
+ /**
6
+ * Creates a link to media field model.
7
+ *
8
+ * @example
9
+ *
10
+ * ```ts
11
+ * model.linkToMedia({ label: "Download File" })
12
+ * ```
13
+ *
14
+ * @param config - Configuration for the field.
15
+ *
16
+ * @returns A link to media field model.
17
+ */
18
+ const linkToMedia = (config) => {
19
+ return {
20
+ type: CustomTypeModelFieldType.Link,
21
+ config: {
22
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
23
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
24
+ select: CustomTypeModelLinkSelectType.Media
25
+ }
26
+ };
27
+ };
28
+
29
+ //#endregion
30
+ export { linkToMedia };
31
+ //# sourceMappingURL=linkToMedia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkToMedia.js","names":[],"sources":["../../../src/iac/fields/linkToMedia.ts"],"sourcesContent":["import type { CustomTypeModelLinkToMediaField } from \"../../types/model/linkToMedia\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\nimport { CustomTypeModelLinkSelectType } from \"../../types/model/link\"\n\n/**\n * Configuration for a link to media field.\n */\nexport interface LinkToMediaFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n}\n\n/**\n * Creates a link to media field model.\n *\n * @example\n *\n * ```ts\n * model.linkToMedia({ label: \"Download File\" })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A link to media field model.\n */\nexport const linkToMedia = (\n\tconfig?: LinkToMediaFieldConfig,\n): CustomTypeModelLinkToMediaField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Link,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t\tselect: CustomTypeModelLinkSelectType.Media,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAyBA,MAAa,eACZ,WACqC;AACrC,QAAO;EACN,MAAM,yBAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,QAAQ,8BAA8B;GACtC;EACD"}
@@ -0,0 +1,29 @@
1
+ const require_types = require('../../types/model/types.cjs');
2
+
3
+ //#region src/iac/fields/number.ts
4
+ /**
5
+ * Creates a number field model.
6
+ *
7
+ * @example
8
+ *
9
+ * ```ts
10
+ * model.number({ label: "Price" })
11
+ * ```
12
+ *
13
+ * @param config - Configuration for the field.
14
+ *
15
+ * @returns A number field model.
16
+ */
17
+ const number = (config) => {
18
+ return {
19
+ type: require_types.CustomTypeModelFieldType.Number,
20
+ config: {
21
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
22
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder
23
+ }
24
+ };
25
+ };
26
+
27
+ //#endregion
28
+ exports.number = number;
29
+ //# sourceMappingURL=number.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.cjs","names":["CustomTypeModelFieldType"],"sources":["../../../src/iac/fields/number.ts"],"sourcesContent":["import type { CustomTypeModelNumberField } from \"../../types/model/number\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\n\n/**\n * Configuration for a number field.\n */\nexport interface NumberFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n}\n\n/**\n * Creates a number field model.\n *\n * @example\n *\n * ```ts\n * model.number({ label: \"Price\" })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A number field model.\n */\nexport const number = (\n\tconfig?: NumberFieldConfig,\n): CustomTypeModelNumberField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Number,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAwBA,MAAa,UACZ,WACgC;AAChC,QAAO;EACN,MAAMA,uCAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB;EACD"}
@@ -0,0 +1,11 @@
1
+ //#region src/iac/fields/number.d.ts
2
+ /**
3
+ * Configuration for a number field.
4
+ */
5
+ interface NumberFieldConfig {
6
+ label?: string | null;
7
+ placeholder?: string;
8
+ }
9
+ //#endregion
10
+ export { NumberFieldConfig };
11
+ //# sourceMappingURL=number.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.cts","names":[],"sources":["../../../src/iac/fields/number.ts"],"sourcesContent":[],"mappings":";AAMA;;;UAAiB,iBAAA"}
@@ -0,0 +1,11 @@
1
+ //#region src/iac/fields/number.d.ts
2
+ /**
3
+ * Configuration for a number field.
4
+ */
5
+ interface NumberFieldConfig {
6
+ label?: string | null;
7
+ placeholder?: string;
8
+ }
9
+ //#endregion
10
+ export { NumberFieldConfig };
11
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","names":[],"sources":["../../../src/iac/fields/number.ts"],"sourcesContent":[],"mappings":";AAMA;;;UAAiB,iBAAA"}
@@ -0,0 +1,29 @@
1
+ import { CustomTypeModelFieldType } from "../../types/model/types.js";
2
+
3
+ //#region src/iac/fields/number.ts
4
+ /**
5
+ * Creates a number field model.
6
+ *
7
+ * @example
8
+ *
9
+ * ```ts
10
+ * model.number({ label: "Price" })
11
+ * ```
12
+ *
13
+ * @param config - Configuration for the field.
14
+ *
15
+ * @returns A number field model.
16
+ */
17
+ const number = (config) => {
18
+ return {
19
+ type: CustomTypeModelFieldType.Number,
20
+ config: {
21
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
22
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder
23
+ }
24
+ };
25
+ };
26
+
27
+ //#endregion
28
+ export { number };
29
+ //# sourceMappingURL=number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.js","names":[],"sources":["../../../src/iac/fields/number.ts"],"sourcesContent":["import type { CustomTypeModelNumberField } from \"../../types/model/number\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\n\n/**\n * Configuration for a number field.\n */\nexport interface NumberFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n}\n\n/**\n * Creates a number field model.\n *\n * @example\n *\n * ```ts\n * model.number({ label: \"Price\" })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A number field model.\n */\nexport const number = (\n\tconfig?: NumberFieldConfig,\n): CustomTypeModelNumberField => {\n\treturn {\n\t\ttype: CustomTypeModelFieldType.Number,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t},\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAwBA,MAAa,UACZ,WACgC;AAChC,QAAO;EACN,MAAM,yBAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB;EACD"}
@@ -0,0 +1,49 @@
1
+ const require_types = require('../../types/model/types.cjs');
2
+
3
+ //#region src/iac/fields/richText.ts
4
+ /**
5
+ * Creates a rich text field model.
6
+ *
7
+ * Use the `single` config option for title-style fields (single block).
8
+ * Use the `multi` config option for multi-block rich text content.
9
+ *
10
+ * @example
11
+ *
12
+ * ```ts
13
+ * // Multi-block rich text (default)
14
+ * model.richText({ label: "Description", multi: "paragraph,strong,em" })
15
+ *
16
+ * // Single-block title-style
17
+ * model.richText({ label: "Heading", single: "heading1" })
18
+ * ```
19
+ *
20
+ * @param config - Configuration for the field.
21
+ *
22
+ * @returns A rich text field model.
23
+ */
24
+ const richText = (config) => {
25
+ if ((config === null || config === void 0 ? void 0 : config.single) !== void 0) return {
26
+ type: require_types.CustomTypeModelFieldType.StructuredText,
27
+ config: {
28
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
29
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
30
+ allowTargetBlank: config === null || config === void 0 ? void 0 : config.allowTargetBlank,
31
+ single: config.single,
32
+ labels: config === null || config === void 0 ? void 0 : config.labels
33
+ }
34
+ };
35
+ return {
36
+ type: require_types.CustomTypeModelFieldType.StructuredText,
37
+ config: {
38
+ label: (config === null || config === void 0 ? void 0 : config.label) ?? null,
39
+ placeholder: config === null || config === void 0 ? void 0 : config.placeholder,
40
+ allowTargetBlank: config === null || config === void 0 ? void 0 : config.allowTargetBlank,
41
+ multi: config === null || config === void 0 ? void 0 : config.multi,
42
+ labels: config === null || config === void 0 ? void 0 : config.labels
43
+ }
44
+ };
45
+ };
46
+
47
+ //#endregion
48
+ exports.richText = richText;
49
+ //# sourceMappingURL=richText.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richText.cjs","names":["CustomTypeModelFieldType"],"sources":["../../../src/iac/fields/richText.ts"],"sourcesContent":["import type {\n\tCustomTypeModelRichTextField,\n\tCustomTypeModelRichTextMultiField,\n\tCustomTypeModelRichTextSingleField,\n} from \"../../types/model/richText\"\nimport { CustomTypeModelFieldType } from \"../../types/model/types\"\n\n/**\n * Configuration for a rich text field.\n *\n * Use `single` for title-style fields (single block).\n * Use `multi` for multi-block rich text content.\n */\nexport interface RichTextFieldConfig {\n\tlabel?: string | null\n\tplaceholder?: string\n\tallowTargetBlank?: boolean\n\t/**\n\t * Allowed block types for single-block mode (title-style).\n\t *\n\t * @example \"heading1\"\n\t * @example \"heading1,heading2,heading3\"\n\t */\n\tsingle?: string\n\t/**\n\t * Allowed block types for multi-block mode.\n\t *\n\t * @example \"paragraph,strong,em,hyperlink\"\n\t * @example \"paragraph,heading1,heading2,strong,em,hyperlink,list-item,o-list-item\"\n\t */\n\tmulti?: string\n\t/**\n\t * Custom labels for text styling.\n\t */\n\tlabels?: readonly string[]\n}\n\n/**\n * Creates a rich text field model.\n *\n * Use the `single` config option for title-style fields (single block).\n * Use the `multi` config option for multi-block rich text content.\n *\n * @example\n *\n * ```ts\n * // Multi-block rich text (default)\n * model.richText({ label: \"Description\", multi: \"paragraph,strong,em\" })\n *\n * // Single-block title-style\n * model.richText({ label: \"Heading\", single: \"heading1\" })\n * ```\n *\n * @param config - Configuration for the field.\n *\n * @returns A rich text field model.\n */\nexport const richText = (\n\tconfig?: RichTextFieldConfig,\n): CustomTypeModelRichTextField => {\n\tif (config?.single !== undefined) {\n\t\treturn {\n\t\t\ttype: CustomTypeModelFieldType.StructuredText,\n\t\t\tconfig: {\n\t\t\t\tlabel: config?.label ?? null,\n\t\t\t\tplaceholder: config?.placeholder,\n\t\t\t\tallowTargetBlank: config?.allowTargetBlank,\n\t\t\t\tsingle: config.single,\n\t\t\t\tlabels: config?.labels,\n\t\t\t},\n\t\t} satisfies CustomTypeModelRichTextSingleField\n\t}\n\n\treturn {\n\t\ttype: CustomTypeModelFieldType.StructuredText,\n\t\tconfig: {\n\t\t\tlabel: config?.label ?? null,\n\t\t\tplaceholder: config?.placeholder,\n\t\t\tallowTargetBlank: config?.allowTargetBlank,\n\t\t\tmulti: config?.multi,\n\t\t\tlabels: config?.labels,\n\t\t},\n\t} satisfies CustomTypeModelRichTextMultiField\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAa,YACZ,WACkC;AAClC,sDAAI,OAAQ,YAAW,OACtB,QAAO;EACN,MAAMA,uCAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,kEAAkB,OAAQ;GAC1B,QAAQ,OAAO;GACf,wDAAQ,OAAQ;GAChB;EACD;AAGF,QAAO;EACN,MAAMA,uCAAyB;EAC/B,QAAQ;GACP,wDAAO,OAAQ,UAAS;GACxB,6DAAa,OAAQ;GACrB,kEAAkB,OAAQ;GAC1B,uDAAO,OAAQ;GACf,wDAAQ,OAAQ;GAChB;EACD"}
@@ -0,0 +1,33 @@
1
+ //#region src/iac/fields/richText.d.ts
2
+ /**
3
+ * Configuration for a rich text field.
4
+ *
5
+ * Use `single` for title-style fields (single block).
6
+ * Use `multi` for multi-block rich text content.
7
+ */
8
+ interface RichTextFieldConfig {
9
+ label?: string | null;
10
+ placeholder?: string;
11
+ allowTargetBlank?: boolean;
12
+ /**
13
+ * Allowed block types for single-block mode (title-style).
14
+ *
15
+ * @example "heading1"
16
+ * @example "heading1,heading2,heading3"
17
+ */
18
+ single?: string;
19
+ /**
20
+ * Allowed block types for multi-block mode.
21
+ *
22
+ * @example "paragraph,strong,em,hyperlink"
23
+ * @example "paragraph,heading1,heading2,strong,em,hyperlink,list-item,o-list-item"
24
+ */
25
+ multi?: string;
26
+ /**
27
+ * Custom labels for text styling.
28
+ */
29
+ labels?: readonly string[];
30
+ }
31
+ //#endregion
32
+ export { RichTextFieldConfig };
33
+ //# sourceMappingURL=richText.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richText.d.cts","names":[],"sources":["../../../src/iac/fields/richText.ts"],"sourcesContent":[],"mappings":";AAaA;;;;;;UAAiB,mBAAA"}
@@ -0,0 +1,33 @@
1
+ //#region src/iac/fields/richText.d.ts
2
+ /**
3
+ * Configuration for a rich text field.
4
+ *
5
+ * Use `single` for title-style fields (single block).
6
+ * Use `multi` for multi-block rich text content.
7
+ */
8
+ interface RichTextFieldConfig {
9
+ label?: string | null;
10
+ placeholder?: string;
11
+ allowTargetBlank?: boolean;
12
+ /**
13
+ * Allowed block types for single-block mode (title-style).
14
+ *
15
+ * @example "heading1"
16
+ * @example "heading1,heading2,heading3"
17
+ */
18
+ single?: string;
19
+ /**
20
+ * Allowed block types for multi-block mode.
21
+ *
22
+ * @example "paragraph,strong,em,hyperlink"
23
+ * @example "paragraph,heading1,heading2,strong,em,hyperlink,list-item,o-list-item"
24
+ */
25
+ multi?: string;
26
+ /**
27
+ * Custom labels for text styling.
28
+ */
29
+ labels?: readonly string[];
30
+ }
31
+ //#endregion
32
+ export { RichTextFieldConfig };
33
+ //# sourceMappingURL=richText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richText.d.ts","names":[],"sources":["../../../src/iac/fields/richText.ts"],"sourcesContent":[],"mappings":";AAaA;;;;;;UAAiB,mBAAA"}