@wildwinter/app-shell 0.54.0 → 0.56.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 +79 -0
- package/dist/controls.css +29 -0
- package/dist/controls.css.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/live-link.cjs +150 -0
- package/dist/live-link.cjs.map +1 -0
- package/dist/live-link.d.cts +71 -0
- package/dist/live-link.d.ts +71 -0
- package/dist/live-link.js +134 -0
- package/dist/live-link.js.map +1 -0
- package/dist/tokens.css +1 -1
- package/dist/tokens.css.map +1 -1
- package/dist/value-rows.cjs +89 -10
- package/dist/value-rows.cjs.map +1 -1
- package/dist/value-rows.d.cts +50 -1
- package/dist/value-rows.d.ts +50 -1
- package/dist/value-rows.js +91 -13
- package/dist/value-rows.js.map +1 -1
- package/package.json +14 -3
package/dist/index.d.cts
CHANGED
|
@@ -796,7 +796,8 @@ declare function vcBadgeFor(s: ShardVc | undefined): VcBadge | null;
|
|
|
796
796
|
declare function paintVcBadges(root: ParentNode, shards: VcMap): void;
|
|
797
797
|
/** Turn a region's editing controls off - or back on, but only the ones WE
|
|
798
798
|
* turned off, so a control disabled for its own reasons (the first card's
|
|
799
|
-
* "previous", a redraw-turns box on "always") stays disabled.
|
|
799
|
+
* "previous", a redraw-turns box on "always") stays disabled. `staysLive` is
|
|
800
|
+
* the app's own reading controls; the shell's (ALWAYS_LIVE) stay live too. */
|
|
800
801
|
declare function lockControls(host: HTMLElement, off: boolean, staysLive: string): void;
|
|
801
802
|
/** The notice a locked document opens with: who holds it, and why nothing types. */
|
|
802
803
|
declare function lockNotice(holders: string[]): HTMLElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -796,7 +796,8 @@ declare function vcBadgeFor(s: ShardVc | undefined): VcBadge | null;
|
|
|
796
796
|
declare function paintVcBadges(root: ParentNode, shards: VcMap): void;
|
|
797
797
|
/** Turn a region's editing controls off - or back on, but only the ones WE
|
|
798
798
|
* turned off, so a control disabled for its own reasons (the first card's
|
|
799
|
-
* "previous", a redraw-turns box on "always") stays disabled.
|
|
799
|
+
* "previous", a redraw-turns box on "always") stays disabled. `staysLive` is
|
|
800
|
+
* the app's own reading controls; the shell's (ALWAYS_LIVE) stay live too. */
|
|
800
801
|
declare function lockControls(host: HTMLElement, off: boolean, staysLive: string): void;
|
|
801
802
|
/** The notice a locked document opens with: who holds it, and why nothing types. */
|
|
802
803
|
declare function lockNotice(holders: string[]): HTMLElement;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { mountWelcome } from './chunk-XSS7KM6F.js';
|
|
2
2
|
export { feedUpdaterDownloadProgress, showUpdaterDialog } from './chunk-C245WRPF.js';
|
|
3
|
+
export { EDIT_MENU, FILE_MENU, GO_MENU, PANE_MENU, PLAY_MENU, PUBLISH_MENU, REVIEW_MENU, VIEW_MENU } from './chunk-T25WXWPB.js';
|
|
3
4
|
export { defaultProblemCopy, describeProblem, problemLine, problemName } from './chunk-4OAORWEM.js';
|
|
4
5
|
export { PROPERTY_NAME_HINT, PROPERTY_TYPES, RESERVED_PROPERTY_NAMES, bindPropertyName, bindPropertyRef, defaultControl, dupGuard, expandableRow, firstIllegalPropertyName, focusNewRow, isCaseOnlyPropertyName, isValidPropertyName, mountPropertyList, mountSettingsDialog, propertyNameProblem, propertyNameify, propertyRefProblem, revalidatePropertyRefs, revealRow, revealRowWhenReady } from './chunk-5BKGDTYD.js';
|
|
5
6
|
export { defaultLabel, fallbackText, fieldRow, fieldRows, fieldValueProblem, rungStrip, stageGateNote } from './chunk-XJM733E6.js';
|
|
@@ -10,7 +11,6 @@ export { kitTile, openKitGallery } from './chunk-62KWJPRP.js';
|
|
|
10
11
|
export { linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './chunk-UQTUCOGV.js';
|
|
11
12
|
import { isEditableTarget } from './chunk-QVACRWG7.js';
|
|
12
13
|
export { copyWithFeedback, debounce, formatCount, isEditableTarget, isLocalOrigin, plural, relativeTime } from './chunk-QVACRWG7.js';
|
|
13
|
-
export { EDIT_MENU, FILE_MENU, GO_MENU, PANE_MENU, PLAY_MENU, PUBLISH_MENU, REVIEW_MENU, VIEW_MENU } from './chunk-T25WXWPB.js';
|
|
14
14
|
import { dialogFrame } from './chunk-VXEFIL43.js';
|
|
15
15
|
export { dialogFrame } from './chunk-VXEFIL43.js';
|
|
16
16
|
export { createFloating } from './chunk-PFERSFRB.js';
|
|
@@ -554,11 +554,12 @@ function paintVcBadges(root, shards) {
|
|
|
554
554
|
host.append(span);
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
+
var ALWAYS_LIVE = ".shell-fold-cap";
|
|
557
558
|
function lockControls(host, off, staysLive) {
|
|
558
559
|
host.classList.toggle("vc-readonly", off);
|
|
559
560
|
if (off) {
|
|
560
561
|
host.querySelectorAll("input, textarea, select, button").forEach((c) => {
|
|
561
|
-
if (c.disabled || staysLive !== "" && c.matches(staysLive)) return;
|
|
562
|
+
if (c.disabled || c.matches(ALWAYS_LIVE) || staysLive !== "" && c.matches(staysLive)) return;
|
|
562
563
|
c.disabled = true;
|
|
563
564
|
c.classList.add("vc-off");
|
|
564
565
|
});
|