@rankingcoach/vanguard 1.12.2-testare.0 → 1.12.3
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-ControlledValuePlugin.js +1 -1
- package/dist/index-DateRange.js +1 -1
- package/dist/index-DefaultValuePlugin.js +1 -1
- package/dist/index-Drawer.js +24 -18
- package/dist/index-DrawerRoot.js +33 -29
- package/dist/index-DropdownMenu.js +36 -36
- package/dist/index-HyperlinkPlugin.js +1 -1
- package/dist/index-KeywordNode.js +1 -1
- package/dist/index-KeywordPlugin.js +1 -1
- package/dist/index-ModalContext.js +9 -9
- package/dist/index-ModalService.js +130 -178
- package/dist/index-OnChangeContentPlugin.js +1 -1
- package/dist/index-OnFocusOnBlurPlugin.js +1 -1
- package/dist/index-OverlayStackingService.js +46 -0
- package/dist/index-_virtual10.js +3 -2
- package/dist/index-_virtual21.js +2 -2
- package/dist/index-_virtual22.js +2 -2
- package/dist/index-_virtual23.js +2 -3
- package/dist/index-_virtual24.js +2 -2
- package/dist/index-_virtual25.js +2 -2
- package/dist/index-_virtual26.js +2 -2
- package/dist/index-_virtual27.js +2 -2
- package/dist/index-_virtual28.js +2 -2
- package/dist/index-_virtual29.js +2 -2
- package/dist/index-_virtual31.js +2 -2
- package/dist/index-_virtual32.js +2 -2
- package/dist/index-_virtual33.js +2 -2
- package/dist/index-_virtual34.js +3 -2
- package/dist/index-_virtual63.js +2 -2
- package/dist/index-_virtual64.js +2 -2
- package/dist/index-_virtual77.js +2 -4
- package/dist/index-_virtual78.js +1 -1
- package/dist/index-_virtual79.js +1 -1
- package/dist/index-_virtual80.js +1 -1
- package/dist/index-_virtual81.js +1 -1
- package/dist/index-_virtual82.js +1 -1
- package/dist/index-_virtual83.js +1 -1
- package/dist/index-_virtual84.js +1 -1
- package/dist/index-_virtual85.js +4 -2
- package/dist/index-_virtual9.js +2 -3
- package/dist/index-applyInternationalSeparatorStyle.js +1 -1
- package/dist/index-cjs.js +1 -1
- package/dist/index-colorManipulator3.js +2 -2
- package/dist/index-constants.js +1 -1
- package/dist/index-constants2.js +2 -8
- package/dist/index-constants3.js +8 -2
- package/dist/index-createExtensionPattern.js +1 -1
- package/dist/index-createStyled2.js +6 -6
- package/dist/index-dist3.js +1 -1
- package/dist/index-dist5.js +1 -1
- package/dist/index-exenv.js +1 -1
- package/dist/index-extractCountryCallingCode.js +1 -1
- package/dist/index-extractPhoneContext.js +1 -1
- package/dist/index-isViablePhoneNumber.js +1 -1
- package/dist/index-keycode.js +1 -1
- package/dist/index-lib2.js +1 -1
- package/dist/index-lib3.js +1 -1
- package/dist/index-lib4.js +1 -1
- package/dist/index-lib5.js +1 -1
- package/dist/index-mpd-parser.es.js +1 -1
- package/dist/index-parse2.js +1 -1
- package/dist/index-stripIddPrefix.js +1 -1
- package/dist/index-style-to-object.js +1 -1
- package/dist/index-useHyperlinkEditor.js +1 -1
- package/dist/index-useLexicalToolbar.js +1 -1
- package/dist/index-useThemeWithoutDefault3.js +1 -1
- package/dist/types/core/Drawer/Drawer.d.ts +6 -0
- package/dist/types/core/Modal/ModalService.d.ts +0 -28
- package/dist/types/core/OverlayStacking/OverlayStackingService.d.ts +35 -0
- package/dist/types/core/OverlayStacking/stories/DrawerOverFullscreenModal.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/FullscreenModalDrawerModal.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/FullscreenModalDrawerModalPopover.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/ModalOverDrawer.story.d.ts +2 -0
- package/dist/types/core/OverlayStacking/stories/_OverlayStacking.default.d.ts +15 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +18412 -19092
- package/dist-wordpress/types/index.d.ts +0 -2
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +1 -1
package/dist/index-_virtual78.js
CHANGED
package/dist/index-_virtual79.js
CHANGED
package/dist/index-_virtual80.js
CHANGED
package/dist/index-_virtual81.js
CHANGED
package/dist/index-_virtual82.js
CHANGED
package/dist/index-_virtual83.js
CHANGED
package/dist/index-_virtual84.js
CHANGED
package/dist/index-_virtual85.js
CHANGED
package/dist/index-_virtual9.js
CHANGED
package/dist/index-cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as a } from "./index-colorManipulator4.js";
|
|
2
2
|
import { __require as k } from "./index-interopRequireDefault.js";
|
|
3
|
-
import A from "./index-
|
|
4
|
-
import z from "./index-
|
|
3
|
+
import A from "./index-_virtual84.js";
|
|
4
|
+
import z from "./index-_virtual85.js";
|
|
5
5
|
var C;
|
|
6
6
|
function F() {
|
|
7
7
|
if (C) return a;
|
package/dist/index-constants.js
CHANGED
package/dist/index-constants2.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var s = {};
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
A as MAX_LENGTH_FOR_NSN,
|
|
5
|
-
v as MIN_LENGTH_FOR_NSN,
|
|
6
|
-
T as PLUS_CHARS,
|
|
7
|
-
_ as VALID_DIGITS,
|
|
8
|
-
N as VALID_PUNCTUATION,
|
|
9
|
-
S as WHITESPACE
|
|
3
|
+
s as __exports
|
|
10
4
|
};
|
package/dist/index-constants3.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = 2, A = 17, E = 3, _ = "0-90-9٠-٩۰-۹", F = "-‐-―−ー-", u = "//", a = "..", S = " ", r = "()()[]\\[\\]", c = "~⁓∼~", N = "".concat(F).concat(u).concat(a).concat(S).concat(r).concat(c), T = "++";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
E as MAX_LENGTH_COUNTRY_CODE,
|
|
4
|
+
A as MAX_LENGTH_FOR_NSN,
|
|
5
|
+
v as MIN_LENGTH_FOR_NSN,
|
|
6
|
+
T as PLUS_CHARS,
|
|
7
|
+
_ as VALID_DIGITS,
|
|
8
|
+
N as VALID_PUNCTUATION,
|
|
9
|
+
S as WHITESPACE
|
|
4
10
|
};
|
|
@@ -2,12 +2,12 @@ import { __exports as y } from "./index-createStyled3.js";
|
|
|
2
2
|
import { __require as ne } from "./index-interopRequireDefault.js";
|
|
3
3
|
import { __require as ie } from "./index-extends2.js";
|
|
4
4
|
import { __require as se } from "./index-objectWithoutPropertiesLoose2.js";
|
|
5
|
-
import ue from "./index-
|
|
6
|
-
import ae from "./index-
|
|
7
|
-
import le from "./index-
|
|
8
|
-
import fe from "./index-
|
|
9
|
-
import de from "./index-
|
|
10
|
-
import ce from "./index-
|
|
5
|
+
import ue from "./index-_virtual78.js";
|
|
6
|
+
import ae from "./index-_virtual79.js";
|
|
7
|
+
import le from "./index-_virtual80.js";
|
|
8
|
+
import fe from "./index-_virtual81.js";
|
|
9
|
+
import de from "./index-_virtual82.js";
|
|
10
|
+
import ce from "./index-_virtual83.js";
|
|
11
11
|
var W;
|
|
12
12
|
function $e() {
|
|
13
13
|
if (W) return y;
|
package/dist/index-dist3.js
CHANGED
package/dist/index-dist5.js
CHANGED
package/dist/index-exenv.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import s from "./index-stripIddPrefix.js";
|
|
2
2
|
import M from "./index-extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js";
|
|
3
3
|
import u from "./index-metadata.js";
|
|
4
|
-
import { MAX_LENGTH_COUNTRY_CODE as I } from "./index-
|
|
4
|
+
import { MAX_LENGTH_COUNTRY_CODE as I } from "./index-constants3.js";
|
|
5
5
|
function p(r, o, f, i) {
|
|
6
6
|
if (!r)
|
|
7
7
|
return {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VALID_DIGITS as n } from "./index-
|
|
1
|
+
import { VALID_DIGITS as n } from "./index-constants3.js";
|
|
2
2
|
var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
|
|
3
3
|
function D(_) {
|
|
4
4
|
var t = _.indexOf(a);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "./index-
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "./index-constants3.js";
|
|
2
2
|
import r from "./index-createExtensionPattern.js";
|
|
3
3
|
var n = "[" + _ + "]{" + e + "}", I = "[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){3,}[" + E + _ + "]*", P = new RegExp("^[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){1,2}$", "i"), R = I + // Phone number extensions
|
|
4
4
|
"(?:" + r() + ")?", T = new RegExp(
|
package/dist/index-keycode.js
CHANGED
package/dist/index-lib2.js
CHANGED
package/dist/index-lib3.js
CHANGED
package/dist/index-lib4.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as v } from "./index-
|
|
1
|
+
import { __module as v } from "./index-_virtual33.js";
|
|
2
2
|
import { __require as O } from "./index-window2.js";
|
|
3
3
|
import { __require as j } from "./index-extends2.js";
|
|
4
4
|
import { __require as S } from "./index-is-function.js";
|
package/dist/index-lib5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import C from "./index-resolve-url.js";
|
|
2
2
|
import K from "./index-window.js";
|
|
3
3
|
import X from "./index-decode-b64-to-uint8-array.js";
|
|
4
|
-
import { l as q } from "./index-
|
|
4
|
+
import { l as q } from "./index-_virtual34.js";
|
|
5
5
|
var w = function(e) {
|
|
6
6
|
return !!e && typeof e == "object";
|
|
7
7
|
}, S = function o() {
|
package/dist/index-parse2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MIN_LENGTH_FOR_NSN as h, MAX_LENGTH_FOR_NSN as T, PLUS_CHARS as d, VALID_DIGITS as g } from "./index-
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as h, MAX_LENGTH_FOR_NSN as T, PLUS_CHARS as d, VALID_DIGITS as g } from "./index-constants3.js";
|
|
2
2
|
import m from "./index-ParseError.js";
|
|
3
3
|
import O, { getCountryCallingCode as P } from "./index-metadata.js";
|
|
4
4
|
import v, { isViablePhoneNumberStart as s } from "./index-isViablePhoneNumber.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as o } from "./index-
|
|
1
|
+
import { __exports as o } from "./index-_virtual23.js";
|
|
2
2
|
import { __require as I } from "./index-LexicalLink2.js";
|
|
3
3
|
import { __require as q } from "./index-LexicalUtils.js";
|
|
4
4
|
import { __require as C } from "./index-Lexical.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as C } from "./index-
|
|
1
|
+
import { __exports as C } from "./index-_virtual22.js";
|
|
2
2
|
import { __require as ke } from "./index-LexicalCode2.js";
|
|
3
3
|
import { __require as Ie } from "./index-LexicalLink2.js";
|
|
4
4
|
import { __require as De } from "./index-LexicalList2.js";
|
|
@@ -19,6 +19,12 @@ export interface DrawerProps extends AllowedDrawerProps {
|
|
|
19
19
|
isHeaderSticky?: boolean;
|
|
20
20
|
outOfTheWay?: number | false;
|
|
21
21
|
onClose?: (e?: ModalResponse<DrawerCloseResponse>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Layering is managed by OverlayStackingService — drawers
|
|
24
|
+
* auto-stack against modals and popovers through a shared ledger. Passing
|
|
25
|
+
* a fixed value here forces the drawer onto a static layer and breaks the
|
|
26
|
+
* stacking guarantees. Leave it unset.
|
|
27
|
+
*/
|
|
22
28
|
zIndex?: number;
|
|
23
29
|
}
|
|
24
30
|
export declare const Drawer: (props: PropsWithChildren<DrawerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -58,15 +58,12 @@ export interface OpenLoadingModalOptions {
|
|
|
58
58
|
* Modal Service Class
|
|
59
59
|
* ---------------------------------------------------------------------------------------------------------------------
|
|
60
60
|
*/
|
|
61
|
-
export declare const MODAL_BASE_Z_INDEX = 1100;
|
|
62
61
|
declare class ModalServiceClass {
|
|
63
62
|
private loadingModalId;
|
|
64
63
|
private confirmModalId;
|
|
65
64
|
private errorModalId;
|
|
66
65
|
private modalCloseListeners;
|
|
67
66
|
private modalComponents;
|
|
68
|
-
private modalOrder;
|
|
69
|
-
private popoverOrder;
|
|
70
67
|
constructor();
|
|
71
68
|
on(event: any, callback: (details: any) => any): void;
|
|
72
69
|
onModalClose<T = any, U = any>(id: string, cb?: (resp: ModalResponse<T>) => void, data?: U): void;
|
|
@@ -96,31 +93,6 @@ declare class ModalServiceClass {
|
|
|
96
93
|
}) => void;
|
|
97
94
|
closeErrorModal(): void;
|
|
98
95
|
closeAllModals(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Highest order across modals AND popovers — used internally when assigning
|
|
101
|
-
* the next slot so modals/popovers never tie or interleave wrongly.
|
|
102
|
-
*/
|
|
103
|
-
private getCurrentMaxOrder;
|
|
104
|
-
private getMaxModalOrder;
|
|
105
|
-
/**
|
|
106
|
-
* Z-index of the topmost mounted modal, or MODAL_BASE_Z_INDEX (the stacking
|
|
107
|
-
* floor) when no modal is open. Popovers are excluded — this reports modal
|
|
108
|
-
* stacking only. Mirrors ModalTransition's formula: BASE + order.
|
|
109
|
-
*/
|
|
110
|
-
getTopmostModalZIndex(): number;
|
|
111
|
-
/**
|
|
112
|
-
* Single source of truth for a modal's stack order. ModalContext delegates
|
|
113
|
-
* to this so the dropdown and ModalTransition cannot drift apart.
|
|
114
|
-
*/
|
|
115
|
-
getModalOrder(id: string): number;
|
|
116
|
-
/**
|
|
117
|
-
* Register a popover (e.g. DropdownMenu) into the shared stacking ledger.
|
|
118
|
-
* Returns its z-index so the caller can position itself. Modals opened
|
|
119
|
-
* after this call will land above the popover; closing the popover with
|
|
120
|
-
* `unregisterPopover` frees the slot.
|
|
121
|
-
*/
|
|
122
|
-
registerPopover(id: string): number;
|
|
123
|
-
unregisterPopover(id: string): void;
|
|
124
96
|
/** Test-only: wipe internal state. Not for production code paths. */
|
|
125
97
|
__resetForTests(): void;
|
|
126
98
|
open<ResponseModel>(component: ComponentWithId, opts?: ModalOpts): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for overlay z-index allocation.
|
|
3
|
+
*
|
|
4
|
+
* Every surface that paints into the shared stacking context — modals,
|
|
5
|
+
* popovers, drawers — claims a slot here on open and releases it on close.
|
|
6
|
+
* Slots are dense integers starting at 1; z-index is `OVERLAY_BASE_Z_INDEX +
|
|
7
|
+
* order`. Freed slots compact naturally because we always assign
|
|
8
|
+
* `max(orders) + 1`, so once the stack drains the counter returns to 1.
|
|
9
|
+
*
|
|
10
|
+
* Kinds are tracked so callers can ask "what's the topmost <kind>" without
|
|
11
|
+
* having to keep their own parallel maps.
|
|
12
|
+
*/
|
|
13
|
+
export declare const OVERLAY_BASE_Z_INDEX = 1100;
|
|
14
|
+
export type OverlayKind = 'modal' | 'popover' | 'drawer';
|
|
15
|
+
declare class OverlayStackingServiceClass {
|
|
16
|
+
private order;
|
|
17
|
+
private kind;
|
|
18
|
+
/** Assign the next slot above all currently-mounted overlays and return its z-index. */
|
|
19
|
+
register(id: string, kind: OverlayKind): number;
|
|
20
|
+
/** Free the slot. The next opener will reuse the now-vacated topmost order. */
|
|
21
|
+
unregister(id: string): void;
|
|
22
|
+
/** Slot order for an id, or 0 if not registered. */
|
|
23
|
+
getOrder(id: string): number;
|
|
24
|
+
/**
|
|
25
|
+
* Topmost z-index across all overlays, or — when `kind` is supplied — the
|
|
26
|
+
* topmost z within that kind only. Returns `OVERLAY_BASE_Z_INDEX` (the
|
|
27
|
+
* stacking floor) when nothing of the requested kind is registered.
|
|
28
|
+
*/
|
|
29
|
+
getTopmostZIndex(kind?: OverlayKind): number;
|
|
30
|
+
/** Test-only: wipe internal state. Not for production code paths. */
|
|
31
|
+
__resetForTests(): void;
|
|
32
|
+
private getMaxOrder;
|
|
33
|
+
}
|
|
34
|
+
export declare const OverlayStackingService: OverlayStackingServiceClass;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
export type Story = StoryObj<any>;
|
|
3
|
+
/**
|
|
4
|
+
* Tear down every overlay surface — drawer + tracked modals + ad-hoc modals.
|
|
5
|
+
* Used before/after each play test so stories don't leak state into each other.
|
|
6
|
+
*/
|
|
7
|
+
export declare const closeAllOverlays: () => Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Locate the MUI Drawer root element. The Drawer mounts under a portal so we
|
|
10
|
+
* cannot scope to the story canvas — we resolve it from `document` instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getDrawerLayer: () => HTMLElement;
|
|
13
|
+
export declare const readZ: (el: HTMLElement) => number;
|
|
14
|
+
/** Pick whichever element paints at the centre of `el`'s bounding rect. */
|
|
15
|
+
export declare const topmostElAt: (el: HTMLElement) => HTMLElement | null;
|