@wildwinter/app-shell 0.46.3 → 0.46.5

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/index.d.cts CHANGED
@@ -11,7 +11,7 @@ export { UpdaterDownloadProgress, UpdaterPromptOptions } from './updater.cjs';
11
11
  export { Welcome, WelcomeAction, WelcomeGroup, WelcomeGroupItem, WelcomeOptions, WelcomeRecent, mountWelcome } from './welcome.cjs';
12
12
  export { KitGallery, KitGalleryChoice, KitGalleryItem, KitGalleryOptions, KitGallerySection, kitTile, openKitGallery } from './kit-gallery.cjs';
13
13
  export { LinkStatus, LinkStatusChip, LinkStatusClass, LinkStatusOptions, linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './link-status.cjs';
14
- export { Debounced, copyWithFeedback, debounce, formatCount, isEditableTarget, plural, relativeTime } from './util.cjs';
14
+ export { Debounced, copyWithFeedback, debounce, formatCount, isEditableTarget, isLocalOrigin, plural, relativeTime } from './util.cjs';
15
15
  import './app-store.cjs';
16
16
  import 'electron';
17
17
 
@@ -1021,6 +1021,12 @@ interface StaleBarOptions {
1021
1021
  * scene". Written into "<subject> changed in the editor."
1022
1022
  */
1023
1023
  subject: string;
1024
+ /**
1025
+ * The whole first sentence, for when "changed in the editor" is not what
1026
+ * happened: another project was opened, or the project was closed. Replaces
1027
+ * "<subject> changed in the editor."; the advice still follows it.
1028
+ */
1029
+ message?: string;
1024
1030
  /** Start again from the current source. */
1025
1031
  onRestart: () => void;
1026
1032
  /** The button, when "Restart" is not the app's word for it. */
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { UpdaterDownloadProgress, UpdaterPromptOptions } from './updater.js';
11
11
  export { Welcome, WelcomeAction, WelcomeGroup, WelcomeGroupItem, WelcomeOptions, WelcomeRecent, mountWelcome } from './welcome.js';
12
12
  export { KitGallery, KitGalleryChoice, KitGalleryItem, KitGalleryOptions, KitGallerySection, kitTile, openKitGallery } from './kit-gallery.js';
13
13
  export { LinkStatus, LinkStatusChip, LinkStatusClass, LinkStatusOptions, linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './link-status.js';
14
- export { Debounced, copyWithFeedback, debounce, formatCount, isEditableTarget, plural, relativeTime } from './util.js';
14
+ export { Debounced, copyWithFeedback, debounce, formatCount, isEditableTarget, isLocalOrigin, plural, relativeTime } from './util.js';
15
15
  import './app-store.js';
16
16
  import 'electron';
17
17
 
@@ -1021,6 +1021,12 @@ interface StaleBarOptions {
1021
1021
  * scene". Written into "<subject> changed in the editor."
1022
1022
  */
1023
1023
  subject: string;
1024
+ /**
1025
+ * The whole first sentence, for when "changed in the editor" is not what
1026
+ * happened: another project was opened, or the project was closed. Replaces
1027
+ * "<subject> changed in the editor."; the advice still follows it.
1028
+ */
1029
+ message?: string;
1024
1030
  /** Start again from the current source. */
1025
1031
  onRestart: () => void;
1026
1032
  /** The button, when "Restart" is not the app's word for it. */
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ export { PROPERTY_NAME_HINT, PROPERTY_TYPES, RESERVED_PROPERTY_NAMES, bindProper
5
5
  import { isKeyCombo, tipWithKey } from './chunk-YWMSQFXX.js';
6
6
  export { hintBar, isKeyCombo, keyHint, keyLabel, keyLegends, keyPlatform, setKeyPlatform, tipWithKey } from './chunk-YWMSQFXX.js';
7
7
  export { kitTile, openKitGallery } from './chunk-J6RSONXM.js';
8
- export { linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './chunk-G2JT3HZH.js';
9
- import { isEditableTarget } from './chunk-P6WLAEKZ.js';
10
- export { copyWithFeedback, debounce, formatCount, isEditableTarget, plural, relativeTime } from './chunk-P6WLAEKZ.js';
8
+ export { linkAddress, linkStatusClass, linkStatusTip, mountLinkStatus } from './chunk-B2TC6Q5J.js';
9
+ import { isEditableTarget } from './chunk-QVACRWG7.js';
10
+ export { copyWithFeedback, debounce, formatCount, isEditableTarget, isLocalOrigin, plural, relativeTime } from './chunk-QVACRWG7.js';
11
11
  export { EDIT_MENU, FILE_MENU, GO_MENU, PANE_MENU, PLAY_MENU, PUBLISH_MENU, REVIEW_MENU, VIEW_MENU } from './chunk-2ECJUTSX.js';
12
12
  import { dialogFrame } from './chunk-YRFJLJUH.js';
13
13
  export { dialogFrame } from './chunk-YRFJLJUH.js';
@@ -1075,7 +1075,7 @@ function staleBar(opts) {
1075
1075
  { className: "stale-bar" },
1076
1076
  el("span", {
1077
1077
  className: "stale-bar-msg",
1078
- text: `${opts.subject} changed in the editor. ${opts.advice ?? "Restart to play the new version."}`
1078
+ text: `${opts.message ?? `${opts.subject} changed in the editor.`} ${opts.advice ?? "Restart to play the new version."}`
1079
1079
  }),
1080
1080
  // The icon is a node beside the word, not a character inside it; the
1081
1081
  // button's flex gap sets the space (stale.css).