@lostgradient/cinder 0.9.0 → 0.12.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/CHANGELOG.md +26 -0
- package/components.json +82 -4
- package/dist/components/access-gate/index.js +381 -239
- package/dist/components/chat/builders.d.ts +17 -8
- package/dist/components/chat/conversation-model.d.ts +1 -1
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.js +300 -17
- package/dist/components/chat/utilities/conversation.d.ts +6 -6
- package/dist/components/chat-conversation-header/index.js +19 -6
- package/dist/components/chat-conversation-list/index.js +19 -6
- package/dist/components/code-block/code-block.css +15 -9
- package/dist/components/code-block/code-block.variables.js +8 -2
- package/dist/components/confirm-dialog/confirm-dialog.css +2 -0
- package/dist/components/confirm-dialog/confirm-dialog.schema.js +10 -1
- package/dist/components/confirm-dialog/confirm-dialog.types.d.ts +7 -0
- package/dist/components/confirm-dialog/index.js +478 -106
- package/dist/components/connection-indicator/connection-indicator.css +136 -0
- package/dist/components/connection-indicator/connection-indicator.css.d.ts +1 -0
- package/dist/components/connection-indicator/connection-indicator.schema.d.ts +3 -0
- package/dist/components/connection-indicator/connection-indicator.schema.js +89 -0
- package/dist/components/connection-indicator/connection-indicator.svelte.d.ts +21 -0
- package/dist/components/connection-indicator/connection-indicator.types.d.ts +46 -0
- package/dist/components/connection-indicator/connection-indicator.variables.d.ts +2 -0
- package/dist/components/connection-indicator/connection-indicator.variables.js +61 -0
- package/dist/components/connection-indicator/index.d.ts +5 -0
- package/dist/components/connection-indicator/index.js +409 -0
- package/dist/components/container/container.schema.js +4 -4
- package/dist/components/faceted-filter-bar/faceted-filter-bar.schema.js +5 -1
- package/dist/components/faceted-filter-bar/faceted-filter-bar.types.d.ts +2 -0
- package/dist/components/faceted-filter-bar/index.js +40 -31
- package/dist/components/invocation-rule-builder/index.d.ts +1 -1
- package/dist/components/invocation-rule-builder/index.js +305 -150
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +28 -0
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.js +89 -5
- package/dist/components/invocation-rule-builder/invocation-rule-builder.svelte.d.ts +2 -1
- package/dist/components/invocation-rule-builder/invocation-rule-builder.types.d.ts +114 -16
- package/dist/components/navigation-bar/index.js +11 -17
- package/dist/components/run-step-timeline/index.d.ts +1 -1
- package/dist/components/run-step-timeline/index.js +1052 -560
- package/dist/components/run-step-timeline/run-step-branch-disclosure.svelte.d.ts +17 -0
- package/dist/components/run-step-timeline/run-step-timeline.css +124 -0
- package/dist/components/run-step-timeline/run-step-timeline.schema.js +873 -350
- package/dist/components/run-step-timeline/run-step-timeline.svelte.d.ts +1 -15
- package/dist/components/run-step-timeline/run-step-timeline.types.d.ts +182 -5
- package/dist/components/run-step-timeline/run-step-timeline.utilities.d.ts +60 -0
- package/dist/components/schedule-builder/index.d.ts +5 -0
- package/dist/components/schedule-builder/index.js +3176 -0
- package/dist/components/schedule-builder/schedule-builder.css +121 -0
- package/dist/components/schedule-builder/schedule-builder.css.d.ts +1 -0
- package/dist/components/schedule-builder/schedule-builder.schema.d.ts +3 -0
- package/dist/components/schedule-builder/schedule-builder.schema.js +141 -0
- package/dist/components/schedule-builder/schedule-builder.svelte.d.ts +22 -0
- package/dist/components/schedule-builder/schedule-builder.types.d.ts +130 -0
- package/dist/components/schedule-builder/schedule-builder.utilities.d.ts +78 -0
- package/dist/components/schedule-builder/schedule-builder.variables.d.ts +2 -0
- package/dist/components/schedule-builder/schedule-builder.variables.js +61 -0
- package/dist/components/tag-input/index.js +22 -4
- package/dist/components/tag-input/tag-input.schema.js +5 -1
- package/dist/components/tag-input/tag-input.types.d.ts +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +23069 -20833
- package/dist/server/components/access-gate/index.js +2 -1
- package/dist/server/components/chat/index.js +4 -4
- package/dist/server/components/chat-conversation-header/index.js +5 -5
- package/dist/server/components/chat-conversation-list/index.js +3 -3
- package/dist/server/components/color-field/index.js +2 -2
- package/dist/server/components/confirm-dialog/index.js +7 -2
- package/dist/server/components/connection-indicator/index.js +16 -0
- package/dist/server/components/data-table/index.js +3 -3
- package/dist/server/components/diff-viewer/index.js +4 -3
- package/dist/server/components/faceted-filter-bar/index.js +1 -1
- package/dist/server/components/invocation-rule-builder/index.js +1 -1
- package/dist/server/components/json-schema-editor/index.js +4 -3
- package/dist/server/components/navigation-bar/index.js +1 -1
- package/dist/server/components/review-editor/index.js +4 -3
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/components/schedule-builder/index.js +30 -0
- package/dist/server/components/side-navigation/index.js +2 -2
- package/dist/server/components/table/index.js +3 -3
- package/dist/server/components/tag-input/index.js +1 -1
- package/dist/server/components/time-field/index.js +5 -3
- package/dist/server/index.js +105 -92
- package/dist/server/index.server-0sx92swg.js +9 -0
- package/dist/server/{index.server-mzzb7dnm.js → index.server-2bbwajb2.js} +1 -1
- package/dist/server/{index.server-q7w4jw89.js → index.server-2s5h1d05.js} +2 -2
- package/dist/server/{index.server-dg83ke3k.js → index.server-2zdbz3rj.js} +1 -1
- package/dist/server/{index.server-0jhra85x.js → index.server-3w72dxz7.js} +4 -4
- package/dist/server/{index.server-5tf22d6e.js → index.server-4wx0qven.js} +3 -3
- package/dist/server/{index.server-qh9qzd5t.js → index.server-4x4hgvqe.js} +283 -13
- package/dist/server/{index.server-c6pe4kaf.js → index.server-5gzyqv78.js} +1 -1
- package/dist/server/{index.server-mqt1ngqw.js → index.server-6hnfzc7f.js} +19 -6
- package/dist/server/{index.server-894t97kv.js → index.server-7yvpb6z7.js} +4 -4
- package/dist/server/index.server-be9bpqeh.js +93 -0
- package/dist/server/{index.server-f3z7tpxr.js → index.server-c42b462p.js} +2 -4
- package/dist/server/{index.server-7vyzen5x.js → index.server-c5qv3p61.js} +171 -63
- package/dist/server/index.server-cch0eed5.js +144 -0
- package/dist/server/{index.server-btgb3d56.js → index.server-d5a5ccz7.js} +18 -12
- package/dist/server/index.server-g5jgq3jp.js +793 -0
- package/dist/server/index.server-gmh5ar16.js +2 -0
- package/dist/server/{index.server-0atyznp7.js → index.server-h89zk5ev.js} +7 -7
- package/dist/server/{index.server-jxg42jpz.js → index.server-jdcq5zza.js} +7 -7
- package/dist/server/{index.server-2dga5yzr.js → index.server-jfrssta6.js} +1 -1
- package/dist/server/{index.server-fy068yne.js → index.server-jj76374p.js} +1 -1
- package/dist/server/{index.server-39ne5cd1.js → index.server-pxq277t5.js} +32 -1
- package/dist/server/index.server-qbkxz7r2.js +750 -0
- package/dist/server/{index.server-marjz8ps.js → index.server-tcay903b.js} +3 -2
- package/dist/server/{index.server-yz4k36cw.js → index.server-z7hxtqs1.js} +1 -1
- package/package.json +87 -97
- package/src/components/chat/builders.ts +445 -14
- package/src/components/chat/conversation-model.ts +1 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/utilities/conversation.ts +33 -15
- package/src/components/code-block/code-block.css +15 -9
- package/src/components/code-block/code-block.variables.json +7 -1
- package/src/components/code-block/code-block.variables.ts +7 -1
- package/src/components/confirm-dialog/confirm-dialog.css +2 -0
- package/src/components/confirm-dialog/confirm-dialog.schema.json +8 -0
- package/src/components/confirm-dialog/confirm-dialog.schema.ts +10 -0
- package/src/components/confirm-dialog/confirm-dialog.svelte +31 -3
- package/src/components/confirm-dialog/confirm-dialog.types.ts +7 -0
- package/src/components/connection-indicator/connection-indicator.css +136 -0
- package/src/components/connection-indicator/connection-indicator.examples.json +31 -0
- package/src/components/connection-indicator/connection-indicator.schema.json +29 -0
- package/src/components/connection-indicator/connection-indicator.schema.ts +36 -0
- package/src/components/connection-indicator/connection-indicator.svelte +63 -0
- package/src/components/connection-indicator/connection-indicator.types.ts +58 -0
- package/src/components/connection-indicator/connection-indicator.variables.json +1 -0
- package/src/components/connection-indicator/connection-indicator.variables.ts +3 -0
- package/src/components/connection-indicator/index.ts +10 -0
- package/src/components/container/container.schema.json +3 -3
- package/src/components/container/container.schema.ts +3 -3
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.json +4 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.schema.ts +4 -0
- package/src/components/faceted-filter-bar/faceted-filter-bar.svelte +13 -11
- package/src/components/faceted-filter-bar/faceted-filter-bar.types.ts +2 -0
- package/src/components/invocation-rule-builder/index.ts +4 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.css +28 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.examples.json +6 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.json +76 -3
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.ts +83 -3
- package/src/components/invocation-rule-builder/invocation-rule-builder.svelte +326 -113
- package/src/components/invocation-rule-builder/invocation-rule-builder.types.ts +157 -43
- package/src/components/navigation-bar/navigation-bar.svelte +2 -2
- package/src/components/run-step-timeline/index.ts +8 -0
- package/src/components/run-step-timeline/run-step-branch-disclosure.svelte +16 -0
- package/src/components/run-step-timeline/run-step-timeline.css +124 -0
- package/src/components/run-step-timeline/run-step-timeline.examples.json +18 -0
- package/src/components/run-step-timeline/run-step-timeline.schema.json +872 -349
- package/src/components/run-step-timeline/run-step-timeline.schema.ts +931 -349
- package/src/components/run-step-timeline/run-step-timeline.svelte +388 -269
- package/src/components/run-step-timeline/run-step-timeline.types.ts +192 -5
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +310 -0
- package/src/components/schedule-builder/index.ts +14 -0
- package/src/components/schedule-builder/schedule-builder.css +121 -0
- package/src/components/schedule-builder/schedule-builder.examples.json +31 -0
- package/src/components/schedule-builder/schedule-builder.schema.json +78 -0
- package/src/components/schedule-builder/schedule-builder.schema.ts +86 -0
- package/src/components/schedule-builder/schedule-builder.svelte +629 -0
- package/src/components/schedule-builder/schedule-builder.types.ts +137 -0
- package/src/components/schedule-builder/schedule-builder.utilities.ts +344 -0
- package/src/components/schedule-builder/schedule-builder.variables.json +1 -0
- package/src/components/schedule-builder/schedule-builder.variables.ts +3 -0
- package/src/components/tag-input/tag-input.schema.json +4 -0
- package/src/components/tag-input/tag-input.schema.ts +4 -0
- package/src/components/tag-input/tag-input.svelte +20 -3
- package/src/components/tag-input/tag-input.types.ts +4 -0
- package/src/index.ts +23 -0
- package/src/styles/components.css +2 -0
- package/dist/server/index.server-qk1h0n02.js +0 -393
|
@@ -79,6 +79,29 @@
|
|
|
79
79
|
"label": {
|
|
80
80
|
"type": "string",
|
|
81
81
|
"description": "The human-readable label shown in the select."
|
|
82
|
+
},
|
|
83
|
+
"type": {
|
|
84
|
+
"enum": ["string", "number", "boolean", "enum"],
|
|
85
|
+
"description": "The value type this option represents when used as a field option in\nconditions-only mode (`mode=\"conditions\"`). Defaults to `'string'` when\nomitted. Ignored for operator and action-target options, and ignored\nentirely in full mode."
|
|
86
|
+
},
|
|
87
|
+
"options": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"value": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "The value stored on the condition."
|
|
95
|
+
},
|
|
96
|
+
"label": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "The human-readable label shown in the select."
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": ["label", "value"]
|
|
103
|
+
},
|
|
104
|
+
"description": "Enum choices for this field's value, rendered as a select in\nconditions-only mode when `type` is `'enum'`. Provide these for an enum\nfield; if omitted or empty, the value select renders with no choices.\nIgnored for non-enum field types."
|
|
82
105
|
}
|
|
83
106
|
},
|
|
84
107
|
"additionalProperties": false,
|
|
@@ -86,6 +109,10 @@
|
|
|
86
109
|
},
|
|
87
110
|
"description": "Options for the condition field selector. Consumer-provided list of\nfields that a condition can test, e.g. \"path\", \"label\", \"author\"."
|
|
88
111
|
},
|
|
112
|
+
"mode": {
|
|
113
|
+
"enum": ["full", "conditions"],
|
|
114
|
+
"description": "Rendering mode. Omit or pass `'full'` for the original conditions +\nactions behavior; pass `'conditions'` to render conditions only. Not\nexpressible as a schema-driven discriminant here because JSON Schema\nvalidation of this component is documented, not enforced at runtime\nagainst `operatorOptions`/`actionOptions` presence; see the component\ntypes for the full mode-discriminated prop shape."
|
|
115
|
+
},
|
|
89
116
|
"operatorOptions": {
|
|
90
117
|
"type": "array",
|
|
91
118
|
"items": {
|
|
@@ -98,12 +125,35 @@
|
|
|
98
125
|
"label": {
|
|
99
126
|
"type": "string",
|
|
100
127
|
"description": "The human-readable label shown in the select."
|
|
128
|
+
},
|
|
129
|
+
"type": {
|
|
130
|
+
"enum": ["string", "number", "boolean", "enum"],
|
|
131
|
+
"description": "The value type this option represents when used as a field option in\nconditions-only mode (`mode=\"conditions\"`). Defaults to `'string'` when\nomitted. Ignored for operator and action-target options, and ignored\nentirely in full mode."
|
|
132
|
+
},
|
|
133
|
+
"options": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"value": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "The value stored on the condition."
|
|
141
|
+
},
|
|
142
|
+
"label": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "The human-readable label shown in the select."
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": ["label", "value"]
|
|
149
|
+
},
|
|
150
|
+
"description": "Enum choices for this field's value, rendered as a select in\nconditions-only mode when `type` is `'enum'`. Provide these for an enum\nfield; if omitted or empty, the value select renders with no choices.\nIgnored for non-enum field types."
|
|
101
151
|
}
|
|
102
152
|
},
|
|
103
153
|
"additionalProperties": false,
|
|
104
154
|
"required": ["label", "value"]
|
|
105
155
|
},
|
|
106
|
-
"description": "Options for the condition operator selector. Consumer-provided list\nof operators, e.g. \"matches\", \"is\", \"is-not\", \"contains\"."
|
|
156
|
+
"description": "Options for the condition operator selector. Consumer-provided list\nof operators, e.g. \"matches\", \"is\", \"is-not\", \"contains\". Required in\nfull mode; optional (and ignored) when `mode` is `'conditions'`, since\ncinder supplies a fixed operator set in that mode — so a conditions-only\nconfiguration validates without it."
|
|
107
157
|
},
|
|
108
158
|
"actionOptions": {
|
|
109
159
|
"type": "array",
|
|
@@ -117,12 +167,35 @@
|
|
|
117
167
|
"label": {
|
|
118
168
|
"type": "string",
|
|
119
169
|
"description": "The human-readable label shown in the select."
|
|
170
|
+
},
|
|
171
|
+
"type": {
|
|
172
|
+
"enum": ["string", "number", "boolean", "enum"],
|
|
173
|
+
"description": "The value type this option represents when used as a field option in\nconditions-only mode (`mode=\"conditions\"`). Defaults to `'string'` when\nomitted. Ignored for operator and action-target options, and ignored\nentirely in full mode."
|
|
174
|
+
},
|
|
175
|
+
"options": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"properties": {
|
|
180
|
+
"value": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "The value stored on the condition."
|
|
183
|
+
},
|
|
184
|
+
"label": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "The human-readable label shown in the select."
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"additionalProperties": false,
|
|
190
|
+
"required": ["label", "value"]
|
|
191
|
+
},
|
|
192
|
+
"description": "Enum choices for this field's value, rendered as a select in\nconditions-only mode when `type` is `'enum'`. Provide these for an enum\nfield; if omitted or empty, the value select renders with no choices.\nIgnored for non-enum field types."
|
|
120
193
|
}
|
|
121
194
|
},
|
|
122
195
|
"additionalProperties": false,
|
|
123
196
|
"required": ["label", "value"]
|
|
124
197
|
},
|
|
125
|
-
"description": "Options for the action target selector. Consumer-provided list of\ntargets, e.g. review-agent slugs or step identifiers."
|
|
198
|
+
"description": "Options for the action target selector. Consumer-provided list of\ntargets, e.g. review-agent slugs or step identifiers. Required in full\nmode; optional (and ignored) when `mode` is `'conditions'`, since actions\nare not rendered — so a conditions-only configuration validates without it."
|
|
126
199
|
},
|
|
127
200
|
"readonly": {
|
|
128
201
|
"const": true,
|
|
@@ -150,7 +223,7 @@
|
|
|
150
223
|
}
|
|
151
224
|
},
|
|
152
225
|
"additionalProperties": false,
|
|
153
|
-
"required": ["
|
|
226
|
+
"required": ["fieldOptions", "readonly", "rules"],
|
|
154
227
|
"metadata": {
|
|
155
228
|
"unsupportedProps": [
|
|
156
229
|
{
|
|
@@ -83,6 +83,31 @@ const schema = {
|
|
|
83
83
|
type: 'string',
|
|
84
84
|
description: 'The human-readable label shown in the select.',
|
|
85
85
|
},
|
|
86
|
+
type: {
|
|
87
|
+
enum: ['string', 'number', 'boolean', 'enum'],
|
|
88
|
+
description:
|
|
89
|
+
'The value type this option represents when used as a field option in\nconditions-only mode (`mode="conditions"`). Defaults to `\'string\'` when\nomitted. Ignored for operator and action-target options, and ignored\nentirely in full mode.',
|
|
90
|
+
},
|
|
91
|
+
options: {
|
|
92
|
+
type: 'array',
|
|
93
|
+
items: {
|
|
94
|
+
type: 'object',
|
|
95
|
+
properties: {
|
|
96
|
+
value: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
description: 'The value stored on the condition.',
|
|
99
|
+
},
|
|
100
|
+
label: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
description: 'The human-readable label shown in the select.',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
additionalProperties: false,
|
|
106
|
+
required: ['label', 'value'],
|
|
107
|
+
},
|
|
108
|
+
description:
|
|
109
|
+
"Enum choices for this field's value, rendered as a select in\nconditions-only mode when `type` is `'enum'`. Provide these for an enum\nfield; if omitted or empty, the value select renders with no choices.\nIgnored for non-enum field types.",
|
|
110
|
+
},
|
|
86
111
|
},
|
|
87
112
|
additionalProperties: false,
|
|
88
113
|
required: ['label', 'value'],
|
|
@@ -90,6 +115,11 @@ const schema = {
|
|
|
90
115
|
description:
|
|
91
116
|
'Options for the condition field selector. Consumer-provided list of\nfields that a condition can test, e.g. "path", "label", "author".',
|
|
92
117
|
},
|
|
118
|
+
mode: {
|
|
119
|
+
enum: ['full', 'conditions'],
|
|
120
|
+
description:
|
|
121
|
+
"Rendering mode. Omit or pass `'full'` for the original conditions +\nactions behavior; pass `'conditions'` to render conditions only. Not\nexpressible as a schema-driven discriminant here because JSON Schema\nvalidation of this component is documented, not enforced at runtime\nagainst `operatorOptions`/`actionOptions` presence; see the component\ntypes for the full mode-discriminated prop shape.",
|
|
122
|
+
},
|
|
93
123
|
operatorOptions: {
|
|
94
124
|
type: 'array',
|
|
95
125
|
items: {
|
|
@@ -103,12 +133,37 @@ const schema = {
|
|
|
103
133
|
type: 'string',
|
|
104
134
|
description: 'The human-readable label shown in the select.',
|
|
105
135
|
},
|
|
136
|
+
type: {
|
|
137
|
+
enum: ['string', 'number', 'boolean', 'enum'],
|
|
138
|
+
description:
|
|
139
|
+
'The value type this option represents when used as a field option in\nconditions-only mode (`mode="conditions"`). Defaults to `\'string\'` when\nomitted. Ignored for operator and action-target options, and ignored\nentirely in full mode.',
|
|
140
|
+
},
|
|
141
|
+
options: {
|
|
142
|
+
type: 'array',
|
|
143
|
+
items: {
|
|
144
|
+
type: 'object',
|
|
145
|
+
properties: {
|
|
146
|
+
value: {
|
|
147
|
+
type: 'string',
|
|
148
|
+
description: 'The value stored on the condition.',
|
|
149
|
+
},
|
|
150
|
+
label: {
|
|
151
|
+
type: 'string',
|
|
152
|
+
description: 'The human-readable label shown in the select.',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
additionalProperties: false,
|
|
156
|
+
required: ['label', 'value'],
|
|
157
|
+
},
|
|
158
|
+
description:
|
|
159
|
+
"Enum choices for this field's value, rendered as a select in\nconditions-only mode when `type` is `'enum'`. Provide these for an enum\nfield; if omitted or empty, the value select renders with no choices.\nIgnored for non-enum field types.",
|
|
160
|
+
},
|
|
106
161
|
},
|
|
107
162
|
additionalProperties: false,
|
|
108
163
|
required: ['label', 'value'],
|
|
109
164
|
},
|
|
110
165
|
description:
|
|
111
|
-
'Options for the condition operator selector. Consumer-provided list\nof operators, e.g. "matches", "is", "is-not", "contains".',
|
|
166
|
+
'Options for the condition operator selector. Consumer-provided list\nof operators, e.g. "matches", "is", "is-not", "contains". Required in\nfull mode; optional (and ignored) when `mode` is `\'conditions\'`, since\ncinder supplies a fixed operator set in that mode — so a conditions-only\nconfiguration validates without it.',
|
|
112
167
|
},
|
|
113
168
|
actionOptions: {
|
|
114
169
|
type: 'array',
|
|
@@ -123,12 +178,37 @@ const schema = {
|
|
|
123
178
|
type: 'string',
|
|
124
179
|
description: 'The human-readable label shown in the select.',
|
|
125
180
|
},
|
|
181
|
+
type: {
|
|
182
|
+
enum: ['string', 'number', 'boolean', 'enum'],
|
|
183
|
+
description:
|
|
184
|
+
'The value type this option represents when used as a field option in\nconditions-only mode (`mode="conditions"`). Defaults to `\'string\'` when\nomitted. Ignored for operator and action-target options, and ignored\nentirely in full mode.',
|
|
185
|
+
},
|
|
186
|
+
options: {
|
|
187
|
+
type: 'array',
|
|
188
|
+
items: {
|
|
189
|
+
type: 'object',
|
|
190
|
+
properties: {
|
|
191
|
+
value: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
description: 'The value stored on the condition.',
|
|
194
|
+
},
|
|
195
|
+
label: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
description: 'The human-readable label shown in the select.',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
additionalProperties: false,
|
|
201
|
+
required: ['label', 'value'],
|
|
202
|
+
},
|
|
203
|
+
description:
|
|
204
|
+
"Enum choices for this field's value, rendered as a select in\nconditions-only mode when `type` is `'enum'`. Provide these for an enum\nfield; if omitted or empty, the value select renders with no choices.\nIgnored for non-enum field types.",
|
|
205
|
+
},
|
|
126
206
|
},
|
|
127
207
|
additionalProperties: false,
|
|
128
208
|
required: ['label', 'value'],
|
|
129
209
|
},
|
|
130
210
|
description:
|
|
131
|
-
|
|
211
|
+
"Options for the action target selector. Consumer-provided list of\ntargets, e.g. review-agent slugs or step identifiers. Required in full\nmode; optional (and ignored) when `mode` is `'conditions'`, since actions\nare not rendered — so a conditions-only configuration validates without it.",
|
|
132
212
|
},
|
|
133
213
|
readonly: {
|
|
134
214
|
const: true,
|
|
@@ -157,7 +237,7 @@ const schema = {
|
|
|
157
237
|
},
|
|
158
238
|
},
|
|
159
239
|
additionalProperties: false,
|
|
160
|
-
required: ['
|
|
240
|
+
required: ['fieldOptions', 'readonly', 'rules'],
|
|
161
241
|
metadata: {
|
|
162
242
|
unsupportedProps: [
|
|
163
243
|
{
|