@lostgradient/cinder 0.16.0 → 0.17.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 +191 -0
- package/README.md +33 -11
- package/components.json +53 -102
- package/dist/_internal/chart/chart-utilities.d.ts +1 -0
- package/dist/cli/index.js +63 -10
- package/dist/cli/mcp-dependencies.d.ts +4 -0
- package/dist/components/approval-card/approval-card.css +1 -6
- package/dist/components/approval-card/index.js +94 -55
- package/dist/components/area-chart/index.js +40 -6
- package/dist/components/bar-chart/index.js +132 -83
- package/dist/components/code-block/index.js +58 -9
- package/dist/components/command-menu/command-menu.css +9 -0
- package/dist/components/command-menu/index.js +7 -2
- package/dist/components/data-table/index.js +88 -31
- package/dist/components/diff-statistics/diff-statistics.svelte.d.ts +3 -3
- package/dist/components/file-upload/file-upload.schema.js +5 -1
- package/dist/components/file-upload/file-upload.types.d.ts +2 -0
- package/dist/components/file-upload/index.js +37 -27
- package/dist/components/invocation-rule-builder/index.d.ts +1 -1
- package/dist/components/invocation-rule-builder/index.js +244 -199
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +8 -0
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.d.ts +2 -2
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.js +309 -193
- package/dist/components/invocation-rule-builder/invocation-rule-builder.svelte.d.ts +3 -2
- package/dist/components/invocation-rule-builder/invocation-rule-builder.types.d.ts +98 -31
- package/dist/components/json-editor/index.d.ts +5 -0
- package/dist/components/json-editor/index.js +261 -0
- package/dist/components/json-editor/json-editor.css +49 -0
- package/dist/components/{diff-viewer/diff-viewer.schema.js → json-editor/json-editor.schema.js} +37 -49
- package/dist/components/json-editor/json-editor.svelte.d.ts +21 -0
- package/dist/components/json-editor/json-editor.types.d.ts +25 -0
- package/dist/components/{diff-viewer/diff-viewer.variables.js → json-editor/json-editor.variables.js} +4 -4
- package/dist/components/json-schema-editor/index.js +2041 -4165
- package/dist/components/json-schema-editor/json-schema-editor-state.svelte.d.ts +17 -1
- package/dist/components/json-schema-editor/json-schema-editor-types.d.ts +8 -1
- package/dist/components/json-schema-editor/json-schema-editor.css +35 -0
- package/dist/components/json-schema-editor/json-schema-editor.svelte.d.ts +0 -1
- package/dist/components/json-schema-editor/json-schema-validator.d.ts +9 -4
- package/dist/components/line-chart/index.js +40 -6
- package/dist/components/matrix-chart/index.js +40 -6
- package/dist/components/payload-inspector/index.js +10 -2
- package/dist/components/payload-inspector/payload-inspector.schema.js +11 -1
- package/dist/components/payload-inspector/payload-inspector.types.d.ts +20 -0
- package/dist/components/run-step-timeline/index.js +158 -110
- package/dist/components/run-step-timeline/run-step-timeline.css +46 -0
- package/dist/components/run-step-timeline/run-step-timeline.schema.js +26 -1
- package/dist/components/run-step-timeline/run-step-timeline.types.d.ts +22 -2
- package/dist/components/schedule-builder/index.js +165 -93
- package/dist/components/schedule-builder/schedule-builder.schema.js +8 -1
- package/dist/components/schedule-builder/schedule-builder.svelte.d.ts +1 -1
- package/dist/components/schedule-builder/schedule-builder.types.d.ts +12 -0
- package/dist/components/schema-form/index.d.ts +1 -1
- package/dist/components/schema-form/index.js +107 -25
- package/dist/components/schema-form/schema-form.schema.js +9 -1
- package/dist/components/schema-form/schema-form.svelte.d.ts +1 -1
- package/dist/components/schema-form/schema-form.types.d.ts +8 -0
- package/dist/components/sidebar/index.js +93 -42
- package/dist/components/sidebar/sidebar.css +7 -16
- package/dist/components/sidebar/sidebar.schema.js +8 -9
- package/dist/components/sidebar/sidebar.types.d.ts +14 -12
- package/dist/components/source-diff-viewer/source-diff-viewer.svelte.d.ts +2 -2
- package/dist/components/spectrogram/index.js +40 -6
- package/dist/components/spectrum-chart/index.js +40 -6
- package/dist/components/table/index.js +85 -28
- package/dist/components/table/table.css +11 -0
- package/dist/components/table/table.schema.js +10 -1
- package/dist/components/table/table.types.d.ts +24 -1
- package/dist/components/tabs/tabs.css +2 -0
- package/dist/components/textarea/textarea.svelte.d.ts +1 -1
- package/dist/components/toast-region/index.js +2 -2
- package/dist/components/toast-region/toast-region.css +1 -1
- package/dist/components/waveform/index.js +40 -6
- package/dist/highlighters/shiki/index.d.ts +47 -5
- package/dist/highlighters/shiki/index.js +58 -9
- package/dist/index.d.ts +4 -4
- package/dist/index.js +15394 -16128
- package/dist/server/components/access-gate/index.js +2 -5
- package/dist/server/components/approval-card/index.js +2 -2
- package/dist/server/components/area-chart/index.js +3 -3
- package/dist/server/components/bar-chart/index.js +3 -3
- package/dist/server/components/command-menu/index.js +1 -1
- package/dist/server/components/context-menu/index.js +5 -5
- package/dist/server/components/data-table/index.js +3 -3
- package/dist/server/components/diff-statistics/index.js +3 -5
- package/dist/server/components/dropdown/index.js +6 -7
- package/dist/server/components/file-upload/index.js +2 -3
- package/dist/server/components/icons/index.js +17 -26
- package/dist/server/components/inline-loading/index.js +1 -1
- package/dist/server/components/invocation-rule-builder/index.js +1 -1
- package/dist/server/components/json-editor/index.js +13 -0
- package/dist/server/components/json-schema-editor/index.js +4 -16
- package/dist/server/components/line-chart/index.js +3 -3
- package/dist/server/components/matrix-chart/index.js +2 -2
- package/dist/server/components/menu-bar/index.js +4 -4
- package/dist/server/components/payload-inspector/index.js +2 -2
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/components/schedule-builder/index.js +3 -3
- package/dist/server/components/schema-form/index.js +1 -1
- package/dist/server/components/selection-popover/index.js +3 -5
- package/dist/server/components/sidebar/index.js +1 -1
- package/dist/server/components/spectrogram/index.js +2 -2
- package/dist/server/components/spectrum-chart/index.js +2 -2
- package/dist/server/components/surface/index.js +3 -5
- package/dist/server/components/table/index.js +3 -3
- package/dist/server/components/tabs/index.js +5 -5
- package/dist/server/components/toast-region/index.js +1 -1
- package/dist/server/components/toolbar/index.js +2 -3
- package/dist/server/components/waveform/index.js +2 -2
- package/dist/server/highlighters/shiki/index.js +61 -25
- package/dist/server/index.js +106 -116
- package/dist/server/{index.server-7yfz2t73.js → index.server-003t81xk.js} +1 -1
- package/dist/server/{index.server-mehav5vs.js → index.server-032p855q.js} +5 -5
- package/dist/server/{index.server-tf2n3ccm.js → index.server-1vfhzhkj.js} +1 -1
- package/dist/server/{index.server-jz5yxwde.js → index.server-4cbqjf14.js} +16 -7
- package/dist/server/{index.server-aqethy0w.js → index.server-66nm5gd5.js} +102 -26
- package/dist/server/{index.server-m0ezemav.js → index.server-6mnbznbt.js} +4 -2
- package/dist/server/{index.server-1nq8h5yb.js → index.server-6vbpz6dd.js} +40 -6
- package/dist/server/{index.server-796hb0r8.js → index.server-7qak74fg.js} +1 -1
- package/dist/server/{index.server-5exh7rmw.js → index.server-7ygdwxre.js} +57 -5
- package/dist/server/{index.server-q1d48s9t.js → index.server-8c6cck0y.js} +6 -4
- package/dist/server/index.server-93vt8ktj.js +95 -0
- package/dist/server/{index.server-ep81fn23.js → index.server-9eccb2fc.js} +2 -2
- package/dist/server/{index.server-zncgb7mw.js → index.server-9nac5z11.js} +92 -49
- package/dist/server/{index.server-bf7d81b4.js → index.server-9vqfmhez.js} +16 -18
- package/dist/server/{index.server-nt304e00.js → index.server-dx58qant.js} +1 -1
- package/dist/server/{index.server-zh3r8vfd.js → index.server-fhrqsg97.js} +1 -1
- package/dist/server/{index.server-dq0k0qf6.js → index.server-geq56xaz.js} +10 -10
- package/dist/server/{index.server-51sxnete.js → index.server-hxveaqg1.js} +10 -10
- package/dist/server/{index.server-c5qv3p61.js → index.server-j87v28yy.js} +59 -30
- package/dist/server/{index.server-s5g7reqp.js → index.server-mewms9dg.js} +2 -2
- package/dist/server/index.server-mm728d0w.js +20 -0
- package/dist/server/{index.server-5mc2vsy0.js → index.server-n0rbn5yf.js} +4 -2
- package/dist/server/{index.server-qv0kkre4.js → index.server-ng8y854r.js} +188 -107
- package/dist/server/{index.server-ne4gzxvz.js → index.server-q5gvb174.js} +5 -5
- package/dist/server/{index.server-g5jgq3jp.js → index.server-qxneqxf8.js} +40 -6
- package/dist/server/{index.server-x1dha7bk.js → index.server-rnddtcb3.js} +4 -2
- package/dist/server/{index.server-7zpzspk6.js → index.server-s4wm4g2a.js} +30 -2
- package/dist/server/index.server-szgghcdh.js +887 -0
- package/dist/server/{index.server-thcda9ny.js → index.server-vd302sxz.js} +11 -4
- package/dist/server/{index.server-3sq9d73w.js → index.server-vz9hqkdq.js} +2 -2
- package/dist/server/{index.server-mvjzcna5.js → index.server-wg6ddzpa.js} +42 -20
- package/dist/server/index.server-xanq9ppe.js +119 -0
- package/dist/server/{index.server-67q8dmbp.js → index.server-y2ncgt7p.js} +1 -1
- package/dist/server/{index.server-4x91gzy1.js → index.server-yqhww50r.js} +4 -4
- package/dist/server/{index.server-7798gc22.js → index.server-zfx4magq.js} +4 -2
- package/package.json +45 -288
- package/src/_internal/chart/chart-utilities.ts +74 -5
- package/src/components/approval-card/approval-card-actions.svelte +12 -28
- package/src/components/approval-card/approval-card.css +1 -6
- package/src/components/bar-chart/bar-chart.examples.json +1 -1
- package/src/components/bar-chart/bar-chart.svelte +3 -1
- package/src/components/command-menu/command-menu.css +9 -0
- package/src/components/command-menu/command-menu.svelte +9 -2
- package/src/components/file-upload/file-upload.schema.json +4 -0
- package/src/components/file-upload/file-upload.schema.ts +4 -0
- package/src/components/file-upload/file-upload.svelte +3 -3
- package/src/components/file-upload/file-upload.types.ts +2 -0
- package/src/components/invocation-rule-builder/index.ts +1 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.css +8 -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 +70 -7
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.ts +5 -250
- package/src/components/invocation-rule-builder/invocation-rule-builder.svelte +106 -83
- package/src/components/invocation-rule-builder/invocation-rule-builder.types.ts +145 -62
- package/src/components/json-editor/index.ts +6 -0
- package/src/components/json-editor/json-editor.css +49 -0
- package/src/components/json-editor/json-editor.examples.json +13 -0
- package/src/components/json-editor/json-editor.schema.json +57 -0
- package/src/components/json-editor/json-editor.schema.ts +62 -0
- package/src/components/json-editor/json-editor.svelte +104 -0
- package/src/components/json-editor/json-editor.types.ts +29 -0
- package/src/components/json-schema-editor/diff-view.svelte +26 -8
- package/src/components/json-schema-editor/form-view.svelte +1 -1
- package/src/components/json-schema-editor/json-schema-editor-state.svelte.ts +163 -56
- package/src/components/json-schema-editor/json-schema-editor-types.ts +8 -1
- package/src/components/json-schema-editor/json-schema-editor.css +35 -0
- package/src/components/json-schema-editor/json-schema-validator.ts +59 -25
- package/src/components/json-schema-editor/json-view.svelte +52 -18
- package/src/components/payload-inspector/payload-inspector.schema.json +8 -0
- package/src/components/payload-inspector/payload-inspector.schema.ts +10 -0
- package/src/components/payload-inspector/payload-inspector.svelte +2 -2
- package/src/components/payload-inspector/payload-inspector.types.ts +20 -0
- package/src/components/run-step-timeline/run-step-timeline.css +46 -0
- package/src/components/run-step-timeline/run-step-timeline.examples.json +3 -3
- package/src/components/run-step-timeline/run-step-timeline.schema.json +24 -0
- package/src/components/run-step-timeline/run-step-timeline.schema.ts +26 -0
- package/src/components/run-step-timeline/run-step-timeline.svelte +41 -4
- package/src/components/run-step-timeline/run-step-timeline.types.ts +22 -1
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +9 -1
- package/src/components/schedule-builder/schedule-builder.schema.json +7 -0
- package/src/components/schedule-builder/schedule-builder.schema.ts +8 -0
- package/src/components/schedule-builder/schedule-builder.svelte +94 -22
- package/src/components/schedule-builder/schedule-builder.types.ts +12 -0
- package/src/components/schema-form/index.ts +1 -0
- package/src/components/schema-form/schema-form-body.svelte +94 -17
- package/src/components/schema-form/schema-form.examples.json +1 -1
- package/src/components/schema-form/schema-form.schema.json +5 -0
- package/src/components/schema-form/schema-form.schema.ts +6 -0
- package/src/components/schema-form/schema-form.svelte +4 -0
- package/src/components/schema-form/schema-form.types.ts +9 -0
- package/src/components/side-navigation/side-navigation.examples.json +1 -1
- package/src/components/sidebar/sidebar.css +7 -16
- package/src/components/sidebar/sidebar.examples.json +3 -3
- package/src/components/sidebar/sidebar.schema.json +7 -8
- package/src/components/sidebar/sidebar.schema.ts +8 -8
- package/src/components/sidebar/sidebar.svelte +65 -27
- package/src/components/sidebar/sidebar.types.ts +14 -12
- package/src/components/table/table.css +11 -0
- package/src/components/table/table.examples.json +3 -3
- package/src/components/table/table.schema.json +9 -0
- package/src/components/table/table.schema.ts +11 -0
- package/src/components/table/table.svelte +58 -14
- package/src/components/table/table.types.ts +27 -1
- package/src/components/tabs/tabs.css +2 -0
- package/src/components/toast-region/toast-region.css +1 -1
- package/src/components/toast-region/toast-region.examples.json +1 -1
- package/src/components/toast-region/toast-region.svelte +2 -2
- package/src/highlighters/shiki/index.ts +157 -17
- package/src/index.ts +5 -7
- package/src/styles/components.css +1 -1
- package/src/utilities/change-tracker.svelte.ts +1 -1
- package/dist/commentary/anchor-decorations.d.ts +0 -86
- package/dist/commentary/anchor-decorations.js +0 -490
- package/dist/commentary/anchoring.d.ts +0 -93
- package/dist/commentary/anchoring.js +0 -157
- package/dist/commentary/comments/index.d.ts +0 -12
- package/dist/commentary/comments/index.js +0 -14
- package/dist/commentary/comments/mentions.d.ts +0 -43
- package/dist/commentary/comments/mentions.js +0 -65
- package/dist/commentary/comments/reanchor.d.ts +0 -86
- package/dist/commentary/comments/reanchor.js +0 -220
- package/dist/commentary/comments/types.d.ts +0 -260
- package/dist/commentary/comments/types.js +0 -83
- package/dist/commentary/comments/updates.d.ts +0 -102
- package/dist/commentary/comments/updates.js +0 -226
- package/dist/commentary/export/comments-export.d.ts +0 -42
- package/dist/commentary/export/comments-export.js +0 -258
- package/dist/commentary/export/index.d.ts +0 -12
- package/dist/commentary/export/index.js +0 -12
- package/dist/commentary/export/markdown-summary.d.ts +0 -31
- package/dist/commentary/export/markdown-summary.js +0 -218
- package/dist/commentary/export/types.d.ts +0 -162
- package/dist/commentary/export/types.js +0 -7
- package/dist/commentary/export/unified-diff.d.ts +0 -28
- package/dist/commentary/export/unified-diff.js +0 -250
- package/dist/commentary/index.d.ts +0 -6
- package/dist/commentary/index.js +0 -6
- package/dist/commentary/session/index.d.ts +0 -12
- package/dist/commentary/session/index.js +0 -14
- package/dist/commentary/session/persistence.d.ts +0 -92
- package/dist/commentary/session/persistence.js +0 -253
- package/dist/commentary/session/types.d.ts +0 -208
- package/dist/commentary/session/types.js +0 -26
- package/dist/commentary/session/updates.d.ts +0 -155
- package/dist/commentary/session/updates.js +0 -362
- package/dist/commentary/shared/anchor-types.d.ts +0 -116
- package/dist/commentary/shared/anchor-types.js +0 -9
- package/dist/components/diff-viewer/diff-controller.svelte.d.ts +0 -75
- package/dist/components/diff-viewer/diff-front-matter.svelte.d.ts +0 -28
- package/dist/components/diff-viewer/diff-line.svelte.d.ts +0 -22
- package/dist/components/diff-viewer/diff-summary-bar.svelte.d.ts +0 -13
- package/dist/components/diff-viewer/diff-toolbar.svelte.d.ts +0 -36
- package/dist/components/diff-viewer/diff-viewer.svelte.d.ts +0 -22
- package/dist/components/diff-viewer/diff-viewer.types.d.ts +0 -53
- package/dist/components/diff-viewer/front-matter-header.svelte.d.ts +0 -26
- package/dist/components/diff-viewer/index.d.ts +0 -4
- package/dist/components/diff-viewer/index.js +0 -2848
- package/dist/components/markdown-editor/editor-skeleton.svelte.d.ts +0 -10
- package/dist/components/markdown-editor/editor-toolbar/editor-toolbar.svelte.d.ts +0 -37
- package/dist/components/markdown-editor/editor-toolbar/index.d.ts +0 -11
- package/dist/components/markdown-editor/editor-toolbar/link-popover.svelte.d.ts +0 -30
- package/dist/components/markdown-editor/editor-toolbar/toolbar-button.svelte.d.ts +0 -19
- package/dist/components/markdown-editor/editor-toolbar/toolbar-dropdown.svelte.d.ts +0 -24
- package/dist/components/markdown-editor/editor-toolbar/toolbar-separator.svelte.d.ts +0 -7
- package/dist/components/markdown-editor/editor-toolbar/types.d.ts +0 -13
- package/dist/components/markdown-editor/index.css +0 -61
- package/dist/components/markdown-editor/index.d.ts +0 -4
- package/dist/components/markdown-editor/index.js +0 -7494
- package/dist/components/markdown-editor/markdown-editor.schema.d.ts +0 -3
- package/dist/components/markdown-editor/markdown-editor.schema.js +0 -177
- package/dist/components/markdown-editor/markdown-editor.svelte.d.ts +0 -29
- package/dist/components/markdown-editor/markdown-editor.types.d.ts +0 -100
- package/dist/components/markdown-editor/markdown-editor.variables.d.ts +0 -2
- package/dist/components/markdown-editor/markdown-editor.variables.js +0 -61
- package/dist/components/review-editor/comment-composer.svelte.d.ts +0 -37
- package/dist/components/review-editor/comment-list.svelte.d.ts +0 -19
- package/dist/components/review-editor/comment-sidebar.svelte.d.ts +0 -22
- package/dist/components/review-editor/export-actions.svelte.d.ts +0 -18
- package/dist/components/review-editor/focus-navigation.d.ts +0 -105
- package/dist/components/review-editor/front-matter-fields.svelte.d.ts +0 -10
- package/dist/components/review-editor/index.d.ts +0 -20
- package/dist/components/review-editor/index.js +0 -14731
- package/dist/components/review-editor/live-region.svelte.d.ts +0 -23
- package/dist/components/review-editor/review-editor-anchors.svelte.d.ts +0 -96
- package/dist/components/review-editor/review-editor-controls.svelte.d.ts +0 -41
- package/dist/components/review-editor/review-editor-exports.d.ts +0 -80
- package/dist/components/review-editor/review-editor-front-matter.d.ts +0 -28
- package/dist/components/review-editor/review-editor-impl.svelte.d.ts +0 -31
- package/dist/components/review-editor/review-editor-selection-geometry.d.ts +0 -10
- package/dist/components/review-editor/review-editor-selection-types.d.ts +0 -62
- package/dist/components/review-editor/review-editor-selection.svelte.d.ts +0 -50
- package/dist/components/review-editor/review-editor-state.svelte.d.ts +0 -77
- package/dist/components/review-editor/review-editor-threads.svelte.d.ts +0 -137
- package/dist/components/review-editor/review-editor.css +0 -273
- package/dist/components/review-editor/review-editor.schema.d.ts +0 -3
- package/dist/components/review-editor/review-editor.schema.js +0 -143
- package/dist/components/review-editor/review-editor.svelte.d.ts +0 -19
- package/dist/components/review-editor/review-editor.types.d.ts +0 -77
- package/dist/components/review-editor/review-editor.variables.d.ts +0 -2
- package/dist/components/review-editor/review-editor.variables.js +0 -61
- package/dist/components/review-editor/thread-popover.svelte.d.ts +0 -32
- package/dist/diff/index.d.ts +0 -2
- package/dist/diff/index.js +0 -1
- package/dist/diff/line-diff.d.ts +0 -84
- package/dist/diff/line-diff.js +0 -372
- package/dist/diff/types.d.ts +0 -1
- package/dist/diff/types.js +0 -1
- package/dist/editor/attach.d.ts +0 -30
- package/dist/editor/attach.js +0 -86
- package/dist/editor/bridge.d.ts +0 -110
- package/dist/editor/bridge.js +0 -260
- package/dist/editor/clipboard.d.ts +0 -19
- package/dist/editor/clipboard.js +0 -189
- package/dist/editor/commands.d.ts +0 -167
- package/dist/editor/commands.js +0 -728
- package/dist/editor/component-runtime.d.ts +0 -21
- package/dist/editor/component-runtime.js +0 -20
- package/dist/editor/editor.d.ts +0 -23
- package/dist/editor/editor.js +0 -256
- package/dist/editor/index.d.ts +0 -30
- package/dist/editor/index.js +0 -42
- package/dist/editor/keymap-plugin.d.ts +0 -56
- package/dist/editor/keymap-plugin.js +0 -157
- package/dist/editor/link-input-rule.d.ts +0 -4
- package/dist/editor/link-input-rule.js +0 -26
- package/dist/editor/milkdown-plugin-runtime.d.ts +0 -20
- package/dist/editor/milkdown-plugin-runtime.js +0 -43
- package/dist/editor/placeholder-security.d.ts +0 -22
- package/dist/editor/placeholder-security.js +0 -36
- package/dist/editor/placeholder.d.ts +0 -14
- package/dist/editor/placeholder.js +0 -56
- package/dist/editor/sanitize-html.d.ts +0 -32
- package/dist/editor/sanitize-html.js +0 -111
- package/dist/editor/template-completion-plugin.d.ts +0 -159
- package/dist/editor/template-completion-plugin.js +0 -615
- package/dist/editor/template-invalid-decoration-plugin.d.ts +0 -73
- package/dist/editor/template-invalid-decoration-plugin.js +0 -155
- package/dist/editor/template-placeholders.d.ts +0 -96
- package/dist/editor/template-placeholders.js +0 -355
- package/dist/editor/template-position-utilities.d.ts +0 -34
- package/dist/editor/template-position-utilities.js +0 -63
- package/dist/editor/template-render.d.ts +0 -37
- package/dist/editor/template-render.js +0 -45
- package/dist/editor/test-utilities.d.ts +0 -49
- package/dist/editor/test-utilities.js +0 -93
- package/dist/editor/types.d.ts +0 -234
- package/dist/editor/types.js +0 -8
- package/dist/markdown/diff/compute.d.ts +0 -28
- package/dist/markdown/diff/compute.js +0 -250
- package/dist/markdown/diff/frontmatter.d.ts +0 -66
- package/dist/markdown/diff/frontmatter.js +0 -135
- package/dist/markdown/diff/index.d.ts +0 -27
- package/dist/markdown/diff/index.js +0 -28
- package/dist/markdown/diff/line-diff.d.ts +0 -2
- package/dist/markdown/diff/line-diff.js +0 -1
- package/dist/markdown/diff/positions.d.ts +0 -66
- package/dist/markdown/diff/positions.js +0 -147
- package/dist/markdown/diff/types.d.ts +0 -78
- package/dist/markdown/diff/types.js +0 -7
- package/dist/markdown/index.d.ts +0 -2
- package/dist/markdown/index.js +0 -8
- package/dist/markdown/pipeline/ast.d.ts +0 -302
- package/dist/markdown/pipeline/ast.js +0 -417
- package/dist/markdown/pipeline/errors.d.ts +0 -37
- package/dist/markdown/pipeline/errors.js +0 -49
- package/dist/markdown/pipeline/frontmatter.d.ts +0 -127
- package/dist/markdown/pipeline/frontmatter.js +0 -438
- package/dist/markdown/pipeline/index.d.ts +0 -37
- package/dist/markdown/pipeline/index.js +0 -40
- package/dist/markdown/pipeline/parser.d.ts +0 -65
- package/dist/markdown/pipeline/parser.js +0 -106
- package/dist/markdown/pipeline/serializer.d.ts +0 -67
- package/dist/markdown/pipeline/serializer.js +0 -78
- package/dist/markdown/pipeline/strip-positions.d.ts +0 -20
- package/dist/markdown/pipeline/strip-positions.js +0 -28
- package/dist/markdown/pipeline/types.d.ts +0 -116
- package/dist/markdown/pipeline/types.js +0 -8
- package/dist/markdown/rendering/extract-code-blocks.d.ts +0 -16
- package/dist/markdown/rendering/extract-code-blocks.js +0 -27
- package/dist/markdown/rendering/highlighter.d.ts +0 -109
- package/dist/markdown/rendering/highlighter.js +0 -251
- package/dist/markdown/rendering/index.d.ts +0 -41
- package/dist/markdown/rendering/index.js +0 -46
- package/dist/markdown/rendering/mermaid-cache.d.ts +0 -55
- package/dist/markdown/rendering/mermaid-cache.js +0 -123
- package/dist/markdown/rendering/rehype-shiki-sync.d.ts +0 -57
- package/dist/markdown/rendering/rehype-shiki-sync.js +0 -354
- package/dist/markdown/rendering/render-async.d.ts +0 -43
- package/dist/markdown/rendering/render-async.js +0 -114
- package/dist/markdown/rendering/render-streaming.d.ts +0 -33
- package/dist/markdown/rendering/render-streaming.js +0 -123
- package/dist/markdown/rendering/render-worker.d.ts +0 -19
- package/dist/markdown/rendering/render-worker.js +0 -35
- package/dist/markdown/rendering/render.d.ts +0 -123
- package/dist/markdown/rendering/render.js +0 -477
- package/dist/markdown/rendering/sanitize-schema.d.ts +0 -24
- package/dist/markdown/rendering/sanitize-schema.js +0 -105
- package/dist/markdown/rendering/transform-urls.d.ts +0 -37
- package/dist/markdown/rendering/transform-urls.js +0 -51
- package/dist/markdown/rendering/types.d.ts +0 -51
- package/dist/markdown/rendering/types.js +0 -8
- package/dist/markdown/rendering/worker-dom-shim.d.ts +0 -87
- package/dist/markdown/rendering/worker-dom-shim.js +0 -50
- package/dist/markdown/utilities/safe-url.d.ts +0 -100
- package/dist/markdown/utilities/safe-url.js +0 -236
- package/dist/markdown/utilities/sort-keys.d.ts +0 -19
- package/dist/markdown/utilities/sort-keys.js +0 -33
- package/dist/server/commentary/anchor-decorations.js +0 -490
- package/dist/server/commentary/anchoring.js +0 -157
- package/dist/server/commentary/comments/index.js +0 -14
- package/dist/server/commentary/comments/mentions.js +0 -65
- package/dist/server/commentary/comments/reanchor.js +0 -220
- package/dist/server/commentary/comments/types.js +0 -83
- package/dist/server/commentary/comments/updates.js +0 -226
- package/dist/server/commentary/export/comments-export.js +0 -258
- package/dist/server/commentary/export/index.js +0 -12
- package/dist/server/commentary/export/markdown-summary.js +0 -218
- package/dist/server/commentary/export/types.js +0 -7
- package/dist/server/commentary/export/unified-diff.js +0 -250
- package/dist/server/commentary/index.js +0 -6
- package/dist/server/commentary/session/index.js +0 -14
- package/dist/server/commentary/session/persistence.js +0 -253
- package/dist/server/commentary/session/types.js +0 -26
- package/dist/server/commentary/session/updates.js +0 -362
- package/dist/server/commentary/shared/anchor-types.js +0 -9
- package/dist/server/components/diff-viewer/index.js +0 -33
- package/dist/server/components/markdown-editor/index.js +0 -52
- package/dist/server/components/review-editor/index.js +0 -3493
- package/dist/server/diff/index.js +0 -1
- package/dist/server/diff/line-diff.js +0 -372
- package/dist/server/diff/types.js +0 -1
- package/dist/server/editor/attach.js +0 -86
- package/dist/server/editor/bridge.js +0 -260
- package/dist/server/editor/clipboard.js +0 -189
- package/dist/server/editor/commands.js +0 -728
- package/dist/server/editor/component-runtime.js +0 -20
- package/dist/server/editor/editor.js +0 -256
- package/dist/server/editor/index.js +0 -42
- package/dist/server/editor/keymap-plugin.js +0 -157
- package/dist/server/editor/link-input-rule.js +0 -26
- package/dist/server/editor/milkdown-plugin-runtime.js +0 -43
- package/dist/server/editor/placeholder-security.js +0 -36
- package/dist/server/editor/placeholder.js +0 -56
- package/dist/server/editor/sanitize-html.js +0 -111
- package/dist/server/editor/template-completion-plugin.js +0 -615
- package/dist/server/editor/template-invalid-decoration-plugin.js +0 -155
- package/dist/server/editor/template-placeholders.js +0 -355
- package/dist/server/editor/template-position-utilities.js +0 -63
- package/dist/server/editor/template-render.js +0 -45
- package/dist/server/editor/test-utilities.js +0 -93
- package/dist/server/editor/types.js +0 -8
- package/dist/server/index.server-25wmev4e.js +0 -2
- package/dist/server/index.server-2c56kqws.js +0 -187
- package/dist/server/index.server-45n4s30n.js +0 -35
- package/dist/server/index.server-4jkqgp17.js +0 -1026
- package/dist/server/index.server-8nm871y8.js +0 -176
- package/dist/server/index.server-d04aj37r.js +0 -62
- package/dist/server/index.server-dg19y3m7.js +0 -9
- package/dist/server/index.server-g3726bja.js +0 -9
- package/dist/server/index.server-gyzmkrnz.js +0 -2
- package/dist/server/index.server-jp19145t.js +0 -9
- package/dist/server/index.server-mzj20rfz.js +0 -77
- package/dist/server/index.server-n4jxy52q.js +0 -2
- package/dist/server/index.server-sghkqw5x.js +0 -421
- package/dist/server/index.server-w6am2dxc.js +0 -12
- package/dist/server/index.server-x66zvjfc.js +0 -1163
- package/dist/server/index.server-zdhv33ph.js +0 -124
- package/dist/server/index.server-zke5zt13.js +0 -9
- package/dist/server/markdown/diff/compute.js +0 -250
- package/dist/server/markdown/diff/frontmatter.js +0 -135
- package/dist/server/markdown/diff/index.js +0 -28
- package/dist/server/markdown/diff/line-diff.js +0 -1
- package/dist/server/markdown/diff/positions.js +0 -147
- package/dist/server/markdown/diff/types.js +0 -7
- package/dist/server/markdown/index.js +0 -8
- package/dist/server/markdown/pipeline/ast.js +0 -417
- package/dist/server/markdown/pipeline/errors.js +0 -49
- package/dist/server/markdown/pipeline/frontmatter.js +0 -438
- package/dist/server/markdown/pipeline/index.js +0 -40
- package/dist/server/markdown/pipeline/parser.js +0 -106
- package/dist/server/markdown/pipeline/serializer.js +0 -78
- package/dist/server/markdown/pipeline/strip-positions.js +0 -28
- package/dist/server/markdown/pipeline/types.js +0 -8
- package/dist/server/markdown/rendering/extract-code-blocks.js +0 -27
- package/dist/server/markdown/rendering/highlighter.js +0 -251
- package/dist/server/markdown/rendering/index.js +0 -46
- package/dist/server/markdown/rendering/mermaid-cache.js +0 -123
- package/dist/server/markdown/rendering/rehype-shiki-sync.js +0 -354
- package/dist/server/markdown/rendering/render-async.js +0 -114
- package/dist/server/markdown/rendering/render-streaming.js +0 -123
- package/dist/server/markdown/rendering/render-worker.js +0 -35
- package/dist/server/markdown/rendering/render.js +0 -477
- package/dist/server/markdown/rendering/sanitize-schema.js +0 -105
- package/dist/server/markdown/rendering/transform-urls.js +0 -51
- package/dist/server/markdown/rendering/types.js +0 -8
- package/dist/server/markdown/rendering/worker-dom-shim.js +0 -50
- package/dist/server/markdown/utilities/safe-url.js +0 -236
- package/dist/server/markdown/utilities/sort-keys.js +0 -33
- package/src/components/diff-viewer/diff-controller.svelte.ts +0 -250
- package/src/components/diff-viewer/diff-front-matter.svelte +0 -52
- package/src/components/diff-viewer/diff-line.svelte +0 -340
- package/src/components/diff-viewer/diff-summary-bar.svelte +0 -106
- package/src/components/diff-viewer/diff-toolbar.svelte +0 -182
- package/src/components/diff-viewer/diff-viewer.examples.json +0 -25
- package/src/components/diff-viewer/diff-viewer.schema.json +0 -61
- package/src/components/diff-viewer/diff-viewer.schema.ts +0 -70
- package/src/components/diff-viewer/diff-viewer.svelte +0 -400
- package/src/components/diff-viewer/diff-viewer.types.ts +0 -56
- package/src/components/diff-viewer/front-matter-header.svelte +0 -137
- package/src/components/diff-viewer/index.ts +0 -5
- package/src/components/markdown-editor/editor-skeleton.svelte +0 -85
- package/src/components/markdown-editor/editor-toolbar/editor-toolbar.svelte +0 -318
- package/src/components/markdown-editor/editor-toolbar/index.ts +0 -18
- package/src/components/markdown-editor/editor-toolbar/link-popover.svelte +0 -314
- package/src/components/markdown-editor/editor-toolbar/toolbar-button.svelte +0 -97
- package/src/components/markdown-editor/editor-toolbar/toolbar-dropdown.svelte +0 -106
- package/src/components/markdown-editor/editor-toolbar/toolbar-separator.svelte +0 -30
- package/src/components/markdown-editor/editor-toolbar/types.ts +0 -15
- package/src/components/markdown-editor/index.ts +0 -10
- package/src/components/markdown-editor/markdown-editor.examples.json +0 -19
- package/src/components/markdown-editor/markdown-editor.schema.json +0 -111
- package/src/components/markdown-editor/markdown-editor.schema.ts +0 -122
- package/src/components/markdown-editor/markdown-editor.svelte +0 -872
- package/src/components/markdown-editor/markdown-editor.types.ts +0 -124
- package/src/components/markdown-editor/markdown-editor.variables.json +0 -1
- package/src/components/markdown-editor/markdown-editor.variables.ts +0 -3
- package/src/components/markdown-editor/prosemirror.css +0 -76
- package/src/components/review-editor/comment-composer.svelte +0 -271
- package/src/components/review-editor/comment-list.svelte +0 -311
- package/src/components/review-editor/comment-sidebar.svelte +0 -449
- package/src/components/review-editor/export-actions.svelte +0 -188
- package/src/components/review-editor/focus-navigation.ts +0 -220
- package/src/components/review-editor/front-matter-fields.svelte +0 -159
- package/src/components/review-editor/index.ts +0 -59
- package/src/components/review-editor/live-region.svelte +0 -109
- package/src/components/review-editor/review-editor-anchors.svelte.ts +0 -219
- package/src/components/review-editor/review-editor-controls.svelte +0 -201
- package/src/components/review-editor/review-editor-exports.ts +0 -145
- package/src/components/review-editor/review-editor-front-matter.ts +0 -237
- package/src/components/review-editor/review-editor-impl.svelte +0 -1509
- package/src/components/review-editor/review-editor-selection-geometry.ts +0 -31
- package/src/components/review-editor/review-editor-selection-types.ts +0 -68
- package/src/components/review-editor/review-editor-selection.svelte.ts +0 -292
- package/src/components/review-editor/review-editor-state.svelte.ts +0 -117
- package/src/components/review-editor/review-editor-threads.svelte.ts +0 -435
- package/src/components/review-editor/review-editor.css +0 -273
- package/src/components/review-editor/review-editor.examples.json +0 -19
- package/src/components/review-editor/review-editor.schema.json +0 -83
- package/src/components/review-editor/review-editor.schema.ts +0 -88
- package/src/components/review-editor/review-editor.svelte +0 -18
- package/src/components/review-editor/review-editor.types.ts +0 -92
- package/src/components/review-editor/review-editor.variables.json +0 -1
- package/src/components/review-editor/review-editor.variables.ts +0 -3
- package/src/components/review-editor/thread-popover.svelte +0 -261
- /package/dist/components/{review-editor/review-editor.css.d.ts → json-editor/json-editor.css.d.ts} +0 -0
- /package/dist/components/{diff-viewer/diff-viewer.schema.d.ts → json-editor/json-editor.schema.d.ts} +0 -0
- /package/dist/components/{diff-viewer/diff-viewer.variables.d.ts → json-editor/json-editor.variables.d.ts} +0 -0
- /package/src/components/{diff-viewer/diff-viewer.variables.json → json-editor/json-editor.variables.json} +0 -0
- /package/src/components/{diff-viewer/diff-viewer.variables.ts → json-editor/json-editor.variables.ts} +0 -0
|
@@ -21,6 +21,11 @@ let mounted = $state(false);
|
|
|
21
21
|
let listElement = $state();
|
|
22
22
|
const commandList = createCommandListState(() => listboxId);
|
|
23
23
|
const showEmpty = $derived(mounted && open && commandList.registrationsReady && commandList.registrations.length === 0);
|
|
24
|
+
// Only render an aria-describedby/geometry hook when the empty state is
|
|
25
|
+
// actually rendered (showEmpty AND an `empty` snippet was passed) — a
|
|
26
|
+
// dangling aria-describedby pointing at a nonexistent id is invalid ARIA.
|
|
27
|
+
const showEmptyState = $derived(showEmpty && Boolean(empty));
|
|
28
|
+
const emptyStateId = $derived(`${commandList.listboxId}-empty`);
|
|
24
29
|
const caretAnchor = $derived.by(() => {
|
|
25
30
|
const anchorElement = anchor;
|
|
26
31
|
const currentCaretIndex = caretIndex;
|
|
@@ -127,12 +132,14 @@ $effect(() => {
|
|
|
127
132
|
id={commandList.listboxId}
|
|
128
133
|
role="listbox"
|
|
129
134
|
aria-label={label}
|
|
135
|
+
aria-describedby={showEmptyState ? emptyStateId : undefined}
|
|
130
136
|
class="cinder-command-menu__listbox"
|
|
137
|
+
data-cinder-empty={showEmptyState || undefined}
|
|
131
138
|
>
|
|
132
139
|
{@render items({ query })}
|
|
133
140
|
</ul>
|
|
134
|
-
{#if
|
|
135
|
-
<div class="cinder-command-menu__empty" role="status">
|
|
141
|
+
{#if showEmptyState && empty}
|
|
142
|
+
<div id={emptyStateId} class="cinder-command-menu__empty" role="status">
|
|
136
143
|
{@render empty()}
|
|
137
144
|
</div>
|
|
138
145
|
{/if}
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"maxSize": {
|
|
26
26
|
"type": "number",
|
|
27
27
|
"description": "Maximum allowed file size in bytes."
|
|
28
|
+
},
|
|
29
|
+
"triggerLabel": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Visible text for the picker trigger button. Default `Choose files`."
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
34
|
"additionalProperties": false,
|
|
@@ -28,6 +28,10 @@ const schema = {
|
|
|
28
28
|
type: 'number',
|
|
29
29
|
description: 'Maximum allowed file size in bytes.',
|
|
30
30
|
},
|
|
31
|
+
triggerLabel: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'Visible text for the picker trigger button. Default `Choose files`.',
|
|
34
|
+
},
|
|
31
35
|
},
|
|
32
36
|
additionalProperties: false,
|
|
33
37
|
metadata: {
|
|
@@ -9,7 +9,7 @@ import { classNames } from '../../utilities/class-names.ts';
|
|
|
9
9
|
import { devWarn } from '../../utilities/dev-warn.ts';
|
|
10
10
|
import { formatBytes } from '../../utilities/format-bytes.ts';
|
|
11
11
|
import { useAnnouncer } from '../../utilities/use-announcer.svelte.ts';
|
|
12
|
-
let { id, accept, multiple = false, maxSize, disabled, required, name, class: className, files, idle, dragActive, fileList, onchange, onreject, 'aria-describedby': consumerDescribedBy, 'aria-invalid': consumerInvalid, ...rest } = $props();
|
|
12
|
+
let { id, accept, multiple = false, maxSize, disabled, required, name, class: className, triggerLabel = 'Choose files', files, idle, dragActive, fileList, onchange, onreject, 'aria-describedby': consumerDescribedBy, 'aria-invalid': consumerInvalid, ...rest } = $props();
|
|
13
13
|
const context = getFormFieldContext();
|
|
14
14
|
const announcer = useAnnouncer({ clearDelay: 5000 });
|
|
15
15
|
const generatedId = $props.id();
|
|
@@ -222,7 +222,7 @@ function progressValue(progress) {
|
|
|
222
222
|
stroke-linejoin="round"
|
|
223
223
|
/>
|
|
224
224
|
</svg>
|
|
225
|
-
Drag files here or
|
|
225
|
+
Drag files here, or use the {triggerLabel} button.
|
|
226
226
|
</span>
|
|
227
227
|
<p class="cinder-file-upload__hint">Drop files on this area or use the native file picker.</p>
|
|
228
228
|
</div>
|
|
@@ -283,7 +283,7 @@ function progressValue(progress) {
|
|
|
283
283
|
disabled={field.disabled}
|
|
284
284
|
onclick={openPicker}
|
|
285
285
|
>
|
|
286
|
-
|
|
286
|
+
{triggerLabel}
|
|
287
287
|
</button>
|
|
288
288
|
</div>
|
|
289
289
|
|
|
@@ -45,6 +45,8 @@ export type FileUploadProps = Omit<
|
|
|
45
45
|
name?: string;
|
|
46
46
|
/** Additional classes merged with `.cinder-file-upload`. */
|
|
47
47
|
class?: string;
|
|
48
|
+
/** Visible text for the picker trigger button. Default `Choose files`. */
|
|
49
|
+
triggerLabel?: string;
|
|
48
50
|
/** Consumer-driven file rows, including upload progress and error states. */
|
|
49
51
|
files?: FileUploadEntry[];
|
|
50
52
|
/** Replaces the default resting-state dropzone body. */
|
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
box-shadow: var(--cinder-shadow-sm);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.cinder-invocation-rule-builder[data-irb-flat] .cinder-invocation-rule-builder__rule {
|
|
24
|
+
padding: 0;
|
|
25
|
+
border: 0;
|
|
26
|
+
border-radius: 0;
|
|
27
|
+
background: transparent;
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
/* Rule header row: label + move/remove controls */
|
|
24
32
|
.cinder-invocation-rule-builder__rule-header {
|
|
25
33
|
display: flex;
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"description": "Build alert-filter conditions with typed value inputs and a fixed comparison-operator set — no action targets, for cases like saved searches or alert filters that have nothing to invoke.",
|
|
16
16
|
"code": "<script lang=\"ts\">\n import {\n InvocationRuleBuilder,\n type InvocationRule,\n type InvocationRuleChange,\n type InvocationRuleOption,\n } from '@lostgradient/cinder/invocation-rule-builder';\n\n const fieldOptions: InvocationRuleOption[] = [\n { value: 'retry-count', label: 'Retry count', type: 'number' },\n { value: 'is-flaky', label: 'Flaky', type: 'boolean' },\n {\n value: 'severity',\n label: 'Severity',\n type: 'enum',\n options: [\n { value: 'low', label: 'Low' },\n { value: 'medium', label: 'Medium' },\n { value: 'high', label: 'High' },\n ],\n },\n { value: 'owner', label: 'Owner' },\n ];\n\n let rules = $state<InvocationRule[]>([\n {\n id: 'rule-flaky-high-severity',\n label: 'Flaky high-severity retries',\n conditions: [\n { id: 'c1', field: 'is-flaky', operator: 'eq', value: 'true' },\n { id: 'c2', field: 'severity', operator: 'eq', value: 'high' },\n { id: 'c3', field: 'retry-count', operator: 'gte', value: '3' },\n ],\n actions: [],\n },\n ]);\n\n function handleChange(nextRules: InvocationRule[], _change: InvocationRuleChange): void {\n rules = nextRules;\n }\n</script>\n\n<InvocationRuleBuilder\n {rules}\n onchange={handleChange}\n {fieldOptions}\n mode=\"conditions\"\n label=\"Alert filter conditions\"\n/>\n"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"id": "flat-conditions",
|
|
20
|
+
"title": "Flat AND-only conditions",
|
|
21
|
+
"description": "Edit one controlled conditions array directly, without rule names, ordering, actions, or a way to add another group.",
|
|
22
|
+
"code": "<script lang=\"ts\">\n import {\n InvocationRuleBuilder,\n type InvocationRuleCondition,\n type InvocationRuleConditionChange,\n type InvocationRuleOption,\n } from '@lostgradient/cinder/invocation-rule-builder';\n\n const fieldOptions: InvocationRuleOption[] = [\n {\n value: 'status',\n label: 'Status',\n type: 'enum',\n options: [\n { value: 'running', label: 'Running' },\n { value: 'failed', label: 'Failed' },\n ],\n },\n { value: 'retry-count', label: 'Retry count', type: 'number' },\n ];\n\n let conditions = $state<InvocationRuleCondition[]>([\n { id: 'status', field: 'status', operator: 'eq', value: 'failed' },\n { id: 'retries', field: 'retry-count', operator: 'gte', value: '3' },\n ]);\n\n function handleChange(\n nextConditions: InvocationRuleCondition[],\n _change: InvocationRuleConditionChange,\n ): void {\n conditions = nextConditions;\n }\n</script>\n\n<InvocationRuleBuilder\n mode=\"flat-conditions\"\n {conditions}\n onchange={handleChange}\n {fieldOptions}\n label=\"Workflow filters\"\n/>\n"
|
|
23
|
+
},
|
|
18
24
|
{
|
|
19
25
|
"id": "readonly",
|
|
20
26
|
"title": "Readonly rule summary",
|
|
@@ -67,6 +67,33 @@
|
|
|
67
67
|
},
|
|
68
68
|
"description": "The current list of automation rules. Controlled — pass the updated\nlist returned from `onchange` back into this prop to commit a change."
|
|
69
69
|
},
|
|
70
|
+
"conditions": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"id": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "Identifies the condition row; must be unique within its rule."
|
|
78
|
+
},
|
|
79
|
+
"field": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "The field being tested, e.g. \"path\" or \"label\". Consumer-defined."
|
|
82
|
+
},
|
|
83
|
+
"operator": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "The comparison operator, e.g. \"matches\" or \"is\". Consumer-defined."
|
|
86
|
+
},
|
|
87
|
+
"value": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "The value being compared against. Consumer-defined."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": ["field", "id", "operator", "value"]
|
|
94
|
+
},
|
|
95
|
+
"description": "The direct controlled conditions list for `mode=\"flat-conditions\"`.\nThis shape contains no rule-group metadata."
|
|
96
|
+
},
|
|
70
97
|
"fieldOptions": {
|
|
71
98
|
"type": "array",
|
|
72
99
|
"items": {
|
|
@@ -110,8 +137,8 @@
|
|
|
110
137
|
"description": "Options for the condition field selector. Consumer-provided list of\nfields that a condition can test, e.g. \"path\", \"label\", \"author\"."
|
|
111
138
|
},
|
|
112
139
|
"mode": {
|
|
113
|
-
"enum": ["full", "conditions"],
|
|
114
|
-
"description": "Rendering mode. Omit or pass `'full'` for the original conditions +\nactions behavior; pass `'conditions'`
|
|
140
|
+
"enum": ["full", "conditions", "flat-conditions"],
|
|
141
|
+
"description": "Rendering mode. Omit or pass `'full'` for the original conditions +\nactions behavior; pass `'conditions'` for grouped conditions only, or\n`'flat-conditions'` for one direct conditions list. The schema requires\n`conditions` only in flat mode and `rules` in both grouped modes; runtime\ncomponent types additionally reject mode-inapplicable option props."
|
|
115
142
|
},
|
|
116
143
|
"operatorOptions": {
|
|
117
144
|
"type": "array",
|
|
@@ -153,7 +180,7 @@
|
|
|
153
180
|
"additionalProperties": false,
|
|
154
181
|
"required": ["label", "value"]
|
|
155
182
|
},
|
|
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)
|
|
183
|
+
"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) in both constrained conditions modes,\nwhere cinder supplies a fixed operator set."
|
|
157
184
|
},
|
|
158
185
|
"actionOptions": {
|
|
159
186
|
"type": "array",
|
|
@@ -195,7 +222,7 @@
|
|
|
195
222
|
"additionalProperties": false,
|
|
196
223
|
"required": ["label", "value"]
|
|
197
224
|
},
|
|
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)
|
|
225
|
+
"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) in both constrained conditions modes, where\nactions are not rendered."
|
|
199
226
|
},
|
|
200
227
|
"readonly": {
|
|
201
228
|
"const": true,
|
|
@@ -223,14 +250,50 @@
|
|
|
223
250
|
}
|
|
224
251
|
},
|
|
225
252
|
"additionalProperties": false,
|
|
226
|
-
"required": ["fieldOptions", "readonly"
|
|
253
|
+
"required": ["fieldOptions", "readonly"],
|
|
227
254
|
"metadata": {
|
|
228
255
|
"unsupportedProps": [
|
|
229
256
|
{
|
|
230
257
|
"name": "onchange",
|
|
231
258
|
"reason": "function-or-snippet",
|
|
232
|
-
"description": "Called whenever the user makes any edit. Required for editable runtime\nusage because editable controls must commit controlled state changes.\nReceives the next
|
|
259
|
+
"description": "Called whenever the user makes any edit. Required for editable runtime\nusage because editable controls must commit controlled state changes.\nReceives the next controlled state (pure, not mutated) and a change descriptor.\nConsumer owns persistence, validation, and execution."
|
|
233
260
|
}
|
|
234
261
|
]
|
|
235
|
-
}
|
|
262
|
+
},
|
|
263
|
+
"allOf": [
|
|
264
|
+
{
|
|
265
|
+
"if": {
|
|
266
|
+
"properties": {
|
|
267
|
+
"mode": {
|
|
268
|
+
"const": "flat-conditions"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": ["mode"]
|
|
272
|
+
},
|
|
273
|
+
"then": {
|
|
274
|
+
"required": ["conditions"],
|
|
275
|
+
"not": {
|
|
276
|
+
"required": ["rules"]
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"if": {
|
|
282
|
+
"not": {
|
|
283
|
+
"properties": {
|
|
284
|
+
"mode": {
|
|
285
|
+
"const": "flat-conditions"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"required": ["mode"]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"then": {
|
|
292
|
+
"required": ["rules"],
|
|
293
|
+
"not": {
|
|
294
|
+
"required": ["conditions"]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
236
299
|
}
|
|
@@ -1,253 +1,8 @@
|
|
|
1
1
|
import type { ComponentSchema } from '../../schema-types';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: 'object',
|
|
6
|
-
|
|
7
|
-
rules: {
|
|
8
|
-
type: 'array',
|
|
9
|
-
items: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
id: {
|
|
13
|
-
type: 'string',
|
|
14
|
-
description: 'Unique identifier for the rule.',
|
|
15
|
-
},
|
|
16
|
-
label: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: 'Display label for the rule.',
|
|
19
|
-
},
|
|
20
|
-
conditions: {
|
|
21
|
-
type: 'array',
|
|
22
|
-
items: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
id: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
description: 'Identifies the condition row; must be unique within its rule.',
|
|
28
|
-
},
|
|
29
|
-
field: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
description: 'The field being tested, e.g. "path" or "label". Consumer-defined.',
|
|
32
|
-
},
|
|
33
|
-
operator: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
description: 'The comparison operator, e.g. "matches" or "is". Consumer-defined.',
|
|
36
|
-
},
|
|
37
|
-
value: {
|
|
38
|
-
type: 'string',
|
|
39
|
-
description: 'The value being compared against. Consumer-defined.',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
additionalProperties: false,
|
|
43
|
-
required: ['field', 'id', 'operator', 'value'],
|
|
44
|
-
},
|
|
45
|
-
description: 'Zero or more conditions (implicit AND).',
|
|
46
|
-
},
|
|
47
|
-
actions: {
|
|
48
|
-
type: 'array',
|
|
49
|
-
items: {
|
|
50
|
-
type: 'object',
|
|
51
|
-
properties: {
|
|
52
|
-
id: {
|
|
53
|
-
type: 'string',
|
|
54
|
-
description: 'Identifies the action row; must be unique within its rule.',
|
|
55
|
-
},
|
|
56
|
-
target: {
|
|
57
|
-
type: 'string',
|
|
58
|
-
description: 'The action target, e.g. a review-agent slug. Consumer-defined.',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
additionalProperties: false,
|
|
62
|
-
required: ['id', 'target'],
|
|
63
|
-
},
|
|
64
|
-
description: 'Zero or more actions to invoke when conditions match.',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
additionalProperties: false,
|
|
68
|
-
required: ['actions', 'conditions', 'id', 'label'],
|
|
69
|
-
},
|
|
70
|
-
description:
|
|
71
|
-
'The current list of automation rules. Controlled — pass the updated\nlist returned from `onchange` back into this prop to commit a change.',
|
|
72
|
-
},
|
|
73
|
-
fieldOptions: {
|
|
74
|
-
type: 'array',
|
|
75
|
-
items: {
|
|
76
|
-
type: 'object',
|
|
77
|
-
properties: {
|
|
78
|
-
value: {
|
|
79
|
-
type: 'string',
|
|
80
|
-
description: 'The value stored on the condition or action.',
|
|
81
|
-
},
|
|
82
|
-
label: {
|
|
83
|
-
type: 'string',
|
|
84
|
-
description: 'The human-readable label shown in the select.',
|
|
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
|
-
},
|
|
111
|
-
},
|
|
112
|
-
additionalProperties: false,
|
|
113
|
-
required: ['label', 'value'],
|
|
114
|
-
},
|
|
115
|
-
description:
|
|
116
|
-
'Options for the condition field selector. Consumer-provided list of\nfields that a condition can test, e.g. "path", "label", "author".',
|
|
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
|
-
},
|
|
123
|
-
operatorOptions: {
|
|
124
|
-
type: 'array',
|
|
125
|
-
items: {
|
|
126
|
-
type: 'object',
|
|
127
|
-
properties: {
|
|
128
|
-
value: {
|
|
129
|
-
type: 'string',
|
|
130
|
-
description: 'The value stored on the condition or action.',
|
|
131
|
-
},
|
|
132
|
-
label: {
|
|
133
|
-
type: 'string',
|
|
134
|
-
description: 'The human-readable label shown in the select.',
|
|
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
|
-
},
|
|
161
|
-
},
|
|
162
|
-
additionalProperties: false,
|
|
163
|
-
required: ['label', 'value'],
|
|
164
|
-
},
|
|
165
|
-
description:
|
|
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.',
|
|
167
|
-
},
|
|
168
|
-
actionOptions: {
|
|
169
|
-
type: 'array',
|
|
170
|
-
items: {
|
|
171
|
-
type: 'object',
|
|
172
|
-
properties: {
|
|
173
|
-
value: {
|
|
174
|
-
type: 'string',
|
|
175
|
-
description: 'The value stored on the condition or action.',
|
|
176
|
-
},
|
|
177
|
-
label: {
|
|
178
|
-
type: 'string',
|
|
179
|
-
description: 'The human-readable label shown in the select.',
|
|
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
|
-
},
|
|
206
|
-
},
|
|
207
|
-
additionalProperties: false,
|
|
208
|
-
required: ['label', 'value'],
|
|
209
|
-
},
|
|
210
|
-
description:
|
|
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.",
|
|
212
|
-
},
|
|
213
|
-
readonly: {
|
|
214
|
-
const: true,
|
|
215
|
-
description:
|
|
216
|
-
'Must be true for schema-driven usage because editable mode requires\nthe unsupported `onchange` callback. Runtime consumers may omit this\nwhen passing `onchange` directly.',
|
|
217
|
-
},
|
|
218
|
-
addRuleLabel: {
|
|
219
|
-
type: 'string',
|
|
220
|
-
description: 'Label for the "Add rule" button. Defaults to "Add rule".',
|
|
221
|
-
},
|
|
222
|
-
addConditionLabel: {
|
|
223
|
-
type: 'string',
|
|
224
|
-
description: 'Label for the "Add condition" button. Defaults to "Add condition".',
|
|
225
|
-
},
|
|
226
|
-
addActionLabel: {
|
|
227
|
-
type: 'string',
|
|
228
|
-
description: 'Label for the "Add action" button. Defaults to "Add action".',
|
|
229
|
-
},
|
|
230
|
-
label: {
|
|
231
|
-
type: 'string',
|
|
232
|
-
description: 'Accessible label for the entire rule builder region.',
|
|
233
|
-
},
|
|
234
|
-
class: {
|
|
235
|
-
type: 'string',
|
|
236
|
-
description: 'Additional CSS classes applied to the root element.',
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
additionalProperties: false,
|
|
240
|
-
required: ['fieldOptions', 'readonly', 'rules'],
|
|
241
|
-
metadata: {
|
|
242
|
-
unsupportedProps: [
|
|
243
|
-
{
|
|
244
|
-
name: 'onchange',
|
|
245
|
-
reason: 'function-or-snippet',
|
|
246
|
-
description:
|
|
247
|
-
'Called whenever the user makes any edit. Required for editable runtime\nusage because editable controls must commit controlled state changes.\nReceives the next rule array (pure, not mutated) and a change descriptor.\nConsumer owns persistence, validation, and execution.',
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
},
|
|
251
|
-
} satisfies ComponentSchema;
|
|
3
|
+
// eslint-disable-next-line no-unsafe-type-assertion -- generated schema parsed from a build-validated JSON string; see generate-component-schema.ts.
|
|
4
|
+
const schema = JSON.parse(
|
|
5
|
+
'{\n "$schema": "https://json-schema.org/draft/2020-12/schema",\n "type": "object",\n "properties": {\n "rules": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "description": "Unique identifier for the rule."\n },\n "label": {\n "type": "string",\n "description": "Display label for the rule."\n },\n "conditions": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "description": "Identifies the condition row; must be unique within its rule."\n },\n "field": {\n "type": "string",\n "description": "The field being tested, e.g. \\"path\\" or \\"label\\". Consumer-defined."\n },\n "operator": {\n "type": "string",\n "description": "The comparison operator, e.g. \\"matches\\" or \\"is\\". Consumer-defined."\n },\n "value": {\n "type": "string",\n "description": "The value being compared against. Consumer-defined."\n }\n },\n "additionalProperties": false,\n "required": [\n "field",\n "id",\n "operator",\n "value"\n ]\n },\n "description": "Zero or more conditions (implicit AND)."\n },\n "actions": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "description": "Identifies the action row; must be unique within its rule."\n },\n "target": {\n "type": "string",\n "description": "The action target, e.g. a review-agent slug. Consumer-defined."\n }\n },\n "additionalProperties": false,\n "required": [\n "id",\n "target"\n ]\n },\n "description": "Zero or more actions to invoke when conditions match."\n }\n },\n "additionalProperties": false,\n "required": [\n "actions",\n "conditions",\n "id",\n "label"\n ]\n },\n "description": "The current list of automation rules. Controlled — pass the updated\\nlist returned from `onchange` back into this prop to commit a change."\n },\n "conditions": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "description": "Identifies the condition row; must be unique within its rule."\n },\n "field": {\n "type": "string",\n "description": "The field being tested, e.g. \\"path\\" or \\"label\\". Consumer-defined."\n },\n "operator": {\n "type": "string",\n "description": "The comparison operator, e.g. \\"matches\\" or \\"is\\". Consumer-defined."\n },\n "value": {\n "type": "string",\n "description": "The value being compared against. Consumer-defined."\n }\n },\n "additionalProperties": false,\n "required": [\n "field",\n "id",\n "operator",\n "value"\n ]\n },\n "description": "The direct controlled conditions list for `mode=\\"flat-conditions\\"`.\\nThis shape contains no rule-group metadata."\n },\n "fieldOptions": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "value": {\n "type": "string",\n "description": "The value stored on the condition or action."\n },\n "label": {\n "type": "string",\n "description": "The human-readable label shown in the select."\n },\n "type": {\n "enum": [\n "string",\n "number",\n "boolean",\n "enum"\n ],\n "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."\n },\n "options": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "value": {\n "type": "string",\n "description": "The value stored on the condition."\n },\n "label": {\n "type": "string",\n "description": "The human-readable label shown in the select."\n }\n },\n "additionalProperties": false,\n "required": [\n "label",\n "value"\n ]\n },\n "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."\n }\n },\n "additionalProperties": false,\n "required": [\n "label",\n "value"\n ]\n },\n "description": "Options for the condition field selector. Consumer-provided list of\\nfields that a condition can test, e.g. \\"path\\", \\"label\\", \\"author\\"."\n },\n "mode": {\n "enum": [\n "full",\n "conditions",\n "flat-conditions"\n ],\n "description": "Rendering mode. Omit or pass `\'full\'` for the original conditions +\\nactions behavior; pass `\'conditions\'` for grouped conditions only, or\\n`\'flat-conditions\'` for one direct conditions list. The schema requires\\n`conditions` only in flat mode and `rules` in both grouped modes; runtime\\ncomponent types additionally reject mode-inapplicable option props."\n },\n "operatorOptions": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "value": {\n "type": "string",\n "description": "The value stored on the condition or action."\n },\n "label": {\n "type": "string",\n "description": "The human-readable label shown in the select."\n },\n "type": {\n "enum": [\n "string",\n "number",\n "boolean",\n "enum"\n ],\n "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."\n },\n "options": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "value": {\n "type": "string",\n "description": "The value stored on the condition."\n },\n "label": {\n "type": "string",\n "description": "The human-readable label shown in the select."\n }\n },\n "additionalProperties": false,\n "required": [\n "label",\n "value"\n ]\n },\n "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."\n }\n },\n "additionalProperties": false,\n "required": [\n "label",\n "value"\n ]\n },\n "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) in both constrained conditions modes,\\nwhere cinder supplies a fixed operator set."\n },\n "actionOptions": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "value": {\n "type": "string",\n "description": "The value stored on the condition or action."\n },\n "label": {\n "type": "string",\n "description": "The human-readable label shown in the select."\n },\n "type": {\n "enum": [\n "string",\n "number",\n "boolean",\n "enum"\n ],\n "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."\n },\n "options": {\n "type": "array",\n "items": {\n "type": "object",\n "properties": {\n "value": {\n "type": "string",\n "description": "The value stored on the condition."\n },\n "label": {\n "type": "string",\n "description": "The human-readable label shown in the select."\n }\n },\n "additionalProperties": false,\n "required": [\n "label",\n "value"\n ]\n },\n "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."\n }\n },\n "additionalProperties": false,\n "required": [\n "label",\n "value"\n ]\n },\n "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) in both constrained conditions modes, where\\nactions are not rendered."\n },\n "readonly": {\n "const": true,\n "description": "Must be true for schema-driven usage because editable mode requires\\nthe unsupported `onchange` callback. Runtime consumers may omit this\\nwhen passing `onchange` directly."\n },\n "addRuleLabel": {\n "type": "string",\n "description": "Label for the \\"Add rule\\" button. Defaults to \\"Add rule\\"."\n },\n "addConditionLabel": {\n "type": "string",\n "description": "Label for the \\"Add condition\\" button. Defaults to \\"Add condition\\"."\n },\n "addActionLabel": {\n "type": "string",\n "description": "Label for the \\"Add action\\" button. Defaults to \\"Add action\\"."\n },\n "label": {\n "type": "string",\n "description": "Accessible label for the entire rule builder region."\n },\n "class": {\n "type": "string",\n "description": "Additional CSS classes applied to the root element."\n }\n },\n "additionalProperties": false,\n "required": [\n "fieldOptions",\n "readonly"\n ],\n "metadata": {\n "unsupportedProps": [\n {\n "name": "onchange",\n "reason": "function-or-snippet",\n "description": "Called whenever the user makes any edit. Required for editable runtime\\nusage because editable controls must commit controlled state changes.\\nReceives the next controlled state (pure, not mutated) and a change descriptor.\\nConsumer owns persistence, validation, and execution."\n }\n ]\n },\n "allOf": [\n {\n "if": {\n "properties": {\n "mode": {\n "const": "flat-conditions"\n }\n },\n "required": [\n "mode"\n ]\n },\n "then": {\n "required": [\n "conditions"\n ],\n "not": {\n "required": [\n "rules"\n ]\n }\n }\n },\n {\n "if": {\n "not": {\n "properties": {\n "mode": {\n "const": "flat-conditions"\n }\n },\n "required": [\n "mode"\n ]\n }\n },\n "then": {\n "required": [\n "rules"\n ],\n "not": {\n "required": [\n "conditions"\n ]\n }\n }\n }\n ]\n}',
|
|
6
|
+
) as ComponentSchema;
|
|
252
7
|
|
|
253
|
-
export default schema
|
|
8
|
+
export default schema;
|