@rohal12/spindle 0.64.23 → 0.64.24

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.
@@ -32,6 +32,19 @@ export const PendingIterationContext = createContext<
32
32
  */
33
33
  export const OutgoingContext = createContext<(() => boolean) | null>(null);
34
34
 
35
+ /**
36
+ * Tells the macros that run code as they mount ({set}, {do}, {unset},
37
+ * {goto}, {computed}, the count of an {include}) whether they come too late: the
38
+ * passage they belong to was on the page and has been left since. State
39
+ * that changed before the navigation can still render new content into the
40
+ * passage on its way out, and its code would run against the destination's
41
+ * state (#352, as #410 for timers). The macros that mount while the passage
42
+ * is first rendered are never late, whatever that render navigates. Null
43
+ * outside a displayed passage, and in a click body, which renders apart
44
+ * from the passage and runs as part of the click.
45
+ */
46
+ export const LateMountContext = createContext<(() => boolean) | null>(null);
47
+
35
48
  /**
36
49
  * Story state fields `keys`, re-rendering when any of them changes (as one
37
50
  * useStoryStore() selector per field would). The result keeps its identity
package/src/styles.css CHANGED
@@ -573,6 +573,25 @@ tw-storydata {
573
573
  background: rgba(239, 83, 80, 0.1);
574
574
  }
575
575
 
576
+ .save-slot-action.danger.is-armed {
577
+ color: #ef5350;
578
+ background: rgba(239, 83, 80, 0.15);
579
+ border-color: rgba(239, 83, 80, 0.5);
580
+ }
581
+
582
+ /* Read by screen readers, not shown: announces an armed Delete button */
583
+ .saves-sr-only {
584
+ position: absolute;
585
+ width: 1px;
586
+ height: 1px;
587
+ margin: -1px;
588
+ padding: 0;
589
+ overflow: hidden;
590
+ clip: rect(0, 0, 0, 0);
591
+ white-space: nowrap;
592
+ border: 0;
593
+ }
594
+
576
595
  .save-slot-new {
577
596
  display: flex;
578
597
  align-items: center;