@lostgradient/cinder 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +185 -0
- package/README.md +33 -11
- package/components.json +53 -102
- package/dist/_internal/chart/chart-utilities.d.ts +1 -0
- package/dist/cli/index.js +63 -10
- package/dist/cli/mcp-dependencies.d.ts +4 -0
- package/dist/components/approval-card/approval-card.css +1 -6
- package/dist/components/approval-card/index.js +94 -55
- package/dist/components/area-chart/index.js +40 -6
- package/dist/components/bar-chart/index.js +132 -83
- package/dist/components/code-block/index.js +58 -9
- package/dist/components/command-menu/command-menu.css +9 -0
- package/dist/components/command-menu/index.js +7 -2
- package/dist/components/diff-statistics/diff-statistics.svelte.d.ts +3 -3
- package/dist/components/file-upload/file-upload.schema.js +5 -1
- package/dist/components/file-upload/file-upload.types.d.ts +2 -0
- package/dist/components/file-upload/index.js +37 -27
- package/dist/components/invocation-rule-builder/index.d.ts +1 -1
- package/dist/components/invocation-rule-builder/index.js +244 -199
- package/dist/components/invocation-rule-builder/invocation-rule-builder.css +8 -0
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.d.ts +2 -2
- package/dist/components/invocation-rule-builder/invocation-rule-builder.schema.js +309 -193
- package/dist/components/invocation-rule-builder/invocation-rule-builder.svelte.d.ts +3 -2
- package/dist/components/invocation-rule-builder/invocation-rule-builder.types.d.ts +98 -31
- package/dist/components/json-editor/index.d.ts +5 -0
- package/dist/components/json-editor/index.js +261 -0
- package/dist/components/json-editor/json-editor.css +49 -0
- package/dist/components/{diff-viewer/diff-viewer.schema.js → json-editor/json-editor.schema.js} +37 -49
- package/dist/components/json-editor/json-editor.svelte.d.ts +21 -0
- package/dist/components/json-editor/json-editor.types.d.ts +25 -0
- package/dist/components/{diff-viewer/diff-viewer.variables.js → json-editor/json-editor.variables.js} +4 -4
- package/dist/components/json-schema-editor/index.js +2041 -4165
- package/dist/components/json-schema-editor/json-schema-editor-state.svelte.d.ts +17 -1
- package/dist/components/json-schema-editor/json-schema-editor-types.d.ts +8 -1
- package/dist/components/json-schema-editor/json-schema-editor.css +35 -0
- package/dist/components/json-schema-editor/json-schema-editor.svelte.d.ts +0 -1
- package/dist/components/json-schema-editor/json-schema-validator.d.ts +9 -4
- package/dist/components/line-chart/index.js +40 -6
- package/dist/components/matrix-chart/index.js +40 -6
- package/dist/components/payload-inspector/index.js +10 -2
- package/dist/components/payload-inspector/payload-inspector.schema.js +11 -1
- package/dist/components/payload-inspector/payload-inspector.types.d.ts +20 -0
- package/dist/components/run-step-timeline/index.js +158 -110
- package/dist/components/run-step-timeline/run-step-timeline.css +46 -0
- package/dist/components/run-step-timeline/run-step-timeline.schema.js +26 -1
- package/dist/components/run-step-timeline/run-step-timeline.types.d.ts +22 -2
- package/dist/components/schedule-builder/index.js +165 -93
- package/dist/components/schedule-builder/schedule-builder.schema.js +8 -1
- package/dist/components/schedule-builder/schedule-builder.svelte.d.ts +1 -1
- package/dist/components/schedule-builder/schedule-builder.types.d.ts +12 -0
- package/dist/components/schema-form/index.d.ts +1 -1
- package/dist/components/schema-form/index.js +107 -25
- package/dist/components/schema-form/schema-form.schema.js +9 -1
- package/dist/components/schema-form/schema-form.svelte.d.ts +1 -1
- package/dist/components/schema-form/schema-form.types.d.ts +8 -0
- package/dist/components/sidebar/index.js +93 -42
- package/dist/components/sidebar/sidebar.css +7 -16
- package/dist/components/sidebar/sidebar.schema.js +8 -9
- package/dist/components/sidebar/sidebar.types.d.ts +14 -12
- package/dist/components/source-diff-viewer/source-diff-viewer.svelte.d.ts +2 -2
- package/dist/components/spectrogram/index.js +40 -6
- package/dist/components/spectrum-chart/index.js +40 -6
- package/dist/components/tabs/tabs.css +2 -0
- package/dist/components/textarea/textarea.svelte.d.ts +1 -1
- package/dist/components/toast-region/index.js +2 -2
- package/dist/components/toast-region/toast-region.css +1 -1
- package/dist/components/waveform/index.js +40 -6
- package/dist/highlighters/shiki/index.d.ts +47 -5
- package/dist/highlighters/shiki/index.js +58 -9
- package/dist/index.d.ts +4 -4
- package/dist/index.js +15347 -16138
- package/dist/server/components/access-gate/index.js +2 -5
- package/dist/server/components/approval-card/index.js +2 -2
- package/dist/server/components/area-chart/index.js +3 -3
- package/dist/server/components/bar-chart/index.js +3 -3
- package/dist/server/components/command-menu/index.js +1 -1
- package/dist/server/components/context-menu/index.js +5 -5
- package/dist/server/components/data-table/index.js +2 -2
- package/dist/server/components/diff-statistics/index.js +3 -5
- package/dist/server/components/dropdown/index.js +6 -7
- package/dist/server/components/file-upload/index.js +2 -3
- package/dist/server/components/icons/index.js +17 -26
- package/dist/server/components/inline-loading/index.js +1 -1
- package/dist/server/components/invocation-rule-builder/index.js +1 -1
- package/dist/server/components/json-editor/index.js +13 -0
- package/dist/server/components/json-schema-editor/index.js +4 -16
- package/dist/server/components/line-chart/index.js +3 -3
- package/dist/server/components/matrix-chart/index.js +2 -2
- package/dist/server/components/menu-bar/index.js +4 -4
- package/dist/server/components/payload-inspector/index.js +2 -2
- package/dist/server/components/run-step-timeline/index.js +1 -1
- package/dist/server/components/schedule-builder/index.js +3 -3
- package/dist/server/components/schema-form/index.js +1 -1
- package/dist/server/components/selection-popover/index.js +3 -5
- package/dist/server/components/sidebar/index.js +1 -1
- package/dist/server/components/spectrogram/index.js +2 -2
- package/dist/server/components/spectrum-chart/index.js +2 -2
- package/dist/server/components/surface/index.js +3 -5
- package/dist/server/components/table/index.js +2 -2
- package/dist/server/components/tabs/index.js +5 -5
- package/dist/server/components/toast-region/index.js +1 -1
- package/dist/server/components/toolbar/index.js +2 -3
- package/dist/server/components/waveform/index.js +2 -2
- package/dist/server/highlighters/shiki/index.js +61 -25
- package/dist/server/index.js +105 -115
- package/dist/server/{index.server-7yfz2t73.js → index.server-003t81xk.js} +1 -1
- package/dist/server/{index.server-gwgm8gqg.js → index.server-032p855q.js} +4 -4
- package/dist/server/{index.server-tf2n3ccm.js → index.server-1vfhzhkj.js} +1 -1
- package/dist/server/{index.server-jz5yxwde.js → index.server-4cbqjf14.js} +16 -7
- package/dist/server/{index.server-aqethy0w.js → index.server-66nm5gd5.js} +102 -26
- package/dist/server/{index.server-m0ezemav.js → index.server-6mnbznbt.js} +4 -2
- package/dist/server/{index.server-1nq8h5yb.js → index.server-6vbpz6dd.js} +40 -6
- package/dist/server/{index.server-796hb0r8.js → index.server-7qak74fg.js} +1 -1
- package/dist/server/{index.server-5exh7rmw.js → index.server-7ygdwxre.js} +57 -5
- package/dist/server/{index.server-q1d48s9t.js → index.server-8c6cck0y.js} +6 -4
- package/dist/server/index.server-93vt8ktj.js +95 -0
- package/dist/server/{index.server-ep81fn23.js → index.server-9eccb2fc.js} +2 -2
- package/dist/server/{index.server-zncgb7mw.js → index.server-9nac5z11.js} +92 -49
- package/dist/server/{index.server-bf7d81b4.js → index.server-9vqfmhez.js} +16 -18
- package/dist/server/{index.server-nt304e00.js → index.server-dx58qant.js} +1 -1
- package/dist/server/{index.server-zh3r8vfd.js → index.server-fhrqsg97.js} +1 -1
- package/dist/server/{index.server-dq0k0qf6.js → index.server-geq56xaz.js} +10 -10
- package/dist/server/{index.server-51sxnete.js → index.server-hxveaqg1.js} +10 -10
- package/dist/server/{index.server-c5qv3p61.js → index.server-j87v28yy.js} +59 -30
- package/dist/server/{index.server-s5g7reqp.js → index.server-mewms9dg.js} +2 -2
- package/dist/server/index.server-mm728d0w.js +20 -0
- package/dist/server/{index.server-5mc2vsy0.js → index.server-n0rbn5yf.js} +4 -2
- package/dist/server/{index.server-qv0kkre4.js → index.server-ng8y854r.js} +188 -107
- package/dist/server/{index.server-wasj5rbh.js → index.server-q5gvb174.js} +4 -4
- package/dist/server/{index.server-g5jgq3jp.js → index.server-qxneqxf8.js} +40 -6
- package/dist/server/{index.server-x1dha7bk.js → index.server-rnddtcb3.js} +4 -2
- package/dist/server/{index.server-7zpzspk6.js → index.server-s4wm4g2a.js} +30 -2
- package/dist/server/index.server-szgghcdh.js +887 -0
- package/dist/server/{index.server-thcda9ny.js → index.server-vd302sxz.js} +11 -4
- package/dist/server/{index.server-3sq9d73w.js → index.server-vz9hqkdq.js} +2 -2
- package/dist/server/{index.server-mvjzcna5.js → index.server-wg6ddzpa.js} +42 -20
- package/dist/server/{index.server-67q8dmbp.js → index.server-y2ncgt7p.js} +1 -1
- package/dist/server/{index.server-4x91gzy1.js → index.server-yqhww50r.js} +4 -4
- package/dist/server/{index.server-7798gc22.js → index.server-zfx4magq.js} +4 -2
- package/package.json +45 -288
- package/src/_internal/chart/chart-utilities.ts +74 -5
- package/src/components/approval-card/approval-card-actions.svelte +12 -28
- package/src/components/approval-card/approval-card.css +1 -6
- package/src/components/bar-chart/bar-chart.examples.json +1 -1
- package/src/components/bar-chart/bar-chart.svelte +3 -1
- package/src/components/command-menu/command-menu.css +9 -0
- package/src/components/command-menu/command-menu.svelte +9 -2
- package/src/components/file-upload/file-upload.schema.json +4 -0
- package/src/components/file-upload/file-upload.schema.ts +4 -0
- package/src/components/file-upload/file-upload.svelte +3 -3
- package/src/components/file-upload/file-upload.types.ts +2 -0
- package/src/components/invocation-rule-builder/index.ts +1 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.css +8 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.examples.json +6 -0
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.json +70 -7
- package/src/components/invocation-rule-builder/invocation-rule-builder.schema.ts +5 -250
- package/src/components/invocation-rule-builder/invocation-rule-builder.svelte +106 -83
- package/src/components/invocation-rule-builder/invocation-rule-builder.types.ts +145 -62
- package/src/components/json-editor/index.ts +6 -0
- package/src/components/json-editor/json-editor.css +49 -0
- package/src/components/json-editor/json-editor.examples.json +13 -0
- package/src/components/json-editor/json-editor.schema.json +57 -0
- package/src/components/json-editor/json-editor.schema.ts +62 -0
- package/src/components/json-editor/json-editor.svelte +104 -0
- package/src/components/json-editor/json-editor.types.ts +29 -0
- package/src/components/json-schema-editor/diff-view.svelte +26 -8
- package/src/components/json-schema-editor/form-view.svelte +1 -1
- package/src/components/json-schema-editor/json-schema-editor-state.svelte.ts +163 -56
- package/src/components/json-schema-editor/json-schema-editor-types.ts +8 -1
- package/src/components/json-schema-editor/json-schema-editor.css +35 -0
- package/src/components/json-schema-editor/json-schema-validator.ts +59 -25
- package/src/components/json-schema-editor/json-view.svelte +52 -18
- package/src/components/payload-inspector/payload-inspector.schema.json +8 -0
- package/src/components/payload-inspector/payload-inspector.schema.ts +10 -0
- package/src/components/payload-inspector/payload-inspector.svelte +2 -2
- package/src/components/payload-inspector/payload-inspector.types.ts +20 -0
- package/src/components/run-step-timeline/run-step-timeline.css +46 -0
- package/src/components/run-step-timeline/run-step-timeline.examples.json +3 -3
- package/src/components/run-step-timeline/run-step-timeline.schema.json +24 -0
- package/src/components/run-step-timeline/run-step-timeline.schema.ts +26 -0
- package/src/components/run-step-timeline/run-step-timeline.svelte +41 -4
- package/src/components/run-step-timeline/run-step-timeline.types.ts +22 -1
- package/src/components/run-step-timeline/run-step-timeline.utilities.ts +9 -1
- package/src/components/schedule-builder/schedule-builder.schema.json +7 -0
- package/src/components/schedule-builder/schedule-builder.schema.ts +8 -0
- package/src/components/schedule-builder/schedule-builder.svelte +94 -22
- package/src/components/schedule-builder/schedule-builder.types.ts +12 -0
- package/src/components/schema-form/index.ts +1 -0
- package/src/components/schema-form/schema-form-body.svelte +94 -17
- package/src/components/schema-form/schema-form.examples.json +1 -1
- package/src/components/schema-form/schema-form.schema.json +5 -0
- package/src/components/schema-form/schema-form.schema.ts +6 -0
- package/src/components/schema-form/schema-form.svelte +4 -0
- package/src/components/schema-form/schema-form.types.ts +9 -0
- package/src/components/side-navigation/side-navigation.examples.json +1 -1
- package/src/components/sidebar/sidebar.css +7 -16
- package/src/components/sidebar/sidebar.examples.json +3 -3
- package/src/components/sidebar/sidebar.schema.json +7 -8
- package/src/components/sidebar/sidebar.schema.ts +8 -8
- package/src/components/sidebar/sidebar.svelte +65 -27
- package/src/components/sidebar/sidebar.types.ts +14 -12
- package/src/components/tabs/tabs.css +2 -0
- package/src/components/toast-region/toast-region.css +1 -1
- package/src/components/toast-region/toast-region.examples.json +1 -1
- package/src/components/toast-region/toast-region.svelte +2 -2
- package/src/highlighters/shiki/index.ts +157 -17
- package/src/index.ts +5 -7
- package/src/styles/components.css +1 -1
- package/src/utilities/change-tracker.svelte.ts +1 -1
- package/dist/commentary/anchor-decorations.d.ts +0 -86
- package/dist/commentary/anchor-decorations.js +0 -490
- package/dist/commentary/anchoring.d.ts +0 -93
- package/dist/commentary/anchoring.js +0 -157
- package/dist/commentary/comments/index.d.ts +0 -12
- package/dist/commentary/comments/index.js +0 -14
- package/dist/commentary/comments/mentions.d.ts +0 -43
- package/dist/commentary/comments/mentions.js +0 -65
- package/dist/commentary/comments/reanchor.d.ts +0 -86
- package/dist/commentary/comments/reanchor.js +0 -220
- package/dist/commentary/comments/types.d.ts +0 -260
- package/dist/commentary/comments/types.js +0 -83
- package/dist/commentary/comments/updates.d.ts +0 -102
- package/dist/commentary/comments/updates.js +0 -226
- package/dist/commentary/export/comments-export.d.ts +0 -42
- package/dist/commentary/export/comments-export.js +0 -258
- package/dist/commentary/export/index.d.ts +0 -12
- package/dist/commentary/export/index.js +0 -12
- package/dist/commentary/export/markdown-summary.d.ts +0 -31
- package/dist/commentary/export/markdown-summary.js +0 -218
- package/dist/commentary/export/types.d.ts +0 -162
- package/dist/commentary/export/types.js +0 -7
- package/dist/commentary/export/unified-diff.d.ts +0 -28
- package/dist/commentary/export/unified-diff.js +0 -250
- package/dist/commentary/index.d.ts +0 -6
- package/dist/commentary/index.js +0 -6
- package/dist/commentary/session/index.d.ts +0 -12
- package/dist/commentary/session/index.js +0 -14
- package/dist/commentary/session/persistence.d.ts +0 -92
- package/dist/commentary/session/persistence.js +0 -253
- package/dist/commentary/session/types.d.ts +0 -208
- package/dist/commentary/session/types.js +0 -26
- package/dist/commentary/session/updates.d.ts +0 -155
- package/dist/commentary/session/updates.js +0 -362
- package/dist/commentary/shared/anchor-types.d.ts +0 -116
- package/dist/commentary/shared/anchor-types.js +0 -9
- package/dist/components/diff-viewer/diff-controller.svelte.d.ts +0 -75
- package/dist/components/diff-viewer/diff-front-matter.svelte.d.ts +0 -28
- package/dist/components/diff-viewer/diff-line.svelte.d.ts +0 -22
- package/dist/components/diff-viewer/diff-summary-bar.svelte.d.ts +0 -13
- package/dist/components/diff-viewer/diff-toolbar.svelte.d.ts +0 -36
- package/dist/components/diff-viewer/diff-viewer.svelte.d.ts +0 -22
- package/dist/components/diff-viewer/diff-viewer.types.d.ts +0 -53
- package/dist/components/diff-viewer/front-matter-header.svelte.d.ts +0 -26
- package/dist/components/diff-viewer/index.d.ts +0 -4
- package/dist/components/diff-viewer/index.js +0 -2848
- package/dist/components/markdown-editor/editor-skeleton.svelte.d.ts +0 -10
- package/dist/components/markdown-editor/editor-toolbar/editor-toolbar.svelte.d.ts +0 -37
- package/dist/components/markdown-editor/editor-toolbar/index.d.ts +0 -11
- package/dist/components/markdown-editor/editor-toolbar/link-popover.svelte.d.ts +0 -30
- package/dist/components/markdown-editor/editor-toolbar/toolbar-button.svelte.d.ts +0 -19
- package/dist/components/markdown-editor/editor-toolbar/toolbar-dropdown.svelte.d.ts +0 -24
- package/dist/components/markdown-editor/editor-toolbar/toolbar-separator.svelte.d.ts +0 -7
- package/dist/components/markdown-editor/editor-toolbar/types.d.ts +0 -13
- package/dist/components/markdown-editor/index.css +0 -61
- package/dist/components/markdown-editor/index.d.ts +0 -4
- package/dist/components/markdown-editor/index.js +0 -7494
- package/dist/components/markdown-editor/markdown-editor.schema.d.ts +0 -3
- package/dist/components/markdown-editor/markdown-editor.schema.js +0 -177
- package/dist/components/markdown-editor/markdown-editor.svelte.d.ts +0 -29
- package/dist/components/markdown-editor/markdown-editor.types.d.ts +0 -100
- package/dist/components/markdown-editor/markdown-editor.variables.d.ts +0 -2
- package/dist/components/markdown-editor/markdown-editor.variables.js +0 -61
- package/dist/components/review-editor/comment-composer.svelte.d.ts +0 -37
- package/dist/components/review-editor/comment-list.svelte.d.ts +0 -19
- package/dist/components/review-editor/comment-sidebar.svelte.d.ts +0 -22
- package/dist/components/review-editor/export-actions.svelte.d.ts +0 -18
- package/dist/components/review-editor/focus-navigation.d.ts +0 -105
- package/dist/components/review-editor/front-matter-fields.svelte.d.ts +0 -10
- package/dist/components/review-editor/index.d.ts +0 -20
- package/dist/components/review-editor/index.js +0 -14731
- package/dist/components/review-editor/live-region.svelte.d.ts +0 -23
- package/dist/components/review-editor/review-editor-anchors.svelte.d.ts +0 -96
- package/dist/components/review-editor/review-editor-controls.svelte.d.ts +0 -41
- package/dist/components/review-editor/review-editor-exports.d.ts +0 -80
- package/dist/components/review-editor/review-editor-front-matter.d.ts +0 -28
- package/dist/components/review-editor/review-editor-impl.svelte.d.ts +0 -31
- package/dist/components/review-editor/review-editor-selection-geometry.d.ts +0 -10
- package/dist/components/review-editor/review-editor-selection-types.d.ts +0 -62
- package/dist/components/review-editor/review-editor-selection.svelte.d.ts +0 -50
- package/dist/components/review-editor/review-editor-state.svelte.d.ts +0 -77
- package/dist/components/review-editor/review-editor-threads.svelte.d.ts +0 -137
- package/dist/components/review-editor/review-editor.css +0 -273
- package/dist/components/review-editor/review-editor.schema.d.ts +0 -3
- package/dist/components/review-editor/review-editor.schema.js +0 -143
- package/dist/components/review-editor/review-editor.svelte.d.ts +0 -19
- package/dist/components/review-editor/review-editor.types.d.ts +0 -77
- package/dist/components/review-editor/review-editor.variables.d.ts +0 -2
- package/dist/components/review-editor/review-editor.variables.js +0 -61
- package/dist/components/review-editor/thread-popover.svelte.d.ts +0 -32
- package/dist/diff/index.d.ts +0 -2
- package/dist/diff/index.js +0 -1
- package/dist/diff/line-diff.d.ts +0 -84
- package/dist/diff/line-diff.js +0 -372
- package/dist/diff/types.d.ts +0 -1
- package/dist/diff/types.js +0 -1
- package/dist/editor/attach.d.ts +0 -30
- package/dist/editor/attach.js +0 -86
- package/dist/editor/bridge.d.ts +0 -110
- package/dist/editor/bridge.js +0 -260
- package/dist/editor/clipboard.d.ts +0 -19
- package/dist/editor/clipboard.js +0 -189
- package/dist/editor/commands.d.ts +0 -167
- package/dist/editor/commands.js +0 -728
- package/dist/editor/component-runtime.d.ts +0 -21
- package/dist/editor/component-runtime.js +0 -20
- package/dist/editor/editor.d.ts +0 -23
- package/dist/editor/editor.js +0 -256
- package/dist/editor/index.d.ts +0 -30
- package/dist/editor/index.js +0 -42
- package/dist/editor/keymap-plugin.d.ts +0 -56
- package/dist/editor/keymap-plugin.js +0 -157
- package/dist/editor/link-input-rule.d.ts +0 -4
- package/dist/editor/link-input-rule.js +0 -26
- package/dist/editor/milkdown-plugin-runtime.d.ts +0 -20
- package/dist/editor/milkdown-plugin-runtime.js +0 -43
- package/dist/editor/placeholder-security.d.ts +0 -22
- package/dist/editor/placeholder-security.js +0 -36
- package/dist/editor/placeholder.d.ts +0 -14
- package/dist/editor/placeholder.js +0 -56
- package/dist/editor/sanitize-html.d.ts +0 -32
- package/dist/editor/sanitize-html.js +0 -111
- package/dist/editor/template-completion-plugin.d.ts +0 -159
- package/dist/editor/template-completion-plugin.js +0 -615
- package/dist/editor/template-invalid-decoration-plugin.d.ts +0 -73
- package/dist/editor/template-invalid-decoration-plugin.js +0 -155
- package/dist/editor/template-placeholders.d.ts +0 -96
- package/dist/editor/template-placeholders.js +0 -355
- package/dist/editor/template-position-utilities.d.ts +0 -34
- package/dist/editor/template-position-utilities.js +0 -63
- package/dist/editor/template-render.d.ts +0 -37
- package/dist/editor/template-render.js +0 -45
- package/dist/editor/test-utilities.d.ts +0 -49
- package/dist/editor/test-utilities.js +0 -93
- package/dist/editor/types.d.ts +0 -234
- package/dist/editor/types.js +0 -8
- package/dist/markdown/diff/compute.d.ts +0 -28
- package/dist/markdown/diff/compute.js +0 -250
- package/dist/markdown/diff/frontmatter.d.ts +0 -66
- package/dist/markdown/diff/frontmatter.js +0 -135
- package/dist/markdown/diff/index.d.ts +0 -27
- package/dist/markdown/diff/index.js +0 -28
- package/dist/markdown/diff/line-diff.d.ts +0 -2
- package/dist/markdown/diff/line-diff.js +0 -1
- package/dist/markdown/diff/positions.d.ts +0 -66
- package/dist/markdown/diff/positions.js +0 -147
- package/dist/markdown/diff/types.d.ts +0 -78
- package/dist/markdown/diff/types.js +0 -7
- package/dist/markdown/index.d.ts +0 -2
- package/dist/markdown/index.js +0 -8
- package/dist/markdown/pipeline/ast.d.ts +0 -302
- package/dist/markdown/pipeline/ast.js +0 -417
- package/dist/markdown/pipeline/errors.d.ts +0 -37
- package/dist/markdown/pipeline/errors.js +0 -49
- package/dist/markdown/pipeline/frontmatter.d.ts +0 -127
- package/dist/markdown/pipeline/frontmatter.js +0 -438
- package/dist/markdown/pipeline/index.d.ts +0 -37
- package/dist/markdown/pipeline/index.js +0 -40
- package/dist/markdown/pipeline/parser.d.ts +0 -65
- package/dist/markdown/pipeline/parser.js +0 -106
- package/dist/markdown/pipeline/serializer.d.ts +0 -67
- package/dist/markdown/pipeline/serializer.js +0 -78
- package/dist/markdown/pipeline/strip-positions.d.ts +0 -20
- package/dist/markdown/pipeline/strip-positions.js +0 -28
- package/dist/markdown/pipeline/types.d.ts +0 -116
- package/dist/markdown/pipeline/types.js +0 -8
- package/dist/markdown/rendering/extract-code-blocks.d.ts +0 -16
- package/dist/markdown/rendering/extract-code-blocks.js +0 -27
- package/dist/markdown/rendering/highlighter.d.ts +0 -109
- package/dist/markdown/rendering/highlighter.js +0 -251
- package/dist/markdown/rendering/index.d.ts +0 -41
- package/dist/markdown/rendering/index.js +0 -46
- package/dist/markdown/rendering/mermaid-cache.d.ts +0 -55
- package/dist/markdown/rendering/mermaid-cache.js +0 -123
- package/dist/markdown/rendering/rehype-shiki-sync.d.ts +0 -57
- package/dist/markdown/rendering/rehype-shiki-sync.js +0 -354
- package/dist/markdown/rendering/render-async.d.ts +0 -43
- package/dist/markdown/rendering/render-async.js +0 -114
- package/dist/markdown/rendering/render-streaming.d.ts +0 -33
- package/dist/markdown/rendering/render-streaming.js +0 -123
- package/dist/markdown/rendering/render-worker.d.ts +0 -19
- package/dist/markdown/rendering/render-worker.js +0 -35
- package/dist/markdown/rendering/render.d.ts +0 -123
- package/dist/markdown/rendering/render.js +0 -477
- package/dist/markdown/rendering/sanitize-schema.d.ts +0 -24
- package/dist/markdown/rendering/sanitize-schema.js +0 -105
- package/dist/markdown/rendering/transform-urls.d.ts +0 -37
- package/dist/markdown/rendering/transform-urls.js +0 -51
- package/dist/markdown/rendering/types.d.ts +0 -51
- package/dist/markdown/rendering/types.js +0 -8
- package/dist/markdown/rendering/worker-dom-shim.d.ts +0 -87
- package/dist/markdown/rendering/worker-dom-shim.js +0 -50
- package/dist/markdown/utilities/safe-url.d.ts +0 -100
- package/dist/markdown/utilities/safe-url.js +0 -236
- package/dist/markdown/utilities/sort-keys.d.ts +0 -19
- package/dist/markdown/utilities/sort-keys.js +0 -33
- package/dist/server/commentary/anchor-decorations.js +0 -490
- package/dist/server/commentary/anchoring.js +0 -157
- package/dist/server/commentary/comments/index.js +0 -14
- package/dist/server/commentary/comments/mentions.js +0 -65
- package/dist/server/commentary/comments/reanchor.js +0 -220
- package/dist/server/commentary/comments/types.js +0 -83
- package/dist/server/commentary/comments/updates.js +0 -226
- package/dist/server/commentary/export/comments-export.js +0 -258
- package/dist/server/commentary/export/index.js +0 -12
- package/dist/server/commentary/export/markdown-summary.js +0 -218
- package/dist/server/commentary/export/types.js +0 -7
- package/dist/server/commentary/export/unified-diff.js +0 -250
- package/dist/server/commentary/index.js +0 -6
- package/dist/server/commentary/session/index.js +0 -14
- package/dist/server/commentary/session/persistence.js +0 -253
- package/dist/server/commentary/session/types.js +0 -26
- package/dist/server/commentary/session/updates.js +0 -362
- package/dist/server/commentary/shared/anchor-types.js +0 -9
- package/dist/server/components/diff-viewer/index.js +0 -33
- package/dist/server/components/markdown-editor/index.js +0 -52
- package/dist/server/components/review-editor/index.js +0 -3493
- package/dist/server/diff/index.js +0 -1
- package/dist/server/diff/line-diff.js +0 -372
- package/dist/server/diff/types.js +0 -1
- package/dist/server/editor/attach.js +0 -86
- package/dist/server/editor/bridge.js +0 -260
- package/dist/server/editor/clipboard.js +0 -189
- package/dist/server/editor/commands.js +0 -728
- package/dist/server/editor/component-runtime.js +0 -20
- package/dist/server/editor/editor.js +0 -256
- package/dist/server/editor/index.js +0 -42
- package/dist/server/editor/keymap-plugin.js +0 -157
- package/dist/server/editor/link-input-rule.js +0 -26
- package/dist/server/editor/milkdown-plugin-runtime.js +0 -43
- package/dist/server/editor/placeholder-security.js +0 -36
- package/dist/server/editor/placeholder.js +0 -56
- package/dist/server/editor/sanitize-html.js +0 -111
- package/dist/server/editor/template-completion-plugin.js +0 -615
- package/dist/server/editor/template-invalid-decoration-plugin.js +0 -155
- package/dist/server/editor/template-placeholders.js +0 -355
- package/dist/server/editor/template-position-utilities.js +0 -63
- package/dist/server/editor/template-render.js +0 -45
- package/dist/server/editor/test-utilities.js +0 -93
- package/dist/server/editor/types.js +0 -8
- package/dist/server/index.server-25wmev4e.js +0 -2
- package/dist/server/index.server-2c56kqws.js +0 -187
- package/dist/server/index.server-45n4s30n.js +0 -35
- package/dist/server/index.server-4jkqgp17.js +0 -1026
- package/dist/server/index.server-8nm871y8.js +0 -176
- package/dist/server/index.server-d04aj37r.js +0 -62
- package/dist/server/index.server-dg19y3m7.js +0 -9
- package/dist/server/index.server-g3726bja.js +0 -9
- package/dist/server/index.server-gyzmkrnz.js +0 -2
- package/dist/server/index.server-jp19145t.js +0 -9
- package/dist/server/index.server-n4jxy52q.js +0 -2
- package/dist/server/index.server-sghkqw5x.js +0 -421
- package/dist/server/index.server-w6am2dxc.js +0 -12
- package/dist/server/index.server-x66zvjfc.js +0 -1163
- package/dist/server/index.server-zdhv33ph.js +0 -124
- package/dist/server/index.server-zke5zt13.js +0 -9
- package/dist/server/markdown/diff/compute.js +0 -250
- package/dist/server/markdown/diff/frontmatter.js +0 -135
- package/dist/server/markdown/diff/index.js +0 -28
- package/dist/server/markdown/diff/line-diff.js +0 -1
- package/dist/server/markdown/diff/positions.js +0 -147
- package/dist/server/markdown/diff/types.js +0 -7
- package/dist/server/markdown/index.js +0 -8
- package/dist/server/markdown/pipeline/ast.js +0 -417
- package/dist/server/markdown/pipeline/errors.js +0 -49
- package/dist/server/markdown/pipeline/frontmatter.js +0 -438
- package/dist/server/markdown/pipeline/index.js +0 -40
- package/dist/server/markdown/pipeline/parser.js +0 -106
- package/dist/server/markdown/pipeline/serializer.js +0 -78
- package/dist/server/markdown/pipeline/strip-positions.js +0 -28
- package/dist/server/markdown/pipeline/types.js +0 -8
- package/dist/server/markdown/rendering/extract-code-blocks.js +0 -27
- package/dist/server/markdown/rendering/highlighter.js +0 -251
- package/dist/server/markdown/rendering/index.js +0 -46
- package/dist/server/markdown/rendering/mermaid-cache.js +0 -123
- package/dist/server/markdown/rendering/rehype-shiki-sync.js +0 -354
- package/dist/server/markdown/rendering/render-async.js +0 -114
- package/dist/server/markdown/rendering/render-streaming.js +0 -123
- package/dist/server/markdown/rendering/render-worker.js +0 -35
- package/dist/server/markdown/rendering/render.js +0 -477
- package/dist/server/markdown/rendering/sanitize-schema.js +0 -105
- package/dist/server/markdown/rendering/transform-urls.js +0 -51
- package/dist/server/markdown/rendering/types.js +0 -8
- package/dist/server/markdown/rendering/worker-dom-shim.js +0 -50
- package/dist/server/markdown/utilities/safe-url.js +0 -236
- package/dist/server/markdown/utilities/sort-keys.js +0 -33
- package/src/components/diff-viewer/diff-controller.svelte.ts +0 -250
- package/src/components/diff-viewer/diff-front-matter.svelte +0 -52
- package/src/components/diff-viewer/diff-line.svelte +0 -340
- package/src/components/diff-viewer/diff-summary-bar.svelte +0 -106
- package/src/components/diff-viewer/diff-toolbar.svelte +0 -182
- package/src/components/diff-viewer/diff-viewer.examples.json +0 -25
- package/src/components/diff-viewer/diff-viewer.schema.json +0 -61
- package/src/components/diff-viewer/diff-viewer.schema.ts +0 -70
- package/src/components/diff-viewer/diff-viewer.svelte +0 -400
- package/src/components/diff-viewer/diff-viewer.types.ts +0 -56
- package/src/components/diff-viewer/front-matter-header.svelte +0 -137
- package/src/components/diff-viewer/index.ts +0 -5
- package/src/components/markdown-editor/editor-skeleton.svelte +0 -85
- package/src/components/markdown-editor/editor-toolbar/editor-toolbar.svelte +0 -318
- package/src/components/markdown-editor/editor-toolbar/index.ts +0 -18
- package/src/components/markdown-editor/editor-toolbar/link-popover.svelte +0 -314
- package/src/components/markdown-editor/editor-toolbar/toolbar-button.svelte +0 -97
- package/src/components/markdown-editor/editor-toolbar/toolbar-dropdown.svelte +0 -106
- package/src/components/markdown-editor/editor-toolbar/toolbar-separator.svelte +0 -30
- package/src/components/markdown-editor/editor-toolbar/types.ts +0 -15
- package/src/components/markdown-editor/index.ts +0 -10
- package/src/components/markdown-editor/markdown-editor.examples.json +0 -19
- package/src/components/markdown-editor/markdown-editor.schema.json +0 -111
- package/src/components/markdown-editor/markdown-editor.schema.ts +0 -122
- package/src/components/markdown-editor/markdown-editor.svelte +0 -872
- package/src/components/markdown-editor/markdown-editor.types.ts +0 -124
- package/src/components/markdown-editor/markdown-editor.variables.json +0 -1
- package/src/components/markdown-editor/markdown-editor.variables.ts +0 -3
- package/src/components/markdown-editor/prosemirror.css +0 -76
- package/src/components/review-editor/comment-composer.svelte +0 -271
- package/src/components/review-editor/comment-list.svelte +0 -311
- package/src/components/review-editor/comment-sidebar.svelte +0 -449
- package/src/components/review-editor/export-actions.svelte +0 -188
- package/src/components/review-editor/focus-navigation.ts +0 -220
- package/src/components/review-editor/front-matter-fields.svelte +0 -159
- package/src/components/review-editor/index.ts +0 -59
- package/src/components/review-editor/live-region.svelte +0 -109
- package/src/components/review-editor/review-editor-anchors.svelte.ts +0 -219
- package/src/components/review-editor/review-editor-controls.svelte +0 -201
- package/src/components/review-editor/review-editor-exports.ts +0 -145
- package/src/components/review-editor/review-editor-front-matter.ts +0 -237
- package/src/components/review-editor/review-editor-impl.svelte +0 -1509
- package/src/components/review-editor/review-editor-selection-geometry.ts +0 -31
- package/src/components/review-editor/review-editor-selection-types.ts +0 -68
- package/src/components/review-editor/review-editor-selection.svelte.ts +0 -292
- package/src/components/review-editor/review-editor-state.svelte.ts +0 -117
- package/src/components/review-editor/review-editor-threads.svelte.ts +0 -435
- package/src/components/review-editor/review-editor.css +0 -273
- package/src/components/review-editor/review-editor.examples.json +0 -19
- package/src/components/review-editor/review-editor.schema.json +0 -83
- package/src/components/review-editor/review-editor.schema.ts +0 -88
- package/src/components/review-editor/review-editor.svelte +0 -18
- package/src/components/review-editor/review-editor.types.ts +0 -92
- package/src/components/review-editor/review-editor.variables.json +0 -1
- package/src/components/review-editor/review-editor.variables.ts +0 -3
- package/src/components/review-editor/thread-popover.svelte +0 -261
- /package/dist/components/{review-editor/review-editor.css.d.ts → json-editor/json-editor.css.d.ts} +0 -0
- /package/dist/components/{diff-viewer/diff-viewer.schema.d.ts → json-editor/json-editor.schema.d.ts} +0 -0
- /package/dist/components/{diff-viewer/diff-viewer.variables.d.ts → json-editor/json-editor.variables.d.ts} +0 -0
- /package/src/components/{diff-viewer/diff-viewer.variables.json → json-editor/json-editor.variables.json} +0 -0
- /package/src/components/{diff-viewer/diff-viewer.variables.ts → json-editor/json-editor.variables.ts} +0 -0
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
"properties": {
|
|
5
5
|
"collapsed": {
|
|
6
6
|
"type": "boolean",
|
|
7
|
-
"description": "Whether the sidebar is collapsed. Bindable via `bind:collapsed`. Default `false`.\n\
|
|
7
|
+
"description": "Whether the sidebar is collapsed. Bindable via `bind:collapsed`. Default `false`.\n\nAbove `mobileBreakpoint`, `collapsed=true` switches the sidebar to\nicon-only mode. At or below `mobileBreakpoint`, the sidebar renders inside a\n`<Drawer>` and `collapsed=true` means the drawer is closed."
|
|
8
8
|
},
|
|
9
9
|
"label": {
|
|
10
10
|
"type": "string",
|
|
11
|
-
"description": "Accessible name for the outer landmark and the mobile drawer.
|
|
11
|
+
"description": "Accessible name for the outer landmark and the mobile drawer. Defaults to\n`'Sidebar'` for convenience but must be unique per page. Navigation content\nowns its own accessible name; for example, use `SideNavigation.ariaLabel`."
|
|
12
|
+
},
|
|
13
|
+
"mobileBreakpoint": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Viewport width below which the sidebar switches from the inline aside to\nthe mobile drawer. Accepts a simple CSS length such as `'47.99rem'` or\n`'1024px'`. Default `'47.99rem'`."
|
|
12
16
|
},
|
|
13
17
|
"class": {
|
|
14
18
|
"type": "string",
|
|
@@ -18,11 +22,6 @@
|
|
|
18
22
|
"additionalProperties": false,
|
|
19
23
|
"metadata": {
|
|
20
24
|
"unsupportedProps": [
|
|
21
|
-
{
|
|
22
|
-
"name": "brand",
|
|
23
|
-
"reason": "function-or-snippet",
|
|
24
|
-
"description": "Optional branding region rendered above the navigation."
|
|
25
|
-
},
|
|
26
25
|
{
|
|
27
26
|
"name": "footer",
|
|
28
27
|
"reason": "function-or-snippet",
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
{
|
|
32
31
|
"name": "navigation",
|
|
33
32
|
"reason": "function-or-snippet",
|
|
34
|
-
"description": "Navigation
|
|
33
|
+
"description": "Navigation content. Typically a `<SideNavigation>` subtree, which owns the\nnavigation landmark and its accessible name. Optional so the sidebar can\nserve as app chrome without a navigation list."
|
|
35
34
|
}
|
|
36
35
|
]
|
|
37
36
|
}
|
|
@@ -7,12 +7,17 @@ const schema = {
|
|
|
7
7
|
collapsed: {
|
|
8
8
|
type: 'boolean',
|
|
9
9
|
description:
|
|
10
|
-
'Whether the sidebar is collapsed. Bindable via `bind:collapsed`. Default `false`.\n\
|
|
10
|
+
'Whether the sidebar is collapsed. Bindable via `bind:collapsed`. Default `false`.\n\nAbove `mobileBreakpoint`, `collapsed=true` switches the sidebar to\nicon-only mode. At or below `mobileBreakpoint`, the sidebar renders inside a\n`<Drawer>` and `collapsed=true` means the drawer is closed.',
|
|
11
11
|
},
|
|
12
12
|
label: {
|
|
13
13
|
type: 'string',
|
|
14
14
|
description:
|
|
15
|
-
"Accessible name for the outer landmark and the mobile drawer.
|
|
15
|
+
"Accessible name for the outer landmark and the mobile drawer. Defaults to\n`'Sidebar'` for convenience but must be unique per page. Navigation content\nowns its own accessible name; for example, use `SideNavigation.ariaLabel`.",
|
|
16
|
+
},
|
|
17
|
+
mobileBreakpoint: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
description:
|
|
20
|
+
"Viewport width below which the sidebar switches from the inline aside to\nthe mobile drawer. Accepts a simple CSS length such as `'47.99rem'` or\n`'1024px'`. Default `'47.99rem'`.",
|
|
16
21
|
},
|
|
17
22
|
class: {
|
|
18
23
|
type: 'string',
|
|
@@ -22,11 +27,6 @@ const schema = {
|
|
|
22
27
|
additionalProperties: false,
|
|
23
28
|
metadata: {
|
|
24
29
|
unsupportedProps: [
|
|
25
|
-
{
|
|
26
|
-
name: 'brand',
|
|
27
|
-
reason: 'function-or-snippet',
|
|
28
|
-
description: 'Optional branding region rendered above the navigation.',
|
|
29
|
-
},
|
|
30
30
|
{
|
|
31
31
|
name: 'footer',
|
|
32
32
|
reason: 'function-or-snippet',
|
|
@@ -36,7 +36,7 @@ const schema = {
|
|
|
36
36
|
name: 'navigation',
|
|
37
37
|
reason: 'function-or-snippet',
|
|
38
38
|
description:
|
|
39
|
-
|
|
39
|
+
'Navigation content. Typically a `<SideNavigation>` subtree, which owns the\nnavigation landmark and its accessible name. Optional so the sidebar can\nserve as app chrome without a navigation list.',
|
|
40
40
|
},
|
|
41
41
|
],
|
|
42
42
|
},
|
|
@@ -3,54 +3,80 @@ export {};
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<script lang="ts">
|
|
6
|
-
import { MediaQuery } from 'svelte/reactivity';
|
|
7
6
|
import { setSidebarContext } from '../../_internal/sidebar-context.ts';
|
|
8
7
|
import { classNames } from '../../utilities/class-names.ts';
|
|
9
8
|
import Drawer from '../drawer/drawer.svelte';
|
|
10
|
-
import {
|
|
11
|
-
let { id: sidebarId, collapsed = $bindable(false), label = 'Sidebar',
|
|
9
|
+
import { SIDEBAR_MOBILE_BREAKPOINT } from './sidebar.constants.ts';
|
|
10
|
+
let { id: sidebarId, collapsed = $bindable(false), label = 'Sidebar', mobileBreakpoint = SIDEBAR_MOBILE_BREAKPOINT, class: className, navigation: navigationSnippet, footer: footerSnippet, 'aria-label': _ariaLabelAttribute, 'aria-labelledby': _ariaLabelledbyAttribute, ...rest } = $props();
|
|
12
11
|
const validatedLabel = $derived.by(() => {
|
|
13
12
|
if (label.trim() === '') {
|
|
14
13
|
throw new Error('Sidebar requires a non-empty label.');
|
|
15
14
|
}
|
|
16
15
|
return label;
|
|
17
16
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
const validatedMobileBreakpoint = $derived.by(() => {
|
|
18
|
+
if (typeof mobileBreakpoint !== 'string') {
|
|
19
|
+
throw new Error('Sidebar mobileBreakpoint must be a CSS length such as "47.99rem".');
|
|
20
|
+
}
|
|
21
|
+
const value = mobileBreakpoint.trim();
|
|
22
|
+
if (!isSimpleCssLength(value)) {
|
|
23
|
+
throw new Error('Sidebar mobileBreakpoint must be a CSS length such as "47.99rem".');
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
26
|
+
});
|
|
27
|
+
const mobileMediaQuery = $derived(`(max-width: ${validatedMobileBreakpoint})`);
|
|
28
|
+
const responsiveFallbackCss = $derived(`@media (max-width: ${validatedMobileBreakpoint}) { .cinder-sidebar--desktop[data-cinder-sidebar-mobile-breakpoint="${validatedMobileBreakpoint}"][data-cinder-ssr-mobile-fallback], .cinder-sidebar--desktop[data-cinder-sidebar-mobile-breakpoint="${validatedMobileBreakpoint}"][data-cinder-collapsed] { display: none; } }`);
|
|
22
29
|
// The fully-parenthesized form is required — `window.matchMedia` rejects
|
|
23
30
|
// bare media feature expressions on Firefox and Safari.
|
|
24
|
-
// Keep the fallback explicit for SSR-contract test environments
|
|
25
|
-
//
|
|
31
|
+
// Keep the fallback explicit for SSR-contract test environments where
|
|
32
|
+
// `window.matchMedia` is unavailable.
|
|
26
33
|
const hasMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia === 'function';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
let syncedMobileMediaQuery = $state(false);
|
|
35
|
+
let mobile = $state(false);
|
|
36
|
+
$effect(() => {
|
|
37
|
+
if (!hasMatchMedia)
|
|
38
|
+
return undefined;
|
|
39
|
+
const list = window.matchMedia(mobileMediaQuery);
|
|
40
|
+
const update = () => {
|
|
41
|
+
mobile = list.matches;
|
|
42
|
+
syncedMobileMediaQuery = true;
|
|
43
|
+
};
|
|
44
|
+
update();
|
|
45
|
+
if (typeof list.addEventListener === 'function') {
|
|
46
|
+
list.addEventListener('change', update);
|
|
47
|
+
return () => {
|
|
48
|
+
list.removeEventListener('change', update);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (typeof list.addListener === 'function') {
|
|
52
|
+
list.addListener(update);
|
|
53
|
+
return () => {
|
|
54
|
+
list.removeListener(update);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return undefined;
|
|
58
|
+
});
|
|
59
|
+
const usesSsrResponsiveFallback = $derived(!syncedMobileMediaQuery);
|
|
60
|
+
const rendersCustomResponsiveFallbackStyle = $derived(usesSsrResponsiveFallback && validatedMobileBreakpoint !== SIDEBAR_MOBILE_BREAKPOINT);
|
|
31
61
|
const context = {
|
|
32
62
|
get collapsed() {
|
|
33
63
|
return collapsed;
|
|
34
64
|
},
|
|
35
65
|
};
|
|
36
66
|
setSidebarContext(context);
|
|
67
|
+
function isSimpleCssLength(value) {
|
|
68
|
+
return /^(?:0|(?:\d+|\d*\.\d+)(?:px|rem|em|ch|vw|vh|vmin|vmax|svw|svh|lvw|lvh|dvw|dvh|cqw|cqh|cqi|cqb|cqmin|cqmax))$/.test(value.trim());
|
|
69
|
+
}
|
|
37
70
|
</script>
|
|
38
71
|
|
|
39
72
|
{#snippet sidebarContents(isMobile: boolean)}
|
|
40
|
-
{#if brandSnippet}
|
|
41
|
-
<div class="cinder-sidebar__brand">
|
|
42
|
-
{@render brandSnippet()}
|
|
43
|
-
</div>
|
|
44
|
-
{/if}
|
|
45
|
-
|
|
46
73
|
{#if navigationSnippet}
|
|
47
|
-
<!--
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<nav class="cinder-sidebar__nav" aria-label={navigationLabel}>
|
|
74
|
+
<!-- SideNavigation owns the navigation landmark and its accessible name.
|
|
75
|
+
This wrapper is structural so the documented composition never nests
|
|
76
|
+
one navigation landmark inside another. -->
|
|
77
|
+
<div class="cinder-sidebar__nav">
|
|
52
78
|
{@render navigationSnippet()}
|
|
53
|
-
</
|
|
79
|
+
</div>
|
|
54
80
|
{/if}
|
|
55
81
|
|
|
56
82
|
{#if footerSnippet}
|
|
@@ -60,7 +86,13 @@ setSidebarContext(context);
|
|
|
60
86
|
{/if}
|
|
61
87
|
{/snippet}
|
|
62
88
|
|
|
63
|
-
{#if
|
|
89
|
+
{#if rendersCustomResponsiveFallbackStyle}
|
|
90
|
+
<svelte:element this={'style'} data-cinder-sidebar-breakpoint-style>
|
|
91
|
+
{responsiveFallbackCss}
|
|
92
|
+
</svelte:element>
|
|
93
|
+
{/if}
|
|
94
|
+
|
|
95
|
+
{#if mobile}
|
|
64
96
|
<Drawer
|
|
65
97
|
{...rest}
|
|
66
98
|
bind:open={
|
|
@@ -74,7 +106,11 @@ setSidebarContext(context);
|
|
|
74
106
|
title={validatedLabel}
|
|
75
107
|
id={sidebarId}
|
|
76
108
|
>
|
|
77
|
-
<div
|
|
109
|
+
<div
|
|
110
|
+
class={classNames('cinder-sidebar', 'cinder-sidebar--mobile', className)}
|
|
111
|
+
data-cinder-sidebar-mobile-breakpoint={validatedMobileBreakpoint}
|
|
112
|
+
style:--cinder-sidebar-mobile-breakpoint={validatedMobileBreakpoint}
|
|
113
|
+
>
|
|
78
114
|
{@render sidebarContents(true)}
|
|
79
115
|
</div>
|
|
80
116
|
</Drawer>
|
|
@@ -84,8 +120,10 @@ setSidebarContext(context);
|
|
|
84
120
|
{...rest}
|
|
85
121
|
class={classNames('cinder-sidebar', 'cinder-sidebar--desktop', className)}
|
|
86
122
|
aria-label={validatedLabel}
|
|
123
|
+
data-cinder-sidebar-mobile-breakpoint={validatedMobileBreakpoint}
|
|
87
124
|
data-cinder-collapsed={collapsed ? '' : undefined}
|
|
88
125
|
data-cinder-ssr-mobile-fallback={usesSsrResponsiveFallback ? '' : undefined}
|
|
126
|
+
style:--cinder-sidebar-mobile-breakpoint={validatedMobileBreakpoint}
|
|
89
127
|
>
|
|
90
128
|
{@render sidebarContents(false)}
|
|
91
129
|
</aside>
|
|
@@ -8,27 +8,29 @@ export type SidebarProps = Omit<
|
|
|
8
8
|
/**
|
|
9
9
|
* Whether the sidebar is collapsed. Bindable via `bind:collapsed`. Default `false`.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
* icon-only mode.
|
|
11
|
+
* Above `mobileBreakpoint`, `collapsed=true` switches the sidebar to
|
|
12
|
+
* icon-only mode. At or below `mobileBreakpoint`, the sidebar renders inside a
|
|
13
13
|
* `<Drawer>` and `collapsed=true` means the drawer is closed.
|
|
14
14
|
*/
|
|
15
15
|
collapsed?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* Accessible name for the outer landmark and the mobile drawer.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* by appending `' navigation'` so screen readers can distinguish the
|
|
21
|
-
* outer complementary region from the inner navigation region.
|
|
17
|
+
* Accessible name for the outer landmark and the mobile drawer. Defaults to
|
|
18
|
+
* `'Sidebar'` for convenience but must be unique per page. Navigation content
|
|
19
|
+
* owns its own accessible name; for example, use `SideNavigation.ariaLabel`.
|
|
22
20
|
*/
|
|
23
21
|
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Viewport width below which the sidebar switches from the inline aside to
|
|
24
|
+
* the mobile drawer. Accepts a simple CSS length such as `'47.99rem'` or
|
|
25
|
+
* `'1024px'`. Default `'47.99rem'`.
|
|
26
|
+
*/
|
|
27
|
+
mobileBreakpoint?: string;
|
|
24
28
|
/** Additional CSS class merged with `.cinder-sidebar`. */
|
|
25
29
|
class?: string;
|
|
26
|
-
/** Optional branding region rendered above the navigation. */
|
|
27
|
-
brand?: Snippet;
|
|
28
30
|
/**
|
|
29
|
-
* Navigation
|
|
30
|
-
*
|
|
31
|
-
* without a navigation list
|
|
31
|
+
* Navigation content. Typically a `<SideNavigation>` subtree, which owns the
|
|
32
|
+
* navigation landmark and its accessible name. Optional so the sidebar can
|
|
33
|
+
* serve as app chrome without a navigation list.
|
|
32
34
|
*/
|
|
33
35
|
navigation?: Snippet;
|
|
34
36
|
/** Optional footer region (e.g. user account, sign-out). */
|
|
@@ -67,8 +67,10 @@
|
|
|
67
67
|
cursor: pointer;
|
|
68
68
|
position: relative;
|
|
69
69
|
display: inline-flex;
|
|
70
|
+
flex-shrink: 0;
|
|
70
71
|
align-items: center;
|
|
71
72
|
gap: var(--cinder-space-2);
|
|
73
|
+
white-space: nowrap;
|
|
72
74
|
border-radius: var(--cinder-radius-sm) var(--cinder-radius-sm) 0 0;
|
|
73
75
|
transition:
|
|
74
76
|
color var(--cinder-duration-fast) var(--cinder-ease-standard),
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
z-index: var(--cinder-z-toast);
|
|
16
16
|
pointer-events: none;
|
|
17
17
|
/* Stack the two aria-live channels in the same visual column. Each channel
|
|
18
|
-
* is independent — a polite
|
|
18
|
+
* is independent — a polite warning and an assertive danger toast may sit
|
|
19
19
|
* side-by-side visually but route to different SR-announcement queues. */
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
{
|
|
73
73
|
"id": "variants",
|
|
74
74
|
"title": "All four variants",
|
|
75
|
-
"description": "info and
|
|
75
|
+
"description": "info, success, and warning route to the polite (status) region; danger routes to the assertive (alert) region.",
|
|
76
76
|
"code": "<script lang=\"ts\">\n import { Button } from '@lostgradient/cinder/button';\n import { ToastRegion, useToast } from '@lostgradient/cinder/toast-region';\n</script>\n\n<ToastRegion>\n {#snippet children()}\n {@const toast = useToast()}\n <div class=\"example-preview-row\">\n <Button\n label=\"Info\"\n onclick={() => toast.show('A new version is available.', { variant: 'info' })}\n />\n <Button\n label=\"Success\"\n onclick={() => toast.show('Saved your changes.', { variant: 'success' })}\n />\n <Button\n variant=\"secondary\"\n label=\"Warning\"\n onclick={() => toast.show('Your session expires in 5 minutes.', { variant: 'warning' })}\n />\n <Button\n variant=\"danger\"\n label=\"Danger\"\n onclick={() => toast.show('Failed to save your changes.', { variant: 'danger' })}\n />\n </div>\n {/snippet}\n</ToastRegion>\n"
|
|
77
77
|
}
|
|
78
78
|
]
|
|
@@ -18,7 +18,7 @@ let hydrated = $state(false);
|
|
|
18
18
|
$effect(() => {
|
|
19
19
|
hydrated = true;
|
|
20
20
|
});
|
|
21
|
-
// Two regions, two stacks. Polite for
|
|
21
|
+
// Two regions, two stacks. Polite for non-urgent feedback; assertive for danger.
|
|
22
22
|
let politeStack = $state([]);
|
|
23
23
|
let assertiveStack = $state([]);
|
|
24
24
|
// Track auto-dismiss timers so we can cancel on dismiss / unmount.
|
|
@@ -34,7 +34,7 @@ let releaseFocusedToastEscape = null;
|
|
|
34
34
|
let returnFocusElement = null;
|
|
35
35
|
let generationCounter = 0;
|
|
36
36
|
function isPolite(variant) {
|
|
37
|
-
return variant === 'info' || variant === 'success';
|
|
37
|
+
return variant === 'info' || variant === 'success' || variant === 'warning';
|
|
38
38
|
}
|
|
39
39
|
function getCurrentStack(variant) {
|
|
40
40
|
return isPolite(variant) ? politeStack : assertiveStack;
|
|
@@ -19,8 +19,33 @@
|
|
|
19
19
|
* The factory is synchronous. Shiki itself is imported lazily on the first
|
|
20
20
|
* highlight call inside the returned function — consumers that never invoke
|
|
21
21
|
* the highlighter (or that never import this module) ship zero Shiki bytes
|
|
22
|
-
* in their entry chunk. Subsequent calls reuse the singleton
|
|
23
|
-
*
|
|
22
|
+
* in their entry chunk. Subsequent calls reuse the singleton highlighter
|
|
23
|
+
* instance.
|
|
24
|
+
*
|
|
25
|
+
* Why this builds on `shiki/core` + `@shikijs/engine-oniguruma` rather than
|
|
26
|
+
* `import { createHighlighter } from 'shiki'` (see
|
|
27
|
+
* `packages/markdown/src/rendering/highlighter.ts` for the sibling adapter
|
|
28
|
+
* that established this pattern, and `docs/decisions/package-boundaries.md`
|
|
29
|
+
* for the ~10 MB measurement this converges on): the default `shiki` entry
|
|
30
|
+
* resolves to `bundle-full.mjs`, which statically references every bundled
|
|
31
|
+
* grammar and theme in one module. For a build that bundles that module with
|
|
32
|
+
* `splitting: false` — which is exactly how `scripts/build.ts` builds this
|
|
33
|
+
* adapter — every grammar and theme gets inlined into a single output file,
|
|
34
|
+
* regardless of which language is ever highlighted. `shiki` was already kept
|
|
35
|
+
* external in that build (so this specific file never actually shipped that
|
|
36
|
+
* weight), but the risk was one dependency-externals edit away from landing
|
|
37
|
+
* back in cinder's own published dist. `shiki/langs` and `shiki/themes`
|
|
38
|
+
* expose the same per-language and per-theme lookup tables `shiki`
|
|
39
|
+
* re-exports, but as standalone modules (metadata plus a lazy
|
|
40
|
+
* `() => import('@shikijs/langs/…')` per entry) that pull in no theme, wasm,
|
|
41
|
+
* or highlighter-construction code — so `scripts/build.ts` only needs to
|
|
42
|
+
* externalize `shiki/*` and `@shikijs/engine-oniguruma` (see its
|
|
43
|
+
* `runtimeDependencyExternals`) to keep every one of those per-language/
|
|
44
|
+
* per-theme dynamic imports lazy, exactly like the sibling markdown adapter.
|
|
45
|
+
* Downstream, a consumer's own bundler resolves and splits those imports the
|
|
46
|
+
* same way it already did for the old `shiki`-based version — this change
|
|
47
|
+
* does not reduce what a consumer app ships; it converges the pattern with
|
|
48
|
+
* `packages/markdown` and closes the build-time regression risk above.
|
|
24
49
|
*
|
|
25
50
|
* Behavior contract (matches the {@link Highlighter} type in
|
|
26
51
|
* `@lostgradient/cinder/utilities/highlighter`):
|
|
@@ -45,6 +70,12 @@
|
|
|
45
70
|
* `{@html}` injection is safe for both branches.
|
|
46
71
|
*/
|
|
47
72
|
|
|
73
|
+
import type {
|
|
74
|
+
DynamicImportLanguageRegistration,
|
|
75
|
+
DynamicImportThemeRegistration,
|
|
76
|
+
HighlighterCore,
|
|
77
|
+
} from '@shikijs/types';
|
|
78
|
+
|
|
48
79
|
import type { Highlighter } from '../../utilities/highlighter.ts';
|
|
49
80
|
import { createRetryingLoaderCache } from '../../utilities/retrying-loader-cache.ts';
|
|
50
81
|
import { stripRootPreTabIndex } from './strip-root-pre-tab-index.ts';
|
|
@@ -109,16 +140,119 @@ function plaintextBlock(code: string): string {
|
|
|
109
140
|
return `<pre class="shiki shiki-plaintext"><code>${escapeHtml(code)}</code></pre>`;
|
|
110
141
|
}
|
|
111
142
|
|
|
112
|
-
|
|
113
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Widened to a plain string index (rather than `typeof import('shiki/langs')
|
|
145
|
+
* .bundledLanguages`, whose keys are a closed literal union) because lookups
|
|
146
|
+
* here are keyed by a `lang`/theme name string that is only known to be a
|
|
147
|
+
* member of that union after a runtime `Object.hasOwn` check.
|
|
148
|
+
*/
|
|
149
|
+
type BundledLanguages = Record<string, DynamicImportLanguageRegistration>;
|
|
150
|
+
type BundledThemes = Record<string, DynamicImportThemeRegistration>;
|
|
114
151
|
|
|
115
152
|
type ShikiModule = {
|
|
116
|
-
|
|
153
|
+
highlighter: HighlighterCore;
|
|
117
154
|
bundledLanguages: BundledLanguages;
|
|
155
|
+
bundledThemes: BundledThemes;
|
|
156
|
+
/**
|
|
157
|
+
* Shiki's heuristic embedded-language detector (fenced code inside
|
|
158
|
+
* Markdown, `<script lang="...">` inside Svelte/Vue/HTML, etc.) — the same
|
|
159
|
+
* function the previous singleton `codeToHtml` shorthand used to auto-load
|
|
160
|
+
* nested grammars. Threaded through here (rather than imported separately
|
|
161
|
+
* in `highlight()`) so injected test loaders can opt out without needing
|
|
162
|
+
* their own `shiki/core` import.
|
|
163
|
+
*/
|
|
164
|
+
guessEmbeddedLanguages: (code: string, lang: string) => string[];
|
|
118
165
|
};
|
|
119
166
|
|
|
120
167
|
type ShikiModuleLoader = () => Promise<ShikiModule>;
|
|
121
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Load (if not already loaded) the grammar registered under `lang` — a
|
|
171
|
+
* canonical Shiki language id or one of its native aliases, both of which
|
|
172
|
+
* are keys of `bundledLanguages`. `HighlighterCore.loadLanguage` is safe to
|
|
173
|
+
* call repeatedly for a language it already holds — the dynamic `import()`
|
|
174
|
+
* resolves from the module cache and re-registering is a cheap map write —
|
|
175
|
+
* so callers don't need to track what has already been loaded.
|
|
176
|
+
*/
|
|
177
|
+
async function ensureLanguageLoaded(shiki: ShikiModule, lang: string): Promise<void> {
|
|
178
|
+
const load = shiki.bundledLanguages[lang];
|
|
179
|
+
if (!load) throw new Error(`Language "${lang}" is not bundled with Shiki.`);
|
|
180
|
+
await shiki.highlighter.loadLanguage(load);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** Load (if not already loaded) every theme named by `theme`. */
|
|
184
|
+
async function ensureThemesLoaded(
|
|
185
|
+
shiki: ShikiModule,
|
|
186
|
+
theme: string | { light: string; dark: string },
|
|
187
|
+
): Promise<void> {
|
|
188
|
+
const names = typeof theme === 'string' ? [theme] : [theme.light, theme.dark];
|
|
189
|
+
for (const name of names) {
|
|
190
|
+
const load = shiki.bundledThemes[name];
|
|
191
|
+
if (!load) throw new Error(`Theme "${name}" is not bundled with Shiki.`);
|
|
192
|
+
await shiki.highlighter.loadTheme(load);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Best-effort load of any languages `guessEmbeddedLanguages` finds embedded
|
|
198
|
+
* in `code` (fenced code blocks inside Markdown, `<script lang="...">` inside
|
|
199
|
+
* Svelte/Vue/HTML, etc.) — mirrors the auto-load behavior Shiki's own
|
|
200
|
+
* singleton `codeToHtml` shorthand provided. A guess that doesn't name a
|
|
201
|
+
* real Shiki language, or that fails to load, is swallowed: it only affects
|
|
202
|
+
* whether nested regions get highlighted, never whether the top-level
|
|
203
|
+
* `normalizedLang` result renders.
|
|
204
|
+
*/
|
|
205
|
+
async function loadGuessedEmbeddedLanguages(
|
|
206
|
+
shiki: ShikiModule,
|
|
207
|
+
code: string,
|
|
208
|
+
lang: string,
|
|
209
|
+
): Promise<void> {
|
|
210
|
+
for (const guessed of shiki.guessEmbeddedLanguages(code, lang)) {
|
|
211
|
+
if (!Object.hasOwn(shiki.bundledLanguages, guessed)) continue;
|
|
212
|
+
try {
|
|
213
|
+
await ensureLanguageLoaded(shiki, guessed);
|
|
214
|
+
} catch {
|
|
215
|
+
// Best-effort — an embedded grammar that fails to load only costs
|
|
216
|
+
// that nested region its highlighting, not the whole block.
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The `HighlighterCore` (and its Oniguruma/WASM engine) is expensive to
|
|
223
|
+
* build and safe to share: language and theme registries only grow, so
|
|
224
|
+
* every `shikiHighlighter()` instance that uses the default loader shares
|
|
225
|
+
* one process-wide instance rather than each paying for its own WASM
|
|
226
|
+
* engine and re-fetching grammars/themes another instance already loaded —
|
|
227
|
+
* matching the sharing the previous singleton-based `shiki` shorthand gave
|
|
228
|
+
* for free. A `moduleLoader` passed in for testing bypasses this cache
|
|
229
|
+
* entirely (see `shikiHighlighter`'s second parameter).
|
|
230
|
+
*/
|
|
231
|
+
let sharedShikiModule: (() => Promise<ShikiModule>) | undefined;
|
|
232
|
+
|
|
233
|
+
function getSharedShikiModule(): Promise<ShikiModule> {
|
|
234
|
+
sharedShikiModule ??= createRetryingLoaderCache(async (): Promise<ShikiModule> => {
|
|
235
|
+
const [{ createOnigurumaEngine }, coreModule, langsModule, themesModule] = await Promise.all([
|
|
236
|
+
import('@shikijs/engine-oniguruma'),
|
|
237
|
+
import('shiki/core'),
|
|
238
|
+
import('shiki/langs'),
|
|
239
|
+
import('shiki/themes'),
|
|
240
|
+
]);
|
|
241
|
+
const highlighter = await coreModule.createHighlighterCore({
|
|
242
|
+
themes: [],
|
|
243
|
+
langs: [],
|
|
244
|
+
engine: createOnigurumaEngine(import('shiki/wasm')),
|
|
245
|
+
});
|
|
246
|
+
return {
|
|
247
|
+
highlighter,
|
|
248
|
+
bundledLanguages: langsModule.bundledLanguages,
|
|
249
|
+
bundledThemes: themesModule.bundledThemes,
|
|
250
|
+
guessEmbeddedLanguages: coreModule.guessEmbeddedLanguages,
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
return sharedShikiModule();
|
|
254
|
+
}
|
|
255
|
+
|
|
122
256
|
/**
|
|
123
257
|
* Create a Shiki-backed {@link Highlighter} suitable for
|
|
124
258
|
* `<CodeBlock highlighter={...} />`. See module-level JSDoc for the
|
|
@@ -138,25 +272,28 @@ export function shikiHighlighter(
|
|
|
138
272
|
const loadShiki = createRetryingLoaderCache(
|
|
139
273
|
moduleLoader ??
|
|
140
274
|
(async (): Promise<ShikiModule> => {
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
//
|
|
144
|
-
//
|
|
145
|
-
//
|
|
146
|
-
//
|
|
275
|
+
const shikiModule = await getSharedShikiModule();
|
|
276
|
+
|
|
277
|
+
// Optional preload — if the consumer named specific languages, load
|
|
278
|
+
// the configured theme once and each named language, so Shiki
|
|
279
|
+
// resolves and caches them before the first real call. Failures
|
|
280
|
+
// here are non-fatal; per-call language lookup will still try (and
|
|
281
|
+
// fall back to plaintext on its own miss).
|
|
147
282
|
if (langs !== undefined) {
|
|
283
|
+
try {
|
|
284
|
+
await ensureThemesLoaded(shikiModule, theme);
|
|
285
|
+
} catch {
|
|
286
|
+
// Swallow — the per-call path below logs and falls back.
|
|
287
|
+
}
|
|
148
288
|
for (const lang of langs) {
|
|
149
289
|
try {
|
|
150
|
-
await
|
|
290
|
+
await ensureLanguageLoaded(shikiModule, lang);
|
|
151
291
|
} catch {
|
|
152
292
|
// Swallow — the per-call path below logs and falls back.
|
|
153
293
|
}
|
|
154
294
|
}
|
|
155
295
|
}
|
|
156
|
-
return
|
|
157
|
-
codeToHtml: module_.codeToHtml,
|
|
158
|
-
bundledLanguages: module_.bundledLanguages,
|
|
159
|
-
};
|
|
296
|
+
return shikiModule;
|
|
160
297
|
}),
|
|
161
298
|
);
|
|
162
299
|
|
|
@@ -197,7 +334,10 @@ export function shikiHighlighter(
|
|
|
197
334
|
}
|
|
198
335
|
|
|
199
336
|
try {
|
|
200
|
-
|
|
337
|
+
await ensureLanguageLoaded(shiki, normalizedLang);
|
|
338
|
+
await ensureThemesLoaded(shiki, theme);
|
|
339
|
+
await loadGuessedEmbeddedLanguages(shiki, code, normalizedLang);
|
|
340
|
+
const html = shiki.highlighter.codeToHtml(code, {
|
|
201
341
|
lang: normalizedLang,
|
|
202
342
|
...buildThemeOption(theme),
|
|
203
343
|
});
|
package/src/index.ts
CHANGED
|
@@ -301,13 +301,6 @@ export type {
|
|
|
301
301
|
DiffStatisticsVariant,
|
|
302
302
|
} from './components/diff-statistics/index.ts';
|
|
303
303
|
|
|
304
|
-
export { default as DiffViewer } from './components/diff-viewer/index.ts';
|
|
305
|
-
export type {
|
|
306
|
-
DiffToolbarContext,
|
|
307
|
-
DiffViewerMode,
|
|
308
|
-
DiffViewerProps,
|
|
309
|
-
} from './components/diff-viewer/index.ts';
|
|
310
|
-
|
|
311
304
|
export { default as Divider } from './components/divider/index.ts';
|
|
312
305
|
export type { DividerOrientation, DividerProps, DividerTone } from './components/divider/index.ts';
|
|
313
306
|
|
|
@@ -456,6 +449,9 @@ export type { InputProps, InputType } from './components/input/index.ts';
|
|
|
456
449
|
export { default as InlineLoading } from './components/inline-loading/index.ts';
|
|
457
450
|
export type { InlineLoadingProps, InlineLoadingStatus } from './components/inline-loading/index.ts';
|
|
458
451
|
|
|
452
|
+
export { default as JsonEditor } from './components/json-editor/index.ts';
|
|
453
|
+
export type { JsonEditorProps } from './components/json-editor/index.ts';
|
|
454
|
+
|
|
459
455
|
export { default as JsonSchemaEditor } from './components/json-schema-editor/index.ts';
|
|
460
456
|
export type {
|
|
461
457
|
JsonSchemaDraft,
|
|
@@ -480,6 +476,7 @@ export type {
|
|
|
480
476
|
InvocationRuleBuilderProps,
|
|
481
477
|
InvocationRuleChange,
|
|
482
478
|
InvocationRuleCondition,
|
|
479
|
+
InvocationRuleConditionChange,
|
|
483
480
|
InvocationRuleConditionsOnlyOperator,
|
|
484
481
|
InvocationRuleFieldType,
|
|
485
482
|
InvocationRuleOption,
|
|
@@ -706,6 +703,7 @@ export type {
|
|
|
706
703
|
|
|
707
704
|
export { default as SchemaForm, readSchemaFormData } from './components/schema-form/index.ts';
|
|
708
705
|
export type {
|
|
706
|
+
SchemaFormDraftChangeHandler,
|
|
709
707
|
SchemaFormOutput,
|
|
710
708
|
SchemaFormProps,
|
|
711
709
|
SchemaFormSchema,
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
@import '../components/input/input.css';
|
|
85
85
|
@import '../components/inline-loading/inline-loading.css';
|
|
86
86
|
@import '../components/invocation-rule-builder/invocation-rule-builder.css';
|
|
87
|
+
@import '../components/json-editor/json-editor.css';
|
|
87
88
|
@import './components/json-highlight.css';
|
|
88
89
|
@import '../components/json-schema-editor/json-schema-editor.css';
|
|
89
90
|
@import '../components/json-viewer/json-viewer.css';
|
|
@@ -125,7 +126,6 @@
|
|
|
125
126
|
@import '../components/rating/rating.css';
|
|
126
127
|
@import '../components/resizable-panels/resizable-panels.css';
|
|
127
128
|
@import '../components/run-step-timeline/run-step-timeline.css';
|
|
128
|
-
@import '../components/review-editor/review-editor.css';
|
|
129
129
|
@import '../components/schedule-builder/schedule-builder.css';
|
|
130
130
|
@import '../components/schema-form/schema-form.css';
|
|
131
131
|
@import '../components/scroll-area/scroll-area.css';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This avoids per-keystroke normalize() calls which are expensive for large documents.
|
|
10
10
|
*/
|
|
11
|
-
import { contentEquals, contentEqualsWithFrontMatter
|
|
11
|
+
import { contentEquals, contentEqualsWithFrontMatter } from '@lostgradient/markdown/pipeline';
|
|
12
12
|
/**
|
|
13
13
|
* Fast non-cryptographic hash for change detection.
|
|
14
14
|
* Uses djb2 algorithm - fast and good distribution.
|