@lostgradient/cinder 0.7.0 → 0.9.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 +23 -0
- package/README.md +7 -2
- package/components.json +59 -15
- 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 +201 -126
- 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/chat.schema.js +48 -1
- package/dist/components/chat/chat.svelte.d.ts +6 -2
- package/dist/components/chat/chat.types.d.ts +37 -0
- package/dist/components/chat/container/chat.svelte.d.ts +6 -2
- package/dist/components/chat/index.d.ts +3 -3
- package/dist/components/chat/index.js +1099 -4865
- package/dist/components/chat/input/chat-attachment-serialization.d.ts +9 -0
- package/dist/components/chat/input/chat-input.svelte.d.ts +24 -0
- package/dist/components/chat/input/index.d.ts +1 -0
- 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 +1627 -5600
- package/dist/components/chat-conversation-list/index.js +15 -3988
- 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/event-stream-viewer/index.js +44 -44
- package/dist/components/experimental/json-viewer/index.js +44 -44
- 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/navigation-bar/index.js +44 -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/sidebar/index.js +6 -3
- package/dist/components/sidebar/sidebar.css +4 -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/team-section/index.js +2 -1
- package/dist/components/testimonial-section/index.js +2 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +24169 -27821
- package/dist/server/components/access-gate/index.js +2 -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 +14 -11
- package/dist/server/components/chat-composer-popover/index.js +26 -0
- package/dist/server/components/chat-conversation-header/index.js +9 -10
- 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/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 +7 -7
- 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/json-schema-editor/index.js +22 -22
- 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/navigation-bar/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 +25 -25
- package/dist/server/components/run-step-timeline/index.js +2 -2
- 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/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/toggle/index.js +2 -2
- package/dist/server/components/tooltip/index.js +1 -1
- package/dist/server/index.js +160 -149
- package/dist/server/{index.server-cbtg8rq5.js → index.server-0atyznp7.js} +5 -5
- package/dist/server/{index.server-20y4mdhm.js → index.server-0chhpkg7.js} +40 -14
- package/dist/server/{index.server-ecm1vs3g.js → index.server-1nq7z1qw.js} +1 -1
- package/dist/server/{index.server-jync915v.js → index.server-2dga5yzr.js} +25 -25
- package/dist/server/index.server-2hqrv7ca.js +9 -0
- package/dist/server/{index.server-qwknp759.js → index.server-2qj6s2mh.js} +7 -4
- package/dist/server/{index.server-pt8b65mt.js → index.server-38aywdk1.js} +1 -1
- package/dist/server/{index.server-rermas0k.js → index.server-47v2fhp4.js} +4 -4
- 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-zeqv7nrz.js → index.server-5tf22d6e.js} +43 -6
- package/dist/server/index.server-67qgdypc.js +9 -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-wc9aggfz.js → index.server-bmxbsk4y.js} +7 -7
- package/dist/server/{index.server-j3ddzcaa.js → index.server-c6pe4kaf.js} +6 -6
- package/dist/server/{index.server-q89dz8h1.js → index.server-d3pqthtp.js} +4 -3
- package/dist/server/{index.server-qfa2rxzx.js → index.server-dg83ke3k.js} +3 -5
- 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-ejyf7e48.js → index.server-fy068yne.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-dp9j2kkr.js → index.server-h0cvwvhy.js} +1 -1
- 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-jtj3r53y.js → index.server-jgb8yh5k.js} +1 -1
- package/dist/server/{index.server-w1g5q9j9.js → index.server-jtgw9d23.js} +4 -2
- package/dist/server/{index.server-mehav5vs.js → index.server-jxg42jpz.js} +4 -4
- 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-f23vtaw4.js → index.server-marjz8ps.js} +6 -6
- package/dist/server/index.server-mqt1ngqw.js +250 -0
- package/dist/server/{index.server-s9khh4ry.js → index.server-mzzb7dnm.js} +3 -5
- 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-gxf0d1p5.js → index.server-q7w4jw89.js} +2 -2
- package/dist/server/{index.server-bvmwnjx6.js → index.server-qh9qzd5t.js} +186 -23
- package/dist/server/{index.server-pxg74pyp.js → index.server-qk1h0n02.js} +4 -4
- 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-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-atjc1qcq.js → index.server-yz4k36cw.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 +42 -6
- 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/chat.schema.json +40 -0
- package/src/components/chat/chat.schema.ts +49 -0
- package/src/components/chat/chat.svelte +20 -0
- package/src/components/chat/chat.types.ts +38 -0
- package/src/components/chat/container/chat.svelte +82 -3
- package/src/components/chat/index.ts +15 -3
- package/src/components/chat/input/chat-attachment-serialization.ts +63 -0
- package/src/components/chat/input/chat-input.svelte +30 -3
- package/src/components/chat/input/index.ts +5 -0
- 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/json-viewer/_json-viewer-node.svelte +15 -1
- package/src/components/json-viewer/json-viewer.css +10 -6
- package/src/components/navigation-bar/navigation-bar.svelte +49 -7
- 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/sidebar/sidebar.css +4 -0
- package/src/components/sidebar/sidebar.svelte +6 -3
- 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/index.ts +18 -5
- package/src/styles/components.css +1 -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-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
|
@@ -56,7 +56,7 @@ import"@lostgradient/cinder/access-gate/styles";
|
|
|
56
56
|
|
|
57
57
|
// src/components/access-gate/access-gate.svelte
|
|
58
58
|
import"svelte/internal/disclose-version";
|
|
59
|
-
import * as $
|
|
59
|
+
import * as $47 from "svelte/internal/client";
|
|
60
60
|
|
|
61
61
|
// ../../node_modules/lucide-svelte/dist/Icon.svelte
|
|
62
62
|
import"svelte/internal/disclose-version";
|
|
@@ -1081,19 +1081,19 @@ function Search($$anchor, $$props) {
|
|
|
1081
1081
|
}));
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
1084
|
-
// ../../node_modules/lucide-svelte/dist/icons/
|
|
1084
|
+
// ../../node_modules/lucide-svelte/dist/icons/signal-high.svelte
|
|
1085
1085
|
import"svelte/internal/disclose-version";
|
|
1086
1086
|
import"svelte/internal/flags/legacy";
|
|
1087
1087
|
import * as $37 from "svelte/internal/client";
|
|
1088
|
-
function
|
|
1088
|
+
function Signal_high($$anchor, $$props) {
|
|
1089
1089
|
const $$sanitized_props = $37.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1090
1090
|
const iconNode = [
|
|
1091
|
-
[
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
]
|
|
1091
|
+
["path", { d: "M2 20h.01" }],
|
|
1092
|
+
["path", { d: "M7 20v-4" }],
|
|
1093
|
+
["path", { d: "M12 20v-8" }],
|
|
1094
|
+
["path", { d: "M17 20V8" }]
|
|
1095
1095
|
];
|
|
1096
|
-
Icon($$anchor, $37.spread_props({ name: "
|
|
1096
|
+
Icon($$anchor, $37.spread_props({ name: "signal-high" }, () => $$sanitized_props, {
|
|
1097
1097
|
get iconNode() {
|
|
1098
1098
|
return iconNode;
|
|
1099
1099
|
},
|
|
@@ -1107,18 +1107,17 @@ function Square($$anchor, $$props) {
|
|
|
1107
1107
|
}));
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
|
-
// ../../node_modules/lucide-svelte/dist/icons/
|
|
1110
|
+
// ../../node_modules/lucide-svelte/dist/icons/signal-low.svelte
|
|
1111
1111
|
import"svelte/internal/disclose-version";
|
|
1112
1112
|
import"svelte/internal/flags/legacy";
|
|
1113
1113
|
import * as $38 from "svelte/internal/client";
|
|
1114
|
-
function
|
|
1114
|
+
function Signal_low($$anchor, $$props) {
|
|
1115
1115
|
const $$sanitized_props = $38.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1116
1116
|
const iconNode = [
|
|
1117
|
-
["path", { d: "
|
|
1118
|
-
["path", { d: "
|
|
1119
|
-
["line", { x1: "4", x2: "20", y1: "12", y2: "12" }]
|
|
1117
|
+
["path", { d: "M2 20h.01" }],
|
|
1118
|
+
["path", { d: "M7 20v-4" }]
|
|
1120
1119
|
];
|
|
1121
|
-
Icon($$anchor, $38.spread_props({ name: "
|
|
1120
|
+
Icon($$anchor, $38.spread_props({ name: "signal-low" }, () => $$sanitized_props, {
|
|
1122
1121
|
get iconNode() {
|
|
1123
1122
|
return iconNode;
|
|
1124
1123
|
},
|
|
@@ -1132,12 +1131,88 @@ function Strikethrough($$anchor, $$props) {
|
|
|
1132
1131
|
}));
|
|
1133
1132
|
}
|
|
1134
1133
|
|
|
1135
|
-
// ../../node_modules/lucide-svelte/dist/icons/
|
|
1134
|
+
// ../../node_modules/lucide-svelte/dist/icons/signal-medium.svelte
|
|
1136
1135
|
import"svelte/internal/disclose-version";
|
|
1137
1136
|
import"svelte/internal/flags/legacy";
|
|
1138
1137
|
import * as $39 from "svelte/internal/client";
|
|
1139
|
-
function
|
|
1138
|
+
function Signal_medium($$anchor, $$props) {
|
|
1140
1139
|
const $$sanitized_props = $39.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1140
|
+
const iconNode = [
|
|
1141
|
+
["path", { d: "M2 20h.01" }],
|
|
1142
|
+
["path", { d: "M7 20v-4" }],
|
|
1143
|
+
["path", { d: "M12 20v-8" }]
|
|
1144
|
+
];
|
|
1145
|
+
Icon($$anchor, $39.spread_props({ name: "signal-medium" }, () => $$sanitized_props, {
|
|
1146
|
+
get iconNode() {
|
|
1147
|
+
return iconNode;
|
|
1148
|
+
},
|
|
1149
|
+
children: ($$anchor2, $$slotProps) => {
|
|
1150
|
+
var fragment_1 = $39.comment();
|
|
1151
|
+
var node = $39.first_child(fragment_1);
|
|
1152
|
+
$39.slot(node, $$props, "default", {}, null);
|
|
1153
|
+
$39.append($$anchor2, fragment_1);
|
|
1154
|
+
},
|
|
1155
|
+
$$slots: { default: true }
|
|
1156
|
+
}));
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
// ../../node_modules/lucide-svelte/dist/icons/square.svelte
|
|
1160
|
+
import"svelte/internal/disclose-version";
|
|
1161
|
+
import"svelte/internal/flags/legacy";
|
|
1162
|
+
import * as $40 from "svelte/internal/client";
|
|
1163
|
+
function Square($$anchor, $$props) {
|
|
1164
|
+
const $$sanitized_props = $40.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1165
|
+
const iconNode = [
|
|
1166
|
+
[
|
|
1167
|
+
"rect",
|
|
1168
|
+
{ width: "18", height: "18", x: "3", y: "3", rx: "2" }
|
|
1169
|
+
]
|
|
1170
|
+
];
|
|
1171
|
+
Icon($$anchor, $40.spread_props({ name: "square" }, () => $$sanitized_props, {
|
|
1172
|
+
get iconNode() {
|
|
1173
|
+
return iconNode;
|
|
1174
|
+
},
|
|
1175
|
+
children: ($$anchor2, $$slotProps) => {
|
|
1176
|
+
var fragment_1 = $40.comment();
|
|
1177
|
+
var node = $40.first_child(fragment_1);
|
|
1178
|
+
$40.slot(node, $$props, "default", {}, null);
|
|
1179
|
+
$40.append($$anchor2, fragment_1);
|
|
1180
|
+
},
|
|
1181
|
+
$$slots: { default: true }
|
|
1182
|
+
}));
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
// ../../node_modules/lucide-svelte/dist/icons/strikethrough.svelte
|
|
1186
|
+
import"svelte/internal/disclose-version";
|
|
1187
|
+
import"svelte/internal/flags/legacy";
|
|
1188
|
+
import * as $41 from "svelte/internal/client";
|
|
1189
|
+
function Strikethrough($$anchor, $$props) {
|
|
1190
|
+
const $$sanitized_props = $41.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1191
|
+
const iconNode = [
|
|
1192
|
+
["path", { d: "M16 4H9a3 3 0 0 0-2.83 4" }],
|
|
1193
|
+
["path", { d: "M14 12a4 4 0 0 1 0 8H6" }],
|
|
1194
|
+
["line", { x1: "4", x2: "20", y1: "12", y2: "12" }]
|
|
1195
|
+
];
|
|
1196
|
+
Icon($$anchor, $41.spread_props({ name: "strikethrough" }, () => $$sanitized_props, {
|
|
1197
|
+
get iconNode() {
|
|
1198
|
+
return iconNode;
|
|
1199
|
+
},
|
|
1200
|
+
children: ($$anchor2, $$slotProps) => {
|
|
1201
|
+
var fragment_1 = $41.comment();
|
|
1202
|
+
var node = $41.first_child(fragment_1);
|
|
1203
|
+
$41.slot(node, $$props, "default", {}, null);
|
|
1204
|
+
$41.append($$anchor2, fragment_1);
|
|
1205
|
+
},
|
|
1206
|
+
$$slots: { default: true }
|
|
1207
|
+
}));
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// ../../node_modules/lucide-svelte/dist/icons/trash-2.svelte
|
|
1211
|
+
import"svelte/internal/disclose-version";
|
|
1212
|
+
import"svelte/internal/flags/legacy";
|
|
1213
|
+
import * as $42 from "svelte/internal/client";
|
|
1214
|
+
function Trash_2($$anchor, $$props) {
|
|
1215
|
+
const $$sanitized_props = $42.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1141
1216
|
const iconNode = [
|
|
1142
1217
|
["path", { d: "M3 6h18" }],
|
|
1143
1218
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }],
|
|
@@ -1145,15 +1220,15 @@ function Trash_2($$anchor, $$props) {
|
|
|
1145
1220
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17" }],
|
|
1146
1221
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17" }]
|
|
1147
1222
|
];
|
|
1148
|
-
Icon($$anchor, $
|
|
1223
|
+
Icon($$anchor, $42.spread_props({ name: "trash-2" }, () => $$sanitized_props, {
|
|
1149
1224
|
get iconNode() {
|
|
1150
1225
|
return iconNode;
|
|
1151
1226
|
},
|
|
1152
1227
|
children: ($$anchor2, $$slotProps) => {
|
|
1153
|
-
var fragment_1 = $
|
|
1154
|
-
var node = $
|
|
1155
|
-
$
|
|
1156
|
-
$
|
|
1228
|
+
var fragment_1 = $42.comment();
|
|
1229
|
+
var node = $42.first_child(fragment_1);
|
|
1230
|
+
$42.slot(node, $$props, "default", {}, null);
|
|
1231
|
+
$42.append($$anchor2, fragment_1);
|
|
1157
1232
|
},
|
|
1158
1233
|
$$slots: { default: true }
|
|
1159
1234
|
}));
|
|
@@ -1162,9 +1237,9 @@ function Trash_2($$anchor, $$props) {
|
|
|
1162
1237
|
// ../../node_modules/lucide-svelte/dist/icons/undo-2.svelte
|
|
1163
1238
|
import"svelte/internal/disclose-version";
|
|
1164
1239
|
import"svelte/internal/flags/legacy";
|
|
1165
|
-
import * as $
|
|
1240
|
+
import * as $43 from "svelte/internal/client";
|
|
1166
1241
|
function Undo_2($$anchor, $$props) {
|
|
1167
|
-
const $$sanitized_props = $
|
|
1242
|
+
const $$sanitized_props = $43.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1168
1243
|
const iconNode = [
|
|
1169
1244
|
["path", { d: "M9 14 4 9l5-5" }],
|
|
1170
1245
|
[
|
|
@@ -1174,15 +1249,15 @@ function Undo_2($$anchor, $$props) {
|
|
|
1174
1249
|
}
|
|
1175
1250
|
]
|
|
1176
1251
|
];
|
|
1177
|
-
Icon($$anchor, $
|
|
1252
|
+
Icon($$anchor, $43.spread_props({ name: "undo-2" }, () => $$sanitized_props, {
|
|
1178
1253
|
get iconNode() {
|
|
1179
1254
|
return iconNode;
|
|
1180
1255
|
},
|
|
1181
1256
|
children: ($$anchor2, $$slotProps) => {
|
|
1182
|
-
var fragment_1 = $
|
|
1183
|
-
var node = $
|
|
1184
|
-
$
|
|
1185
|
-
$
|
|
1257
|
+
var fragment_1 = $43.comment();
|
|
1258
|
+
var node = $43.first_child(fragment_1);
|
|
1259
|
+
$43.slot(node, $$props, "default", {}, null);
|
|
1260
|
+
$43.append($$anchor2, fragment_1);
|
|
1186
1261
|
},
|
|
1187
1262
|
$$slots: { default: true }
|
|
1188
1263
|
}));
|
|
@@ -1191,9 +1266,9 @@ function Undo_2($$anchor, $$props) {
|
|
|
1191
1266
|
// ../../node_modules/lucide-svelte/dist/icons/unlink.svelte
|
|
1192
1267
|
import"svelte/internal/disclose-version";
|
|
1193
1268
|
import"svelte/internal/flags/legacy";
|
|
1194
|
-
import * as $
|
|
1269
|
+
import * as $44 from "svelte/internal/client";
|
|
1195
1270
|
function Unlink($$anchor, $$props) {
|
|
1196
|
-
const $$sanitized_props = $
|
|
1271
|
+
const $$sanitized_props = $44.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1197
1272
|
const iconNode = [
|
|
1198
1273
|
[
|
|
1199
1274
|
"path",
|
|
@@ -1212,15 +1287,15 @@ function Unlink($$anchor, $$props) {
|
|
|
1212
1287
|
["line", { x1: "16", x2: "16", y1: "19", y2: "22" }],
|
|
1213
1288
|
["line", { x1: "19", x2: "22", y1: "16", y2: "16" }]
|
|
1214
1289
|
];
|
|
1215
|
-
Icon($$anchor, $
|
|
1290
|
+
Icon($$anchor, $44.spread_props({ name: "unlink" }, () => $$sanitized_props, {
|
|
1216
1291
|
get iconNode() {
|
|
1217
1292
|
return iconNode;
|
|
1218
1293
|
},
|
|
1219
1294
|
children: ($$anchor2, $$slotProps) => {
|
|
1220
|
-
var fragment_1 = $
|
|
1221
|
-
var node = $
|
|
1222
|
-
$
|
|
1223
|
-
$
|
|
1295
|
+
var fragment_1 = $44.comment();
|
|
1296
|
+
var node = $44.first_child(fragment_1);
|
|
1297
|
+
$44.slot(node, $$props, "default", {}, null);
|
|
1298
|
+
$44.append($$anchor2, fragment_1);
|
|
1224
1299
|
},
|
|
1225
1300
|
$$slots: { default: true }
|
|
1226
1301
|
}));
|
|
@@ -1229,22 +1304,22 @@ function Unlink($$anchor, $$props) {
|
|
|
1229
1304
|
// ../../node_modules/lucide-svelte/dist/icons/x.svelte
|
|
1230
1305
|
import"svelte/internal/disclose-version";
|
|
1231
1306
|
import"svelte/internal/flags/legacy";
|
|
1232
|
-
import * as $
|
|
1307
|
+
import * as $45 from "svelte/internal/client";
|
|
1233
1308
|
function X($$anchor, $$props) {
|
|
1234
|
-
const $$sanitized_props = $
|
|
1309
|
+
const $$sanitized_props = $45.legacy_rest_props($$props, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
1235
1310
|
const iconNode = [
|
|
1236
1311
|
["path", { d: "M18 6 6 18" }],
|
|
1237
1312
|
["path", { d: "m6 6 12 12" }]
|
|
1238
1313
|
];
|
|
1239
|
-
Icon($$anchor, $
|
|
1314
|
+
Icon($$anchor, $45.spread_props({ name: "x" }, () => $$sanitized_props, {
|
|
1240
1315
|
get iconNode() {
|
|
1241
1316
|
return iconNode;
|
|
1242
1317
|
},
|
|
1243
1318
|
children: ($$anchor2, $$slotProps) => {
|
|
1244
|
-
var fragment_1 = $
|
|
1245
|
-
var node = $
|
|
1246
|
-
$
|
|
1247
|
-
$
|
|
1319
|
+
var fragment_1 = $45.comment();
|
|
1320
|
+
var node = $45.first_child(fragment_1);
|
|
1321
|
+
$45.slot(node, $$props, "default", {}, null);
|
|
1322
|
+
$45.append($$anchor2, fragment_1);
|
|
1248
1323
|
},
|
|
1249
1324
|
$$slots: { default: true }
|
|
1250
1325
|
}));
|
|
@@ -1257,7 +1332,7 @@ function classNames(...parts) {
|
|
|
1257
1332
|
|
|
1258
1333
|
// src/components/access-gate/access-gate-inline.svelte
|
|
1259
1334
|
import"svelte/internal/disclose-version";
|
|
1260
|
-
import * as $
|
|
1335
|
+
import * as $46 from "svelte/internal/client";
|
|
1261
1336
|
var rest_excludes = new Set([
|
|
1262
1337
|
"$$slots",
|
|
1263
1338
|
"$$events",
|
|
@@ -1266,10 +1341,10 @@ var rest_excludes = new Set([
|
|
|
1266
1341
|
"children",
|
|
1267
1342
|
"class"
|
|
1268
1343
|
]);
|
|
1269
|
-
var root2 = $
|
|
1344
|
+
var root2 = $46.from_html(`<div><span class="cinder-sr-only">Unavailable action</span> <span class="cinder-access-gate__inline-content"><!></span> <span class="cinder-access-gate__inline-reason"><!> <span> </span></span></div>`);
|
|
1270
1345
|
function Access_gate_inline($$anchor, $$props) {
|
|
1271
|
-
const baseId = $
|
|
1272
|
-
$
|
|
1346
|
+
const baseId = $46.props_id();
|
|
1347
|
+
$46.push($$props, true);
|
|
1273
1348
|
const INTERACTIVE_SELECTOR = [
|
|
1274
1349
|
"button",
|
|
1275
1350
|
"input",
|
|
@@ -1303,7 +1378,7 @@ function Access_gate_inline($$anchor, $$props) {
|
|
|
1303
1378
|
'[role="radio"]',
|
|
1304
1379
|
'[role="switch"]'
|
|
1305
1380
|
].join(",");
|
|
1306
|
-
let rest = $
|
|
1381
|
+
let rest = $46.rest_props($$props, rest_excludes);
|
|
1307
1382
|
const inlineTitleId = `${baseId}-title`;
|
|
1308
1383
|
const inlineReasonId = `${baseId}-reason`;
|
|
1309
1384
|
function isNativeDisableable(element2) {
|
|
@@ -1336,7 +1411,7 @@ function Access_gate_inline($$anchor, $$props) {
|
|
|
1336
1411
|
const disabledControls = [];
|
|
1337
1412
|
let ignoringGateMutations = false;
|
|
1338
1413
|
let mutationResetVersion = 0;
|
|
1339
|
-
$
|
|
1414
|
+
$46.set(inlineContentDisabled, false);
|
|
1340
1415
|
function disabledControlIndex(control) {
|
|
1341
1416
|
return disabledControls.findIndex(([disabledControl]) => disabledControl === control);
|
|
1342
1417
|
}
|
|
@@ -1547,9 +1622,9 @@ function Access_gate_inline($$anchor, $$props) {
|
|
|
1547
1622
|
subtree: true
|
|
1548
1623
|
});
|
|
1549
1624
|
syncDisabledControls();
|
|
1550
|
-
$
|
|
1625
|
+
$46.set(inlineContentDisabled, true);
|
|
1551
1626
|
return () => {
|
|
1552
|
-
$
|
|
1627
|
+
$46.set(inlineContentDisabled, false);
|
|
1553
1628
|
mutationResetVersion += 1;
|
|
1554
1629
|
observer.disconnect();
|
|
1555
1630
|
for (const eventName of blockedPointerEvents) {
|
|
@@ -1566,10 +1641,10 @@ function Access_gate_inline($$anchor, $$props) {
|
|
|
1566
1641
|
disabledControls.length = 0;
|
|
1567
1642
|
};
|
|
1568
1643
|
};
|
|
1569
|
-
let inlineContentDisabled = $
|
|
1570
|
-
const inlineContentRequiresHydrationGuard = $
|
|
1644
|
+
let inlineContentDisabled = $46.state(false);
|
|
1645
|
+
const inlineContentRequiresHydrationGuard = $46.derived(() => !$46.get(inlineContentDisabled));
|
|
1571
1646
|
var div = root2();
|
|
1572
|
-
$
|
|
1647
|
+
$46.attribute_effect(div, ($0) => ({
|
|
1573
1648
|
...rest,
|
|
1574
1649
|
class: $0,
|
|
1575
1650
|
"data-cinder-variant": "inline",
|
|
@@ -1577,28 +1652,28 @@ function Access_gate_inline($$anchor, $$props) {
|
|
|
1577
1652
|
"aria-labelledby": inlineTitleId,
|
|
1578
1653
|
"aria-describedby": inlineReasonId
|
|
1579
1654
|
}), [() => classNames("cinder-access-gate", $$props.class)]);
|
|
1580
|
-
var span = $
|
|
1581
|
-
var span_1 = $
|
|
1582
|
-
var node = $
|
|
1583
|
-
$
|
|
1584
|
-
$
|
|
1585
|
-
$
|
|
1586
|
-
var span_2 = $
|
|
1587
|
-
var node_1 = $
|
|
1655
|
+
var span = $46.child(div);
|
|
1656
|
+
var span_1 = $46.sibling(span, 2);
|
|
1657
|
+
var node = $46.child(span_1);
|
|
1658
|
+
$46.snippet(node, () => $$props.children ?? $46.noop);
|
|
1659
|
+
$46.reset(span_1);
|
|
1660
|
+
$46.attach(span_1, () => disableDeniedControls);
|
|
1661
|
+
var span_2 = $46.sibling(span_1, 2);
|
|
1662
|
+
var node_1 = $46.child(span_2);
|
|
1588
1663
|
Lock(node_1, { size: 14, strokeWidth: 2, "aria-hidden": "true" });
|
|
1589
|
-
var span_3 = $
|
|
1590
|
-
var text = $
|
|
1591
|
-
$
|
|
1592
|
-
$
|
|
1593
|
-
$
|
|
1594
|
-
$
|
|
1595
|
-
$
|
|
1596
|
-
span_1.inert = $
|
|
1597
|
-
$
|
|
1598
|
-
$
|
|
1664
|
+
var span_3 = $46.sibling(node_1, 2);
|
|
1665
|
+
var text = $46.child(span_3, true);
|
|
1666
|
+
$46.reset(span_3);
|
|
1667
|
+
$46.reset(span_2);
|
|
1668
|
+
$46.reset(div);
|
|
1669
|
+
$46.template_effect(() => {
|
|
1670
|
+
$46.set_attribute(span, "id", inlineTitleId);
|
|
1671
|
+
span_1.inert = $46.get(inlineContentRequiresHydrationGuard);
|
|
1672
|
+
$46.set_attribute(span_2, "id", inlineReasonId);
|
|
1673
|
+
$46.set_text(text, $$props.reason);
|
|
1599
1674
|
});
|
|
1600
|
-
$
|
|
1601
|
-
$
|
|
1675
|
+
$46.append($$anchor, div);
|
|
1676
|
+
$46.pop();
|
|
1602
1677
|
}
|
|
1603
1678
|
|
|
1604
1679
|
// src/components/access-gate/access-gate.svelte
|
|
@@ -1613,18 +1688,18 @@ var rest_excludes2 = new Set([
|
|
|
1613
1688
|
"children",
|
|
1614
1689
|
"class"
|
|
1615
1690
|
]);
|
|
1616
|
-
var root3 = $
|
|
1617
|
-
var root_1 = $
|
|
1618
|
-
var root_2 = $
|
|
1691
|
+
var root3 = $47.from_html(`<span><!></span>`);
|
|
1692
|
+
var root_1 = $47.from_html(`<span class="cinder-access-gate__requirement"><span class="cinder-access-gate__requirement-label">Required permission</span> <code class="cinder-access-gate__requirement-value"> </code></span>`);
|
|
1693
|
+
var root_2 = $47.from_html(`<section><span class="cinder-access-gate__section-icon" aria-hidden="true"><!></span> <span class="cinder-access-gate__section-copy"><span class="cinder-access-gate__section-title">Section locked</span> <span class="cinder-access-gate__section-reason"> </span> <!></span></section>`);
|
|
1619
1694
|
function Access_gate($$anchor, $$props) {
|
|
1620
|
-
const baseId = $
|
|
1621
|
-
$
|
|
1622
|
-
let variant = $
|
|
1695
|
+
const baseId = $47.props_id();
|
|
1696
|
+
$47.push($$props, true);
|
|
1697
|
+
let variant = $47.prop($$props, "variant", 3, "inline"), rest = $47.rest_props($$props, rest_excludes2);
|
|
1623
1698
|
const sectionTitleId = `${baseId}-title`;
|
|
1624
1699
|
const sectionReasonId = `${baseId}-description`;
|
|
1625
1700
|
const sectionRequirementId = `${baseId}-requirement`;
|
|
1626
|
-
const sectionDescriptionIds = $
|
|
1627
|
-
const passthroughAttributes = $
|
|
1701
|
+
const sectionDescriptionIds = $47.derived(() => $$props.requirement ? `${sectionReasonId} ${sectionRequirementId}` : sectionReasonId);
|
|
1702
|
+
const passthroughAttributes = $47.derived(() => stripOwnedAccessibilityAttributes(rest));
|
|
1628
1703
|
function stripOwnedAccessibilityAttributes(attributes) {
|
|
1629
1704
|
const {
|
|
1630
1705
|
role: _role,
|
|
@@ -1634,68 +1709,68 @@ function Access_gate($$anchor, $$props) {
|
|
|
1634
1709
|
} = attributes;
|
|
1635
1710
|
return passthrough;
|
|
1636
1711
|
}
|
|
1637
|
-
var fragment = $
|
|
1638
|
-
var node = $
|
|
1712
|
+
var fragment = $47.comment();
|
|
1713
|
+
var node = $47.first_child(fragment);
|
|
1639
1714
|
{
|
|
1640
1715
|
var consequent = ($$anchor2) => {
|
|
1641
1716
|
var span = root3();
|
|
1642
|
-
$
|
|
1643
|
-
...$
|
|
1717
|
+
$47.attribute_effect(span, () => ({
|
|
1718
|
+
...$47.get(passthroughAttributes),
|
|
1644
1719
|
class: "cinder-access-gate__passthrough"
|
|
1645
1720
|
}));
|
|
1646
|
-
var node_1 = $
|
|
1647
|
-
$
|
|
1648
|
-
$
|
|
1649
|
-
$
|
|
1721
|
+
var node_1 = $47.child(span);
|
|
1722
|
+
$47.snippet(node_1, () => $$props.children ?? $47.noop);
|
|
1723
|
+
$47.reset(span);
|
|
1724
|
+
$47.append($$anchor2, span);
|
|
1650
1725
|
};
|
|
1651
1726
|
var consequent_2 = ($$anchor2) => {
|
|
1652
1727
|
var section = root_2();
|
|
1653
|
-
$
|
|
1654
|
-
...$
|
|
1728
|
+
$47.attribute_effect(section, ($0) => ({
|
|
1729
|
+
...$47.get(passthroughAttributes),
|
|
1655
1730
|
class: $0,
|
|
1656
1731
|
"data-cinder-variant": "section",
|
|
1657
1732
|
"aria-labelledby": sectionTitleId,
|
|
1658
|
-
"aria-describedby": $
|
|
1733
|
+
"aria-describedby": $47.get(sectionDescriptionIds)
|
|
1659
1734
|
}), [() => classNames("cinder-access-gate", $$props.class)]);
|
|
1660
|
-
var span_1 = $
|
|
1661
|
-
var node_2 = $
|
|
1735
|
+
var span_1 = $47.child(section);
|
|
1736
|
+
var node_2 = $47.child(span_1);
|
|
1662
1737
|
Lock(node_2, { size: 20, strokeWidth: 2 });
|
|
1663
|
-
$
|
|
1664
|
-
var span_2 = $
|
|
1665
|
-
var span_3 = $
|
|
1666
|
-
var span_4 = $
|
|
1667
|
-
var text = $
|
|
1668
|
-
$
|
|
1669
|
-
var node_3 = $
|
|
1738
|
+
$47.reset(span_1);
|
|
1739
|
+
var span_2 = $47.sibling(span_1, 2);
|
|
1740
|
+
var span_3 = $47.child(span_2);
|
|
1741
|
+
var span_4 = $47.sibling(span_3, 2);
|
|
1742
|
+
var text = $47.child(span_4, true);
|
|
1743
|
+
$47.reset(span_4);
|
|
1744
|
+
var node_3 = $47.sibling(span_4, 2);
|
|
1670
1745
|
{
|
|
1671
1746
|
var consequent_1 = ($$anchor3) => {
|
|
1672
1747
|
var span_5 = root_1();
|
|
1673
|
-
var code = $
|
|
1674
|
-
var text_1 = $
|
|
1675
|
-
$
|
|
1676
|
-
$
|
|
1677
|
-
$
|
|
1678
|
-
$
|
|
1679
|
-
$
|
|
1748
|
+
var code = $47.sibling($47.child(span_5), 2);
|
|
1749
|
+
var text_1 = $47.child(code, true);
|
|
1750
|
+
$47.reset(code);
|
|
1751
|
+
$47.reset(span_5);
|
|
1752
|
+
$47.template_effect(() => {
|
|
1753
|
+
$47.set_attribute(span_5, "id", sectionRequirementId);
|
|
1754
|
+
$47.set_text(text_1, $$props.requirement);
|
|
1680
1755
|
});
|
|
1681
|
-
$
|
|
1756
|
+
$47.append($$anchor3, span_5);
|
|
1682
1757
|
};
|
|
1683
|
-
$
|
|
1758
|
+
$47.if(node_3, ($$render) => {
|
|
1684
1759
|
if ($$props.requirement)
|
|
1685
1760
|
$$render(consequent_1);
|
|
1686
1761
|
});
|
|
1687
1762
|
}
|
|
1688
|
-
$
|
|
1689
|
-
$
|
|
1690
|
-
$
|
|
1691
|
-
$
|
|
1692
|
-
$
|
|
1693
|
-
$
|
|
1763
|
+
$47.reset(span_2);
|
|
1764
|
+
$47.reset(section);
|
|
1765
|
+
$47.template_effect(() => {
|
|
1766
|
+
$47.set_attribute(span_3, "id", sectionTitleId);
|
|
1767
|
+
$47.set_attribute(span_4, "id", sectionReasonId);
|
|
1768
|
+
$47.set_text(text, $$props.reason);
|
|
1694
1769
|
});
|
|
1695
|
-
$
|
|
1770
|
+
$47.append($$anchor2, section);
|
|
1696
1771
|
};
|
|
1697
1772
|
var alternate = ($$anchor2) => {
|
|
1698
|
-
Access_gate_inline($$anchor2, $
|
|
1773
|
+
Access_gate_inline($$anchor2, $47.spread_props(() => $47.get(passthroughAttributes), {
|
|
1699
1774
|
get class() {
|
|
1700
1775
|
return $$props.class;
|
|
1701
1776
|
},
|
|
@@ -1703,15 +1778,15 @@ function Access_gate($$anchor, $$props) {
|
|
|
1703
1778
|
return $$props.reason;
|
|
1704
1779
|
},
|
|
1705
1780
|
children: ($$anchor3, $$slotProps) => {
|
|
1706
|
-
var fragment_2 = $
|
|
1707
|
-
var node_4 = $
|
|
1708
|
-
$
|
|
1709
|
-
$
|
|
1781
|
+
var fragment_2 = $47.comment();
|
|
1782
|
+
var node_4 = $47.first_child(fragment_2);
|
|
1783
|
+
$47.snippet(node_4, () => $$props.children ?? $47.noop);
|
|
1784
|
+
$47.append($$anchor3, fragment_2);
|
|
1710
1785
|
},
|
|
1711
1786
|
$$slots: { default: true }
|
|
1712
1787
|
}));
|
|
1713
1788
|
};
|
|
1714
|
-
$
|
|
1789
|
+
$47.if(node, ($$render) => {
|
|
1715
1790
|
if ($$props.granted)
|
|
1716
1791
|
$$render(consequent);
|
|
1717
1792
|
else if (variant() === "section")
|
|
@@ -1720,8 +1795,8 @@ function Access_gate($$anchor, $$props) {
|
|
|
1720
1795
|
$$render(alternate, -1);
|
|
1721
1796
|
});
|
|
1722
1797
|
}
|
|
1723
|
-
$
|
|
1724
|
-
$
|
|
1798
|
+
$47.append($$anchor, fragment);
|
|
1799
|
+
$47.pop();
|
|
1725
1800
|
}
|
|
1726
1801
|
|
|
1727
1802
|
// src/components/access-gate/index.ts
|
|
@@ -1731,4 +1806,4 @@ export {
|
|
|
1731
1806
|
Access_gate as AccessGate
|
|
1732
1807
|
};
|
|
1733
1808
|
|
|
1734
|
-
//# debugId=
|
|
1809
|
+
//# debugId=60AD89C0B80A856364756E2164756E21
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ApprovalResolution } from './approval-card.types.ts';
|
|
2
|
+
type ApprovalCardActionsProps = {
|
|
3
|
+
/** Base for the ids of the controls this region renders. */
|
|
4
|
+
idBase: string;
|
|
5
|
+
/** Identity of the approval request; form state resets when it changes. */
|
|
6
|
+
requestKey: string;
|
|
7
|
+
/** Whether the approve-with-edits flow is available. */
|
|
8
|
+
canEditArguments: boolean;
|
|
9
|
+
/** Normalized arguments value used to seed the JSON editor. */
|
|
10
|
+
argumentsValue: unknown;
|
|
11
|
+
/** Resolution sink; the parent guards actionability before forwarding. */
|
|
12
|
+
resolve: (resolution: ApprovalResolution) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const ApprovalCardActions: import("svelte").Component<ApprovalCardActionsProps, {}, "">;
|
|
15
|
+
type ApprovalCardActions = ReturnType<typeof ApprovalCardActions>;
|
|
16
|
+
export default ApprovalCardActions;
|
|
@@ -1,3 +1,68 @@
|
|
|
1
1
|
import type { ApprovalState } from './approval-card.types.ts';
|
|
2
|
+
/** Character budget for the serialized arguments preview before truncation. */
|
|
3
|
+
export declare const ARGUMENTS_PREVIEW_MAX_CHARACTERS = 4096;
|
|
4
|
+
/** Visible label for each risk level. */
|
|
5
|
+
export declare const RISK_LABELS: {
|
|
6
|
+
readonly low: "Low risk";
|
|
7
|
+
readonly medium: "Medium risk";
|
|
8
|
+
readonly high: "High risk";
|
|
9
|
+
};
|
|
10
|
+
/** Visible label for each approval state. */
|
|
11
|
+
export declare const STATE_LABELS: {
|
|
12
|
+
readonly pending: "Pending";
|
|
13
|
+
readonly approved: "Approved";
|
|
14
|
+
readonly approved_with_edits: "Approved with edits";
|
|
15
|
+
readonly denied: "Denied";
|
|
16
|
+
readonly expired: "Expired";
|
|
17
|
+
readonly cancelled: "Cancelled";
|
|
18
|
+
};
|
|
19
|
+
/** StatusDot status for each approval state. */
|
|
20
|
+
export declare const STATE_DOT_STATUS: {
|
|
21
|
+
readonly pending: "pending";
|
|
22
|
+
readonly approved: "success";
|
|
23
|
+
readonly approved_with_edits: "success";
|
|
24
|
+
readonly denied: "danger";
|
|
25
|
+
readonly expired: "neutral";
|
|
26
|
+
readonly cancelled: "offline";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Resolves the state shown to the approver: a pending approval whose
|
|
30
|
+
* expiration timestamp has passed presents as expired.
|
|
31
|
+
*/
|
|
2
32
|
export declare function resolveEffectiveApprovalState(approvalState: ApprovalState, expirationTimestamp: number | undefined, currentTime: number | undefined): ApprovalState;
|
|
33
|
+
/** Whether approval actions may still be taken on the request. */
|
|
3
34
|
export declare function isApprovalActionable(approvalState: ApprovalState, expirationTimestamp: number | undefined, currentTime: number | undefined): boolean;
|
|
35
|
+
/** Parses an ISO expiration timestamp, returning undefined for invalid input. */
|
|
36
|
+
export declare function parseExpirationTimestamp(value: string | undefined): number | undefined;
|
|
37
|
+
/** Formats a millisecond duration as a compact countdown such as `2h 5m` or `45s`. */
|
|
38
|
+
export declare function formatRemainingTime(milliseconds: number): string;
|
|
39
|
+
/**
|
|
40
|
+
* Accepts serialized JSON strings as argument previews by parsing them into
|
|
41
|
+
* their structured form; any other value passes through unchanged.
|
|
42
|
+
*/
|
|
43
|
+
export declare function normalizeArgumentsPreviewValue(value: unknown): unknown;
|
|
44
|
+
/**
|
|
45
|
+
* Bounds the arguments preview: values whose serialized form exceeds the
|
|
46
|
+
* character budget are replaced with a truncation notice and an excerpt.
|
|
47
|
+
*/
|
|
48
|
+
export declare function prepareArgumentsPreview(value: unknown): {
|
|
49
|
+
value: unknown;
|
|
50
|
+
truncated: boolean;
|
|
51
|
+
};
|
|
52
|
+
/** Serializes the arguments preview as the editable JSON seed text. */
|
|
53
|
+
export declare function formatEditableArguments(value: unknown): string;
|
|
54
|
+
/** Parses editor text as JSON, returning a friendly error for invalid input. */
|
|
55
|
+
export declare function parseJsonText(text: string): {
|
|
56
|
+
ok: true;
|
|
57
|
+
value: unknown;
|
|
58
|
+
} | {
|
|
59
|
+
ok: false;
|
|
60
|
+
message: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Reduces environment entries to unique variable names. Values accidentally
|
|
64
|
+
* supplied as `NAME=value` are stripped so no secret material is rendered.
|
|
65
|
+
*/
|
|
66
|
+
export declare function sanitizeEnvironmentNames(names: string[]): string[];
|
|
67
|
+
/** Collapses duplicate file paths while preserving first-seen order. */
|
|
68
|
+
export declare function dedupeFilePaths(paths: string[]): string[];
|