@aevantec/litevue 0.6.1 → 0.6.3
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/dist/litevue-devtools.iife.js +1 -1
- package/dist/litevue-devtools.mjs +1 -1
- package/dist/litevue-devtools.umd.js +1 -1
- package/dist/litevue-plugins.dev.iife.js +67 -125
- package/dist/litevue-plugins.dev.mjs +67 -124
- package/dist/litevue-plugins.iife.js +1 -1
- package/dist/litevue-plugins.mjs +1 -1
- package/dist/litevue-plugins.umd.js +1 -1
- package/dist/litevue.dev.iife.js +122 -159
- package/dist/litevue.dev.mjs +122 -158
- package/dist/litevue.iife.js +1 -1
- package/dist/litevue.mjs +1 -1
- package/dist/litevue.umd.js +1 -1
- package/dist/plugins/collapse.iife.js +1 -1
- package/dist/plugins/collapse.mjs +1 -1
- package/dist/plugins/collapse.umd.js +1 -1
- package/dist/plugins/focus.iife.js +1 -1
- package/dist/plugins/focus.mjs +1 -1
- package/dist/plugins/focus.umd.js +1 -1
- package/dist/plugins/intersect.iife.js +1 -1
- package/dist/plugins/intersect.umd.js +1 -1
- package/dist/plugins/mask.iife.js +1 -1
- package/dist/plugins/mask.mjs +1 -1
- package/dist/plugins/mask.umd.js +1 -1
- package/dist/plugins/media.dev.iife.js +5 -39
- package/dist/plugins/media.dev.mjs +5 -38
- package/dist/plugins/media.iife.js +1 -1
- package/dist/plugins/media.mjs +1 -1
- package/dist/plugins/media.umd.js +1 -1
- package/dist/plugins/morph.dev.iife.js +41 -61
- package/dist/plugins/morph.dev.mjs +41 -60
- package/dist/plugins/morph.iife.js +1 -1
- package/dist/plugins/morph.mjs +1 -1
- package/dist/plugins/morph.umd.js +1 -1
- package/dist/plugins/navigate.dev.iife.js +24 -26
- package/dist/plugins/navigate.dev.mjs +24 -25
- package/dist/plugins/navigate.iife.js +1 -1
- package/dist/plugins/navigate.mjs +1 -1
- package/dist/plugins/navigate.umd.js +1 -1
- package/dist/plugins/persist.dev.iife.js +2 -10
- package/dist/plugins/persist.dev.mjs +2 -9
- package/dist/plugins/persist.iife.js +1 -1
- package/dist/plugins/persist.mjs +1 -1
- package/dist/plugins/persist.umd.js +1 -1
- package/dist/plugins/popover.iife.js +1 -1
- package/dist/plugins/popover.mjs +1 -1
- package/dist/plugins/popover.umd.js +1 -1
- package/dist/plugins/resize.iife.js +1 -1
- package/dist/plugins/resize.umd.js +1 -1
- package/dist/plugins/transition.iife.js +1 -1
- package/dist/plugins/transition.mjs +1 -1
- package/dist/plugins/transition.umd.js +1 -1
- package/dist/types/app.d.mts +5 -6
- package/dist/types/app.d.ts +5 -6
- package/dist/types/block.d.mts +0 -4
- package/dist/types/block.d.ts +0 -4
- package/dist/types/context.d.mts +1 -6
- package/dist/types/context.d.ts +1 -6
- package/dist/types/devtools-panel/chrome.d.mts +5 -7
- package/dist/types/devtools-panel/chrome.d.ts +5 -7
- package/dist/types/devtools-panel/menu.d.mts +10 -0
- package/dist/types/devtools-panel/menu.d.ts +10 -0
- package/dist/types/devtools-panel/plugins.d.mts +0 -4
- package/dist/types/devtools-panel/plugins.d.ts +0 -4
- package/dist/types/devtools-panel/styles.d.mts +3 -15
- package/dist/types/devtools-panel/styles.d.ts +3 -15
- package/dist/types/devtools-panel/values.d.mts +1 -20
- package/dist/types/devtools-panel/values.d.ts +1 -20
- package/dist/types/devtools.d.mts +0 -7
- package/dist/types/devtools.d.ts +0 -7
- package/dist/types/directives/on.d.mts +0 -1
- package/dist/types/directives/on.d.ts +0 -1
- package/dist/types/directives/show.d.mts +1 -0
- package/dist/types/directives/show.d.ts +1 -0
- package/dist/types/errors.d.mts +1 -8
- package/dist/types/errors.d.ts +1 -8
- package/dist/types/eval.d.mts +0 -3
- package/dist/types/eval.d.ts +0 -3
- package/dist/types/lazy.d.mts +0 -10
- package/dist/types/lazy.d.ts +0 -10
- package/dist/types/magics.d.mts +0 -9
- package/dist/types/magics.d.ts +0 -9
- package/dist/types/ownership.d.mts +0 -19
- package/dist/types/ownership.d.ts +0 -19
- package/dist/types/plugins/media/index.d.mts +0 -5
- package/dist/types/plugins/media/index.d.ts +0 -5
- package/dist/types/plugins/morph/index.d.mts +0 -8
- package/dist/types/plugins/morph/index.d.ts +0 -8
- package/dist/types/scheduler.d.mts +0 -5
- package/dist/types/scheduler.d.ts +0 -5
- package/dist/types/store.d.mts +5 -1
- package/dist/types/store.d.ts +5 -1
- package/dist/types/utils.d.mts +0 -5
- package/dist/types/utils.d.ts +0 -5
- package/dist/types/warn.d.mts +0 -12
- package/dist/types/warn.d.ts +0 -12
- package/package.json +3 -3
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Panel stylesheet. Note the template below is a *string* — comments inside it
|
|
3
|
-
* ship verbatim, so explanations belong out here where terser strips them.
|
|
4
|
-
*
|
|
5
2
|
* `[hidden]` is forced with `!important` because an author `display`, such as
|
|
6
|
-
* `.side`'s flex, beats the UA rule
|
|
7
|
-
*
|
|
8
|
-
* Docked layouts (`.dock-bottom` / `.dock-right`) give the tree a full viewport
|
|
9
|
-
* edge, as browser devtools do; only the cross-axis stays resizable, since the
|
|
10
|
-
* other would fight the dock.
|
|
11
|
-
*
|
|
12
|
-
* `min-height` is 320px, not 200: against the fixed chrome (34px header, 28px
|
|
13
|
-
* tabs, 23px filter) 200 left about five rows of tree, too few to read. 320
|
|
14
|
-
* keeps roughly eleven.
|
|
3
|
+
* `.side`'s flex, beats the UA rule.
|
|
15
4
|
*
|
|
16
5
|
* Sizing uses an explicit `.grip` rather than CSS `resize`, whose handle is
|
|
17
|
-
* always bottom-right
|
|
18
|
-
* grow the panel upward. Each mode gets a handle on the edge that moves.
|
|
6
|
+
* always bottom-right.
|
|
19
7
|
*/
|
|
20
|
-
export declare const css = "\n:host {\n all: initial;\n --bg: #1e1e1e;\n --bg2: #252526;\n --hover: #2a2d2e;\n --border: #3c3c3c;\n --fg: #d4d4d4;\n --muted: #808080;\n --accent: #42b883;\n --sel: #094771;\n --key: #9cdcfe;\n --val: #ce9178;\n --exp: #6a9955;\n}\n:host(.light) {\n --bg: #ffffff;\n --bg2: #f3f3f3;\n --hover: #ececec;\n --border: #d0d0d0;\n --fg: #383a42;\n --muted: #8e8e90;\n --sel: #d2e5f5;\n --key: #0451a5;\n --val: #a31515;\n --exp: #22863a;\n}\n* {\n box-sizing: border-box;\n}\n.pill, .panel {\n position: fixed;\n right: 12px;\n bottom: 12px;\n z-index: 2147483646;\n font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;\n color: var(--fg);\n}\n.pill {\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 999px;\n padding: 4px 10px;\n cursor: pointer;\n user-select: none;\n}\n.pill:hover {\n border-color: var(--accent);\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 760px;\n max-width: calc(100vw - 24px);\n height: 450px;\n max-height: calc(100vh - 24px);\n min-width: 320px;\n min-height: 320px;\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 6px;\n overflow: hidden;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);\n}\n.panel.dock-bottom {\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: none;\n border-radius: 0;\n border-left: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-right {\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n max-height: none;\n border-radius: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-bottom .header,\n.panel.dock-right .header {\n cursor: default;\n}\n.grip {\n position: absolute;\n z-index: 1;\n touch-action: none;\n right: 0;\n bottom: 0;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n background: linear-gradient(135deg, transparent 50%, var(--border) 50%);\n}\n.panel.dock-bottom .grip {\n top: 0;\n left: 0;\n width: auto;\n height: 5px;\n cursor: ns-resize;\n background: none;\n}\n.panel.dock-right .grip {\n top: 0;\n left: 0;\n width: 5px;\n height: auto;\n cursor: ew-resize;\n background: none;\n}\n.panel.dock-bottom .grip:hover,\n.panel.dock-bottom .grip.active,\n.panel.dock-right .grip:hover,\n.panel.dock-right .grip.active {\n background: var(--accent);\n}\n.header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: var(--bg2);\n border-bottom: 1px solid var(--border);\n user-select: none;\n cursor: move;\n}\n.title {\n color: var(--accent);\n font-weight: bold;\n margin-right: auto;\n}\n.btn {\n display: flex;\n align-items: center;\n background: none;\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 3px 7px;\n cursor: pointer;\n}\n.btn svg {\n display: block;\n}\n.btn:hover {\n border-color: var(--accent);\n}\n.btn.active {\n background: var(--accent);\n border-color: var(--accent);\n color: var(--bg);\n}\n.body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n[hidden] {\n display: none !important;\n}\n.plugins {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.plugin {\n display: flex;\n gap: 8px;\n padding: 3px 10px;\n align-items: baseline;\n}\n.plugin .name {\n min-width: 120px;\n}\n.plugin .gave {\n flex: 1;\n color: var(--muted);\n word-break: break-word;\n}\n.plugin .flag {\n color: var(--muted);\n opacity: 0.7;\n}\n.side {\n display: flex;\n flex-direction: column;\n width: 40%;\n min-width: 0;\n border-right: 1px solid var(--border);\n}\n.tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n user-select: none;\n}\n.tab {\n flex: 1;\n padding: 4px 0;\n text-align: center;\n color: var(--muted);\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.tab:hover {\n color: var(--fg);\n}\n.tab.active {\n color: var(--fg);\n border-bottom-color: var(--accent);\n}\n.filter {\n margin: 6px 6px 2px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 2px 6px;\n outline: none;\n}\n.filter:focus {\n border-color: var(--accent);\n}\n.filter::placeholder {\n color: var(--muted);\n}\n.tree {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.state {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.row {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n}\n.row .label {\n flex-shrink: 0;\n}\n.row .arrow {\n cursor: pointer;\n padding: 3px 4px;\n margin: -3px -4px;\n box-sizing: content-box;\n}\n.row .arrow:hover {\n color: var(--key);\n}\n.row .hit {\n color: var(--exp);\n opacity: 0.75;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.row:hover {\n background: var(--hover);\n}\n.row.sel {\n background: var(--sel);\n}\n.row .name {\n color: var(--key);\n}\n.row .punct {\n color: var(--muted);\n}\n.row .exp {\n color: var(--exp);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.prop {\n display: flex;\n gap: 6px;\n padding: 2px 8px;\n align-items: center;\n}\n.prop .key {\n color: var(--key);\n flex-shrink: 0;\n}\n.arrow {\n width: 12px;\n flex-shrink: 0;\n color: var(--muted);\n font-size: 9px;\n transition: transform 0.1s;\n}\n.arrow.open {\n transform: rotate(90deg);\n}\n.spacer {\n width: 12px;\n flex-shrink: 0;\n}\n.prop.toggle {\n cursor: pointer;\n user-select: none;\n}\n.prop.toggle:hover {\n background: var(--hover);\n}\n.preview {\n flex: 1;\n min-width: 0;\n color: var(--muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.muted {\n color: var(--muted);\n padding: 2px 8px;\n}\n.check {\n margin: 0;\n flex-shrink: 0;\n accent-color: var(--accent);\n cursor: pointer;\n}\n.del {\n visibility: hidden;\n flex-shrink: 0;\n background: none;\n border: none;\n padding: 0 2px;\n color: var(--muted);\n font: inherit;\n cursor: pointer;\n}\n.prop:hover .del {\n visibility: visible;\n}\n.del:hover {\n color: #e5534b;\n}\n.adder .key-in {\n flex: 0 0 30%;\n color: var(--key);\n}\n.adder input::placeholder {\n color: var(--muted);\n}\n.adder input {\n border-color: var(--border);\n}\n.bool {\n color: var(--val);\n}\n.prop.inherited .key {\n color: var(--muted);\n}\n.prop .val {\n flex: 1;\n min-width: 0;\n background: none;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--val);\n font: inherit;\n padding: 0 3px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\ninput.val:hover, input.val:focus {\n border-color: var(--border);\n outline: none;\n background: var(--bg2);\n}\n.divider {\n padding: 4px 8px 1px;\n color: var(--muted);\n font-size: 10px;\n text-transform: uppercase;\n user-select: none;\n}\n.empty {\n padding: 8px;\n color: var(--muted);\n}\n.highlight {\n position: fixed;\n z-index: 2147483645;\n background: rgba(66, 184, 131, 0.25);\n border: 1px solid var(--accent);\n pointer-events: none;\n display: none;\n}\n";
|
|
8
|
+
export declare const css = "\n:host {\n all: initial;\n --bg: #1e1e1e;\n --bg2: #252526;\n --hover: #2a2d2e;\n --border: #3c3c3c;\n --fg: #d4d4d4;\n --muted: #808080;\n --accent: #42b883;\n --sel: #094771;\n --key: #9cdcfe;\n --val: #ce9178;\n --exp: #6a9955;\n}\n:host(.light) {\n --bg: #ffffff;\n --bg2: #f3f3f3;\n --hover: #ececec;\n --border: #d0d0d0;\n --fg: #383a42;\n --muted: #8e8e90;\n --sel: #d2e5f5;\n --key: #0451a5;\n --val: #a31515;\n --exp: #22863a;\n}\n* {\n box-sizing: border-box;\n}\n.pill, .panel {\n position: fixed;\n right: 12px;\n bottom: 12px;\n z-index: 2147483646;\n font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;\n color: var(--fg);\n}\n.pill {\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 999px;\n padding: 4px 10px;\n cursor: pointer;\n user-select: none;\n}\n.pill:hover {\n border-color: var(--accent);\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 760px;\n max-width: calc(100vw - 24px);\n height: 450px;\n max-height: calc(100vh - 24px);\n min-width: 320px;\n min-height: 320px;\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 6px;\n overflow: hidden;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);\n}\n.panel.dock-bottom {\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: none;\n border-radius: 0;\n border-left: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left,\n.panel.dock-right {\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n max-height: none;\n border-radius: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left {\n right: auto;\n left: 0;\n border-left: 0;\n border-right: 1px solid var(--border);\n}\n.panel.dock-left .header,\n.panel.dock-bottom .header,\n.panel.dock-right .header {\n cursor: default;\n}\n.grip {\n position: absolute;\n z-index: 1;\n touch-action: none;\n right: 0;\n bottom: 0;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n background: linear-gradient(135deg, transparent 50%, var(--border) 50%);\n}\n.panel.dock-bottom .grip {\n top: 0;\n left: 0;\n width: auto;\n height: 5px;\n cursor: ns-resize;\n background: none;\n}\n.panel.dock-left .grip,\n.panel.dock-right .grip {\n top: 0;\n left: 0;\n width: 5px;\n height: auto;\n cursor: ew-resize;\n background: none;\n}\n.panel.dock-left .grip {\n left: auto;\n}\n.panel.dock-left .grip:hover,\n.panel.dock-left .grip.active,\n.panel.dock-bottom .grip:hover,\n.panel.dock-bottom .grip.active,\n.panel.dock-right .grip:hover,\n.panel.dock-right .grip.active {\n background: var(--accent);\n}\n.header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: var(--bg2);\n border-bottom: 1px solid var(--border);\n user-select: none;\n cursor: move;\n}\n.title {\n color: var(--accent);\n font-weight: bold;\n margin-right: auto;\n}\n.btn {\n display: flex;\n align-items: center;\n background: none;\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 3px 7px;\n cursor: pointer;\n}\n.btn svg {\n display: block;\n}\n.btn:hover {\n border-color: var(--accent);\n}\n.btn.active {\n background: var(--accent);\n border-color: var(--accent);\n color: var(--bg);\n}\n.btn svg + svg {\n margin-left: 4px;\n opacity: 0.7;\n}\n.menu-wrap {\n position: relative;\n}\n.menu {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 2;\n display: flex;\n flex-direction: column;\n min-width: 140px;\n padding: 3px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 4px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);\n cursor: default;\n}\n.item {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: none;\n border: 0;\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n text-align: left;\n white-space: nowrap;\n cursor: pointer;\n}\n.item:hover,\n.item:focus-visible {\n background: var(--hover);\n outline: none;\n}\n.item[aria-checked='true'] {\n color: var(--accent);\n}\n.body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n[hidden] {\n display: none !important;\n}\n.plugins {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.plugin {\n display: flex;\n gap: 8px;\n padding: 3px 10px;\n align-items: baseline;\n}\n.plugin .name {\n min-width: 120px;\n}\n.plugin .gave {\n flex: 1;\n color: var(--muted);\n word-break: break-word;\n}\n.plugin .flag {\n color: var(--muted);\n opacity: 0.7;\n}\n.side {\n display: flex;\n flex-direction: column;\n width: 40%;\n min-width: 0;\n border-right: 1px solid var(--border);\n}\n.tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n user-select: none;\n}\n.tab {\n flex: 1;\n padding: 4px 0;\n text-align: center;\n color: var(--muted);\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.tab:hover {\n color: var(--fg);\n}\n.tab.active {\n color: var(--fg);\n border-bottom-color: var(--accent);\n}\n.filter {\n margin: 6px 6px 2px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 2px 6px;\n outline: none;\n}\n.filter:focus {\n border-color: var(--accent);\n}\n.filter::placeholder {\n color: var(--muted);\n}\n.tree {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.state {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.row {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n}\n.row .label {\n flex-shrink: 0;\n}\n.row .arrow {\n cursor: pointer;\n padding: 3px 4px;\n margin: -3px -4px;\n box-sizing: content-box;\n}\n.row .arrow:hover {\n color: var(--key);\n}\n.row .hit {\n color: var(--exp);\n opacity: 0.75;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.row:hover {\n background: var(--hover);\n}\n.row.sel {\n background: var(--sel);\n}\n.row .name {\n color: var(--key);\n}\n.row .punct {\n color: var(--muted);\n}\n.row .exp {\n color: var(--exp);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.prop {\n display: flex;\n gap: 6px;\n padding: 2px 8px;\n align-items: center;\n}\n.prop .key {\n color: var(--key);\n flex-shrink: 0;\n}\n.arrow {\n width: 12px;\n flex-shrink: 0;\n color: var(--muted);\n font-size: 9px;\n transition: transform 0.1s;\n}\n.arrow.open {\n transform: rotate(90deg);\n}\n.spacer {\n width: 12px;\n flex-shrink: 0;\n}\n.prop.toggle {\n cursor: pointer;\n user-select: none;\n}\n.prop.toggle:hover {\n background: var(--hover);\n}\n.preview {\n flex: 1;\n min-width: 0;\n color: var(--muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.muted {\n color: var(--muted);\n padding: 2px 8px;\n}\n.check {\n margin: 0;\n flex-shrink: 0;\n accent-color: var(--accent);\n cursor: pointer;\n}\n.del {\n visibility: hidden;\n flex-shrink: 0;\n background: none;\n border: none;\n padding: 0 2px;\n color: var(--muted);\n font: inherit;\n cursor: pointer;\n}\n.prop:hover .del {\n visibility: visible;\n}\n.del:hover {\n color: #e5534b;\n}\n.adder .key-in {\n flex: 0 0 30%;\n color: var(--key);\n}\n.adder input::placeholder {\n color: var(--muted);\n}\n.adder input {\n border-color: var(--border);\n}\n.bool {\n color: var(--val);\n}\n.prop.inherited .key {\n color: var(--muted);\n}\n.prop .val {\n flex: 1;\n min-width: 0;\n background: none;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--val);\n font: inherit;\n padding: 0 3px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\ninput.val:hover, input.val:focus {\n border-color: var(--border);\n outline: none;\n background: var(--bg2);\n}\n.divider {\n padding: 4px 8px 1px;\n color: var(--muted);\n font-size: 10px;\n text-transform: uppercase;\n user-select: none;\n}\n.empty {\n padding: 8px;\n color: var(--muted);\n}\n.highlight {\n position: fixed;\n z-index: 2147483645;\n background: rgba(66, 184, 131, 0.25);\n border: 1px solid var(--accent);\n pointer-events: none;\n display: none;\n}\n";
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Panel stylesheet. Note the template below is a *string* — comments inside it
|
|
3
|
-
* ship verbatim, so explanations belong out here where terser strips them.
|
|
4
|
-
*
|
|
5
2
|
* `[hidden]` is forced with `!important` because an author `display`, such as
|
|
6
|
-
* `.side`'s flex, beats the UA rule
|
|
7
|
-
*
|
|
8
|
-
* Docked layouts (`.dock-bottom` / `.dock-right`) give the tree a full viewport
|
|
9
|
-
* edge, as browser devtools do; only the cross-axis stays resizable, since the
|
|
10
|
-
* other would fight the dock.
|
|
11
|
-
*
|
|
12
|
-
* `min-height` is 320px, not 200: against the fixed chrome (34px header, 28px
|
|
13
|
-
* tabs, 23px filter) 200 left about five rows of tree, too few to read. 320
|
|
14
|
-
* keeps roughly eleven.
|
|
3
|
+
* `.side`'s flex, beats the UA rule.
|
|
15
4
|
*
|
|
16
5
|
* Sizing uses an explicit `.grip` rather than CSS `resize`, whose handle is
|
|
17
|
-
* always bottom-right
|
|
18
|
-
* grow the panel upward. Each mode gets a handle on the edge that moves.
|
|
6
|
+
* always bottom-right.
|
|
19
7
|
*/
|
|
20
|
-
export declare const css = "\n:host {\n all: initial;\n --bg: #1e1e1e;\n --bg2: #252526;\n --hover: #2a2d2e;\n --border: #3c3c3c;\n --fg: #d4d4d4;\n --muted: #808080;\n --accent: #42b883;\n --sel: #094771;\n --key: #9cdcfe;\n --val: #ce9178;\n --exp: #6a9955;\n}\n:host(.light) {\n --bg: #ffffff;\n --bg2: #f3f3f3;\n --hover: #ececec;\n --border: #d0d0d0;\n --fg: #383a42;\n --muted: #8e8e90;\n --sel: #d2e5f5;\n --key: #0451a5;\n --val: #a31515;\n --exp: #22863a;\n}\n* {\n box-sizing: border-box;\n}\n.pill, .panel {\n position: fixed;\n right: 12px;\n bottom: 12px;\n z-index: 2147483646;\n font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;\n color: var(--fg);\n}\n.pill {\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 999px;\n padding: 4px 10px;\n cursor: pointer;\n user-select: none;\n}\n.pill:hover {\n border-color: var(--accent);\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 760px;\n max-width: calc(100vw - 24px);\n height: 450px;\n max-height: calc(100vh - 24px);\n min-width: 320px;\n min-height: 320px;\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 6px;\n overflow: hidden;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);\n}\n.panel.dock-bottom {\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: none;\n border-radius: 0;\n border-left: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-right {\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n max-height: none;\n border-radius: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-bottom .header,\n.panel.dock-right .header {\n cursor: default;\n}\n.grip {\n position: absolute;\n z-index: 1;\n touch-action: none;\n right: 0;\n bottom: 0;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n background: linear-gradient(135deg, transparent 50%, var(--border) 50%);\n}\n.panel.dock-bottom .grip {\n top: 0;\n left: 0;\n width: auto;\n height: 5px;\n cursor: ns-resize;\n background: none;\n}\n.panel.dock-right .grip {\n top: 0;\n left: 0;\n width: 5px;\n height: auto;\n cursor: ew-resize;\n background: none;\n}\n.panel.dock-bottom .grip:hover,\n.panel.dock-bottom .grip.active,\n.panel.dock-right .grip:hover,\n.panel.dock-right .grip.active {\n background: var(--accent);\n}\n.header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: var(--bg2);\n border-bottom: 1px solid var(--border);\n user-select: none;\n cursor: move;\n}\n.title {\n color: var(--accent);\n font-weight: bold;\n margin-right: auto;\n}\n.btn {\n display: flex;\n align-items: center;\n background: none;\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 3px 7px;\n cursor: pointer;\n}\n.btn svg {\n display: block;\n}\n.btn:hover {\n border-color: var(--accent);\n}\n.btn.active {\n background: var(--accent);\n border-color: var(--accent);\n color: var(--bg);\n}\n.body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n[hidden] {\n display: none !important;\n}\n.plugins {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.plugin {\n display: flex;\n gap: 8px;\n padding: 3px 10px;\n align-items: baseline;\n}\n.plugin .name {\n min-width: 120px;\n}\n.plugin .gave {\n flex: 1;\n color: var(--muted);\n word-break: break-word;\n}\n.plugin .flag {\n color: var(--muted);\n opacity: 0.7;\n}\n.side {\n display: flex;\n flex-direction: column;\n width: 40%;\n min-width: 0;\n border-right: 1px solid var(--border);\n}\n.tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n user-select: none;\n}\n.tab {\n flex: 1;\n padding: 4px 0;\n text-align: center;\n color: var(--muted);\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.tab:hover {\n color: var(--fg);\n}\n.tab.active {\n color: var(--fg);\n border-bottom-color: var(--accent);\n}\n.filter {\n margin: 6px 6px 2px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 2px 6px;\n outline: none;\n}\n.filter:focus {\n border-color: var(--accent);\n}\n.filter::placeholder {\n color: var(--muted);\n}\n.tree {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.state {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.row {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n}\n.row .label {\n flex-shrink: 0;\n}\n.row .arrow {\n cursor: pointer;\n padding: 3px 4px;\n margin: -3px -4px;\n box-sizing: content-box;\n}\n.row .arrow:hover {\n color: var(--key);\n}\n.row .hit {\n color: var(--exp);\n opacity: 0.75;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.row:hover {\n background: var(--hover);\n}\n.row.sel {\n background: var(--sel);\n}\n.row .name {\n color: var(--key);\n}\n.row .punct {\n color: var(--muted);\n}\n.row .exp {\n color: var(--exp);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.prop {\n display: flex;\n gap: 6px;\n padding: 2px 8px;\n align-items: center;\n}\n.prop .key {\n color: var(--key);\n flex-shrink: 0;\n}\n.arrow {\n width: 12px;\n flex-shrink: 0;\n color: var(--muted);\n font-size: 9px;\n transition: transform 0.1s;\n}\n.arrow.open {\n transform: rotate(90deg);\n}\n.spacer {\n width: 12px;\n flex-shrink: 0;\n}\n.prop.toggle {\n cursor: pointer;\n user-select: none;\n}\n.prop.toggle:hover {\n background: var(--hover);\n}\n.preview {\n flex: 1;\n min-width: 0;\n color: var(--muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.muted {\n color: var(--muted);\n padding: 2px 8px;\n}\n.check {\n margin: 0;\n flex-shrink: 0;\n accent-color: var(--accent);\n cursor: pointer;\n}\n.del {\n visibility: hidden;\n flex-shrink: 0;\n background: none;\n border: none;\n padding: 0 2px;\n color: var(--muted);\n font: inherit;\n cursor: pointer;\n}\n.prop:hover .del {\n visibility: visible;\n}\n.del:hover {\n color: #e5534b;\n}\n.adder .key-in {\n flex: 0 0 30%;\n color: var(--key);\n}\n.adder input::placeholder {\n color: var(--muted);\n}\n.adder input {\n border-color: var(--border);\n}\n.bool {\n color: var(--val);\n}\n.prop.inherited .key {\n color: var(--muted);\n}\n.prop .val {\n flex: 1;\n min-width: 0;\n background: none;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--val);\n font: inherit;\n padding: 0 3px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\ninput.val:hover, input.val:focus {\n border-color: var(--border);\n outline: none;\n background: var(--bg2);\n}\n.divider {\n padding: 4px 8px 1px;\n color: var(--muted);\n font-size: 10px;\n text-transform: uppercase;\n user-select: none;\n}\n.empty {\n padding: 8px;\n color: var(--muted);\n}\n.highlight {\n position: fixed;\n z-index: 2147483645;\n background: rgba(66, 184, 131, 0.25);\n border: 1px solid var(--accent);\n pointer-events: none;\n display: none;\n}\n";
|
|
8
|
+
export declare const css = "\n:host {\n all: initial;\n --bg: #1e1e1e;\n --bg2: #252526;\n --hover: #2a2d2e;\n --border: #3c3c3c;\n --fg: #d4d4d4;\n --muted: #808080;\n --accent: #42b883;\n --sel: #094771;\n --key: #9cdcfe;\n --val: #ce9178;\n --exp: #6a9955;\n}\n:host(.light) {\n --bg: #ffffff;\n --bg2: #f3f3f3;\n --hover: #ececec;\n --border: #d0d0d0;\n --fg: #383a42;\n --muted: #8e8e90;\n --sel: #d2e5f5;\n --key: #0451a5;\n --val: #a31515;\n --exp: #22863a;\n}\n* {\n box-sizing: border-box;\n}\n.pill, .panel {\n position: fixed;\n right: 12px;\n bottom: 12px;\n z-index: 2147483646;\n font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;\n color: var(--fg);\n}\n.pill {\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 999px;\n padding: 4px 10px;\n cursor: pointer;\n user-select: none;\n}\n.pill:hover {\n border-color: var(--accent);\n}\n.panel {\n display: flex;\n flex-direction: column;\n width: 760px;\n max-width: calc(100vw - 24px);\n height: 450px;\n max-height: calc(100vh - 24px);\n min-width: 320px;\n min-height: 320px;\n background: var(--bg);\n border: 1px solid var(--border);\n border-radius: 6px;\n overflow: hidden;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);\n}\n.panel.dock-bottom {\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n max-width: none;\n border-radius: 0;\n border-left: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left,\n.panel.dock-right {\n top: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n max-height: none;\n border-radius: 0;\n border-top: 0;\n border-right: 0;\n border-bottom: 0;\n}\n.panel.dock-left {\n right: auto;\n left: 0;\n border-left: 0;\n border-right: 1px solid var(--border);\n}\n.panel.dock-left .header,\n.panel.dock-bottom .header,\n.panel.dock-right .header {\n cursor: default;\n}\n.grip {\n position: absolute;\n z-index: 1;\n touch-action: none;\n right: 0;\n bottom: 0;\n width: 14px;\n height: 14px;\n cursor: nwse-resize;\n background: linear-gradient(135deg, transparent 50%, var(--border) 50%);\n}\n.panel.dock-bottom .grip {\n top: 0;\n left: 0;\n width: auto;\n height: 5px;\n cursor: ns-resize;\n background: none;\n}\n.panel.dock-left .grip,\n.panel.dock-right .grip {\n top: 0;\n left: 0;\n width: 5px;\n height: auto;\n cursor: ew-resize;\n background: none;\n}\n.panel.dock-left .grip {\n left: auto;\n}\n.panel.dock-left .grip:hover,\n.panel.dock-left .grip.active,\n.panel.dock-bottom .grip:hover,\n.panel.dock-bottom .grip.active,\n.panel.dock-right .grip:hover,\n.panel.dock-right .grip.active {\n background: var(--accent);\n}\n.header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: var(--bg2);\n border-bottom: 1px solid var(--border);\n user-select: none;\n cursor: move;\n}\n.title {\n color: var(--accent);\n font-weight: bold;\n margin-right: auto;\n}\n.btn {\n display: flex;\n align-items: center;\n background: none;\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 3px 7px;\n cursor: pointer;\n}\n.btn svg {\n display: block;\n}\n.btn:hover {\n border-color: var(--accent);\n}\n.btn.active {\n background: var(--accent);\n border-color: var(--accent);\n color: var(--bg);\n}\n.btn svg + svg {\n margin-left: 4px;\n opacity: 0.7;\n}\n.menu-wrap {\n position: relative;\n}\n.menu {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 2;\n display: flex;\n flex-direction: column;\n min-width: 140px;\n padding: 3px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 4px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);\n cursor: default;\n}\n.item {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 8px;\n background: none;\n border: 0;\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n text-align: left;\n white-space: nowrap;\n cursor: pointer;\n}\n.item:hover,\n.item:focus-visible {\n background: var(--hover);\n outline: none;\n}\n.item[aria-checked='true'] {\n color: var(--accent);\n}\n.body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n[hidden] {\n display: none !important;\n}\n.plugins {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.plugin {\n display: flex;\n gap: 8px;\n padding: 3px 10px;\n align-items: baseline;\n}\n.plugin .name {\n min-width: 120px;\n}\n.plugin .gave {\n flex: 1;\n color: var(--muted);\n word-break: break-word;\n}\n.plugin .flag {\n color: var(--muted);\n opacity: 0.7;\n}\n.side {\n display: flex;\n flex-direction: column;\n width: 40%;\n min-width: 0;\n border-right: 1px solid var(--border);\n}\n.tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n user-select: none;\n}\n.tab {\n flex: 1;\n padding: 4px 0;\n text-align: center;\n color: var(--muted);\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.tab:hover {\n color: var(--fg);\n}\n.tab.active {\n color: var(--fg);\n border-bottom-color: var(--accent);\n}\n.filter {\n margin: 6px 6px 2px;\n background: var(--bg2);\n border: 1px solid var(--border);\n border-radius: 3px;\n color: var(--fg);\n font: inherit;\n padding: 2px 6px;\n outline: none;\n}\n.filter:focus {\n border-color: var(--accent);\n}\n.filter::placeholder {\n color: var(--muted);\n}\n.tree {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.state {\n flex: 1;\n overflow: auto;\n padding: 4px 0;\n}\n.row {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n white-space: nowrap;\n overflow: hidden;\n cursor: pointer;\n}\n.row .label {\n flex-shrink: 0;\n}\n.row .arrow {\n cursor: pointer;\n padding: 3px 4px;\n margin: -3px -4px;\n box-sizing: content-box;\n}\n.row .arrow:hover {\n color: var(--key);\n}\n.row .hit {\n color: var(--exp);\n opacity: 0.75;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.row:hover {\n background: var(--hover);\n}\n.row.sel {\n background: var(--sel);\n}\n.row .name {\n color: var(--key);\n}\n.row .punct {\n color: var(--muted);\n}\n.row .exp {\n color: var(--exp);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.prop {\n display: flex;\n gap: 6px;\n padding: 2px 8px;\n align-items: center;\n}\n.prop .key {\n color: var(--key);\n flex-shrink: 0;\n}\n.arrow {\n width: 12px;\n flex-shrink: 0;\n color: var(--muted);\n font-size: 9px;\n transition: transform 0.1s;\n}\n.arrow.open {\n transform: rotate(90deg);\n}\n.spacer {\n width: 12px;\n flex-shrink: 0;\n}\n.prop.toggle {\n cursor: pointer;\n user-select: none;\n}\n.prop.toggle:hover {\n background: var(--hover);\n}\n.preview {\n flex: 1;\n min-width: 0;\n color: var(--muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.muted {\n color: var(--muted);\n padding: 2px 8px;\n}\n.check {\n margin: 0;\n flex-shrink: 0;\n accent-color: var(--accent);\n cursor: pointer;\n}\n.del {\n visibility: hidden;\n flex-shrink: 0;\n background: none;\n border: none;\n padding: 0 2px;\n color: var(--muted);\n font: inherit;\n cursor: pointer;\n}\n.prop:hover .del {\n visibility: visible;\n}\n.del:hover {\n color: #e5534b;\n}\n.adder .key-in {\n flex: 0 0 30%;\n color: var(--key);\n}\n.adder input::placeholder {\n color: var(--muted);\n}\n.adder input {\n border-color: var(--border);\n}\n.bool {\n color: var(--val);\n}\n.prop.inherited .key {\n color: var(--muted);\n}\n.prop .val {\n flex: 1;\n min-width: 0;\n background: none;\n border: 1px solid transparent;\n border-radius: 3px;\n color: var(--val);\n font: inherit;\n padding: 0 3px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\ninput.val:hover, input.val:focus {\n border-color: var(--border);\n outline: none;\n background: var(--bg2);\n}\n.divider {\n padding: 4px 8px 1px;\n color: var(--muted);\n font-size: 10px;\n text-transform: uppercase;\n user-select: none;\n}\n.empty {\n padding: 8px;\n color: var(--muted);\n}\n.highlight {\n position: fixed;\n z-index: 2147483645;\n background: rgba(66, 184, 131, 0.25);\n border: 1px solid var(--accent);\n pointer-events: none;\n display: none;\n}\n";
|
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
export declare const h: (tag: string, className: string, text?: string) => HTMLElement;
|
|
2
|
-
/**
|
|
3
|
-
* Finds `term` among a scope's property names and values, returning the first
|
|
4
|
-
* hit's path so the tree can show why a scope matched.
|
|
5
|
-
*
|
|
6
|
-
* Bounded on purpose: it runs on every keystroke over every mounted scope and
|
|
7
|
-
* state is arbitrary. Depth is capped, functions and `$` magics are skipped,
|
|
8
|
-
* and visited objects are remembered so cycles terminate.
|
|
9
|
-
*/
|
|
10
2
|
export declare const findInState: (scope: any, term: string) => string | undefined;
|
|
11
3
|
export declare const isCollection: (v: unknown) => v is Map<any, any> | Set<any>;
|
|
12
|
-
/**
|
|
13
|
-
* JSON-style preview, cut at 60 characters. Built entry by entry and stopped
|
|
14
|
-
* at the limit, since it runs on every flush and a 20,000-row array would
|
|
15
|
-
* otherwise be serialised whole. The length cap also ends a cycle.
|
|
16
|
-
*/
|
|
17
4
|
export declare const fmt: (v: unknown) => string;
|
|
18
|
-
export declare const coerce: (raw: string, old: unknown) => string | number;
|
|
5
|
+
export declare const coerce: (raw: string, old: unknown) => string | number | bigint;
|
|
19
6
|
export declare const descriptorOf: (o: any, key: string) => PropertyDescriptor | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* True for values with no editor: setter-less accessors and getter-only
|
|
22
|
-
* `computed()` refs. A computed is only recognizable from the raw descriptor,
|
|
23
|
-
* since reading through the proxy has already unwrapped it. The reactivity
|
|
24
|
-
* flags are read directly to keep @vue/reactivity out of this bundle.
|
|
25
|
-
*/
|
|
26
7
|
export declare const isReadOnly: (desc?: PropertyDescriptor) => boolean;
|
|
27
8
|
export declare const collectProps: (scope: Record<string, any>) => {
|
|
28
9
|
own: string[];
|
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
export declare const h: (tag: string, className: string, text?: string) => HTMLElement;
|
|
2
|
-
/**
|
|
3
|
-
* Finds `term` among a scope's property names and values, returning the first
|
|
4
|
-
* hit's path so the tree can show why a scope matched.
|
|
5
|
-
*
|
|
6
|
-
* Bounded on purpose: it runs on every keystroke over every mounted scope and
|
|
7
|
-
* state is arbitrary. Depth is capped, functions and `$` magics are skipped,
|
|
8
|
-
* and visited objects are remembered so cycles terminate.
|
|
9
|
-
*/
|
|
10
2
|
export declare const findInState: (scope: any, term: string) => string | undefined;
|
|
11
3
|
export declare const isCollection: (v: unknown) => v is Map<any, any> | Set<any>;
|
|
12
|
-
/**
|
|
13
|
-
* JSON-style preview, cut at 60 characters. Built entry by entry and stopped
|
|
14
|
-
* at the limit, since it runs on every flush and a 20,000-row array would
|
|
15
|
-
* otherwise be serialised whole. The length cap also ends a cycle.
|
|
16
|
-
*/
|
|
17
4
|
export declare const fmt: (v: unknown) => string;
|
|
18
|
-
export declare const coerce: (raw: string, old: unknown) => string | number;
|
|
5
|
+
export declare const coerce: (raw: string, old: unknown) => string | number | bigint;
|
|
19
6
|
export declare const descriptorOf: (o: any, key: string) => PropertyDescriptor | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* True for values with no editor: setter-less accessors and getter-only
|
|
22
|
-
* `computed()` refs. A computed is only recognizable from the raw descriptor,
|
|
23
|
-
* since reading through the proxy has already unwrapped it. The reactivity
|
|
24
|
-
* flags are read directly to keep @vue/reactivity out of this bundle.
|
|
25
|
-
*/
|
|
26
7
|
export declare const isReadOnly: (desc?: PropertyDescriptor) => boolean;
|
|
27
8
|
export declare const collectProps: (scope: Record<string, any>) => {
|
|
28
9
|
own: string[];
|
|
@@ -2,11 +2,6 @@ export type DevtoolsEvent = 'scope:mount' | 'scope:unmount' | 'store:register' |
|
|
|
2
2
|
type Listener = (...args: any[]) => void;
|
|
3
3
|
/**
|
|
4
4
|
* What one `app.use()` contributed.
|
|
5
|
-
*
|
|
6
|
-
* `directives` and `magics` carry the weight, not `name`: minifiers rename
|
|
7
|
-
* plugin functions, so `Function.name` is an empty string in every production
|
|
8
|
-
* build — the builds an inspector is actually pointed at. What a plugin added
|
|
9
|
-
* survives minification and is what someone debugging wants anyway.
|
|
10
5
|
*/
|
|
11
6
|
export interface PluginInfo {
|
|
12
7
|
/** The plugin function's name where a build kept it, else `plugin <n>`. */
|
|
@@ -74,9 +69,7 @@ export interface LiteVueDevtools {
|
|
|
74
69
|
export declare const registerScope: (el: Element, scope: Record<string, any>, exp?: string, name?: string) => (() => void);
|
|
75
70
|
export declare const registerStore: (name: string, store: Record<string, any>) => void;
|
|
76
71
|
export declare const registerComponent: (name: string) => void;
|
|
77
|
-
/** Registers a plugin and returns a deregister, as registerScope does. */
|
|
78
72
|
export declare const registerPlugin: (info: PluginInfo) => (() => void) | undefined;
|
|
79
|
-
/** True when something is listening, so app.use() can skip the diff. */
|
|
80
73
|
export declare const pluginsWatched: () => boolean;
|
|
81
74
|
export declare const emitFlush: () => void;
|
|
82
75
|
export declare const devtools: LiteVueDevtools;
|
package/dist/types/devtools.d.ts
CHANGED
|
@@ -2,11 +2,6 @@ export type DevtoolsEvent = 'scope:mount' | 'scope:unmount' | 'store:register' |
|
|
|
2
2
|
type Listener = (...args: any[]) => void;
|
|
3
3
|
/**
|
|
4
4
|
* What one `app.use()` contributed.
|
|
5
|
-
*
|
|
6
|
-
* `directives` and `magics` carry the weight, not `name`: minifiers rename
|
|
7
|
-
* plugin functions, so `Function.name` is an empty string in every production
|
|
8
|
-
* build — the builds an inspector is actually pointed at. What a plugin added
|
|
9
|
-
* survives minification and is what someone debugging wants anyway.
|
|
10
5
|
*/
|
|
11
6
|
export interface PluginInfo {
|
|
12
7
|
/** The plugin function's name where a build kept it, else `plugin <n>`. */
|
|
@@ -74,9 +69,7 @@ export interface LiteVueDevtools {
|
|
|
74
69
|
export declare const registerScope: (el: Element, scope: Record<string, any>, exp?: string, name?: string) => (() => void);
|
|
75
70
|
export declare const registerStore: (name: string, store: Record<string, any>) => void;
|
|
76
71
|
export declare const registerComponent: (name: string) => void;
|
|
77
|
-
/** Registers a plugin and returns a deregister, as registerScope does. */
|
|
78
72
|
export declare const registerPlugin: (info: PluginInfo) => (() => void) | undefined;
|
|
79
|
-
/** True when something is listening, so app.use() can skip the diff. */
|
|
80
73
|
export declare const pluginsWatched: () => boolean;
|
|
81
74
|
export declare const emitFlush: () => void;
|
|
82
75
|
export declare const devtools: LiteVueDevtools;
|
package/dist/types/errors.d.mts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One route for every runtime error. The diagnostic prose is DEV-only; the
|
|
3
|
-
* routing and `onError` handlers ship, since that is where monitoring hooks in.
|
|
4
|
-
*/
|
|
5
1
|
export type ErrorPhase =
|
|
6
2
|
/** evaluating a directive's expression, or a text interpolation */
|
|
7
3
|
'expression'
|
|
@@ -13,7 +9,7 @@ export type ErrorPhase =
|
|
|
13
9
|
| 'compile'
|
|
14
10
|
/** re-running after a change: a `$watch` callback, `watchEffect`, a plugin effect */
|
|
15
11
|
| 'effect'
|
|
16
|
-
/** a plugin's teardown
|
|
12
|
+
/** a plugin's teardown during a full `app.unmount()`, or a directive's cleanup */
|
|
17
13
|
| 'teardown';
|
|
18
14
|
export interface ErrorInfo {
|
|
19
15
|
phase: ErrorPhase;
|
|
@@ -27,10 +23,7 @@ export interface ErrorInfo {
|
|
|
27
23
|
scope?: Record<string, any>;
|
|
28
24
|
}
|
|
29
25
|
export type ErrorHandler = (err: unknown, info: ErrorInfo) => void;
|
|
30
|
-
/** A short, recognisable rendering of the element — not its whole subtree. */
|
|
31
26
|
export declare const describeEl: (el?: Node) => string | undefined;
|
|
32
|
-
/** Registered by `app.onError()`. Shared across apps, like the store registry. */
|
|
33
27
|
export declare const addErrorHandler: (fn: ErrorHandler) => () => void;
|
|
34
|
-
/** Test seam — drops every registered handler. */
|
|
35
28
|
export declare const clearErrorHandlers: () => undefined;
|
|
36
29
|
export declare const handleError: (err: unknown, info: ErrorInfo) => void;
|
package/dist/types/errors.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One route for every runtime error. The diagnostic prose is DEV-only; the
|
|
3
|
-
* routing and `onError` handlers ship, since that is where monitoring hooks in.
|
|
4
|
-
*/
|
|
5
1
|
export type ErrorPhase =
|
|
6
2
|
/** evaluating a directive's expression, or a text interpolation */
|
|
7
3
|
'expression'
|
|
@@ -13,7 +9,7 @@ export type ErrorPhase =
|
|
|
13
9
|
| 'compile'
|
|
14
10
|
/** re-running after a change: a `$watch` callback, `watchEffect`, a plugin effect */
|
|
15
11
|
| 'effect'
|
|
16
|
-
/** a plugin's teardown
|
|
12
|
+
/** a plugin's teardown during a full `app.unmount()`, or a directive's cleanup */
|
|
17
13
|
| 'teardown';
|
|
18
14
|
export interface ErrorInfo {
|
|
19
15
|
phase: ErrorPhase;
|
|
@@ -27,10 +23,7 @@ export interface ErrorInfo {
|
|
|
27
23
|
scope?: Record<string, any>;
|
|
28
24
|
}
|
|
29
25
|
export type ErrorHandler = (err: unknown, info: ErrorInfo) => void;
|
|
30
|
-
/** A short, recognisable rendering of the element — not its whole subtree. */
|
|
31
26
|
export declare const describeEl: (el?: Node) => string | undefined;
|
|
32
|
-
/** Registered by `app.onError()`. Shared across apps, like the store registry. */
|
|
33
27
|
export declare const addErrorHandler: (fn: ErrorHandler) => () => void;
|
|
34
|
-
/** Test seam — drops every registered handler. */
|
|
35
28
|
export declare const clearErrorHandlers: () => undefined;
|
|
36
29
|
export declare const handleError: (err: unknown, info: ErrorInfo) => void;
|
package/dist/types/eval.d.mts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { type ErrorInfo } from './errors.mjs';
|
|
2
2
|
export declare const EVAL_CACHE_LIMIT = 1000;
|
|
3
|
-
/** For tests: how many compiled expressions are held. */
|
|
4
3
|
export declare const evalCacheSize: () => number;
|
|
5
|
-
/** Where the expression came from, so a failure can name its directive and element. */
|
|
6
4
|
export type EvalMeta = Pick<ErrorInfo, 'source' | 'el'> & {
|
|
7
|
-
/** Shown instead of the compiled text: `{{ total }}`, not `$s( total )`. */
|
|
8
5
|
expression?: string;
|
|
9
6
|
};
|
|
10
7
|
export declare const evaluate: (scope: any, exp: string, el?: Node, meta?: EvalMeta) => any;
|
package/dist/types/eval.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { type ErrorInfo } from './errors';
|
|
2
2
|
export declare const EVAL_CACHE_LIMIT = 1000;
|
|
3
|
-
/** For tests: how many compiled expressions are held. */
|
|
4
3
|
export declare const evalCacheSize: () => number;
|
|
5
|
-
/** Where the expression came from, so a failure can name its directive and element. */
|
|
6
4
|
export type EvalMeta = Pick<ErrorInfo, 'source' | 'el'> & {
|
|
7
|
-
/** Shown instead of the compiled text: `{{ total }}`, not `$s( total )`. */
|
|
8
5
|
expression?: string;
|
|
9
6
|
};
|
|
10
7
|
export declare const evaluate: (scope: any, exp: string, el?: Node, meta?: EvalMeta) => any;
|
package/dist/types/lazy.d.mts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import type { Context } from './context.mjs';
|
|
2
|
-
/**
|
|
3
|
-
* `v-scope.visible` / `.idle` / `.interaction`: defer a region's walk, so
|
|
4
|
-
* nothing inside is bound until the trigger. The author still wrote
|
|
5
|
-
* `v-scope`; only the moment of initialisation moves.
|
|
6
|
-
*/
|
|
7
2
|
export type LazyMode = 'visible' | 'idle' | 'interaction';
|
|
8
3
|
export declare const LAZY_MODES: LazyMode[];
|
|
9
|
-
/** Selector matching every scope root, deferred or not. */
|
|
10
4
|
export declare const SCOPE_SELECTOR: string;
|
|
11
|
-
/**
|
|
12
|
-
* Returns true if `el` was deferred. The walk must not descend into it:
|
|
13
|
-
* walking consumes directives, so it could not be walked again later.
|
|
14
|
-
*/
|
|
15
5
|
export declare const deferScope: (el: Element, ctx: Context, walk: (node: Node, ctx: Context, once: boolean) => unknown, once: boolean) => boolean;
|
package/dist/types/lazy.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import type { Context } from './context';
|
|
2
|
-
/**
|
|
3
|
-
* `v-scope.visible` / `.idle` / `.interaction`: defer a region's walk, so
|
|
4
|
-
* nothing inside is bound until the trigger. The author still wrote
|
|
5
|
-
* `v-scope`; only the moment of initialisation moves.
|
|
6
|
-
*/
|
|
7
2
|
export type LazyMode = 'visible' | 'idle' | 'interaction';
|
|
8
3
|
export declare const LAZY_MODES: LazyMode[];
|
|
9
|
-
/** Selector matching every scope root, deferred or not. */
|
|
10
4
|
export declare const SCOPE_SELECTOR: string;
|
|
11
|
-
/**
|
|
12
|
-
* Returns true if `el` was deferred. The walk must not descend into it:
|
|
13
|
-
* walking consumes directives, so it could not be walked again later.
|
|
14
|
-
*/
|
|
15
5
|
export declare const deferScope: (el: Element, ctx: Context, walk: (node: Node, ctx: Context, once: boolean) => unknown, once: boolean) => boolean;
|
package/dist/types/magics.d.mts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type { Context } from './context.mjs';
|
|
2
|
-
/**
|
|
3
|
-
* $id('name') — unique ids for accessibility attributes. Stable within a scope
|
|
4
|
-
* so label/input pairs match, unique across scopes.
|
|
5
|
-
*/
|
|
6
2
|
export declare const createId: () => (name?: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* $watch(source, callback, { immediate }) — watches a dot-path string or getter
|
|
9
|
-
* and calls back with (value, oldValue). Returns a stop function; it also stops
|
|
10
|
-
* when the owning scope unmounts.
|
|
11
|
-
*/
|
|
12
3
|
export declare const createWatch: (ctx: Context) => (source: string | (() => any), cb: (value: any, oldValue: any) => void, options?: {
|
|
13
4
|
immediate?: boolean;
|
|
14
5
|
}) => () => void;
|
package/dist/types/magics.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type { Context } from './context';
|
|
2
|
-
/**
|
|
3
|
-
* $id('name') — unique ids for accessibility attributes. Stable within a scope
|
|
4
|
-
* so label/input pairs match, unique across scopes.
|
|
5
|
-
*/
|
|
6
2
|
export declare const createId: () => (name?: string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* $watch(source, callback, { immediate }) — watches a dot-path string or getter
|
|
9
|
-
* and calls back with (value, oldValue). Returns a stop function; it also stops
|
|
10
|
-
* when the owning scope unmounts.
|
|
11
|
-
*/
|
|
12
3
|
export declare const createWatch: (ctx: Context) => (source: string | (() => any), cb: (value: any, oldValue: any) => void, options?: {
|
|
13
4
|
immediate?: boolean;
|
|
14
5
|
}) => () => void;
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-node disposal.
|
|
3
|
-
*
|
|
4
|
-
* A Context spans one `v-scope` to the next — the right boundary for
|
|
5
|
-
* `app.unmount(el)`, too coarse for a node removed on its own. Morph detaches
|
|
6
|
-
* nodes directly, leaving their effects live. Tracking what each node acquired
|
|
7
|
-
* lets a detached subtree be disposed without a Context per node.
|
|
8
|
-
*/
|
|
9
1
|
type Disposer = () => void;
|
|
10
2
|
export declare const setOwner: (node: Node | undefined) => Node | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Registers a disposer against `node`, defaulting to the node being walked.
|
|
13
|
-
* Pass `node` explicitly for a directive that outlives its element: `v-if` and
|
|
14
|
-
* `v-for` detach the template and render from an anchor, so they must own to
|
|
15
|
-
* the anchor.
|
|
16
|
-
*/
|
|
17
3
|
export declare const own: (dispose: Disposer, node?: Node | undefined) => void;
|
|
18
|
-
/** Withdraws a disposer from `node`, for an owner that removes it itself. */
|
|
19
4
|
export declare const disown: (dispose: Disposer, node: Node) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Disposes `node` and its subtree. Safe on an unowned node, and idempotent —
|
|
22
|
-
* the record is dropped as it runs.
|
|
23
|
-
*/
|
|
24
5
|
export declare const disposeSubtree: (node: Node) => void;
|
|
25
6
|
export {};
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-node disposal.
|
|
3
|
-
*
|
|
4
|
-
* A Context spans one `v-scope` to the next — the right boundary for
|
|
5
|
-
* `app.unmount(el)`, too coarse for a node removed on its own. Morph detaches
|
|
6
|
-
* nodes directly, leaving their effects live. Tracking what each node acquired
|
|
7
|
-
* lets a detached subtree be disposed without a Context per node.
|
|
8
|
-
*/
|
|
9
1
|
type Disposer = () => void;
|
|
10
2
|
export declare const setOwner: (node: Node | undefined) => Node | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Registers a disposer against `node`, defaulting to the node being walked.
|
|
13
|
-
* Pass `node` explicitly for a directive that outlives its element: `v-if` and
|
|
14
|
-
* `v-for` detach the template and render from an anchor, so they must own to
|
|
15
|
-
* the anchor.
|
|
16
|
-
*/
|
|
17
3
|
export declare const own: (dispose: Disposer, node?: Node | undefined) => void;
|
|
18
|
-
/** Withdraws a disposer from `node`, for an owner that removes it itself. */
|
|
19
4
|
export declare const disown: (dispose: Disposer, node: Node) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Disposes `node` and its subtree. Safe on an unowned node, and idempotent —
|
|
22
|
-
* the record is dropped as it runs.
|
|
23
|
-
*/
|
|
24
5
|
export declare const disposeSubtree: (node: Node) => void;
|
|
25
6
|
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { Plugin } from '../../app.mjs';
|
|
2
|
-
/**
|
|
3
|
-
* Viewport-driven behaviour for the cases CSS cannot serve: values handed to
|
|
4
|
-
* JavaScript, structural branches, skipping expensive init on small screens.
|
|
5
|
-
* Appearance still belongs in a stylesheet, which applies before first paint.
|
|
6
|
-
*/
|
|
7
2
|
export type Breakpoints = Record<string, number>;
|
|
8
3
|
export interface MediaOptions {
|
|
9
4
|
/** Replaces the default scale wholesale rather than merging into it. */
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { Plugin } from '../../app';
|
|
2
|
-
/**
|
|
3
|
-
* Viewport-driven behaviour for the cases CSS cannot serve: values handed to
|
|
4
|
-
* JavaScript, structural branches, skipping expensive init on small screens.
|
|
5
|
-
* Appearance still belongs in a stylesheet, which applies before first paint.
|
|
6
|
-
*/
|
|
7
2
|
export type Breakpoints = Record<string, number>;
|
|
8
3
|
export interface MediaOptions {
|
|
9
4
|
/** Replaces the default scale wholesale rather than merging into it. */
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import type { Plugin } from '../../app.mjs';
|
|
2
|
-
/**
|
|
3
|
-
* Update a live region in place from new HTML, instead of replacing it.
|
|
4
|
-
*
|
|
5
|
-
* Replacing markup destroys every element in the region — and with it every
|
|
6
|
-
* scope, its state, and the browser state riding on those nodes: focus, caret,
|
|
7
|
-
* selection, scroll, media playback, `<details open>`. Morphing patches only
|
|
8
|
-
* the differences, so unchanged elements are never touched.
|
|
9
|
-
*/
|
|
10
2
|
export interface MorphOptions {
|
|
11
3
|
/**
|
|
12
4
|
* Identity used to match children across the update. Defaults to `id`,
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import type { Plugin } from '../../app';
|
|
2
|
-
/**
|
|
3
|
-
* Update a live region in place from new HTML, instead of replacing it.
|
|
4
|
-
*
|
|
5
|
-
* Replacing markup destroys every element in the region — and with it every
|
|
6
|
-
* scope, its state, and the browser state riding on those nodes: focus, caret,
|
|
7
|
-
* selection, scroll, media playback, `<details open>`. Morphing patches only
|
|
8
|
-
* the differences, so unchanged elements are never touched.
|
|
9
|
-
*/
|
|
10
2
|
export interface MorphOptions {
|
|
11
3
|
/**
|
|
12
4
|
* Identity used to match children across the update. Defaults to `id`,
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { type ReactiveEffectRunner } from '@vue/reactivity';
|
|
2
|
-
/** Stops an effect and remembers that it is stopped. Use instead of `stop`. */
|
|
3
2
|
export declare const stopEffect: (runner: ReactiveEffectRunner) => void;
|
|
4
3
|
export type Job = Function & {
|
|
5
4
|
i?: number;
|
|
6
5
|
};
|
|
7
6
|
export declare const nextTick: (fn?: () => void) => Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Stamps a job with its creation order, which the flush runs in. An effect
|
|
10
|
-
* stamped as it is created sorts before the children its first run creates.
|
|
11
|
-
*/
|
|
12
7
|
export declare const stampJob: <T extends Job>(job: T) => T;
|
|
13
8
|
export declare const queueJob: (job: Job) => void;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { type ReactiveEffectRunner } from '@vue/reactivity';
|
|
2
|
-
/** Stops an effect and remembers that it is stopped. Use instead of `stop`. */
|
|
3
2
|
export declare const stopEffect: (runner: ReactiveEffectRunner) => void;
|
|
4
3
|
export type Job = Function & {
|
|
5
4
|
i?: number;
|
|
6
5
|
};
|
|
7
6
|
export declare const nextTick: (fn?: () => void) => Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Stamps a job with its creation order, which the flush runs in. An effect
|
|
10
|
-
* stamped as it is created sorts before the children its first run creates.
|
|
11
|
-
*/
|
|
12
7
|
export declare const stampJob: <T extends Job>(job: T) => T;
|
|
13
8
|
export declare const queueJob: (job: Job) => void;
|
package/dist/types/store.d.mts
CHANGED
|
@@ -4,4 +4,8 @@ export declare const stores: Record<string, any>;
|
|
|
4
4
|
* expression as `$store.<name>`. Passing a value registers it and runs its
|
|
5
5
|
* `init()` once, if present; omitting one retrieves.
|
|
6
6
|
*/
|
|
7
|
-
export declare const store:
|
|
7
|
+
export declare const store: {
|
|
8
|
+
<T extends Record<string, any>>(name: string, value: T): T;
|
|
9
|
+
/** A name that was never registered reads as undefined. */
|
|
10
|
+
<T extends Record<string, any>>(name: string): T | undefined;
|
|
11
|
+
};
|
package/dist/types/store.d.ts
CHANGED
|
@@ -4,4 +4,8 @@ export declare const stores: Record<string, any>;
|
|
|
4
4
|
* expression as `$store.<name>`. Passing a value registers it and runs its
|
|
5
5
|
* `init()` once, if present; omitting one retrieves.
|
|
6
6
|
*/
|
|
7
|
-
export declare const store:
|
|
7
|
+
export declare const store: {
|
|
8
|
+
<T extends Record<string, any>>(name: string, value: T): T;
|
|
9
|
+
/** A name that was never registered reads as undefined. */
|
|
10
|
+
<T extends Record<string, any>>(name: string): T | undefined;
|
|
11
|
+
};
|
package/dist/types/utils.d.mts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
export declare const checkAttr: (el: Element, name: string) => string | null;
|
|
2
|
-
/**
|
|
3
|
-
* Adds a listener and returns a remover. Callers are expected to use it:
|
|
4
|
-
* `app.unmount(el)` leaves elements in the document, so a listener left behind
|
|
5
|
-
* would keep driving markup meant to be inert.
|
|
6
|
-
*/
|
|
7
2
|
export declare const listen: (el: Element, event: string, handler: any, options?: any) => () => void;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
export declare const checkAttr: (el: Element, name: string) => string | null;
|
|
2
|
-
/**
|
|
3
|
-
* Adds a listener and returns a remover. Callers are expected to use it:
|
|
4
|
-
* `app.unmount(el)` leaves elements in the document, so a listener left behind
|
|
5
|
-
* would keep driving markup meant to be inert.
|
|
6
|
-
*/
|
|
7
2
|
export declare const listen: (el: Element, event: string, handler: any, options?: any) => () => void;
|
package/dist/types/warn.d.mts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Development warnings.
|
|
3
|
-
*
|
|
4
|
-
* Every call site is guarded by `import.meta.env.DEV`; the production build
|
|
5
|
-
* replaces that constant and terser drops the branch, so neither these
|
|
6
|
-
* functions nor their strings ship. Messages are therefore free to be wordy —
|
|
7
|
-
* say what to do instead.
|
|
8
|
-
*/
|
|
9
1
|
export declare const warn: (msg: string) => void;
|
|
10
|
-
/**
|
|
11
|
-
* Warns once per `key`. Most callers are effects, which re-run on every
|
|
12
|
-
* relevant change — one mistake would otherwise print on every keystroke.
|
|
13
|
-
*/
|
|
14
2
|
export declare const warnOnce: (key: string, msg: string) => void;
|
package/dist/types/warn.d.ts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Development warnings.
|
|
3
|
-
*
|
|
4
|
-
* Every call site is guarded by `import.meta.env.DEV`; the production build
|
|
5
|
-
* replaces that constant and terser drops the branch, so neither these
|
|
6
|
-
* functions nor their strings ship. Messages are therefore free to be wordy —
|
|
7
|
-
* say what to do instead.
|
|
8
|
-
*/
|
|
9
1
|
export declare const warn: (msg: string) => void;
|
|
10
|
-
/**
|
|
11
|
-
* Warns once per `key`. Most callers are effects, which re-run on every
|
|
12
|
-
* relevant change — one mistake would otherwise print on every keystroke.
|
|
13
|
-
*/
|
|
14
2
|
export declare const warnOnce: (key: string, msg: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aevantec/litevue",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
},
|
|
264
264
|
"devDependencies": {
|
|
265
265
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
266
|
-
"@tailwindcss/vite": "4.3.
|
|
266
|
+
"@tailwindcss/vite": "4.3.5",
|
|
267
267
|
"@vitest/browser": "^5.1.0",
|
|
268
268
|
"@vitest/browser-playwright": "^5.1.0",
|
|
269
269
|
"@vitest/coverage-v8": "^5.1.0",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"playwright": "^1.62.1",
|
|
274
274
|
"prettier": "^3.4.0",
|
|
275
275
|
"publint": "^0.3.24",
|
|
276
|
-
"tailwindcss": "4.3.
|
|
276
|
+
"tailwindcss": "4.3.5",
|
|
277
277
|
"terser": "^5.50.0",
|
|
278
278
|
"typescript": "^7.0.2",
|
|
279
279
|
"vite": "^8.2.2",
|