@machinemetrics/mm-react-tools 4.13.0-0 → 4.14.0-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.
@@ -1 +1 @@
1
- {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../src/Authorize.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS,+CAqBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../src/Authorize.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS,+CAoBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The login card shown when the app is framed and unauthenticated. The popup
3
+ * it opens runs the OAuth flow top-level at the app's own origin; completion
4
+ * is delivered back to this window via the `mm_auth_complete` postMessage
5
+ * (see MMProvider's listener), which is same-origin between popup and opener
6
+ * and therefore unaffected by third-party storage partitioning.
7
+ */
8
+ declare const EmbeddedLoginCard: () => import("react/jsx-runtime").JSX.Element;
9
+ export default EmbeddedLoginCard;
10
+ //# sourceMappingURL=EmbeddedLoginCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbeddedLoginCard.d.ts","sourceRoot":"","sources":["../src/EmbeddedLoginCard.tsx"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,+CAoGtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MMApolloLinkProvider.d.ts","sourceRoot":"","sources":["../src/MMApolloLinkProvider.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,oBAAoB,+CA0HzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"MMApolloLinkProvider.d.ts","sourceRoot":"","sources":["../src/MMApolloLinkProvider.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,oBAAoB,+CAyHzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,4 +1,65 @@
1
1
  import React from 'react';
2
- declare const _default: React.Context<unknown>;
2
+ /**
3
+ * Environment urls used by the MachineMetrics tools. Derived from
4
+ * `releaseStage`, with any custom `urls` prop merged over the defaults.
5
+ *
6
+ * The five known urls are the ones this library reads. The index signature
7
+ * reflects that `MMProvider` merges the `urls` prop as-is and hands the result
8
+ * back through context, so consumers can pass their own extra urls through
9
+ * (e.g. `urls={{ cdsUrl }}` then reading `useMMAuth().urls.cdsUrl`).
10
+ */
11
+ export interface MMUrls {
12
+ loginUrl: string;
13
+ appUrl: string;
14
+ apiUrl: string;
15
+ graphQLUrl: string;
16
+ natsUrl: string;
17
+ [key: string]: string | undefined;
18
+ }
19
+ /**
20
+ * Options accepted by the authenticated `request` helper. Passed through to
21
+ * `window.fetch` (with a JSON `Content-Type` and `Authorization` header added).
22
+ */
23
+ export type MMRequestOptions = RequestInit;
24
+ /**
25
+ * Authenticated fetch helper. Resolves with the parsed JSON response body.
26
+ * Throws `Error('UNAUTHORIZED')` (and clears the access token) on a 401.
27
+ * Generic so consumers can write `request<MyType>(url)` as they do today.
28
+ */
29
+ export type MMRequest = <T = any>(url: string, options?: MMRequestOptions) => Promise<T>;
30
+ /**
31
+ * The value provided by `MMProvider` and returned from `useMMAuth`.
32
+ */
33
+ export interface MMContextValue {
34
+ /** The OAuth client id passed to `MMProvider`. */
35
+ clientId: string;
36
+ /** The OAuth access token, if the user has authorized. */
37
+ accessToken?: string | null;
38
+ /** Ref holding the current GraphQL JWT (refreshed on an interval). Null until the first fetch resolves. */
39
+ jwtRef: {
40
+ current: string | null;
41
+ };
42
+ /** Ref holding the current NATS credentials (refreshed on an interval). Null until the first fetch resolves. */
43
+ natsCredsRef: {
44
+ current: string | null;
45
+ };
46
+ /** Undefined until the first token check completes. */
47
+ isAuthenticated?: boolean;
48
+ /** Redirects the browser to the MachineMetrics OAuth login page. */
49
+ login: (opts?: Record<string, unknown>) => void;
50
+ /** Logs out of MachineMetrics and clears the access token. */
51
+ logout: () => Promise<void>;
52
+ /** Authenticated fetch helper for MachineMetrics APIs. */
53
+ request: MMRequest;
54
+ /** Environment urls (login, app, api, graphQL, nats). */
55
+ urls: MMUrls;
56
+ }
57
+ /**
58
+ * @deprecated Use `MMContextValue`. Kept because the local `.d.ts` shims this
59
+ * release replaces all named the type `MMAuthResult`, so consumers deleting a
60
+ * shim keep compiling without touching their imports.
61
+ */
62
+ export type MMAuthResult = MMContextValue;
63
+ declare const _default: React.Context<MMContextValue | undefined>;
3
64
  export default _default;
4
65
  //# sourceMappingURL=MMContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MMContext.d.ts","sourceRoot":"","sources":["../src/MMContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAG1B,wBAAqC"}
1
+ {"version":3,"file":"MMContext.d.ts","sourceRoot":"","sources":["../src/MMContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;GAQG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,GAAG,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,gBAAgB,KACvB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,2GAA2G;IAC3G,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACnC,gHAAgH;IAChH,YAAY,EAAE;QAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACzC,uDAAuD;IACvD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oEAAoE;IACpE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAChD,8DAA8D;IAC9D,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,0DAA0D;IAC1D,OAAO,EAAE,SAAS,CAAC;IACnB,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;;AAE1C,wBAA0E"}
@@ -1 +1 @@
1
- {"version":3,"file":"MMEmbeddedAppProvider.d.ts","sourceRoot":"","sources":["../src/MMEmbeddedAppProvider.tsx"],"names":[],"mappings":"AAmBA,QAAA,MAAM,qBAAqB,+CA4oB1B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"MMEmbeddedAppProvider.d.ts","sourceRoot":"","sources":["../src/MMEmbeddedAppProvider.tsx"],"names":[],"mappings":"AAuBA,QAAA,MAAM,qBAAqB,+CAquB1B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,3 +1,30 @@
1
- declare const MMProvider: ({ domain, children, scope, clientId, clientSecret, releaseStage, refreshJwtIntervalMs, device, graphQLRoleOverride, urls: customUrls, }: any) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ import type { MMUrls } from './MMContext';
3
+ export type MMReleaseStage = 'production' | 'staging' | 'development';
4
+ export interface MMProviderProps {
5
+ /** @deprecated No longer used. The domain is inferred from the url. */
6
+ domain?: string;
7
+ children?: React.ReactNode;
8
+ /** OAuth scopes requested during login. */
9
+ scope?: string;
10
+ /** OAuth client id. */
11
+ clientId: string;
12
+ /** OAuth client secret, used when exchanging the authorization code. */
13
+ clientSecret?: string;
14
+ /**
15
+ * Selects the default url set. Known stages keep autocomplete; a plain
16
+ * `string` (e.g. from JSON config) is also accepted and validated at runtime.
17
+ */
18
+ releaseStage: MMReleaseStage | (string & {});
19
+ /** How often the GraphQL JWT is refreshed. Defaults to 4.5 minutes. */
20
+ refreshJwtIntervalMs?: number;
21
+ /** Optional device identifier forwarded to the login page. */
22
+ device?: string;
23
+ /** Overrides the Hasura role sent with GraphQL requests. */
24
+ graphQLRoleOverride?: string;
25
+ /** Overrides for the urls derived from `releaseStage`. */
26
+ urls?: Partial<MMUrls>;
27
+ }
28
+ declare const MMProvider: ({ domain, children, scope, clientId, clientSecret, releaseStage, refreshJwtIntervalMs, device, graphQLRoleOverride, urls: customUrls, }: MMProviderProps) => import("react/jsx-runtime").JSX.Element;
2
29
  export default MMProvider;
3
30
  //# sourceMappingURL=MMProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MMProvider.d.ts","sourceRoot":"","sources":["../src/MMProvider.tsx"],"names":[],"mappings":"AA4FA,QAAA,MAAM,UAAU,GAAI,yIAWjB,GAAG,4CA6PL,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"MMProvider.d.ts","sourceRoot":"","sources":["../src/MMProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAkBf,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAC;AA4CtE,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,YAAY,EAAE,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC7C,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0DAA0D;IAC1D,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,QAAA,MAAM,UAAU,GAAI,yIAWjB,eAAe,4CA6OjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrivateLayout.d.ts","sourceRoot":"","sources":["../src/PrivateLayout.tsx"],"names":[],"mappings":"AA+CA,QAAA,MAAM,aAAa,+CA8GlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"PrivateLayout.d.ts","sourceRoot":"","sources":["../src/PrivateLayout.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa,+CAmBlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"eventStream.d.ts","sourceRoot":"","sources":["../src/eventStream.ts"],"names":[],"mappings":"AA0EA,eAAO,MAAM,YAAY,GACvB,YAAY,GAAG,EACf,aAAa,GAAG,EAChB,QAAQ,GAAG,WAwDZ,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,cAsEzC,CAAC"}
1
+ {"version":3,"file":"eventStream.d.ts","sourceRoot":"","sources":["../src/eventStream.ts"],"names":[],"mappings":"AA0EA,eAAO,MAAM,YAAY,GACvB,YAAY,GAAG,EACf,aAAa,GAAG,EAChB,QAAQ,GAAG,WAwDZ,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,cAqEzC,CAAC"}
package/dist/hooks.d.ts CHANGED
@@ -1,11 +1,25 @@
1
+ import type { MMContextValue, MMRequestOptions } from './MMContext';
1
2
  export declare const useSearchParamsState: (searchParamName: any, defaultValue: any, deserialize?: (v: any) => any, serialize?: (v: any) => any) => any[];
2
- export declare const useAsyncEffect: (delegate: any, stateTriggers: any, destroy: any) => Promise<void>;
3
- export declare const useAsyncInterval: (delegate: any, delay: null | undefined, stateTriggers: any) => void;
4
- export declare const useApiRequest: (path: any, options: any, delay: any) => {
5
- data: undefined;
6
- error: undefined;
3
+ export declare const useAsyncEffect: (delegate: any, stateTriggers: readonly unknown[], destroy: any) => Promise<void>;
4
+ export declare const useAsyncInterval: (delegate: any, delay: number | null | undefined, stateTriggers: readonly unknown[]) => void;
5
+ /**
6
+ * Options for `useApiRequest`. Passed through to the authenticated `request`
7
+ * helper, plus `skip` to suspend the request without unmounting the hook.
8
+ */
9
+ export interface UseApiRequestOptions extends MMRequestOptions {
10
+ /** When true, the request is not issued. */
11
+ skip?: boolean;
12
+ }
13
+ /**
14
+ * `data` is undefined until the first response lands. `error` holds whatever
15
+ * `request` threw — in practice an `Error`, including the `UNAUTHORIZED` one.
16
+ */
17
+ export interface UseApiRequestResult<T> {
18
+ data: T | undefined;
19
+ error: Error | undefined;
7
20
  loading: boolean;
8
- };
21
+ }
22
+ export declare const useApiRequest: <T = any>(path: string, options?: UseApiRequestOptions | null, delay?: number | null) => UseApiRequestResult<T>;
9
23
  export declare const useProductionQuery: (query: any, delay: any) => {
10
24
  data: undefined;
11
25
  error: undefined;
@@ -24,20 +38,20 @@ export declare const useDowntimeQuery: (query: any) => {
24
38
  export declare const useMMTemplates: (namespacePart: any) => (((id: any, { name, public: isPublic, config }: any) => Promise<any>) | {
25
39
  templates: undefined;
26
40
  loading: boolean;
27
- error: undefined;
41
+ error: Error | undefined;
28
42
  })[];
29
- export declare const useMMAuth: () => unknown;
43
+ export declare const useMMAuth: () => MMContextValue;
30
44
  export declare const useMMEmbeddedApp: () => never;
31
45
  export declare const useMMAppTools: () => never;
32
46
  export declare const useMMAppContext: () => any;
33
47
  export declare const useMMAppParams: () => any;
34
48
  export declare const useMMAppCommands: () => any;
35
- export declare const useMMAppInfo: (info: any, stateTriggers?: never[]) => void;
36
- export declare const useMMAppSetting: (name: any, cfg: any, stateTriggers?: never[]) => void;
37
- export declare const useMMAppSetClaims: (func: any, stateTriggers?: never[]) => void;
38
- export declare const useMMAppCustomInputOpen: (func: any, stateTriggers?: never[]) => void;
39
- export declare const useMMAppCustomInputSave: (func: any, stateTriggers?: never[]) => void;
40
- export declare const useMMAppCustomInputLabel: (func: any, stateTriggers?: never[]) => void;
41
- export declare const useMMAppModalSave: (func: any, stateTriggers?: never[]) => void;
49
+ export declare const useMMAppInfo: (info: any, stateTriggers?: readonly unknown[]) => void;
50
+ export declare const useMMAppSetting: (name: any, cfg: any, stateTriggers?: readonly unknown[]) => void;
51
+ export declare const useMMAppSetClaims: (func: any, stateTriggers?: readonly unknown[]) => void;
52
+ export declare const useMMAppCustomInputOpen: (func: any, stateTriggers?: readonly unknown[]) => void;
53
+ export declare const useMMAppCustomInputSave: (func: any, stateTriggers?: readonly unknown[]) => void;
54
+ export declare const useMMAppCustomInputLabel: (func: any, stateTriggers?: readonly unknown[]) => void;
55
+ export declare const useMMAppModalSave: (func: any, stateTriggers?: readonly unknown[]) => void;
42
56
  export declare const _useMMApolloLinkContext: () => unknown;
43
57
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,oBAAoB,GAC/B,iBAAiB,GAAG,EACpB,cAAc,GAAG,EACjB,eAAe,GAAG,GAAG,QAAM,EAC3B,aAAa,GAAG,GAAG,QAAM,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G/D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,GAAG;;;;CAgC1C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,eAAe,GAAG,YAuCzC,GAAG,sCAC6B,GAAG;;;;IA2C1C,CAAC;AAEF,eAAO,MAAM,SAAS,QAAO,cAI5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,aAI5B,CAAC;AAEF,eAAO,MAAM,aAAa,aAIzB,CAAC;AAEF,eAAO,MAAM,eAAe,WAI3B,CAAC;AAEF,eAAO,MAAM,cAAc,WAI1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAI5B,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,MAAM,GAAG,EACT,gBAAe,SAAS,OAAO,EAAO,SAQvC,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,MAAM,GAAG,EACT,KAAK,GAAG,EACR,gBAAe,SAAS,OAAO,EAAO,SAQvC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,GAAG,EACT,gBAAe,SAAS,OAAO,EAAO,SAWvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,MAAM,GAAG,EACT,gBAAe,SAAS,OAAO,EAAO,SAUvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,MAAM,GAAG,EACT,gBAAe,SAAS,OAAO,EAAO,SAUvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,MAAM,GAAG,EACT,gBAAe,SAAS,OAAO,EAAO,SAWvC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,MAAM,GAAG,EACT,gBAAe,SAAS,OAAO,EAAO,SAUvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAEnC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,4 +4,7 @@ import { useEventStream } from './eventStream';
4
4
  import Link from './Link';
5
5
  import { useAsyncEffect, useAsyncInterval, useApiRequest, useProductionQuery, useDowntimeQuery, useMMAuth, useMMTemplates, useQuantityStream, useSearchParamsState, _useMMApolloLinkContext, useMMEmbeddedApp, useMMAppTools, useMMAppParams, useMMAppCommands, useMMAppContext, useMMAppInfo, useMMAppSetting, useMMAppCustomInputOpen, useMMAppCustomInputSave, useMMAppCustomInputLabel, useMMAppSetClaims, useMMAppModalSave } from './hooks';
6
6
  export { _useMMApolloLinkContext, useMMAuth, useMMEmbeddedApp, useMMAppTools, useMMAppParams, useMMAppCommands, useMMAppContext, useMMAppInfo, useMMAppSetting, useMMAppCustomInputOpen, useMMAppCustomInputSave, useMMAppCustomInputLabel, useMMAppSetClaims, useMMAppModalSave, useMMTemplates, PrivateLayout, useAsyncEffect, useAsyncInterval, useApiRequest, useProductionQuery, useDowntimeQuery, useQuantityStream, useSearchParamsState, MMProvider, Link, useEventStream, };
7
+ export type { MMContextValue, MMAuthResult, MMUrls, MMRequest, MMRequestOptions, } from './MMContext';
8
+ export type { MMProviderProps, MMReleaseStage } from './MMProvider';
9
+ export type { UseApiRequestOptions, UseApiRequestResult } from './hooks';
7
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,IAAI,EACJ,cAAc,GACf,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,IAAI,EACJ,cAAc,GACf,CAAC;AAEF,YAAY,EACV,cAAc,EACd,YAAY,EACZ,MAAM,EACN,SAAS,EACT,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
@@ -6,6 +6,4 @@ export declare const retrieveAuthState: () => string | null;
6
6
  export declare const storeAuthState: (state: any) => void;
7
7
  export declare const storePopupMode: (active: any) => void;
8
8
  export declare const retrievePopupMode: () => boolean;
9
- export declare const retrieveCodeVerifier: () => string | null;
10
- export declare const storeCodeVerifier: (verifier: any) => void;
11
9
  //# sourceMappingURL=localStorage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../src/localStorage.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,qBAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,GAAG,SAM1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,qBAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,GAAG,SAMzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,qBAE7B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,SAMxC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,SAMzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAE7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,qBAEhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,GAAG,SAM9C,CAAC"}
1
+ {"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../src/localStorage.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,qBAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,GAAG,SAM1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,qBAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,GAAG,SAMzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,qBAE7B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,SAMxC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,SAMzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAE7B,CAAC"}