@lostgradient/cinder 0.8.0 → 0.11.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 +25 -0
- package/README.md +2 -2
- package/components.json +140 -18
- package/dist/components/_internal/command-list-context.d.ts +3 -3
- package/dist/components/_internal/create-command-list-state.svelte.d.ts +11 -11
- package/dist/components/access-gate/index.js +435 -218
- package/dist/components/approval-card/approval-card-actions.svelte.d.ts +16 -0
- package/dist/components/approval-card/approval-card-state.d.ts +65 -0
- package/dist/components/approval-card/approval-card.css +269 -92
- package/dist/components/approval-card/approval-card.schema.js +10 -31
- package/dist/components/approval-card/approval-card.svelte.d.ts +3 -3
- package/dist/components/approval-card/approval-card.types.d.ts +14 -28
- package/dist/components/approval-card/index.d.ts +1 -1
- package/dist/components/approval-card/index.js +4268 -2884
- package/dist/components/card/card.css +5 -0
- package/dist/components/card/card.schema.js +2 -2
- package/dist/components/card/card.types.d.ts +2 -2
- package/dist/components/card/index.js +2 -1
- package/dist/components/chat/builders.d.ts +17 -8
- package/dist/components/chat/chat.schema.js +44 -2
- package/dist/components/chat/chat.svelte.d.ts +4 -2
- package/dist/components/chat/chat.types.d.ts +34 -3
- package/dist/components/chat/container/chat.svelte.d.ts +4 -2
- package/dist/components/chat/conversation-model.d.ts +1 -1
- package/dist/components/chat/index.d.ts +4 -4
- package/dist/components/chat/index.js +2767 -6278
- package/dist/components/chat/input/chat-attachment-serialization.d.ts +9 -0
- package/dist/components/chat/input/chat-input.svelte.d.ts +22 -1
- package/dist/components/chat/input/index.d.ts +1 -0
- package/dist/components/chat/utilities/conversation.d.ts +6 -6
- package/dist/components/chat-composer-popover/chat-composer-popover-filter.d.ts +11 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.css +7 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.css.d.ts +1 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.schema.d.ts +3 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.schema.js +150 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.svelte.d.ts +46 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.types.d.ts +77 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.variables.d.ts +2 -0
- package/dist/components/chat-composer-popover/chat-composer-popover.variables.js +61 -0
- package/dist/components/chat-composer-popover/index.d.ts +6 -0
- package/dist/components/chat-composer-popover/index.js +3285 -0
- package/dist/components/chat-conversation-header/index.js +577 -4537
- package/dist/components/chat-conversation-list/index.js +24 -3984
- package/dist/components/code-block/code-block.schema.js +5 -1
- package/dist/components/code-block/code-block.types.d.ts +6 -0
- package/dist/components/code-block/index.js +4 -4
- package/dist/components/command-item/index.js +7 -6
- package/dist/components/command-menu/command-menu.schema.js +5 -1
- package/dist/components/command-menu/command-menu.types.d.ts +2 -0
- package/dist/components/command-menu/index.js +48 -19
- package/dist/components/command-palette/index.js +40 -14
- 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/event-stream-viewer/index.js +44 -44
- package/dist/components/experimental/json-viewer/index.js +44 -44
- 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/json-schema-editor/index.js +5 -2
- package/dist/components/json-viewer/index.js +44 -44
- package/dist/components/json-viewer/json-viewer.css +10 -6
- package/dist/components/payload-inspector/index.d.ts +1 -1
- package/dist/components/payload-inspector/index.js +306 -1422
- package/dist/components/payload-inspector/payload-inspector.css +15 -75
- package/dist/components/payload-inspector/payload-inspector.schema.js +5 -41
- package/dist/components/payload-inspector/payload-inspector.svelte.d.ts +5 -5
- package/dist/components/payload-inspector/payload-inspector.types.d.ts +10 -56
- package/dist/components/run-step-timeline/index.d.ts +1 -1
- package/dist/components/run-step-timeline/index.js +992 -559
- 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 +52 -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/tab/index.js +5 -2
- package/dist/components/tab/tab.schema.js +7 -3
- package/dist/components/tab/tab.svelte.d.ts +2 -1
- package/dist/components/tab/tab.types.d.ts +8 -2
- package/dist/components/tabs/index.js +5 -2
- 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/components/team-section/index.js +2 -1
- package/dist/components/testimonial-section/index.js +2 -1
- package/dist/index.d.ts +10 -4
- package/dist/index.js +28577 -30168
- package/dist/server/components/access-gate/index.js +3 -1
- package/dist/server/components/accordion/index.js +2 -2
- package/dist/server/components/alert-dialog/index.js +2 -2
- package/dist/server/components/approval-card/index.js +15 -19
- package/dist/server/components/autocomplete/index.js +7 -7
- package/dist/server/components/avatar-group/index.js +5 -5
- package/dist/server/components/button-group/index.js +3 -5
- package/dist/server/components/card/index.js +2 -2
- package/dist/server/components/chat/index.js +15 -12
- package/dist/server/components/chat-composer-popover/index.js +26 -0
- package/dist/server/components/chat-conversation-header/index.js +10 -11
- package/dist/server/components/chat-conversation-list/index.js +4 -5
- package/dist/server/components/checkbox/index.js +3 -3
- package/dist/server/components/choice-grid/index.js +2 -2
- package/dist/server/components/code-block/index.js +2 -2
- package/dist/server/components/color-field/index.js +3 -3
- package/dist/server/components/combobox/index.js +6 -6
- package/dist/server/components/command-item/index.js +5 -3
- package/dist/server/components/command-menu/index.js +6 -4
- package/dist/server/components/command-palette/index.js +2 -2
- package/dist/server/components/confirm-dialog/index.js +2 -2
- package/dist/server/components/connection-indicator/index.js +16 -0
- package/dist/server/components/context-menu/index.js +5 -5
- package/dist/server/components/data-table/index.js +5 -5
- package/dist/server/components/date-picker/index.js +6 -6
- package/dist/server/components/date-range-field/index.js +7 -7
- package/dist/server/components/description-list/index.js +3 -5
- package/dist/server/components/diff-viewer/index.js +9 -8
- package/dist/server/components/drawer/index.js +3 -3
- package/dist/server/components/dropdown/index.js +4 -4
- package/dist/server/components/event-stream-viewer/index.js +2 -2
- package/dist/server/components/experimental/json-viewer/index.js +2 -2
- package/dist/server/components/faceted-filter-bar/index.js +1 -1
- package/dist/server/components/hover-card/index.js +1 -1
- package/dist/server/components/input/index.js +3 -3
- package/dist/server/components/invocation-rule-builder/index.js +1 -1
- package/dist/server/components/json-schema-editor/index.js +24 -23
- package/dist/server/components/json-viewer/index.js +2 -2
- package/dist/server/components/markdown-editor/index.js +13 -13
- package/dist/server/components/modal/index.js +1 -1
- package/dist/server/components/multi-select/index.js +1 -1
- package/dist/server/components/newsletter-section/index.js +3 -3
- package/dist/server/components/payload-inspector/index.js +4 -16
- package/dist/server/components/popover/index.js +5 -5
- package/dist/server/components/review-editor/index.js +27 -26
- package/dist/server/components/run-step-timeline/index.js +2 -2
- package/dist/server/components/schedule-builder/index.js +30 -0
- package/dist/server/components/schema-form/index.js +4 -4
- package/dist/server/components/secret-value-field/index.js +3 -5
- package/dist/server/components/segment/index.js +3 -3
- package/dist/server/components/segmented-control/index.js +4 -4
- package/dist/server/components/selection-popover/index.js +4 -4
- package/dist/server/components/sheet/index.js +2 -2
- package/dist/server/components/side-navigation/index.js +2 -2
- package/dist/server/components/sidebar/index.js +3 -3
- package/dist/server/components/tab/index.js +2 -2
- package/dist/server/components/table/index.js +3 -3
- package/dist/server/components/tabs/index.js +4 -4
- package/dist/server/components/tag-input/index.js +3 -3
- package/dist/server/components/team-section/index.js +8 -8
- package/dist/server/components/testimonial-section/index.js +2 -2
- package/dist/server/components/time-field/index.js +5 -3
- package/dist/server/components/toggle/index.js +2 -2
- package/dist/server/components/tooltip/index.js +1 -1
- package/dist/server/index.js +235 -211
- package/dist/server/{index.server-20y4mdhm.js → index.server-0chhpkg7.js} +40 -14
- package/dist/server/index.server-0sx92swg.js +9 -0
- package/dist/server/{index.server-ecm1vs3g.js → index.server-1nq7z1qw.js} +1 -1
- package/dist/server/{index.server-s9khh4ry.js → index.server-2bbwajb2.js} +3 -5
- package/dist/server/index.server-2hqrv7ca.js +9 -0
- package/dist/server/{index.server-69epaape.js → index.server-2qj6s2mh.js} +1 -1
- package/dist/server/{index.server-gxf0d1p5.js → index.server-2s5h1d05.js} +2 -2
- package/dist/server/{index.server-qfa2rxzx.js → index.server-2zdbz3rj.js} +3 -5
- package/dist/server/{index.server-pt8b65mt.js → index.server-38aywdk1.js} +1 -1
- package/dist/server/{index.server-0jhra85x.js → index.server-3w72dxz7.js} +4 -4
- package/dist/server/{index.server-rermas0k.js → index.server-47v2fhp4.js} +4 -4
- package/dist/server/{index.server-v4zabrsx.js → index.server-4x4hgvqe.js} +434 -26
- package/dist/server/{index.server-9j5sym59.js → index.server-4x91gzy1.js} +2 -2
- package/dist/server/{index.server-q48q15g7.js → index.server-4y2jtvv1.js} +4 -2
- package/dist/server/{index.server-j3ddzcaa.js → index.server-5gzyqv78.js} +6 -6
- package/dist/server/index.server-67qgdypc.js +9 -0
- package/dist/server/index.server-6hnfzc7f.js +263 -0
- package/dist/server/{index.server-9jete4xx.js → index.server-6sh11ap6.js} +4 -4
- package/dist/server/{index.server-4ztq565m.js → index.server-85p4ydph.js} +1 -1
- package/dist/server/{index.server-4nk7gy0q.js → index.server-894t97kv.js} +1 -1
- package/dist/server/{index.server-1vscnped.js → index.server-8dt36sdm.js} +2 -1
- package/dist/server/{index.server-bfsbp9dz.js → index.server-8xvc73zh.js} +4 -4
- package/dist/server/{index.server-cvnw3hw9.js → index.server-9kz37z89.js} +1 -1
- package/dist/server/{index.server-kc1k02tk.js → index.server-9ykk1kbg.js} +1 -1
- package/dist/server/{index.server-g789yep6.js → index.server-aqethy0w.js} +2 -2
- package/dist/server/index.server-be9bpqeh.js +93 -0
- package/dist/server/{index.server-wc9aggfz.js → index.server-bmxbsk4y.js} +7 -7
- 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-q89dz8h1.js → index.server-d3pqthtp.js} +4 -3
- package/dist/server/{index.server-jk4rx4aa.js → index.server-dmmvwy6p.js} +1 -1
- package/dist/server/{index.server-hcfnae5y.js → index.server-dwwqssey.js} +4 -4
- package/dist/server/{index.server-e8x1hgw6.js → index.server-dz1r9xw5.js} +4 -4
- package/dist/server/{index.server-wm7mk5kw.js → index.server-ez5hp0ya.js} +1 -1
- package/dist/server/{index.server-wc8dbm5e.js → index.server-g95bk8rc.js} +4 -2
- package/dist/server/index.server-gkazv439.js +576 -0
- package/dist/server/index.server-gmh5ar16.js +2 -0
- package/dist/server/{index.server-dp9j2kkr.js → index.server-h0cvwvhy.js} +1 -1
- package/dist/server/{index.server-cbtg8rq5.js → index.server-h89zk5ev.js} +8 -8
- package/dist/server/{index.server-pacrqvyz.js → index.server-h90pjrez.js} +1 -1
- package/dist/server/{index.server-p8d04em5.js → index.server-hcsd5gdb.js} +6 -2
- package/dist/server/{index.server-n39drzes.js → index.server-hpeavvnq.js} +1 -1
- package/dist/server/{index.server-1p3patnj.js → index.server-hx91ng7z.js} +1 -1
- package/dist/server/{index.server-mehav5vs.js → index.server-jdcq5zza.js} +7 -7
- package/dist/server/{index.server-jync915v.js → index.server-jfrssta6.js} +25 -25
- package/dist/server/{index.server-jtj3r53y.js → index.server-jgb8yh5k.js} +1 -1
- package/dist/server/{index.server-ejyf7e48.js → index.server-jj76374p.js} +1 -1
- package/dist/server/{index.server-w1g5q9j9.js → index.server-jtgw9d23.js} +4 -2
- package/dist/server/{index.server-hd8gpehd.js → index.server-jxseyx33.js} +1 -1
- package/dist/server/{index.server-kg2sepsr.js → index.server-krqvnt6p.js} +14 -15
- package/dist/server/{index.server-0e1m3agz.js → index.server-ks49bprh.js} +1 -1
- package/dist/server/{index.server-f0hma3jp.js → index.server-kt0ncrqs.js} +1 -1
- package/dist/server/index.server-m0ezemav.js +170 -0
- package/dist/server/index.server-m191rm44.js +79 -0
- package/dist/server/{index.server-z721a5gp.js → index.server-n82rcv0m.js} +4 -4
- package/dist/server/{index.server-rhhmdxtz.js → index.server-np3c7kx0.js} +4 -4
- package/dist/server/{index.server-hpcs7tmh.js → index.server-p56xxef1.js} +1 -1
- package/dist/server/{index.server-w83kmcrx.js → index.server-pag862vz.js} +10 -10
- package/dist/server/index.server-qbkxz7r2.js +750 -0
- package/dist/server/{index.server-sh2rxejg.js → index.server-qke3ekjt.js} +1 -1
- package/dist/server/{index.server-73x2d3j3.js → index.server-rbpvcrr3.js} +1 -1
- package/dist/server/{index.server-8cxs4kya.js → index.server-rga8sc7j.js} +41 -44
- package/dist/server/{index.server-e3fnv1g6.js → index.server-sedjxt36.js} +5 -5
- package/dist/server/{index.server-pen9pxt6.js → index.server-sf3nk3j2.js} +2 -2
- package/dist/server/{index.server-f23vtaw4.js → index.server-tcay903b.js} +8 -7
- package/dist/server/{index.server-7fp0epev.js → index.server-veastatv.js} +4 -4
- package/dist/server/{index.server-jeqg2d22.js → index.server-xeqtpv61.js} +1 -1
- package/dist/server/{index.server-9s4na701.js → index.server-xjnge1yw.js} +4 -4
- package/dist/server/index.server-xtjjmsyq.js +315 -0
- package/dist/server/{index.server-hhxjaeen.js → index.server-xz99aed4.js} +4 -4
- package/dist/server/{index.server-vne4rzfa.js → index.server-y4n8vc08.js} +1 -1
- package/dist/server/{index.server-5d01cn4f.js → index.server-y83kqayt.js} +4 -4
- package/dist/server/{index.server-1nh09ck7.js → index.server-yhzydqxe.js} +5 -5
- package/dist/server/index.server-z38bxms8.js +734 -0
- package/dist/server/{index.server-atjc1qcq.js → index.server-z7hxtqs1.js} +1 -1
- package/dist/server/{index.server-w6k62afr.js → index.server-ze1ymmbw.js} +2 -2
- package/dist/server/{index.server-914v805w.js → index.server-zgd1g8mk.js} +1 -1
- package/dist/server/{index.server-aeexcxdp.js → index.server-zh3r8vfd.js} +1 -1
- package/dist/server/{index.server-10jb2jzm.js → index.server-zsjf8enc.js} +4 -4
- package/package.json +102 -5
- package/src/components/_internal/command-list-context.ts +3 -3
- package/src/components/_internal/create-command-list-state.svelte.ts +39 -13
- package/src/components/approval-card/approval-card-actions.svelte +168 -0
- package/src/components/approval-card/approval-card-state.ts +152 -1
- package/src/components/approval-card/approval-card.css +269 -92
- package/src/components/approval-card/approval-card.examples.json +3 -3
- package/src/components/approval-card/approval-card.schema.json +9 -30
- package/src/components/approval-card/approval-card.schema.ts +13 -31
- package/src/components/approval-card/approval-card.svelte +176 -470
- package/src/components/approval-card/approval-card.types.ts +15 -28
- package/src/components/approval-card/index.ts +1 -0
- package/src/components/card/card.css +5 -0
- package/src/components/card/card.schema.json +1 -1
- package/src/components/card/card.schema.ts +1 -1
- package/src/components/card/card.svelte +1 -0
- package/src/components/card/card.types.ts +2 -2
- package/src/components/chat/builders.ts +445 -14
- package/src/components/chat/chat.schema.json +36 -1
- package/src/components/chat/chat.schema.ts +44 -1
- package/src/components/chat/chat.svelte +12 -0
- package/src/components/chat/chat.types.ts +35 -3
- package/src/components/chat/container/chat.svelte +73 -3
- package/src/components/chat/conversation-model.ts +1 -0
- package/src/components/chat/index.ts +16 -3
- package/src/components/chat/input/chat-attachment-serialization.ts +63 -0
- package/src/components/chat/input/chat-input.svelte +22 -5
- package/src/components/chat/input/index.ts +5 -0
- package/src/components/chat/utilities/conversation.ts +33 -15
- package/src/components/chat-composer-popover/chat-composer-popover-filter.ts +68 -0
- package/src/components/chat-composer-popover/chat-composer-popover.css +7 -0
- package/src/components/chat-composer-popover/chat-composer-popover.examples.json +13 -0
- package/src/components/chat-composer-popover/chat-composer-popover.schema.json +90 -0
- package/src/components/chat-composer-popover/chat-composer-popover.schema.ts +95 -0
- package/src/components/chat-composer-popover/chat-composer-popover.svelte +234 -0
- package/src/components/chat-composer-popover/chat-composer-popover.types.ts +88 -0
- package/src/components/chat-composer-popover/chat-composer-popover.variables.json +1 -0
- package/src/components/chat-composer-popover/chat-composer-popover.variables.ts +3 -0
- package/src/components/chat-composer-popover/index.ts +19 -0
- package/src/components/code-block/code-block.schema.json +4 -0
- package/src/components/code-block/code-block.schema.ts +5 -0
- package/src/components/code-block/code-block.svelte +3 -3
- package/src/components/code-block/code-block.types.ts +6 -0
- package/src/components/command-item/command-item.svelte +7 -6
- package/src/components/command-menu/command-menu.schema.json +4 -0
- package/src/components/command-menu/command-menu.schema.ts +4 -0
- package/src/components/command-menu/command-menu.svelte +16 -5
- package/src/components/command-menu/command-menu.types.ts +2 -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/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/json-viewer/_json-viewer-node.svelte +15 -1
- package/src/components/json-viewer/json-viewer.css +10 -6
- package/src/components/payload-inspector/index.ts +0 -2
- package/src/components/payload-inspector/payload-inspector.css +15 -75
- package/src/components/payload-inspector/payload-inspector.examples.json +5 -5
- package/src/components/payload-inspector/payload-inspector.schema.json +3 -31
- package/src/components/payload-inspector/payload-inspector.schema.ts +3 -36
- package/src/components/payload-inspector/payload-inspector.svelte +46 -239
- package/src/components/payload-inspector/payload-inspector.types.ts +10 -58
- 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 +387 -268
- package/src/components/run-step-timeline/run-step-timeline.types.ts +192 -5
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +242 -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/tab/tab.schema.json +6 -2
- package/src/components/tab/tab.schema.ts +8 -2
- package/src/components/tab/tab.svelte +9 -5
- package/src/components/tab/tab.types.ts +8 -2
- 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 +41 -5
- package/src/styles/components.css +3 -0
- package/dist/server/index-49we2xfs.js +0 -344
- package/dist/server/index-8fhvxk30.js +0 -265
- package/dist/server/index-x2ysg8ds.js +0 -388
- package/dist/server/index.server-20j0jh30.js +0 -9
- package/dist/server/index.server-dc35kh7d.js +0 -1835
- package/dist/server/index.server-kd4b0342.js +0 -607
- package/dist/server/index.server-n5cdmsz4.js +0 -30
- package/dist/server/index.server-pxg74pyp.js +0 -393
- package/dist/server/index.server-rjap4k7y.js +0 -1389
- package/dist/server/index.server-vt6sn9y4.js +0 -447
- package/dist/server/index.server-w63n618v.js +0 -9
- package/dist/server/index.server-y2pa1k46.js +0 -9
|
@@ -160,6 +160,34 @@
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
/* ---- Typed condition value controls (conditions-only mode) ---- */
|
|
164
|
+
|
|
165
|
+
/* Enum values reuse the select chrome but keep the value input's wider flex-basis. */
|
|
166
|
+
.cinder-invocation-rule-builder__condition-value-select {
|
|
167
|
+
flex: 2 1 10rem;
|
|
168
|
+
min-inline-size: 6rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.cinder-invocation-rule-builder__condition-value-checkbox {
|
|
172
|
+
flex: 0 0 auto;
|
|
173
|
+
inline-size: 1.125rem;
|
|
174
|
+
block-size: 1.125rem;
|
|
175
|
+
margin: 0;
|
|
176
|
+
accent-color: var(--cinder-accent);
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cinder-invocation-rule-builder__condition-value-checkbox:focus-visible {
|
|
181
|
+
outline: var(--cinder-ring-width) solid transparent;
|
|
182
|
+
box-shadow: var(--_cinder-focus-ring-shadow);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (forced-colors: active) {
|
|
186
|
+
.cinder-invocation-rule-builder__condition-value-checkbox:focus-visible {
|
|
187
|
+
outline: var(--cinder-ring-width) solid ButtonText;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
163
191
|
/* ---- Action rows ---- */
|
|
164
192
|
|
|
165
193
|
.cinder-invocation-rule-builder__actions {
|
|
@@ -133,6 +133,32 @@ var schema = {
|
|
|
133
133
|
label: {
|
|
134
134
|
type: "string",
|
|
135
135
|
description: "The human-readable label shown in the select."
|
|
136
|
+
},
|
|
137
|
+
type: {
|
|
138
|
+
enum: ["string", "number", "boolean", "enum"],
|
|
139
|
+
description: `The value type this option represents when used as a field option in
|
|
140
|
+
conditions-only mode (\`mode="conditions"\`). Defaults to \`'string'\` when
|
|
141
|
+
omitted. Ignored for operator and action-target options, and ignored
|
|
142
|
+
entirely in full mode.`
|
|
143
|
+
},
|
|
144
|
+
options: {
|
|
145
|
+
type: "array",
|
|
146
|
+
items: {
|
|
147
|
+
type: "object",
|
|
148
|
+
properties: {
|
|
149
|
+
value: {
|
|
150
|
+
type: "string",
|
|
151
|
+
description: "The value stored on the condition."
|
|
152
|
+
},
|
|
153
|
+
label: {
|
|
154
|
+
type: "string",
|
|
155
|
+
description: "The human-readable label shown in the select."
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
additionalProperties: false,
|
|
159
|
+
required: ["label", "value"]
|
|
160
|
+
},
|
|
161
|
+
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."
|
|
136
162
|
}
|
|
137
163
|
},
|
|
138
164
|
additionalProperties: false,
|
|
@@ -141,6 +167,10 @@ var schema = {
|
|
|
141
167
|
description: `Options for the condition field selector. Consumer-provided list of
|
|
142
168
|
fields that a condition can test, e.g. "path", "label", "author".`
|
|
143
169
|
},
|
|
170
|
+
mode: {
|
|
171
|
+
enum: ["full", "conditions"],
|
|
172
|
+
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."
|
|
173
|
+
},
|
|
144
174
|
operatorOptions: {
|
|
145
175
|
type: "array",
|
|
146
176
|
items: {
|
|
@@ -153,13 +183,42 @@ fields that a condition can test, e.g. "path", "label", "author".`
|
|
|
153
183
|
label: {
|
|
154
184
|
type: "string",
|
|
155
185
|
description: "The human-readable label shown in the select."
|
|
186
|
+
},
|
|
187
|
+
type: {
|
|
188
|
+
enum: ["string", "number", "boolean", "enum"],
|
|
189
|
+
description: `The value type this option represents when used as a field option in
|
|
190
|
+
conditions-only mode (\`mode="conditions"\`). Defaults to \`'string'\` when
|
|
191
|
+
omitted. Ignored for operator and action-target options, and ignored
|
|
192
|
+
entirely in full mode.`
|
|
193
|
+
},
|
|
194
|
+
options: {
|
|
195
|
+
type: "array",
|
|
196
|
+
items: {
|
|
197
|
+
type: "object",
|
|
198
|
+
properties: {
|
|
199
|
+
value: {
|
|
200
|
+
type: "string",
|
|
201
|
+
description: "The value stored on the condition."
|
|
202
|
+
},
|
|
203
|
+
label: {
|
|
204
|
+
type: "string",
|
|
205
|
+
description: "The human-readable label shown in the select."
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
additionalProperties: false,
|
|
209
|
+
required: ["label", "value"]
|
|
210
|
+
},
|
|
211
|
+
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."
|
|
156
212
|
}
|
|
157
213
|
},
|
|
158
214
|
additionalProperties: false,
|
|
159
215
|
required: ["label", "value"]
|
|
160
216
|
},
|
|
161
217
|
description: `Options for the condition operator selector. Consumer-provided list
|
|
162
|
-
of operators, e.g. "matches", "is", "is-not", "contains"
|
|
218
|
+
of operators, e.g. "matches", "is", "is-not", "contains". Required in
|
|
219
|
+
full mode; optional (and ignored) when \`mode\` is \`'conditions'\`, since
|
|
220
|
+
cinder supplies a fixed operator set in that mode — so a conditions-only
|
|
221
|
+
configuration validates without it.`
|
|
163
222
|
},
|
|
164
223
|
actionOptions: {
|
|
165
224
|
type: "array",
|
|
@@ -173,13 +232,38 @@ of operators, e.g. "matches", "is", "is-not", "contains".`
|
|
|
173
232
|
label: {
|
|
174
233
|
type: "string",
|
|
175
234
|
description: "The human-readable label shown in the select."
|
|
235
|
+
},
|
|
236
|
+
type: {
|
|
237
|
+
enum: ["string", "number", "boolean", "enum"],
|
|
238
|
+
description: `The value type this option represents when used as a field option in
|
|
239
|
+
conditions-only mode (\`mode="conditions"\`). Defaults to \`'string'\` when
|
|
240
|
+
omitted. Ignored for operator and action-target options, and ignored
|
|
241
|
+
entirely in full mode.`
|
|
242
|
+
},
|
|
243
|
+
options: {
|
|
244
|
+
type: "array",
|
|
245
|
+
items: {
|
|
246
|
+
type: "object",
|
|
247
|
+
properties: {
|
|
248
|
+
value: {
|
|
249
|
+
type: "string",
|
|
250
|
+
description: "The value stored on the condition."
|
|
251
|
+
},
|
|
252
|
+
label: {
|
|
253
|
+
type: "string",
|
|
254
|
+
description: "The human-readable label shown in the select."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
additionalProperties: false,
|
|
258
|
+
required: ["label", "value"]
|
|
259
|
+
},
|
|
260
|
+
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."
|
|
176
261
|
}
|
|
177
262
|
},
|
|
178
263
|
additionalProperties: false,
|
|
179
264
|
required: ["label", "value"]
|
|
180
265
|
},
|
|
181
|
-
description:
|
|
182
|
-
targets, e.g. review-agent slugs or step identifiers.`
|
|
266
|
+
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."
|
|
183
267
|
},
|
|
184
268
|
readonly: {
|
|
185
269
|
const: true,
|
|
@@ -207,7 +291,7 @@ targets, e.g. review-agent slugs or step identifiers.`
|
|
|
207
291
|
}
|
|
208
292
|
},
|
|
209
293
|
additionalProperties: false,
|
|
210
|
-
required: ["
|
|
294
|
+
required: ["fieldOptions", "readonly", "rules"],
|
|
211
295
|
metadata: {
|
|
212
296
|
unsupportedProps: [
|
|
213
297
|
{
|
|
@@ -226,4 +310,4 @@ export {
|
|
|
226
310
|
invocation_rule_builder_schema_default as default
|
|
227
311
|
};
|
|
228
312
|
|
|
229
|
-
//# debugId=
|
|
313
|
+
//# debugId=460ECA6757B9EF0964756E2164756E21
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* @tag automation
|
|
7
7
|
* @tag rules
|
|
8
8
|
* @useWhen Building a UI for configuring which agents or services run based on event conditions.
|
|
9
|
+
* @useWhen You only need conditions (no actions) — pass mode="conditions" for a constrained operator set and typed value inputs.
|
|
9
10
|
* @avoidWhen You need to execute, validate, or persist rules — cinder owns none of that logic.
|
|
10
11
|
* @related capability-gate, steps, review-editor
|
|
11
12
|
*/
|
|
12
|
-
export type { InvocationRule, InvocationRuleAction, InvocationRuleBuilderProps, InvocationRuleBuilderSchemaProps, InvocationRuleChange, InvocationRuleCondition, InvocationRuleOption, } from './invocation-rule-builder.types.ts';
|
|
13
|
+
export type { InvocationRule, InvocationRuleAction, InvocationRuleBuilderMode, InvocationRuleBuilderProps, InvocationRuleBuilderSchemaProps, InvocationRuleChange, InvocationRuleCondition, InvocationRuleConditionsOnlyOperator, InvocationRuleFieldType, InvocationRuleOption, } from './invocation-rule-builder.types.ts';
|
|
13
14
|
import type { InvocationRuleBuilderProps } from './invocation-rule-builder.types.ts';
|
|
14
15
|
declare const InvocationRuleBuilder: import("svelte").Component<InvocationRuleBuilderProps, {}, "">;
|
|
15
16
|
type InvocationRuleBuilder = ReturnType<typeof InvocationRuleBuilder>;
|
|
@@ -44,6 +44,25 @@ export type InvocationRule = {
|
|
|
44
44
|
/** Zero or more actions to invoke when conditions match. */
|
|
45
45
|
actions: InvocationRuleAction[];
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* The value type a condition field represents. Determines which typed value
|
|
49
|
+
* control renders for that field in conditions-only mode (`mode="conditions"`).
|
|
50
|
+
* Ignored in full mode, where the condition value is always a free-text input.
|
|
51
|
+
*/
|
|
52
|
+
export type InvocationRuleFieldType = 'string' | 'number' | 'boolean' | 'enum';
|
|
53
|
+
/**
|
|
54
|
+
* A single selectable choice for an `'enum'`-typed field's value, rendered as
|
|
55
|
+
* a select in conditions-only mode. A flat value/label pair — enum choices do
|
|
56
|
+
* not nest further.
|
|
57
|
+
*
|
|
58
|
+
* @schemaObject
|
|
59
|
+
*/
|
|
60
|
+
export type InvocationRuleValueChoice = {
|
|
61
|
+
/** The value stored on the condition. */
|
|
62
|
+
value: string;
|
|
63
|
+
/** The human-readable label shown in the select. */
|
|
64
|
+
label: string;
|
|
65
|
+
};
|
|
47
66
|
/**
|
|
48
67
|
* An option in a field, operator, or action-target select list.
|
|
49
68
|
*
|
|
@@ -54,7 +73,38 @@ export type InvocationRuleOption = {
|
|
|
54
73
|
value: string;
|
|
55
74
|
/** The human-readable label shown in the select. */
|
|
56
75
|
label: string;
|
|
76
|
+
/**
|
|
77
|
+
* The value type this option represents when used as a field option in
|
|
78
|
+
* conditions-only mode (`mode="conditions"`). Defaults to `'string'` when
|
|
79
|
+
* omitted. Ignored for operator and action-target options, and ignored
|
|
80
|
+
* entirely in full mode.
|
|
81
|
+
*/
|
|
82
|
+
type?: InvocationRuleFieldType;
|
|
83
|
+
/**
|
|
84
|
+
* Enum choices for this field's value, rendered as a select in
|
|
85
|
+
* conditions-only mode when `type` is `'enum'`. Provide these for an enum
|
|
86
|
+
* field; if omitted or empty, the value select renders with no choices.
|
|
87
|
+
* Ignored for non-enum field types.
|
|
88
|
+
*/
|
|
89
|
+
options?: InvocationRuleValueChoice[];
|
|
57
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* Rendering mode for InvocationRuleBuilder.
|
|
93
|
+
*
|
|
94
|
+
* - `'full'` (default) renders both conditions and actions, matching the
|
|
95
|
+
* component's original behavior exactly.
|
|
96
|
+
* - `'conditions'` renders conditions only: action controls are hidden
|
|
97
|
+
* entirely, rules never emit action descriptors, the operator set is
|
|
98
|
+
* fixed to {@link InvocationRuleConditionsOnlyOperator}, and condition
|
|
99
|
+
* value controls are inferred from each field option's `type`.
|
|
100
|
+
*/
|
|
101
|
+
export type InvocationRuleBuilderMode = 'full' | 'conditions';
|
|
102
|
+
/**
|
|
103
|
+
* The fixed operator vocabulary used in conditions-only mode
|
|
104
|
+
* (`mode="conditions"`). Cinder supplies these five operators with default
|
|
105
|
+
* labels; the `operatorOptions` prop is not accepted in this mode.
|
|
106
|
+
*/
|
|
107
|
+
export type InvocationRuleConditionsOnlyOperator = 'eq' | 'gt' | 'lt' | 'gte' | 'lte';
|
|
58
108
|
/**
|
|
59
109
|
* Describes the change that caused an `onchange` call.
|
|
60
110
|
* Consumers use the type to determine what to persist.
|
|
@@ -118,6 +168,29 @@ type InvocationRuleBuilderBaseProps = Omit<HTMLAttributes<HTMLElement>, 'class'
|
|
|
118
168
|
* fields that a condition can test, e.g. "path", "label", "author".
|
|
119
169
|
*/
|
|
120
170
|
fieldOptions: InvocationRuleOption[];
|
|
171
|
+
/**
|
|
172
|
+
* Label for the "Add rule" button. Defaults to "Add rule".
|
|
173
|
+
*/
|
|
174
|
+
addRuleLabel?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Label for the "Add condition" button. Defaults to "Add condition".
|
|
177
|
+
*/
|
|
178
|
+
addConditionLabel?: string;
|
|
179
|
+
/** Accessible label for the entire rule builder region. */
|
|
180
|
+
label?: string;
|
|
181
|
+
/** Additional CSS classes applied to the root element. */
|
|
182
|
+
class?: string;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Mode-specific props for `mode="full"` (the default). Behavior and prop
|
|
186
|
+
* shape are unchanged from before conditions-only mode existed.
|
|
187
|
+
*/
|
|
188
|
+
type InvocationRuleBuilderFullModeProps = {
|
|
189
|
+
/**
|
|
190
|
+
* Rendering mode. Omit or pass `'full'` to render both conditions and
|
|
191
|
+
* actions — the component's original, unchanged behavior.
|
|
192
|
+
*/
|
|
193
|
+
mode?: 'full';
|
|
121
194
|
/**
|
|
122
195
|
* Options for the condition operator selector. Consumer-provided list
|
|
123
196
|
* of operators, e.g. "matches", "is", "is-not", "contains".
|
|
@@ -129,24 +202,35 @@ type InvocationRuleBuilderBaseProps = Omit<HTMLAttributes<HTMLElement>, 'class'
|
|
|
129
202
|
*/
|
|
130
203
|
actionOptions: InvocationRuleOption[];
|
|
131
204
|
/**
|
|
132
|
-
* Label for the "Add
|
|
205
|
+
* Label for the "Add action" button. Defaults to "Add action".
|
|
133
206
|
*/
|
|
134
|
-
|
|
207
|
+
addActionLabel?: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Mode-specific props for `mode="conditions"`. Actions are not rendered, so
|
|
211
|
+
* action-related props are not accepted — cinder owns the operator
|
|
212
|
+
* vocabulary and there is nothing to configure for actions.
|
|
213
|
+
*/
|
|
214
|
+
type InvocationRuleBuilderConditionsOnlyModeProps = {
|
|
135
215
|
/**
|
|
136
|
-
*
|
|
216
|
+
* Renders conditions only: action controls are hidden entirely and rules
|
|
217
|
+
* never emit action descriptors.
|
|
137
218
|
*/
|
|
138
|
-
|
|
219
|
+
mode: 'conditions';
|
|
139
220
|
/**
|
|
140
|
-
*
|
|
221
|
+
* Not accepted in conditions-only mode. Cinder supplies the fixed
|
|
222
|
+
* eq/gt/lt/gte/lte operator set internally; see
|
|
223
|
+
* {@link InvocationRuleConditionsOnlyOperator}.
|
|
141
224
|
*/
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
|
|
225
|
+
operatorOptions?: never;
|
|
226
|
+
/** Not accepted in conditions-only mode — action controls are not rendered. */
|
|
227
|
+
actionOptions?: never;
|
|
228
|
+
/** Not accepted in conditions-only mode — action controls are not rendered. */
|
|
229
|
+
addActionLabel?: never;
|
|
147
230
|
};
|
|
231
|
+
type InvocationRuleBuilderModeProps = InvocationRuleBuilderFullModeProps | InvocationRuleBuilderConditionsOnlyModeProps;
|
|
148
232
|
type InvocationRuleBuilderChangeHandler = (nextRules: InvocationRule[], change: InvocationRuleChange) => void;
|
|
149
|
-
export type InvocationRuleBuilderProps =
|
|
233
|
+
export type InvocationRuleBuilderProps = InvocationRuleBuilderBaseProps & InvocationRuleBuilderModeProps & ({
|
|
150
234
|
/**
|
|
151
235
|
* Called whenever the user makes any edit. Required for editable runtime
|
|
152
236
|
* usage because editable controls must commit controlled state changes.
|
|
@@ -159,7 +243,7 @@ export type InvocationRuleBuilderProps = (InvocationRuleBuilderBaseProps & {
|
|
|
159
243
|
* `onchange` so controls cannot become interactive-but-no-op.
|
|
160
244
|
*/
|
|
161
245
|
readonly?: false;
|
|
162
|
-
}
|
|
246
|
+
} | {
|
|
163
247
|
/**
|
|
164
248
|
* Optional in readonly usage because no edit controls are rendered.
|
|
165
249
|
* Runtime consumers may still pass it when sharing props between modes.
|
|
@@ -188,16 +272,30 @@ export type InvocationRuleBuilderSchemaProps = {
|
|
|
188
272
|
* fields that a condition can test, e.g. "path", "label", "author".
|
|
189
273
|
*/
|
|
190
274
|
fieldOptions: InvocationRuleOption[];
|
|
275
|
+
/**
|
|
276
|
+
* Rendering mode. Omit or pass `'full'` for the original conditions +
|
|
277
|
+
* actions behavior; pass `'conditions'` to render conditions only. Not
|
|
278
|
+
* expressible as a schema-driven discriminant here because JSON Schema
|
|
279
|
+
* validation of this component is documented, not enforced at runtime
|
|
280
|
+
* against `operatorOptions`/`actionOptions` presence; see the component
|
|
281
|
+
* types for the full mode-discriminated prop shape.
|
|
282
|
+
*/
|
|
283
|
+
mode?: InvocationRuleBuilderMode;
|
|
191
284
|
/**
|
|
192
285
|
* Options for the condition operator selector. Consumer-provided list
|
|
193
|
-
* of operators, e.g. "matches", "is", "is-not", "contains".
|
|
286
|
+
* of operators, e.g. "matches", "is", "is-not", "contains". Required in
|
|
287
|
+
* full mode; optional (and ignored) when `mode` is `'conditions'`, since
|
|
288
|
+
* cinder supplies a fixed operator set in that mode — so a conditions-only
|
|
289
|
+
* configuration validates without it.
|
|
194
290
|
*/
|
|
195
|
-
operatorOptions
|
|
291
|
+
operatorOptions?: InvocationRuleOption[];
|
|
196
292
|
/**
|
|
197
293
|
* Options for the action target selector. Consumer-provided list of
|
|
198
|
-
* targets, e.g. review-agent slugs or step identifiers.
|
|
294
|
+
* targets, e.g. review-agent slugs or step identifiers. Required in full
|
|
295
|
+
* mode; optional (and ignored) when `mode` is `'conditions'`, since actions
|
|
296
|
+
* are not rendered — so a conditions-only configuration validates without it.
|
|
199
297
|
*/
|
|
200
|
-
actionOptions
|
|
298
|
+
actionOptions?: InvocationRuleOption[];
|
|
201
299
|
/**
|
|
202
300
|
* Must be true for schema-driven usage because editable mode requires
|
|
203
301
|
* the unsupported `onchange` callback. Runtime consumers may omit this
|
|
@@ -2402,7 +2402,10 @@ function Tab($$anchor, $$props) {
|
|
|
2402
2402
|
let disabled = $5.prop($$props, "disabled", 3, false);
|
|
2403
2403
|
const tabs = getTabsContext();
|
|
2404
2404
|
const tabId = $5.derived(() => $$props.id ?? `${tabs.baseId}-tab-${$$props.value}`);
|
|
2405
|
-
const panelId = $5.derived(() =>
|
|
2405
|
+
const panelId = $5.derived(() => {
|
|
2406
|
+
const controlsId = $$props.controls?.trim();
|
|
2407
|
+
return controlsId ? controlsId : `${tabs.baseId}-panel-${$$props.value}`;
|
|
2408
|
+
});
|
|
2406
2409
|
const isActive = $5.derived(() => tabs.isActive($$props.value));
|
|
2407
2410
|
const isFocusable = $5.derived(() => tabs.isFocusable($$props.value));
|
|
2408
2411
|
let buttonElement = $5.state(undefined);
|
|
@@ -9933,4 +9936,4 @@ export {
|
|
|
9933
9936
|
Json_schema_editor as JsonSchemaEditor
|
|
9934
9937
|
};
|
|
9935
9938
|
|
|
9936
|
-
//# debugId=
|
|
9939
|
+
//# debugId=01EFCA11A848DB9964756E2164756E21
|
|
@@ -73,7 +73,7 @@ var root_1 = $.from_html(`<span class="cinder-json-viewer__key"> </span>`);
|
|
|
73
73
|
var root_2 = $.from_html(`<span class="cinder-json-viewer__summary"> </span> <span class="cinder-json-viewer__brace"> </span>`, 1);
|
|
74
74
|
var root_3 = $.from_html(`<li role="none"><!></li>`);
|
|
75
75
|
var root_4 = $.from_html(`<ul class="cinder-json-viewer__children" role="group"></ul> <span class="cinder-json-viewer__brace"> </span>`, 1);
|
|
76
|
-
var root_5 = $.from_html(`<span role="treeitem"><button type="button" class="cinder-json-viewer__toggle" tabindex="-1"><!> <
|
|
76
|
+
var root_5 = $.from_html(`<span role="treeitem"><button type="button" class="cinder-json-viewer__toggle" tabindex="-1"><!> <svg class="cinder-json-viewer__caret" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" focusable="false"><path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06z" clip-rule="evenodd"></path></svg> <span class="cinder-json-viewer__brace"> </span> <!></button> <!></span>`);
|
|
77
77
|
var root_6 = $.from_html(`<span class="cinder-json-viewer__node" role="treeitem"><!> <span class="cinder-json-viewer__too-deep">…</span></span>`);
|
|
78
78
|
var root_7 = $.from_html(`<span class="cinder-json-viewer__node" role="treeitem"><!> <span class="cinder-json-viewer__value"><!></span></span>`);
|
|
79
79
|
function _json_viewer_node($$anchor, $$props) {
|
|
@@ -125,20 +125,20 @@ function _json_viewer_node($$anchor, $$props) {
|
|
|
125
125
|
$$render(consequent);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
var
|
|
130
|
-
var text_1 = $.child(
|
|
131
|
-
$.reset(
|
|
132
|
-
var node_2 = $.sibling(
|
|
128
|
+
var svg = $.sibling(node_1, 2);
|
|
129
|
+
var span_2 = $.sibling(svg, 2);
|
|
130
|
+
var text_1 = $.child(span_2, true);
|
|
131
|
+
$.reset(span_2);
|
|
132
|
+
var node_2 = $.sibling(span_2, 2);
|
|
133
133
|
{
|
|
134
134
|
var consequent_1 = ($$anchor3) => {
|
|
135
135
|
var fragment_1 = root_2();
|
|
136
|
-
var
|
|
137
|
-
var text_2 = $.child(
|
|
136
|
+
var span_3 = $.first_child(fragment_1);
|
|
137
|
+
var text_2 = $.child(span_3);
|
|
138
|
+
$.reset(span_3);
|
|
139
|
+
var span_4 = $.sibling(span_3, 2);
|
|
140
|
+
var text_3 = $.child(span_4, true);
|
|
138
141
|
$.reset(span_4);
|
|
139
|
-
var span_5 = $.sibling(span_4, 2);
|
|
140
|
-
var text_3 = $.child(span_5, true);
|
|
141
|
-
$.reset(span_5);
|
|
142
142
|
$.template_effect(() => {
|
|
143
143
|
$.set_text(text_2, `${$.get(itemCount) ?? ""} ${$.get(itemCount) === 1 ? "item" : "items"}`);
|
|
144
144
|
$.set_text(text_3, $.get(isArray) ? "]" : "}");
|
|
@@ -193,9 +193,9 @@ function _json_viewer_node($$anchor, $$props) {
|
|
|
193
193
|
$.append($$anchor4, li);
|
|
194
194
|
});
|
|
195
195
|
$.reset(ul);
|
|
196
|
-
var
|
|
197
|
-
var text_4 = $.child(
|
|
198
|
-
$.reset(
|
|
196
|
+
var span_5 = $.sibling(ul, 2);
|
|
197
|
+
var text_4 = $.child(span_5, true);
|
|
198
|
+
$.reset(span_5);
|
|
199
199
|
$.template_effect(() => $.set_text(text_4, $.get(isArray) ? "]" : "}"));
|
|
200
200
|
$.append($$anchor3, fragment_2);
|
|
201
201
|
};
|
|
@@ -214,22 +214,22 @@ function _json_viewer_node($$anchor, $$props) {
|
|
|
214
214
|
$.set_attribute(span, "aria-setsize", $$props.setSize);
|
|
215
215
|
$.set_attribute(span, "tabindex", root() ? 0 : -1);
|
|
216
216
|
$.set_attribute(button, "aria-label", $.get(toggleLabel));
|
|
217
|
-
$.set_attribute(
|
|
217
|
+
$.set_attribute(svg, "data-cinder-collapsed", $.get(collapsed) || undefined);
|
|
218
218
|
$.set_text(text_1, $.get(isArray) ? "[" : "{");
|
|
219
219
|
}, [() => $.clsx(classNames("cinder-json-viewer__node"))]);
|
|
220
220
|
$.delegated("click", button, () => $.set(collapsed, !$.get(collapsed)));
|
|
221
221
|
$.append($$anchor2, span);
|
|
222
222
|
};
|
|
223
223
|
var consequent_5 = ($$anchor2) => {
|
|
224
|
-
var
|
|
225
|
-
var node_5 = $.child(
|
|
224
|
+
var span_6 = root_6();
|
|
225
|
+
var node_5 = $.child(span_6);
|
|
226
226
|
{
|
|
227
227
|
var consequent_4 = ($$anchor3) => {
|
|
228
|
-
var
|
|
229
|
-
var text_5 = $.child(
|
|
230
|
-
$.reset(
|
|
228
|
+
var span_7 = root_1();
|
|
229
|
+
var text_5 = $.child(span_7);
|
|
230
|
+
$.reset(span_7);
|
|
231
231
|
$.template_effect(() => $.set_text(text_5, `${$$props.keyName ?? ""}:`));
|
|
232
|
-
$.append($$anchor3,
|
|
232
|
+
$.append($$anchor3, span_7);
|
|
233
233
|
};
|
|
234
234
|
$.if(node_5, ($$render) => {
|
|
235
235
|
if ($$props.keyName !== undefined)
|
|
@@ -237,33 +237,33 @@ function _json_viewer_node($$anchor, $$props) {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
$.next(2);
|
|
240
|
-
$.reset(
|
|
240
|
+
$.reset(span_6);
|
|
241
241
|
$.template_effect(() => {
|
|
242
|
-
$.set_attribute(
|
|
243
|
-
$.set_attribute(
|
|
244
|
-
$.set_attribute(
|
|
245
|
-
$.set_attribute(
|
|
242
|
+
$.set_attribute(span_6, "tabindex", root() ? 0 : -1);
|
|
243
|
+
$.set_attribute(span_6, "aria-level", $$props.depth + 1);
|
|
244
|
+
$.set_attribute(span_6, "aria-posinset", $$props.position);
|
|
245
|
+
$.set_attribute(span_6, "aria-setsize", $$props.setSize);
|
|
246
246
|
});
|
|
247
|
-
$.append($$anchor2,
|
|
247
|
+
$.append($$anchor2, span_6);
|
|
248
248
|
};
|
|
249
249
|
var alternate_1 = ($$anchor2) => {
|
|
250
|
-
var
|
|
251
|
-
var node_6 = $.child(
|
|
250
|
+
var span_8 = root_7();
|
|
251
|
+
var node_6 = $.child(span_8);
|
|
252
252
|
{
|
|
253
253
|
var consequent_6 = ($$anchor3) => {
|
|
254
|
-
var
|
|
255
|
-
var text_6 = $.child(
|
|
256
|
-
$.reset(
|
|
254
|
+
var span_9 = root_1();
|
|
255
|
+
var text_6 = $.child(span_9);
|
|
256
|
+
$.reset(span_9);
|
|
257
257
|
$.template_effect(() => $.set_text(text_6, `${$$props.keyName ?? ""}:`));
|
|
258
|
-
$.append($$anchor3,
|
|
258
|
+
$.append($$anchor3, span_9);
|
|
259
259
|
};
|
|
260
260
|
$.if(node_6, ($$render) => {
|
|
261
261
|
if ($$props.keyName !== undefined)
|
|
262
262
|
$$render(consequent_6);
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
var
|
|
266
|
-
var node_7 = $.child(
|
|
265
|
+
var span_10 = $.sibling(node_6, 2);
|
|
266
|
+
var node_7 = $.child(span_10);
|
|
267
267
|
{
|
|
268
268
|
var consequent_7 = ($$anchor3) => {
|
|
269
269
|
var text_7 = $.text();
|
|
@@ -282,16 +282,16 @@ function _json_viewer_node($$anchor, $$props) {
|
|
|
282
282
|
$$render(alternate, -1);
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
$.reset(
|
|
286
|
-
$.reset(
|
|
285
|
+
$.reset(span_10);
|
|
286
|
+
$.reset(span_8);
|
|
287
287
|
$.template_effect(($0) => {
|
|
288
|
-
$.set_attribute(
|
|
289
|
-
$.set_attribute(
|
|
290
|
-
$.set_attribute(
|
|
291
|
-
$.set_attribute(
|
|
292
|
-
$.set_attribute(
|
|
288
|
+
$.set_attribute(span_8, "tabindex", root() ? 0 : -1);
|
|
289
|
+
$.set_attribute(span_8, "aria-level", $$props.depth + 1);
|
|
290
|
+
$.set_attribute(span_8, "aria-posinset", $$props.position);
|
|
291
|
+
$.set_attribute(span_8, "aria-setsize", $$props.setSize);
|
|
292
|
+
$.set_attribute(span_10, "data-cinder-type", $0);
|
|
293
293
|
}, [() => valueClass($$props.value)]);
|
|
294
|
-
$.append($$anchor2,
|
|
294
|
+
$.append($$anchor2, span_8);
|
|
295
295
|
};
|
|
296
296
|
$.if(node, ($$render) => {
|
|
297
297
|
if ($.get(isObject) && !$.get(tooDeep))
|
|
@@ -446,4 +446,4 @@ export {
|
|
|
446
446
|
Json_viewer as JsonViewer
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
-
//# debugId=
|
|
449
|
+
//# debugId=015E0D207D81A13964756E2164756E21
|
|
@@ -80,12 +80,10 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.cinder-json-viewer__caret {
|
|
83
|
-
|
|
84
|
-
width: 0;
|
|
85
|
-
height: 0;
|
|
86
|
-
|
|
87
|
-
border-inline-end: 0.25rem solid transparent;
|
|
88
|
-
border-top: 0.375rem solid currentColor;
|
|
83
|
+
flex: 0 0 auto;
|
|
84
|
+
width: 0.75rem;
|
|
85
|
+
height: 0.75rem;
|
|
86
|
+
color: var(--cinder-text-muted);
|
|
89
87
|
transition: transform var(--cinder-duration-fast) var(--cinder-ease-standard);
|
|
90
88
|
}
|
|
91
89
|
|
|
@@ -93,6 +91,12 @@
|
|
|
93
91
|
transform: rotate(-90deg);
|
|
94
92
|
}
|
|
95
93
|
|
|
94
|
+
@media (prefers-reduced-motion: reduce) {
|
|
95
|
+
.cinder-json-viewer__caret {
|
|
96
|
+
transition: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
96
100
|
.cinder-json-viewer__brace {
|
|
97
101
|
color: var(--cinder-text-muted);
|
|
98
102
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './payload-inspector.css';
|
|
2
2
|
import PayloadInspector from './payload-inspector.svelte';
|
|
3
3
|
export default PayloadInspector;
|
|
4
|
-
export type {
|
|
4
|
+
export type { PayloadInspectorProps, PayloadInspectorSchemaProps, PayloadInspectorSchemaValue, } from './payload-inspector.types.ts';
|
|
5
5
|
export { PayloadInspector };
|