@quantinuum/documentation-ui 1.2.2 → 1.3.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/dist/node_modules/tslib/{tslib.es6.mjs.js → tslib.es6.js} +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/src/custom/docs/QuantinuumLogo.js.map +1 -1
- package/dist/src/custom/docs/components/footer/index.js.map +1 -1
- package/dist/src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner.js +3 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieConditional/CookieConditional.js +3 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieConditional/CookieConditional.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieConsentManager/CookieConsentManager.js +2 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieConsentManager/CookieConsentManager.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieSettingsButton/CookieSettingsButton.js +2 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieSettingsButton/CookieSettingsButton.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieSettingsDialog/CookieSettingsDialog.js +3 -0
- package/dist/src/custom/docs/components/gdpr/_components/CookieSettingsDialog/CookieSettingsDialog.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/contexts/CookieConsentContext.js +3 -0
- package/dist/src/custom/docs/components/gdpr/contexts/CookieConsentContext.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/contexts/CookieConsentShared.js +2 -0
- package/dist/src/custom/docs/components/gdpr/contexts/CookieConsentShared.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/contexts/useCookieConsent.js +2 -0
- package/dist/src/custom/docs/components/gdpr/contexts/useCookieConsent.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/cookies-consent.config.js +2 -0
- package/dist/src/custom/docs/components/gdpr/cookies-consent.config.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/service/cookie-consent-service.js +2 -0
- package/dist/src/custom/docs/components/gdpr/service/cookie-consent-service.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/types.js +2 -0
- package/dist/src/custom/docs/components/gdpr/types.js.map +1 -0
- package/dist/src/custom/docs/components/gdpr/utils/cookies.js +2 -0
- package/dist/src/custom/docs/components/gdpr/utils/cookies.js.map +1 -0
- package/dist/src/custom/docs/components/header/CodeCopy.js +1 -1
- package/dist/src/custom/docs/components/header/index.js +1 -1
- package/dist/src/custom/docs/components/header/index.js.map +1 -1
- package/dist/src/custom/docs/components/helpcard/index.js.map +1 -1
- package/dist/src/custom/docs/components/logos/NexusLogo.js +1 -1
- package/dist/src/custom/docs/components/logos/NexusLogo.js.map +1 -1
- package/dist/src/custom/docs/components/logos/SystemsLogo.js +1 -1
- package/dist/src/custom/docs/components/logos/SystemsLogo.js.map +1 -1
- package/dist/src/custom/docs/components/navmenu/MobileMenu.js.map +1 -1
- package/dist/src/custom/docs/components/navmenu/ModeSelector.js.map +1 -1
- package/dist/src/custom/docs/components/navmenu/NavigationMenu.js.map +1 -1
- package/dist/src/custom/docs/components/navmenu/QuantinuumIdent.js.map +1 -1
- package/dist/src/custom/docs/components/navmenu/QuantinuumLogo.js.map +1 -1
- package/dist/src/custom/docs/components/navmenu/index.js +1 -1
- package/dist/src/custom/docs/components/page/index.js +1 -1
- package/dist/src/custom/docs/components/page/index.js.map +1 -1
- package/dist/src/custom/docs/components/triplecard/Card.js +1 -1
- package/dist/src/custom/docs/components/triplecard/Card.js.map +1 -1
- package/dist/src/custom/docs/components/triplecard/index.js +1 -1
- package/dist/src/custom/docs/components/triplecard/index.js.map +1 -1
- package/dist/src/custom/slide-in.js +1 -1
- package/dist/src/custom/theme-selector.js +2 -2
- package/dist/src/custom/use-theme.js +3 -0
- package/dist/src/custom/use-theme.js.map +1 -0
- package/dist/src/index.js +1 -1
- package/dist/src/tailwindTheme.js.map +1 -1
- package/dist/src/utils/darkMode.js.map +1 -1
- package/dist/src/utils/index.js.map +1 -1
- package/dist/types/setupTest.d.ts +12 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner.d.ts +6 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieConditional/CookieConditional.d.ts +8 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieConditional/index.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieConsentManager/CookieConsentManager.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieConsentManager/CookieConsentManager.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieConsentManager/index.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieSettingsButton/CookieSettingsButton.d.ts +6 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieSettingsButton/CookieSettingsButton.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieSettingsDialog/CookieSettingsDialog.d.ts +7 -0
- package/dist/types/src/custom/docs/components/gdpr/_components/CookieSettingsDialog/CookieSettingsDialog.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/contexts/CookieConsentContext.d.ts +5 -0
- package/dist/types/src/custom/docs/components/gdpr/contexts/CookieConsentContext.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/contexts/CookieConsentShared.d.ts +13 -0
- package/dist/types/src/custom/docs/components/gdpr/contexts/index.d.ts +3 -0
- package/dist/types/src/custom/docs/components/gdpr/contexts/useCookieConsent.d.ts +2 -0
- package/dist/types/src/custom/docs/components/gdpr/cookies-consent.config.d.ts +5 -0
- package/dist/types/src/custom/docs/components/gdpr/index.d.ts +4 -0
- package/dist/types/src/custom/docs/components/gdpr/service/cookie-consent-service.d.ts +6 -0
- package/dist/types/src/custom/docs/components/gdpr/service/cookie-consent-service.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/gdpr/types.d.ts +37 -0
- package/dist/types/src/custom/docs/components/gdpr/utils/cookies.d.ts +10 -0
- package/dist/types/src/custom/docs/components/gdpr/utils/cookies.test.d.ts +1 -0
- package/dist/types/src/custom/docs/components/header/index.d.ts +5 -5
- package/dist/types/src/custom/docs/components/page/index.d.ts +1 -1
- package/dist/types/src/custom/docs/components/triplecard/Card.d.ts +3 -3
- package/dist/types/src/custom/docs/components/triplecard/index.d.ts +16 -46
- package/dist/types/src/custom/docs/index.d.ts +1 -0
- package/dist/types/src/custom/theme-selector.d.ts +2 -9
- package/dist/types/src/custom/use-theme.d.ts +7 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/utils/darkMode.d.ts +2 -3
- package/dist/types/stories/custom/docs-cookies.stories.d.ts +5 -0
- package/package.json +30 -11
- package/dist/node_modules/tslib/tslib.es6.mjs.js.map +0 -1
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{SlideIn}from"./custom/slide-in.js";export{ThemeSelector
|
|
1
|
+
export{SlideIn}from"./custom/slide-in.js";export{ThemeSelector}from"./custom/theme-selector.js";export{useTheme}from"./custom/use-theme.js";export{tailwindTheme}from"./tailwindTheme.js";export{cn}from"./utils/index.js";export{Footer as DocsFooter}from"./custom/docs/components/footer/index.js";export{NavBar as DocsNavBar}from"./custom/docs/components/navmenu/index.js";export{TripleCard as DocsTripleCard}from"./custom/docs/components/triplecard/index.js";export{HelpCard as DocsHelpCard}from"./custom/docs/components/helpcard/index.js";export{DocsHeaderLeft,DocsHeaderRight,DocsHeaderSubtitle,DocsHeaderTitle,DocsHeaderWrapper}from"./custom/docs/components/header/index.js";export{CodeCopy}from"./custom/docs/components/header/CodeCopy.js";export{DocsPageLayout}from"./custom/docs/components/page/index.js";export{CookieConsentManager}from"./custom/docs/components/gdpr/_components/CookieConsentManager/CookieConsentManager.js";export{CookieConditional}from"./custom/docs/components/gdpr/_components/CookieConditional/CookieConditional.js";export{CookieConsentProvider}from"./custom/docs/components/gdpr/contexts/CookieConsentContext.js";export{CookieConsentContext}from"./custom/docs/components/gdpr/contexts/CookieConsentShared.js";export{useCookieConsent}from"./custom/docs/components/gdpr/contexts/useCookieConsent.js";export{CookieCategoryName,SameSite}from"./custom/docs/components/gdpr/types.js";export{getTheme,setTheme,subscribeToTheme}from"./utils/darkMode.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindTheme.js","sources":["../../../src/tailwindTheme.ts"],"sourcesContent":[null],"names":["tailwindTheme","darkMode","theme","container","center","padding","screens","extend","colors","border","input","ring","background","foreground","primary","DEFAULT","secondary","destructive","muted","accent","popover","card","sidebar","borderRadius","xl","lg","md","sm","keyframes","from","height","to","opacity","transform","animation","plugins","animate","typography"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tailwindTheme.js","sources":["../../../src/tailwindTheme.ts"],"sourcesContent":[null],"names":["tailwindTheme","darkMode","theme","container","center","padding","screens","extend","colors","border","input","ring","background","foreground","primary","DEFAULT","secondary","destructive","muted","accent","popover","card","sidebar","borderRadius","xl","lg","md","sm","keyframes","from","height","to","opacity","transform","animation","plugins","animate","typography"],"mappings":"0EAGO,MAAMA,EAAgB,CAC3BC,SAAU,CAAC,QAAS,uBACpBC,MAAO,CACLC,UAAW,CACTC,QAAQ,EACRC,QAAS,OACTC,QAAS,CACP,MAAO,WAGXC,OAAQ,CACNC,OAAQ,CACNC,OAAQ,qBACRC,MAAO,oBACPC,KAAM,mBACNC,WAAY,yBACZC,WAAY,yBACZC,QAAS,CACPC,QAAS,sBACTF,WAAY,kCAEdG,UAAW,CACTD,QAAS,wBACTF,WAAY,oCAEdI,YAAa,CACXF,QAAS,0BACTF,WAAY,sCAEdK,MAAO,CACLH,QAAS,oBACTF,WAAY,gCAEdM,OAAQ,CACNJ,QAAS,qBACTF,WAAY,iCAEdO,QAAS,CACPL,QAAS,sBACTF,WAAY,kCAEdQ,KAAM,CACJN,QAAS,mBACTF,WAAY,+BAEdS,QAAS,CACPP,QAAS,iCACTF,WAAY,iCACZC,QAAS,8BACT,qBAAsB,yCACtBK,OAAQ,6BACR,oBAAqB,wCACrBV,OAAQ,6BACRE,KAAM,6BAGVY,aAAc,CACZC,GAAI,4BACJC,GAAI,gBACJC,GAAI,4BACJC,GAAI,6BAENC,UAAW,CACT,iBAAkB,CAChBC,KAAM,CAAEC,OAAQ,KAChBC,GAAI,CAAED,OAAQ,0CAEhB,eAAgB,CACdD,KAAM,CAAEC,OAAQ,yCAChBC,GAAI,CAAED,OAAQ,MAEhB,WAAY,CACVD,KAAM,CAAEG,QAAS,IAAKC,UAAW,mBACjCF,GAAI,CAAEC,QAAS,IAAKC,UAAW,mBAGnCC,UAAW,CACT,iBAAkB,+BAClB,eAAgB,6BAChB,WAAY,2BAIlBC,QAAS,CAACC,EAASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"darkMode.js","sources":["../../../../src/utils/darkMode.ts"],"sourcesContent":[null],"names":["mode_storage_key","isDark","mode","_a","window","matchMedia","call","matches","getTheme","localMode","localStorage","getItem","resolvedMode","includes","setTheme","setItem","dispatchEvent","Event","subscribeToTheme","callback","_callback","theme","addEventListener","removeEventListener"],"mappings":"
|
|
1
|
+
{"version":3,"file":"darkMode.js","sources":["../../../../src/utils/darkMode.ts"],"sourcesContent":[null],"names":["mode_storage_key","isDark","mode","_a","window","matchMedia","call","matches","getTheme","localMode","localStorage","getItem","resolvedMode","includes","setTheme","setItem","dispatchEvent","Event","subscribeToTheme","callback","_callback","theme","addEventListener","removeEventListener"],"mappings":"AACA,MAIMA,EAAmB,aAEnBC,EAAUC,UACd,MACY,WAATA,IACmB,QAAlBC,EAAM,OAANC,aAAM,IAANA,YAAM,EAANA,OAAQC,kBAAU,IAAAF,OAAA,EAAAA,EAAAG,KAAAF,OAAG,gCAAgCG,UAC9C,SAATL,GAIEM,EAAW,KACf,MAAMC,EAAYC,aAAaC,QAAQX,GAEjCY,EACU,OAAdH,GAjBK,CAAC,SAAU,OAAQ,SAASI,SAiBJJ,GAAaA,EAAa,QACzD,MAAO,CACLP,KAAMU,EACNX,OAAQA,EAAOW,KAIbE,EAAYZ,IAChBQ,aAAaK,QAAQf,EAAkBE,GACvCE,OAAOY,cAAc,IAAIC,MAAM,aAK3BC,EAAoBC,IACxB,MAAMC,EAAY,KAChB,MAAMC,EAAQb,IACdW,EAASE,IAQX,OANAD,IACAhB,OAAOkB,iBAAiB,UAAWF,GACnChB,OACGC,WAAW,gCACXiB,iBAAiB,SAAUF,GAEvB,KACLhB,OAAOmB,oBAAoB,UAAWH,GACtChB,OACGC,WAAW,gCACXkB,oBAAoB,SAAUH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/utils/index.ts"],"sourcesContent":[null],"names":["cn","inputs","twMerge","clsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/utils/index.ts"],"sourcesContent":[null],"names":["cn","inputs","twMerge","clsx"],"mappings":"qEAGM,SAAUA,KAAMC,GACpB,OAAOC,EAAQC,EAAKF,GACtB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSDOM doesn't implement PointerEvent so we need to mock our own implementation
|
|
3
|
+
* Default to mouse left click interaction
|
|
4
|
+
* https://github.com/radix-ui/primitives/issues/1822
|
|
5
|
+
* https://github.com/jsdom/jsdom/pull/2666
|
|
6
|
+
*/
|
|
7
|
+
declare class MockPointerEvent extends Event {
|
|
8
|
+
button: number;
|
|
9
|
+
ctrlKey: boolean;
|
|
10
|
+
pointerType: string;
|
|
11
|
+
constructor(type: string, props: PointerEventInit);
|
|
12
|
+
}
|
package/dist/types/src/custom/docs/components/gdpr/_components/CookieBanner/CookieBanner.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type PropsWithChildren, type ReactNode } from 'react';
|
|
2
|
+
import { type CookieCategoryName } from '../../types';
|
|
3
|
+
type CookieConditionalProps = PropsWithChildren<{
|
|
4
|
+
category: CookieCategoryName;
|
|
5
|
+
fallback?: ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function CookieConditional({ category, fallback, children }: CookieConditionalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CookieConditional';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CookieConsentManager(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/src/custom/docs/components/gdpr/_components/CookieConsentManager/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CookieConsentManager';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
type CookieSettingsButtonProps = Omit<ComponentProps<'button'>, 'onClick'> & {
|
|
3
|
+
onCookiesSettingsButtonClick: () => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function CookieSettingsButton({ onCookiesSettingsButtonClick, ...props }: CookieSettingsButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CookieConsent } from '../../types';
|
|
2
|
+
export declare const CookieSettingsDialog: ({ isOpen, onClose, acceptAll, saveConsent, }: {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose(): void;
|
|
5
|
+
acceptAll(): void;
|
|
6
|
+
saveConsent(consent: CookieConsent): void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type CookieConsent } from '../types';
|
|
2
|
+
export type CookieConsentContextType = {
|
|
3
|
+
acceptAll: () => void;
|
|
4
|
+
closeCookieSettingsDialog: () => void;
|
|
5
|
+
consent: CookieConsent;
|
|
6
|
+
isConsentSet: boolean;
|
|
7
|
+
isCookieBannerVisible: boolean;
|
|
8
|
+
isCookieSettingsDialogVisible: boolean;
|
|
9
|
+
openSettings: () => void;
|
|
10
|
+
rejectNonEssential: () => void;
|
|
11
|
+
saveConsent: (consent: CookieConsent) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const CookieConsentContext: import("react").Context<CookieConsentContextType | null>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type CookieCategory } from '../gdpr/types';
|
|
2
|
+
export declare const COOKIES_CONSENT_VERSION: number;
|
|
3
|
+
export declare const COOKIES_CONSENT_COOKIE_NAME: string;
|
|
4
|
+
export declare const COOKIES_CONSENT_EXPIRY_DAYS: number;
|
|
5
|
+
export declare const CookieCategories: CookieCategory[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type CookieConsent } from '../types';
|
|
2
|
+
export declare function retrieveConsentCategoriesFromCookies(): CookieConsent;
|
|
3
|
+
export declare function isConsentSetInCookies(currentVersion: number): boolean;
|
|
4
|
+
export declare function saveConsentInCookies(newConsent: CookieConsent, currentVersion: number): void;
|
|
5
|
+
export declare function acceptAllCookies(currentVersion: number): void;
|
|
6
|
+
export declare function rejectNonEssentialCookies(currentVersion: number): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type CookieMap = ReadonlyMap<string, string>;
|
|
2
|
+
export declare enum SameSite {
|
|
3
|
+
Lax = "lax",
|
|
4
|
+
Strict = "strict",
|
|
5
|
+
None = "none"
|
|
6
|
+
}
|
|
7
|
+
export type Cookie = {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
domain?: string;
|
|
12
|
+
expires?: Date;
|
|
13
|
+
sameSite?: SameSite;
|
|
14
|
+
};
|
|
15
|
+
export type SettingsOverlayCookie = {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
expiry: string;
|
|
19
|
+
};
|
|
20
|
+
export declare enum CookieCategoryName {
|
|
21
|
+
Essential = "Essential",
|
|
22
|
+
Analytics = "Analytics"
|
|
23
|
+
}
|
|
24
|
+
export type CookieCategory = {
|
|
25
|
+
alwaysOn: boolean;
|
|
26
|
+
name: CookieCategoryName;
|
|
27
|
+
description: string;
|
|
28
|
+
cookies: SettingsOverlayCookie[];
|
|
29
|
+
};
|
|
30
|
+
export type CookieValue = {
|
|
31
|
+
consentVersion: number;
|
|
32
|
+
dateConsentWasGiven: string;
|
|
33
|
+
consentCategories: CookieConsent;
|
|
34
|
+
};
|
|
35
|
+
export type CookieConsent = {
|
|
36
|
+
[key in CookieCategoryName]: boolean;
|
|
37
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Cookie, type CookieMap } from '../types';
|
|
2
|
+
export declare function serializeCookie({ name, value, path, // By default "/" will make the cookie available for all paths in the domain
|
|
3
|
+
domain, expires, sameSite, }: Cookie): string;
|
|
4
|
+
export declare function deserializeCookies(cookieString: string): CookieMap;
|
|
5
|
+
export declare function getCookieValue(name: string): string | undefined;
|
|
6
|
+
export declare function setCookie(cookie: Cookie): void;
|
|
7
|
+
export declare function deleteCookie(name: string, options?: {
|
|
8
|
+
path?: string;
|
|
9
|
+
domain?: string;
|
|
10
|
+
}): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const DocsHeaderTitle: React.ForwardRefExoticComponent<React.
|
|
3
|
-
declare const DocsHeaderSubtitle: React.ForwardRefExoticComponent<React.
|
|
4
|
-
declare const DocsHeaderLeft: React.ForwardRefExoticComponent<React.
|
|
5
|
-
declare const DocsHeaderRight: React.ForwardRefExoticComponent<React.
|
|
6
|
-
declare const DocsHeaderWrapper: React.ForwardRefExoticComponent<React.
|
|
2
|
+
declare const DocsHeaderTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
3
|
+
declare const DocsHeaderSubtitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
4
|
+
declare const DocsHeaderLeft: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const DocsHeaderRight: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DocsHeaderWrapper: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export { DocsHeaderWrapper, DocsHeaderRight, DocsHeaderLeft, DocsHeaderTitle, DocsHeaderSubtitle };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const DocsPageLayout: React.ForwardRefExoticComponent<React.
|
|
2
|
+
export declare const DocsPageLayout: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.
|
|
3
|
-
declare const CardSubtitle: React.ForwardRefExoticComponent<React.
|
|
4
|
-
declare const Card: React.ForwardRefExoticComponent<React.
|
|
2
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
3
|
+
declare const CardSubtitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
4
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
5
|
export { Card, CardTitle, CardSubtitle };
|
|
@@ -1,54 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { ComponentProps } from 'react';
|
|
5
|
-
declare const cardSchema: z.ZodArray<z.ZodObject<{
|
|
6
|
-
title: z.ZodString;
|
|
7
|
-
subtitle: z.ZodString;
|
|
8
|
-
icon: z.ZodString;
|
|
9
|
-
image_link: z.ZodString;
|
|
10
|
-
image_description: z.ZodString;
|
|
11
|
-
links: z.ZodArray<z.ZodObject<{
|
|
12
|
-
title: z.ZodString;
|
|
13
|
-
description: z.ZodString;
|
|
14
|
-
link: z.ZodString;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
link: string;
|
|
17
|
-
title: string;
|
|
18
|
-
description: string;
|
|
19
|
-
}, {
|
|
20
|
-
link: string;
|
|
21
|
-
title: string;
|
|
22
|
-
description: string;
|
|
23
|
-
}>, "many">;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
icon: string;
|
|
1
|
+
import { type ComponentProps, type ComponentType } from 'react';
|
|
2
|
+
type TripleCardLink = {
|
|
26
3
|
title: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
link: string;
|
|
32
|
-
title: string;
|
|
33
|
-
description: string;
|
|
34
|
-
}[];
|
|
35
|
-
}, {
|
|
36
|
-
icon: string;
|
|
4
|
+
description: string;
|
|
5
|
+
link: string;
|
|
6
|
+
};
|
|
7
|
+
type TripleCardItem = {
|
|
37
8
|
title: string;
|
|
38
9
|
subtitle: string;
|
|
10
|
+
icon: string;
|
|
39
11
|
image_link: string;
|
|
40
12
|
image_description: string;
|
|
41
|
-
links:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
declare const RegularLink: (props: ComponentProps<"a">) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
declare const RegularImage: (props: ComponentProps<"img">) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
links: TripleCardLink[];
|
|
14
|
+
};
|
|
15
|
+
type ImageComponent = ComponentType<ComponentProps<'img'> & {
|
|
16
|
+
priority?: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
type LinkComponent = ComponentType<ComponentProps<'a'>>;
|
|
49
19
|
export declare const TripleCard: (props: {
|
|
50
|
-
cards:
|
|
51
|
-
imageComponent:
|
|
52
|
-
linkComponent:
|
|
20
|
+
cards: TripleCardItem[];
|
|
21
|
+
imageComponent: ImageComponent;
|
|
22
|
+
linkComponent: LinkComponent;
|
|
53
23
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
54
24
|
export {};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
export declare const useTheme: () => {
|
|
3
|
-
theme: {
|
|
4
|
-
mode: "system" | "dark" | "light";
|
|
5
|
-
isDark: boolean;
|
|
6
|
-
};
|
|
7
|
-
setMode: (_mode: "system" | "dark" | "light") => void;
|
|
8
|
-
};
|
|
1
|
+
import React from 'react';
|
|
9
2
|
export declare const ThemeSelector: React.ForwardRefExoticComponent<{
|
|
10
3
|
theme: {
|
|
11
4
|
mode: "system" | "dark" | "light";
|
|
12
5
|
isDark: boolean;
|
|
13
6
|
};
|
|
14
|
-
setMode: (
|
|
7
|
+
setMode: (mode: "system" | "dark" | "light") => void;
|
|
15
8
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
type Mode = (typeof modes)[number];
|
|
1
|
+
type Mode = "system" | "dark" | "light";
|
|
3
2
|
declare const getTheme: () => {
|
|
4
|
-
mode:
|
|
3
|
+
mode: Mode;
|
|
5
4
|
isDark: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare const setTheme: (mode: Mode) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
export declare function DocsCookiesDemo(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const meta: Meta<typeof DocsCookiesDemo>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: StoryObj<typeof DocsCookiesDemo>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantinuum/documentation-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Quantinuum design tokens and React components for product documentation.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
@@ -11,8 +11,13 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"storybook": "storybook dev -p 6006",
|
|
13
13
|
"build-storybook": "storybook build",
|
|
14
|
-
"lint": "tsc",
|
|
14
|
+
"lint": "tsc && eslint src",
|
|
15
|
+
"lint:fix": "tsc && eslint src --fix",
|
|
16
|
+
"format": "biome format --write src stories",
|
|
17
|
+
"format:check": "biome format src stories",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
15
19
|
"build": "rollup -c",
|
|
20
|
+
"test": "vitest --silent='passed-only' .",
|
|
16
21
|
"clean": "rm -rf ./dist",
|
|
17
22
|
"clean-ps1": "del dist"
|
|
18
23
|
},
|
|
@@ -48,11 +53,15 @@
|
|
|
48
53
|
},
|
|
49
54
|
"homepage": "https://github.com/quantinuum-dev/documentation-ui#readme",
|
|
50
55
|
"devDependencies": {
|
|
56
|
+
"@biomejs/biome": "^2.4.10",
|
|
51
57
|
"@chromatic-com/storybook": "^3.2.6",
|
|
52
58
|
"@commitlint/cli": "^20.5.0",
|
|
53
59
|
"@commitlint/config-conventional": "^20.5.0",
|
|
54
|
-
"@
|
|
55
|
-
"@rollup/plugin-
|
|
60
|
+
"@eslint/js": "^9.25.1",
|
|
61
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
62
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
63
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
64
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
56
65
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
57
66
|
"@storybook/addon-essentials": "^8.4.7",
|
|
58
67
|
"@storybook/addon-interactions": "^8.4.7",
|
|
@@ -63,22 +72,31 @@
|
|
|
63
72
|
"@storybook/react-vite": "^8.4.7",
|
|
64
73
|
"@storybook/test": "^8.4.7",
|
|
65
74
|
"@tailwindcss/typography": "^0.5.15",
|
|
75
|
+
"@testing-library/react": "^16.3.2",
|
|
66
76
|
"@types/react-dom": "^18.2.22",
|
|
67
77
|
"autoprefixer": "^10.4.16",
|
|
78
|
+
"eslint": "^9.25.1",
|
|
79
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
80
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
81
|
+
"globals": "^15.15.0",
|
|
82
|
+
"jsdom": "^29.0.1",
|
|
68
83
|
"postcss": "^8.4.32",
|
|
69
84
|
"prop-types": "^15.8.1",
|
|
70
85
|
"react-dom": "^18.2.0",
|
|
71
|
-
"rollup": "^
|
|
72
|
-
"rollup-plugin-copy": "^3.
|
|
86
|
+
"rollup": "^4.60.1",
|
|
87
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
88
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
73
89
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
74
90
|
"rollup-plugin-postcss": "^4.0.2",
|
|
75
|
-
"rollup-plugin-preserve-directives": "^0.
|
|
76
|
-
"rollup-plugin-
|
|
77
|
-
"
|
|
78
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
91
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
92
|
+
"rollup-plugin-scss": "^4.0.1",
|
|
93
|
+
"semantic-release": "^25.0.3",
|
|
79
94
|
"sonner": "^2.0.1",
|
|
80
95
|
"storybook": "^8.6.14",
|
|
81
96
|
"tailwindcss-animate": "^1.0.7",
|
|
97
|
+
"typescript-eslint": "^8.30.1",
|
|
98
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
99
|
+
"vitest": "^4.1.2",
|
|
82
100
|
"typescript": "^6.0.3"
|
|
83
101
|
},
|
|
84
102
|
"dependencies": {
|
|
@@ -96,8 +114,9 @@
|
|
|
96
114
|
"react-day-picker": "^8.10.0",
|
|
97
115
|
"react-icons": "^5.3.0",
|
|
98
116
|
"react-resizable-panels": "^1.0.5",
|
|
99
|
-
"
|
|
117
|
+
"remeda": "^2.33.7",
|
|
100
118
|
"tailwind-merge": "^2.6.0",
|
|
119
|
+
"typescript": "^5.2.2",
|
|
101
120
|
"vaul": "^0.8.0",
|
|
102
121
|
"zod": "^3.25.56"
|
|
103
122
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tslib.es6.mjs.js","sources":["../../../node_modules/tslib/tslib.es6.mjs"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","SuppressedError"],"mappings":"AA0CO,SAASA,EAAOC,EAAGC,GACxB,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAC9ED,EAAEC,GAAKH,EAAEG,IACb,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBACtB,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAC3DT,EAAEO,QAAQL,EAAEO,IAAM,GAAKN,OAAOC,UAAUO,qBAAqBL,KAAKP,EAAGG,EAAEO,MACvER,EAAEC,EAAEO,IAAMV,EAAEG,EAAEO,IAF4B,CAItD,OAAOR,CACT,CAmRkD,mBAApBW,iBAAiCA"}
|