@miragon/modeler-shell 0.0.0-stage → 0.2.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/API.md +2869 -0
- package/LICENSE +21 -0
- package/README.md +566 -2
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/appearance-BBaM_4bD.d.ts +323 -0
- package/dist/appearance-D3FUcbu6.d.cts +53 -0
- package/dist/appearance-D3FUcbu6.d.ts +53 -0
- package/dist/appearance-XX3JC3pI.d.cts +323 -0
- package/dist/chunk-66HCSJNY.js +2792 -0
- package/dist/chunk-66HCSJNY.js.map +1 -0
- package/dist/chunk-KYDG5DMX.js +136 -0
- package/dist/chunk-KYDG5DMX.js.map +1 -0
- package/dist/chunk-N4QXFF3A.js +23 -0
- package/dist/chunk-N4QXFF3A.js.map +1 -0
- package/dist/chunk-OADW3GPA.js +785 -0
- package/dist/chunk-OADW3GPA.js.map +1 -0
- package/dist/core.cjs +873 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +246 -0
- package/dist/core.d.ts +246 -0
- package/dist/core.js +131 -0
- package/dist/core.js.map +1 -0
- package/dist/diagram-js.cjs +1147 -0
- package/dist/diagram-js.cjs.map +1 -0
- package/dist/diagram-js.d.cts +170 -0
- package/dist/diagram-js.d.ts +170 -0
- package/dist/diagram-js.js +879 -0
- package/dist/diagram-js.js.map +1 -0
- package/dist/index.cjs +3632 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +143 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol-DhYBakWL.d.cts +15 -0
- package/dist/protocol-IeW8bf4f.d.ts +15 -0
- package/dist/shell.css +1603 -0
- package/dist/testing-vscode-stub.cjs +332 -0
- package/dist/testing-vscode-stub.cjs.map +1 -0
- package/dist/testing-vscode-stub.d.cts +65 -0
- package/dist/testing-vscode-stub.d.ts +65 -0
- package/dist/testing-vscode-stub.js +154 -0
- package/dist/testing-vscode-stub.js.map +1 -0
- package/dist/testing.cjs +4663 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +231 -0
- package/dist/testing.d.ts +231 -0
- package/dist/testing.js +4483 -0
- package/dist/testing.js.map +1 -0
- package/dist/toasts-Bp0REqdq.d.cts +142 -0
- package/dist/toasts-Bp0REqdq.d.ts +142 -0
- package/dist/types-CnRrINRs.d.cts +445 -0
- package/dist/types-PuDZczzy.d.ts +445 -0
- package/dist/vscode-extension.cjs +215 -0
- package/dist/vscode-extension.cjs.map +1 -0
- package/dist/vscode-extension.d.cts +103 -0
- package/dist/vscode-extension.d.ts +103 -0
- package/dist/vscode-extension.js +24 -0
- package/dist/vscode-extension.js.map +1 -0
- package/dist/vscode-webview.cjs +3561 -0
- package/dist/vscode-webview.cjs.map +1 -0
- package/dist/vscode-webview.d.cts +84 -0
- package/dist/vscode-webview.d.ts +84 -0
- package/dist/vscode-webview.js +259 -0
- package/dist/vscode-webview.js.map +1 -0
- package/package.json +145 -4
- package/src/core/appearance.ts +104 -0
- package/src/core/feedback/appearance.ts +141 -0
- package/src/core/feedback/problems.ts +23 -0
- package/src/core/feedback/toasts.ts +118 -0
- package/src/core/fit.ts +220 -0
- package/src/core/index.ts +127 -0
- package/src/core/keymap.ts +295 -0
- package/src/core/layout.ts +69 -0
- package/src/core/messages.ts +159 -0
- package/src/core/sizes.ts +85 -0
- package/src/core/types.ts +106 -0
- package/src/core/web-chrome/bottom-row.ts +37 -0
- package/src/core/web-chrome/drop.ts +78 -0
- package/src/core/web-chrome/top-row.ts +66 -0
- package/src/core/zoom.ts +74 -0
- package/src/core.ts +2 -0
- package/src/diagram-js/connect.ts +75 -0
- package/src/diagram-js/index.ts +16 -0
- package/src/diagram-js/module.ts +20 -0
- package/src/diagram-js/palette-skin.ts +267 -0
- package/src/diagram-js/palette.css +269 -0
- package/src/diagram-js/service.ts +243 -0
- package/src/diagram-js/types.ts +67 -0
- package/src/diagram-js/viewport.ts +583 -0
- package/src/diagram-js.ts +2 -0
- package/src/dom/buttons.css +124 -0
- package/src/dom/element.ts +51 -0
- package/src/dom/feedback/appearance.ts +184 -0
- package/src/dom/feedback/feedback.css +435 -0
- package/src/dom/feedback/problems-popover.ts +287 -0
- package/src/dom/feedback/toasts.ts +431 -0
- package/src/dom/hint.ts +51 -0
- package/src/dom/icons.ts +309 -0
- package/src/dom/index.ts +42 -0
- package/src/dom/inspector.ts +35 -0
- package/src/dom/keys.ts +67 -0
- package/src/dom/ledger.ts +87 -0
- package/src/dom/legend.ts +85 -0
- package/src/dom/menu.ts +404 -0
- package/src/dom/mount.ts +731 -0
- package/src/dom/problems.ts +73 -0
- package/src/dom/shell-dom.css +969 -0
- package/src/dom/status.ts +72 -0
- package/src/dom/tooltip.ts +237 -0
- package/src/dom/types.ts +459 -0
- package/src/dom/web/drop-zone.ts +181 -0
- package/src/dom/web/empty-state.ts +144 -0
- package/src/dom/web/legal.ts +75 -0
- package/src/dom/web/menu-groups.ts +69 -0
- package/src/dom/web/primary.ts +124 -0
- package/src/dom/web/web.css +386 -0
- package/src/dom/zoom-panel.ts +154 -0
- package/src/index.ts +3 -0
- package/src/shell.css +9 -0
- package/src/testing/case-tools.ts +164 -0
- package/src/testing/cases.ts +1077 -0
- package/src/testing/checks.ts +868 -0
- package/src/testing/facts.ts +641 -0
- package/src/testing/geometry.ts +652 -0
- package/src/testing/harness.ts +187 -0
- package/src/testing/index.ts +19 -0
- package/src/testing/page-tools.ts +457 -0
- package/src/testing/page.ts +27 -0
- package/src/testing/vscode-stub.ts +237 -0
- package/src/testing/web-cases.ts +913 -0
- package/src/testing/web-checks.ts +1049 -0
- package/src/testing/web-facts.ts +713 -0
- package/src/testing-vscode-stub.ts +2 -0
- package/src/testing.ts +2 -0
- package/src/vscode/extension/html.ts +107 -0
- package/src/vscode/extension/index.ts +8 -0
- package/src/vscode/extension/reveal.ts +9 -0
- package/src/vscode/extension/theme-bridge.ts +85 -0
- package/src/vscode/extension/types.ts +36 -0
- package/src/vscode/protocol.ts +31 -0
- package/src/vscode/webview/appearance.ts +141 -0
- package/src/vscode/webview/index.ts +8 -0
- package/src/vscode/webview/mount.ts +88 -0
- package/src/vscode/webview/state.ts +116 -0
- package/src/vscode-extension.ts +2 -0
- package/src/vscode-webview.ts +2 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { B as BottomObstacle, a as Bounds, C as CHROME_ISLANDS, b as ChromeIsland, I as Insets, M as MAX_TOASTS, P as PaletteRow, c as Point, S as ScaledViewbox, d as ShellHost, e as Size, T as TOAST_DURATION_MS, f as TOAST_MAX_WIDTH, g as ToastAction, h as ToastRequest, i as ToastSlot, j as ToastStackInput, k as ToastStatus, V as ViewportState, Z as ZoomTarget, t as toastLifetime, l as toastStackBottom, m as toastStackWidth, n as toastToEvict } from './toasts-Bp0REqdq.cjs';
|
|
2
|
+
export { BottomRowInput, FIT_ANIMATION_MS, FitLayout, INVALID_STATUS_DELAY_MS, LEGAL_LINE_HEIGHT, MAX_FIT_ZOOM, PALETTE_CLEARANCE, PaletteRowInput, PrimaryWidths, SHELL, SHELL_TOKENS, ShellSizeName, ShellSizes, TOOLTIP_DELAY_MS, TooltipPlacementInput, TopRow, TopRowInput, VIEW_TOLERANCE, ZOOM_MAX, ZOOM_MIN, ZoomReadout, canZoomIn, canZoomOut, decidePaletteRow, decideTopRow, easeStandard, fitInsets, fitViewbox, formatNumber, formatPercent, freeRectCenter, interpolateViewbox, legalLineHeight, legendStartsOpen, placeTooltip, sameView, shellSizesFromTokens, zoomReadout, zoomRowRaised } from './core.cjs';
|
|
3
|
+
export { A as APPEARANCE_STORAGE_KEY, a as AppearanceChoice, C as ChromeKey, D as DocumentMode, b as DragContext, c as DragItemLike, d as DragVerdict, e as DropForbiddenReason, K as KeyAction, f as KeyContext, g as KeyDecision, h as KeyLike, N as NavigatorLike, P as Platform, i as ProblemItem, j as ProblemSeverity, S as ShellMessageOverrides, k as ShellMessages, T as TEXT_FIELD_SELECTOR, l as ThemeColors, W as WebModeScriptOptions, m as acceptsFile, n as ariaKeyShortcuts, o as ariaKeyShortcutsFromLabel, p as commandKeyLabel, q as decideKey, r as defaultMessages, s as detectPlatform, t as documentMode, u as dragVerdict, v as isUndoRedoKey, w as matchChromeKey, x as parseAppearanceChoice, y as problemSummary, z as resolveMessages, B as shortcutLabel, E as webHeadMarkup, F as webModeScript } from './appearance-XX3JC3pI.cjs';
|
|
4
|
+
export { A as Appearance, a as AppearanceAttributes, C as ColorThemeSetting, K as Kontrast, R as REDUCED_MOTION_CLASS, T as Theme, b as appearanceAttributes, c as appearanceFromBodyClasses, d as appearanceFromColorThemeKind, r as reducedMotionFromBodyClasses, e as requestedAppearance, f as resolveAppearance } from './appearance-D3FUcbu6.cjs';
|
|
5
|
+
import { S as ShellOptions, a as ShellHandle } from './types-CnRrINRs.cjs';
|
|
6
|
+
export { A as AppearanceHandle, D as DropZoneOptions, E as EmptyHintOptions, b as EmptyStateOptions, F as FileMenuAction, c as FileMenuOptions, I as ICONS, d as IconNode, e as IconOptions, f as InspectorHandle, g as InspectorOptions, L as LegalLineOptions, h as LegalLink, i as LegendHandle, j as LegendOptions, M as MenuActionEntry, k as MenuCheckboxEntry, l as MenuDialogEntry, m as MenuEntry, n as MenuGroups, o as MenuHandle, p as MenuRadioGroup, q as MenuRadioOption, P as PALETTE_TOOL_ICON, r as PaletteReadOnlyState, s as PaletteRegistration, t as PrimaryActionHandle, u as PrimaryActionOptions, v as ProblemSummary, w as ProblemsOptions, x as ShellIconName, y as StatusMessage, z as StatusSeverity, B as StorageLike, T as ToastHandle, C as TooltipContent, G as TooltipHandle, W as WebAppearanceOptions, H as iconElement, J as iconMarkup } from './types-CnRrINRs.cjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The fixed groups of guide §5.4 in their order, written as `data-menu-group`. File and Appearance
|
|
10
|
+
* exist in the web host only and come from the shell (`ShellOptions.file`, the Appearance group of
|
|
11
|
+
* a dark-capable modeler); Model, Export and Help from `MenuGroups`.
|
|
12
|
+
*/
|
|
13
|
+
type MenuGroupName = "file" | "model" | "export" | "appearance" | "help";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Turns `root` into the shell (`.cd-shell`, container `cd-shell`) and renders the chrome in the
|
|
17
|
+
* DOM order of guide §5.14: menu trigger, primary action (web), canvas slot, status box,
|
|
18
|
+
* empty-file hint, empty state (web), inspector, problems pill, legend, legal line (web), zoom
|
|
19
|
+
* panel, then the layer for dropdown, tooltip, problems popover and drop zone, and last the toast
|
|
20
|
+
* stack (web, embedded). Installs the one `keydown` listener (see `ShellOptions.keyScope`) and the
|
|
21
|
+
* root `ResizeObserver`.
|
|
22
|
+
*
|
|
23
|
+
* `root` must get its size from outside (`container-type: size`): `height: 100%` in an own
|
|
24
|
+
* document, an explicitly sized element in a foreign page. When rendering throws (a modeler's
|
|
25
|
+
* `legend.render`), everything added so far is removed again before the error propagates.
|
|
26
|
+
*/
|
|
27
|
+
declare function mountShell(root: HTMLElement, options: ShellOptions): ShellHandle;
|
|
28
|
+
|
|
29
|
+
export { type MenuGroupName, ShellHandle, ShellOptions, mountShell };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { B as BottomObstacle, a as Bounds, C as CHROME_ISLANDS, b as ChromeIsland, I as Insets, M as MAX_TOASTS, P as PaletteRow, c as Point, S as ScaledViewbox, d as ShellHost, e as Size, T as TOAST_DURATION_MS, f as TOAST_MAX_WIDTH, g as ToastAction, h as ToastRequest, i as ToastSlot, j as ToastStackInput, k as ToastStatus, V as ViewportState, Z as ZoomTarget, t as toastLifetime, l as toastStackBottom, m as toastStackWidth, n as toastToEvict } from './toasts-Bp0REqdq.js';
|
|
2
|
+
export { BottomRowInput, FIT_ANIMATION_MS, FitLayout, INVALID_STATUS_DELAY_MS, LEGAL_LINE_HEIGHT, MAX_FIT_ZOOM, PALETTE_CLEARANCE, PaletteRowInput, PrimaryWidths, SHELL, SHELL_TOKENS, ShellSizeName, ShellSizes, TOOLTIP_DELAY_MS, TooltipPlacementInput, TopRow, TopRowInput, VIEW_TOLERANCE, ZOOM_MAX, ZOOM_MIN, ZoomReadout, canZoomIn, canZoomOut, decidePaletteRow, decideTopRow, easeStandard, fitInsets, fitViewbox, formatNumber, formatPercent, freeRectCenter, interpolateViewbox, legalLineHeight, legendStartsOpen, placeTooltip, sameView, shellSizesFromTokens, zoomReadout, zoomRowRaised } from './core.js';
|
|
3
|
+
export { A as APPEARANCE_STORAGE_KEY, a as AppearanceChoice, C as ChromeKey, D as DocumentMode, b as DragContext, c as DragItemLike, d as DragVerdict, e as DropForbiddenReason, K as KeyAction, f as KeyContext, g as KeyDecision, h as KeyLike, N as NavigatorLike, P as Platform, i as ProblemItem, j as ProblemSeverity, S as ShellMessageOverrides, k as ShellMessages, T as TEXT_FIELD_SELECTOR, l as ThemeColors, W as WebModeScriptOptions, m as acceptsFile, n as ariaKeyShortcuts, o as ariaKeyShortcutsFromLabel, p as commandKeyLabel, q as decideKey, r as defaultMessages, s as detectPlatform, t as documentMode, u as dragVerdict, v as isUndoRedoKey, w as matchChromeKey, x as parseAppearanceChoice, y as problemSummary, z as resolveMessages, B as shortcutLabel, E as webHeadMarkup, F as webModeScript } from './appearance-BBaM_4bD.js';
|
|
4
|
+
export { A as Appearance, a as AppearanceAttributes, C as ColorThemeSetting, K as Kontrast, R as REDUCED_MOTION_CLASS, T as Theme, b as appearanceAttributes, c as appearanceFromBodyClasses, d as appearanceFromColorThemeKind, r as reducedMotionFromBodyClasses, e as requestedAppearance, f as resolveAppearance } from './appearance-D3FUcbu6.js';
|
|
5
|
+
import { S as ShellOptions, a as ShellHandle } from './types-PuDZczzy.js';
|
|
6
|
+
export { A as AppearanceHandle, D as DropZoneOptions, E as EmptyHintOptions, b as EmptyStateOptions, F as FileMenuAction, c as FileMenuOptions, I as ICONS, d as IconNode, e as IconOptions, f as InspectorHandle, g as InspectorOptions, L as LegalLineOptions, h as LegalLink, i as LegendHandle, j as LegendOptions, M as MenuActionEntry, k as MenuCheckboxEntry, l as MenuDialogEntry, m as MenuEntry, n as MenuGroups, o as MenuHandle, p as MenuRadioGroup, q as MenuRadioOption, P as PALETTE_TOOL_ICON, r as PaletteReadOnlyState, s as PaletteRegistration, t as PrimaryActionHandle, u as PrimaryActionOptions, v as ProblemSummary, w as ProblemsOptions, x as ShellIconName, y as StatusMessage, z as StatusSeverity, B as StorageLike, T as ToastHandle, C as TooltipContent, G as TooltipHandle, W as WebAppearanceOptions, H as iconElement, J as iconMarkup } from './types-PuDZczzy.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The fixed groups of guide §5.4 in their order, written as `data-menu-group`. File and Appearance
|
|
10
|
+
* exist in the web host only and come from the shell (`ShellOptions.file`, the Appearance group of
|
|
11
|
+
* a dark-capable modeler); Model, Export and Help from `MenuGroups`.
|
|
12
|
+
*/
|
|
13
|
+
type MenuGroupName = "file" | "model" | "export" | "appearance" | "help";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Turns `root` into the shell (`.cd-shell`, container `cd-shell`) and renders the chrome in the
|
|
17
|
+
* DOM order of guide §5.14: menu trigger, primary action (web), canvas slot, status box,
|
|
18
|
+
* empty-file hint, empty state (web), inspector, problems pill, legend, legal line (web), zoom
|
|
19
|
+
* panel, then the layer for dropdown, tooltip, problems popover and drop zone, and last the toast
|
|
20
|
+
* stack (web, embedded). Installs the one `keydown` listener (see `ShellOptions.keyScope`) and the
|
|
21
|
+
* root `ResizeObserver`.
|
|
22
|
+
*
|
|
23
|
+
* `root` must get its size from outside (`container-type: size`): `height: 100%` in an own
|
|
24
|
+
* document, an explicitly sized element in a foreign page. When rendering throws (a modeler's
|
|
25
|
+
* `legend.render`), everything added so far is removed again before the error propagates.
|
|
26
|
+
*/
|
|
27
|
+
declare function mountShell(root: HTMLElement, options: ShellOptions): ShellHandle;
|
|
28
|
+
|
|
29
|
+
export { type MenuGroupName, ShellHandle, ShellOptions, mountShell };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ICONS,
|
|
3
|
+
PALETTE_TOOL_ICON,
|
|
4
|
+
iconElement,
|
|
5
|
+
iconMarkup,
|
|
6
|
+
mountShell
|
|
7
|
+
} from "./chunk-66HCSJNY.js";
|
|
8
|
+
import {
|
|
9
|
+
APPEARANCE_STORAGE_KEY,
|
|
10
|
+
CHROME_ISLANDS,
|
|
11
|
+
FIT_ANIMATION_MS,
|
|
12
|
+
INVALID_STATUS_DELAY_MS,
|
|
13
|
+
LEGAL_LINE_HEIGHT,
|
|
14
|
+
MAX_FIT_ZOOM,
|
|
15
|
+
MAX_TOASTS,
|
|
16
|
+
PALETTE_CLEARANCE,
|
|
17
|
+
REDUCED_MOTION_CLASS,
|
|
18
|
+
SHELL,
|
|
19
|
+
SHELL_TOKENS,
|
|
20
|
+
TEXT_FIELD_SELECTOR,
|
|
21
|
+
TOAST_DURATION_MS,
|
|
22
|
+
TOAST_MAX_WIDTH,
|
|
23
|
+
TOOLTIP_DELAY_MS,
|
|
24
|
+
VIEW_TOLERANCE,
|
|
25
|
+
ZOOM_MAX,
|
|
26
|
+
ZOOM_MIN,
|
|
27
|
+
acceptsFile,
|
|
28
|
+
appearanceAttributes,
|
|
29
|
+
appearanceFromBodyClasses,
|
|
30
|
+
appearanceFromColorThemeKind,
|
|
31
|
+
ariaKeyShortcuts,
|
|
32
|
+
ariaKeyShortcutsFromLabel,
|
|
33
|
+
canZoomIn,
|
|
34
|
+
canZoomOut,
|
|
35
|
+
commandKeyLabel,
|
|
36
|
+
decideKey,
|
|
37
|
+
decidePaletteRow,
|
|
38
|
+
decideTopRow,
|
|
39
|
+
defaultMessages,
|
|
40
|
+
detectPlatform,
|
|
41
|
+
documentMode,
|
|
42
|
+
dragVerdict,
|
|
43
|
+
easeStandard,
|
|
44
|
+
fitInsets,
|
|
45
|
+
fitViewbox,
|
|
46
|
+
formatNumber,
|
|
47
|
+
formatPercent,
|
|
48
|
+
freeRectCenter,
|
|
49
|
+
interpolateViewbox,
|
|
50
|
+
isUndoRedoKey,
|
|
51
|
+
legalLineHeight,
|
|
52
|
+
legendStartsOpen,
|
|
53
|
+
matchChromeKey,
|
|
54
|
+
parseAppearanceChoice,
|
|
55
|
+
placeTooltip,
|
|
56
|
+
problemSummary,
|
|
57
|
+
reducedMotionFromBodyClasses,
|
|
58
|
+
requestedAppearance,
|
|
59
|
+
resolveAppearance,
|
|
60
|
+
resolveMessages,
|
|
61
|
+
sameView,
|
|
62
|
+
shellSizesFromTokens,
|
|
63
|
+
shortcutLabel,
|
|
64
|
+
toastLifetime,
|
|
65
|
+
toastStackBottom,
|
|
66
|
+
toastStackWidth,
|
|
67
|
+
toastToEvict,
|
|
68
|
+
webHeadMarkup,
|
|
69
|
+
webModeScript,
|
|
70
|
+
zoomReadout,
|
|
71
|
+
zoomRowRaised
|
|
72
|
+
} from "./chunk-OADW3GPA.js";
|
|
73
|
+
export {
|
|
74
|
+
APPEARANCE_STORAGE_KEY,
|
|
75
|
+
CHROME_ISLANDS,
|
|
76
|
+
FIT_ANIMATION_MS,
|
|
77
|
+
ICONS,
|
|
78
|
+
INVALID_STATUS_DELAY_MS,
|
|
79
|
+
LEGAL_LINE_HEIGHT,
|
|
80
|
+
MAX_FIT_ZOOM,
|
|
81
|
+
MAX_TOASTS,
|
|
82
|
+
PALETTE_CLEARANCE,
|
|
83
|
+
PALETTE_TOOL_ICON,
|
|
84
|
+
REDUCED_MOTION_CLASS,
|
|
85
|
+
SHELL,
|
|
86
|
+
SHELL_TOKENS,
|
|
87
|
+
TEXT_FIELD_SELECTOR,
|
|
88
|
+
TOAST_DURATION_MS,
|
|
89
|
+
TOAST_MAX_WIDTH,
|
|
90
|
+
TOOLTIP_DELAY_MS,
|
|
91
|
+
VIEW_TOLERANCE,
|
|
92
|
+
ZOOM_MAX,
|
|
93
|
+
ZOOM_MIN,
|
|
94
|
+
acceptsFile,
|
|
95
|
+
appearanceAttributes,
|
|
96
|
+
appearanceFromBodyClasses,
|
|
97
|
+
appearanceFromColorThemeKind,
|
|
98
|
+
ariaKeyShortcuts,
|
|
99
|
+
ariaKeyShortcutsFromLabel,
|
|
100
|
+
canZoomIn,
|
|
101
|
+
canZoomOut,
|
|
102
|
+
commandKeyLabel,
|
|
103
|
+
decideKey,
|
|
104
|
+
decidePaletteRow,
|
|
105
|
+
decideTopRow,
|
|
106
|
+
defaultMessages,
|
|
107
|
+
detectPlatform,
|
|
108
|
+
documentMode,
|
|
109
|
+
dragVerdict,
|
|
110
|
+
easeStandard,
|
|
111
|
+
fitInsets,
|
|
112
|
+
fitViewbox,
|
|
113
|
+
formatNumber,
|
|
114
|
+
formatPercent,
|
|
115
|
+
freeRectCenter,
|
|
116
|
+
iconElement,
|
|
117
|
+
iconMarkup,
|
|
118
|
+
interpolateViewbox,
|
|
119
|
+
isUndoRedoKey,
|
|
120
|
+
legalLineHeight,
|
|
121
|
+
legendStartsOpen,
|
|
122
|
+
matchChromeKey,
|
|
123
|
+
mountShell,
|
|
124
|
+
parseAppearanceChoice,
|
|
125
|
+
placeTooltip,
|
|
126
|
+
problemSummary,
|
|
127
|
+
reducedMotionFromBodyClasses,
|
|
128
|
+
requestedAppearance,
|
|
129
|
+
resolveAppearance,
|
|
130
|
+
resolveMessages,
|
|
131
|
+
sameView,
|
|
132
|
+
shellSizesFromTokens,
|
|
133
|
+
shortcutLabel,
|
|
134
|
+
toastLifetime,
|
|
135
|
+
toastStackBottom,
|
|
136
|
+
toastStackWidth,
|
|
137
|
+
toastToEvict,
|
|
138
|
+
webHeadMarkup,
|
|
139
|
+
webModeScript,
|
|
140
|
+
zoomReadout,
|
|
141
|
+
zoomRowRaised
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { A as Appearance } from './appearance-D3FUcbu6.cjs';
|
|
2
|
+
|
|
3
|
+
/** The one message the theme bridge posts to the webview. */
|
|
4
|
+
declare const APPEARANCE_MESSAGE_TYPE = "modelerShell.appearance";
|
|
5
|
+
interface AppearanceMessage {
|
|
6
|
+
type: typeof APPEARANCE_MESSAGE_TYPE;
|
|
7
|
+
/** Already resolved against the modeler's themes. */
|
|
8
|
+
appearance: Appearance;
|
|
9
|
+
}
|
|
10
|
+
/** A plain, JSON-safe message (no `kontrast: undefined` key). */
|
|
11
|
+
declare function appearanceMessage(appearance: Appearance): AppearanceMessage;
|
|
12
|
+
/** Type guard for `MessageEvent.data` in the webview. */
|
|
13
|
+
declare function isAppearanceMessage(value: unknown): value is AppearanceMessage;
|
|
14
|
+
|
|
15
|
+
export { APPEARANCE_MESSAGE_TYPE as A, type AppearanceMessage as a, appearanceMessage as b, isAppearanceMessage as i };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { A as Appearance } from './appearance-D3FUcbu6.js';
|
|
2
|
+
|
|
3
|
+
/** The one message the theme bridge posts to the webview. */
|
|
4
|
+
declare const APPEARANCE_MESSAGE_TYPE = "modelerShell.appearance";
|
|
5
|
+
interface AppearanceMessage {
|
|
6
|
+
type: typeof APPEARANCE_MESSAGE_TYPE;
|
|
7
|
+
/** Already resolved against the modeler's themes. */
|
|
8
|
+
appearance: Appearance;
|
|
9
|
+
}
|
|
10
|
+
/** A plain, JSON-safe message (no `kontrast: undefined` key). */
|
|
11
|
+
declare function appearanceMessage(appearance: Appearance): AppearanceMessage;
|
|
12
|
+
/** Type guard for `MessageEvent.data` in the webview. */
|
|
13
|
+
declare function isAppearanceMessage(value: unknown): value is AppearanceMessage;
|
|
14
|
+
|
|
15
|
+
export { APPEARANCE_MESSAGE_TYPE as A, type AppearanceMessage as a, appearanceMessage as b, isAppearanceMessage as i };
|