@rohal12/spindle 0.62.7 → 0.62.9

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.
@@ -0,0 +1,11 @@
1
+ /** Index of the first sorted value greater than `value` (or the length). */
2
+ export function upperBound(sorted: readonly number[], value: number): number {
3
+ let low = 0;
4
+ let high = sorted.length;
5
+ while (low < high) {
6
+ const mid = (low + high) >>> 1;
7
+ if (sorted[mid]! <= value) low = mid + 1;
8
+ else high = mid;
9
+ }
10
+ return low;
11
+ }
@@ -25,8 +25,8 @@ export interface BootStoryOptions {
25
25
  export function bootStory(options: BootStoryOptions): Promise<StoryAPI>;
26
26
 
27
27
  /**
28
- * The story's `$` variables: a shallow copy of the current values, keyed by
29
- * name without the `$`. Values are the store's own (frozen) objects.
28
+ * The story's `$` variables, keyed by name without the `$`. Mutable values
29
+ * are copied together, preserving aliases without exposing live state.
30
30
  */
31
31
  export function storyVariables(): Record<string, unknown>;
32
32
 
@@ -955,7 +955,11 @@ export declare function passagePieces(
955
955
 
956
956
  /** What is wrong with the pairing of tags (a subset of {@link MarkupErrorCode}). */
957
957
  export type PairingErrorCode =
958
- 'unclosed-block' | 'mismatched-closer' | 'stray-closer' | 'misplaced-branch';
958
+ | 'unclosed-block'
959
+ | 'mismatched-closer'
960
+ | 'stray-closer'
961
+ | 'misplaced-branch'
962
+ | 'nesting-limit';
959
963
 
960
964
  /** A problem in the pairing of the tokens. */
961
965
  export interface PairingError {