@wildwinter/app-shell 0.56.0 → 0.58.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/README.md +215 -0
- package/dist/chunk-4JQWNC6Z.js +319 -0
- package/dist/chunk-4JQWNC6Z.js.map +1 -0
- package/dist/chunk-ICYPXUNA.js +8 -0
- package/dist/chunk-ICYPXUNA.js.map +1 -0
- package/dist/{chunk-CPNTROWD.js → chunk-OZQ2BYXH.js} +13 -4
- package/dist/chunk-OZQ2BYXH.js.map +1 -0
- package/dist/controls.css +52 -0
- package/dist/controls.css.map +1 -1
- package/dist/index.cjs +352 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/dist/tool-window.cjs +11 -2
- package/dist/tool-window.cjs.map +1 -1
- package/dist/tool-window.d.cts +10 -4
- package/dist/tool-window.d.ts +10 -4
- package/dist/tool-window.js +1 -1
- package/dist/updater.cjs.map +1 -1
- package/dist/updater.js +1 -1
- package/dist/value-rows.cjs +200 -10
- package/dist/value-rows.cjs.map +1 -1
- package/dist/value-rows.d.cts +36 -1
- package/dist/value-rows.d.ts +36 -1
- package/dist/value-rows.js +197 -12
- package/dist/value-rows.js.map +1 -1
- package/dist/view-client.cjs +172 -0
- package/dist/view-client.cjs.map +1 -0
- package/dist/view-client.d.cts +46 -0
- package/dist/view-client.d.ts +46 -0
- package/dist/view-client.js +165 -0
- package/dist/view-client.js.map +1 -0
- package/dist/view-host-web.cjs +327 -0
- package/dist/view-host-web.cjs.map +1 -0
- package/dist/view-host-web.d.cts +61 -0
- package/dist/view-host-web.d.ts +61 -0
- package/dist/view-host-web.js +4 -0
- package/dist/view-host-web.js.map +1 -0
- package/dist/view-host.cjs +532 -0
- package/dist/view-host.cjs.map +1 -0
- package/dist/view-host.d.cts +178 -0
- package/dist/view-host.d.ts +178 -0
- package/dist/view-host.js +426 -0
- package/dist/view-host.js.map +1 -0
- package/dist/view-preload.cjs +16 -0
- package/dist/view-preload.cjs.map +1 -0
- package/dist/view-preload.js +8 -0
- package/dist/view-preload.js.map +1 -0
- package/dist/view-protocol.cjs +12 -0
- package/dist/view-protocol.cjs.map +1 -0
- package/dist/view-protocol.d.cts +257 -0
- package/dist/view-protocol.d.ts +257 -0
- package/dist/view-protocol.js +3 -0
- package/dist/view-protocol.js.map +1 -0
- package/package.json +25 -4
- package/dist/chunk-CPNTROWD.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -13,6 +13,8 @@ export { KitGallery, KitGalleryChoice, KitGalleryItem, KitGalleryOptions, KitGal
|
|
|
13
13
|
export { LinkStatus, LinkStatusChip, LinkStatusClass, LinkStatusOptions, linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './link-status.cjs';
|
|
14
14
|
export { FieldDeclLike, FieldRowHandle, FieldRowOptions, FieldRows, FieldValue, RungStripOptions, ValueDeclLike, defaultLabel, fallbackText, fieldRow, fieldRows, fieldValueProblem, rungStrip, stageGateNote } from './value-control.cjs';
|
|
15
15
|
export { Debounced, copyWithFeedback, debounce, formatCount, isEditableTarget, isLocalOrigin, plural, relativeTime } from './util.cjs';
|
|
16
|
+
export { HostViewOptions, HostViewsSetup, VIEW_THEME_TOKENS, ViewHosts, hostView, hostViews, onViewPort, readTheme } from './view-host-web.cjs';
|
|
17
|
+
export { VIEW_API, VIEW_PORT_CHANNEL, VIEW_PORT_MESSAGE, ViewAdapter, ViewEdit, ViewHandle, ViewHostName, ViewJson, ViewMediaLength, ViewNode, ViewPortMeta, ViewRefusal, ViewSelection, ViewTheme, ViewWritable } from './view-protocol.cjs';
|
|
16
18
|
import './app-store.cjs';
|
|
17
19
|
import 'electron';
|
|
18
20
|
|
|
@@ -525,6 +527,20 @@ interface FollowButton {
|
|
|
525
527
|
* the author asking for it.
|
|
526
528
|
*/
|
|
527
529
|
declare function followButton(opts: FollowButtonOptions): FollowButton;
|
|
530
|
+
interface SelectionFollowButtonOptions {
|
|
531
|
+
on: boolean;
|
|
532
|
+
/** Persist the choice. The button reflects the click itself. */
|
|
533
|
+
onToggle: (on: boolean) => void;
|
|
534
|
+
/** What the window stays on when it stops following: "line" (Patterpad), "card" (Storyletter). */
|
|
535
|
+
what?: string;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* "Follow selection": the other direction from `followButton`. A helper window
|
|
539
|
+
* that shows whatever the editor has selected (Patterpad's fields window, after
|
|
540
|
+
* Pattershot's brief H1) moves along as the author moves; off, it stays on the
|
|
541
|
+
* node it shows. On by default in such a window: following is what it is for.
|
|
542
|
+
*/
|
|
543
|
+
declare function selectionFollowButton(opts: SelectionFollowButtonOptions): FollowButton;
|
|
528
544
|
|
|
529
545
|
interface ConfirmOptions {
|
|
530
546
|
title: string;
|
|
@@ -1243,4 +1259,4 @@ declare function historyNav(onBack: () => void, onForward: () => void): {
|
|
|
1243
1259
|
set(canBack: boolean, canForward: boolean): void;
|
|
1244
1260
|
};
|
|
1245
1261
|
|
|
1246
|
-
export { type AboutOptions, type AnchoredPanel, type AnchoredPanelOptions, type Child, type Comment, type CommentMessage, type CommentsOptions, type ConfirmOptions, type Crumb, type DocLine, type ElProps, type FieldHint, type FollowButton, type FollowButtonOptions, type GameIdEditorOptions, ICON_NAMES, ICON_SIZE, type IconName, type IconSvgName, type Identity, type IdentityOptions, type JobBeginOptions, type JobProgressOptions, type JobProgressView, type LabelledToggleOptions, type NavHistory, type NavHistoryOptions, type Notes, type NotesEditorOptions, PALETTE, PALETTE_SIZE, PROPERTY_NAME_HINT, type PaneShell, type PaneShellOptions, type PaneShellState, type PaneSide, type PaneSideConfig, type PinButton, type PinButtonOptions, type PropertyRefOptions, RESERVED_PROPERTY_NAMES, type SaveController, type SaveControllerOptions, type SaveIndicator, type SaveStatus, type ShardVc, type StageChipsOptions, type StaleBarOptions, type StepperBarOptions, type StepperItem, type StepperTone, type TipRect, type ToastKind, type ToastOptions, type ToolWindowHeadOptions, type TooltipOptions, type VcBadge, type VcMap, askIdentity, bindPropertyName, bindPropertyRef, breadcrumb, closeAnchoredPanel, closeWithExit, colourFor, colourIndex, confirmDialog, createNavHistory, createSaveController, dismissToast, el, firstIllegalPropertyName, foldVc, followButton, gameIdify, hideTip, historyNav, icon, iconBtn, iconHtml, iconNameOfGlyph, iconNode, iconSvg, initTooltips, isCaseOnlyPropertyName, isIconName, isValidGameId, isValidPropertyName, labelled, labelledToggle, lockControls, lockNotice, metaLine, mountJobProgress, mountPaneShell, moveItem, openAnchoredPanel, openComments, openGameIdEditor, openNotesEditor, paintVcBadges, pinButton, placeAnchored, propertyNameProblem, propertyNameify, propertyRefProblem, renderStepperBar, revalidatePropertyRefs, saveIndicator, showAbout, stageChips, staleBar, tagChips, tipAt, tipBold, toast, toolWindowHead, vcBadgeFor, wireReorder };
|
|
1262
|
+
export { type AboutOptions, type AnchoredPanel, type AnchoredPanelOptions, type Child, type Comment, type CommentMessage, type CommentsOptions, type ConfirmOptions, type Crumb, type DocLine, type ElProps, type FieldHint, type FollowButton, type FollowButtonOptions, type GameIdEditorOptions, ICON_NAMES, ICON_SIZE, type IconName, type IconSvgName, type Identity, type IdentityOptions, type JobBeginOptions, type JobProgressOptions, type JobProgressView, type LabelledToggleOptions, type NavHistory, type NavHistoryOptions, type Notes, type NotesEditorOptions, PALETTE, PALETTE_SIZE, PROPERTY_NAME_HINT, type PaneShell, type PaneShellOptions, type PaneShellState, type PaneSide, type PaneSideConfig, type PinButton, type PinButtonOptions, type PropertyRefOptions, RESERVED_PROPERTY_NAMES, type SaveController, type SaveControllerOptions, type SaveIndicator, type SaveStatus, type ShardVc, type StageChipsOptions, type StaleBarOptions, type StepperBarOptions, type StepperItem, type StepperTone, type TipRect, type ToastKind, type ToastOptions, type ToolWindowHeadOptions, type TooltipOptions, type VcBadge, type VcMap, askIdentity, bindPropertyName, bindPropertyRef, breadcrumb, closeAnchoredPanel, closeWithExit, colourFor, colourIndex, confirmDialog, createNavHistory, createSaveController, dismissToast, el, firstIllegalPropertyName, foldVc, followButton, gameIdify, hideTip, historyNav, icon, iconBtn, iconHtml, iconNameOfGlyph, iconNode, iconSvg, initTooltips, isCaseOnlyPropertyName, isIconName, isValidGameId, isValidPropertyName, labelled, labelledToggle, lockControls, lockNotice, metaLine, mountJobProgress, mountPaneShell, moveItem, openAnchoredPanel, openComments, openGameIdEditor, openNotesEditor, paintVcBadges, pinButton, placeAnchored, propertyNameProblem, propertyNameify, propertyRefProblem, renderStepperBar, revalidatePropertyRefs, saveIndicator, selectionFollowButton, showAbout, stageChips, staleBar, tagChips, tipAt, tipBold, toast, toolWindowHead, vcBadgeFor, wireReorder };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export { KitGallery, KitGalleryChoice, KitGalleryItem, KitGalleryOptions, KitGal
|
|
|
13
13
|
export { LinkStatus, LinkStatusChip, LinkStatusClass, LinkStatusOptions, linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './link-status.js';
|
|
14
14
|
export { FieldDeclLike, FieldRowHandle, FieldRowOptions, FieldRows, FieldValue, RungStripOptions, ValueDeclLike, defaultLabel, fallbackText, fieldRow, fieldRows, fieldValueProblem, rungStrip, stageGateNote } from './value-control.js';
|
|
15
15
|
export { Debounced, copyWithFeedback, debounce, formatCount, isEditableTarget, isLocalOrigin, plural, relativeTime } from './util.js';
|
|
16
|
+
export { HostViewOptions, HostViewsSetup, VIEW_THEME_TOKENS, ViewHosts, hostView, hostViews, onViewPort, readTheme } from './view-host-web.js';
|
|
17
|
+
export { VIEW_API, VIEW_PORT_CHANNEL, VIEW_PORT_MESSAGE, ViewAdapter, ViewEdit, ViewHandle, ViewHostName, ViewJson, ViewMediaLength, ViewNode, ViewPortMeta, ViewRefusal, ViewSelection, ViewTheme, ViewWritable } from './view-protocol.js';
|
|
16
18
|
import './app-store.js';
|
|
17
19
|
import 'electron';
|
|
18
20
|
|
|
@@ -525,6 +527,20 @@ interface FollowButton {
|
|
|
525
527
|
* the author asking for it.
|
|
526
528
|
*/
|
|
527
529
|
declare function followButton(opts: FollowButtonOptions): FollowButton;
|
|
530
|
+
interface SelectionFollowButtonOptions {
|
|
531
|
+
on: boolean;
|
|
532
|
+
/** Persist the choice. The button reflects the click itself. */
|
|
533
|
+
onToggle: (on: boolean) => void;
|
|
534
|
+
/** What the window stays on when it stops following: "line" (Patterpad), "card" (Storyletter). */
|
|
535
|
+
what?: string;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* "Follow selection": the other direction from `followButton`. A helper window
|
|
539
|
+
* that shows whatever the editor has selected (Patterpad's fields window, after
|
|
540
|
+
* Pattershot's brief H1) moves along as the author moves; off, it stays on the
|
|
541
|
+
* node it shows. On by default in such a window: following is what it is for.
|
|
542
|
+
*/
|
|
543
|
+
declare function selectionFollowButton(opts: SelectionFollowButtonOptions): FollowButton;
|
|
528
544
|
|
|
529
545
|
interface ConfirmOptions {
|
|
530
546
|
title: string;
|
|
@@ -1243,4 +1259,4 @@ declare function historyNav(onBack: () => void, onForward: () => void): {
|
|
|
1243
1259
|
set(canBack: boolean, canForward: boolean): void;
|
|
1244
1260
|
};
|
|
1245
1261
|
|
|
1246
|
-
export { type AboutOptions, type AnchoredPanel, type AnchoredPanelOptions, type Child, type Comment, type CommentMessage, type CommentsOptions, type ConfirmOptions, type Crumb, type DocLine, type ElProps, type FieldHint, type FollowButton, type FollowButtonOptions, type GameIdEditorOptions, ICON_NAMES, ICON_SIZE, type IconName, type IconSvgName, type Identity, type IdentityOptions, type JobBeginOptions, type JobProgressOptions, type JobProgressView, type LabelledToggleOptions, type NavHistory, type NavHistoryOptions, type Notes, type NotesEditorOptions, PALETTE, PALETTE_SIZE, PROPERTY_NAME_HINT, type PaneShell, type PaneShellOptions, type PaneShellState, type PaneSide, type PaneSideConfig, type PinButton, type PinButtonOptions, type PropertyRefOptions, RESERVED_PROPERTY_NAMES, type SaveController, type SaveControllerOptions, type SaveIndicator, type SaveStatus, type ShardVc, type StageChipsOptions, type StaleBarOptions, type StepperBarOptions, type StepperItem, type StepperTone, type TipRect, type ToastKind, type ToastOptions, type ToolWindowHeadOptions, type TooltipOptions, type VcBadge, type VcMap, askIdentity, bindPropertyName, bindPropertyRef, breadcrumb, closeAnchoredPanel, closeWithExit, colourFor, colourIndex, confirmDialog, createNavHistory, createSaveController, dismissToast, el, firstIllegalPropertyName, foldVc, followButton, gameIdify, hideTip, historyNav, icon, iconBtn, iconHtml, iconNameOfGlyph, iconNode, iconSvg, initTooltips, isCaseOnlyPropertyName, isIconName, isValidGameId, isValidPropertyName, labelled, labelledToggle, lockControls, lockNotice, metaLine, mountJobProgress, mountPaneShell, moveItem, openAnchoredPanel, openComments, openGameIdEditor, openNotesEditor, paintVcBadges, pinButton, placeAnchored, propertyNameProblem, propertyNameify, propertyRefProblem, renderStepperBar, revalidatePropertyRefs, saveIndicator, showAbout, stageChips, staleBar, tagChips, tipAt, tipBold, toast, toolWindowHead, vcBadgeFor, wireReorder };
|
|
1262
|
+
export { type AboutOptions, type AnchoredPanel, type AnchoredPanelOptions, type Child, type Comment, type CommentMessage, type CommentsOptions, type ConfirmOptions, type Crumb, type DocLine, type ElProps, type FieldHint, type FollowButton, type FollowButtonOptions, type GameIdEditorOptions, ICON_NAMES, ICON_SIZE, type IconName, type IconSvgName, type Identity, type IdentityOptions, type JobBeginOptions, type JobProgressOptions, type JobProgressView, type LabelledToggleOptions, type NavHistory, type NavHistoryOptions, type Notes, type NotesEditorOptions, PALETTE, PALETTE_SIZE, PROPERTY_NAME_HINT, type PaneShell, type PaneShellOptions, type PaneShellState, type PaneSide, type PaneSideConfig, type PinButton, type PinButtonOptions, type PropertyRefOptions, RESERVED_PROPERTY_NAMES, type SaveController, type SaveControllerOptions, type SaveIndicator, type SaveStatus, type ShardVc, type StageChipsOptions, type StaleBarOptions, type StepperBarOptions, type StepperItem, type StepperTone, type TipRect, type ToastKind, type ToastOptions, type ToolWindowHeadOptions, type TooltipOptions, type VcBadge, type VcMap, askIdentity, bindPropertyName, bindPropertyRef, breadcrumb, closeAnchoredPanel, closeWithExit, colourFor, colourIndex, confirmDialog, createNavHistory, createSaveController, dismissToast, el, firstIllegalPropertyName, foldVc, followButton, gameIdify, hideTip, historyNav, icon, iconBtn, iconHtml, iconNameOfGlyph, iconNode, iconSvg, initTooltips, isCaseOnlyPropertyName, isIconName, isValidGameId, isValidPropertyName, labelled, labelledToggle, lockControls, lockNotice, metaLine, mountJobProgress, mountPaneShell, moveItem, openAnchoredPanel, openComments, openGameIdEditor, openNotesEditor, paintVcBadges, pinButton, placeAnchored, propertyNameProblem, propertyNameify, propertyRefProblem, renderStepperBar, revalidatePropertyRefs, saveIndicator, selectionFollowButton, showAbout, stageChips, staleBar, tagChips, tipAt, tipBold, toast, toolWindowHead, vcBadgeFor, wireReorder };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { VIEW_THEME_TOKENS, hostView, hostViews, onViewPort, readTheme } from './chunk-4JQWNC6Z.js';
|
|
1
2
|
export { mountWelcome } from './chunk-XSS7KM6F.js';
|
|
3
|
+
export { VIEW_API, VIEW_PORT_CHANNEL, VIEW_PORT_MESSAGE } from './chunk-ICYPXUNA.js';
|
|
2
4
|
export { feedUpdaterDownloadProgress, showUpdaterDialog } from './chunk-C245WRPF.js';
|
|
3
5
|
export { EDIT_MENU, FILE_MENU, GO_MENU, PANE_MENU, PLAY_MENU, PUBLISH_MENU, REVIEW_MENU, VIEW_MENU } from './chunk-T25WXWPB.js';
|
|
4
6
|
export { defaultProblemCopy, describeProblem, problemLine, problemName } from './chunk-4OAORWEM.js';
|
|
@@ -278,6 +280,27 @@ function followButton(opts) {
|
|
|
278
280
|
reflect();
|
|
279
281
|
} };
|
|
280
282
|
}
|
|
283
|
+
function selectionFollowButton(opts) {
|
|
284
|
+
const what = opts.what ?? "line";
|
|
285
|
+
const b = el("button", "btn swin-follow", "Follow selection");
|
|
286
|
+
b.type = "button";
|
|
287
|
+
let on = opts.on;
|
|
288
|
+
const reflect = () => {
|
|
289
|
+
b.classList.toggle("on", on);
|
|
290
|
+
b.setAttribute("aria-pressed", String(on));
|
|
291
|
+
b.dataset["tip"] = on ? `Shows whatever is selected in the editor. Click to stay on this ${what}.` : `Stays on this ${what}. Click to follow the selection.`;
|
|
292
|
+
};
|
|
293
|
+
reflect();
|
|
294
|
+
b.addEventListener("click", () => {
|
|
295
|
+
on = !on;
|
|
296
|
+
reflect();
|
|
297
|
+
opts.onToggle(on);
|
|
298
|
+
});
|
|
299
|
+
return { el: b, set: (next) => {
|
|
300
|
+
on = next;
|
|
301
|
+
reflect();
|
|
302
|
+
} };
|
|
303
|
+
}
|
|
281
304
|
|
|
282
305
|
// src/confirm.ts
|
|
283
306
|
function confirmDialog(opts) {
|
|
@@ -1261,6 +1284,6 @@ function historyNav(onBack, onForward) {
|
|
|
1261
1284
|
};
|
|
1262
1285
|
}
|
|
1263
1286
|
|
|
1264
|
-
export { PALETTE, PALETTE_SIZE, askIdentity, closeAnchoredPanel, colourFor, colourIndex, confirmDialog, createNavHistory, createSaveController, dismissToast, foldVc, followButton, gameIdify, historyNav, isValidGameId, lockControls, lockNotice, mountJobProgress, mountPaneShell, openAnchoredPanel, openComments, openGameIdEditor, openNotesEditor, paintVcBadges, pinButton, placeAnchored, renderStepperBar, saveIndicator, showAbout, staleBar, toast, toolWindowHead, vcBadgeFor };
|
|
1287
|
+
export { PALETTE, PALETTE_SIZE, askIdentity, closeAnchoredPanel, colourFor, colourIndex, confirmDialog, createNavHistory, createSaveController, dismissToast, foldVc, followButton, gameIdify, historyNav, isValidGameId, lockControls, lockNotice, mountJobProgress, mountPaneShell, openAnchoredPanel, openComments, openGameIdEditor, openNotesEditor, paintVcBadges, pinButton, placeAnchored, renderStepperBar, saveIndicator, selectionFollowButton, showAbout, staleBar, toast, toolWindowHead, vcBadgeFor };
|
|
1265
1288
|
//# sourceMappingURL=index.js.map
|
|
1266
1289
|
//# sourceMappingURL=index.js.map
|