@machinemetrics/mm-react-tools 5.0.0-2 → 5.0.0-4
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/README.md +2 -1
- package/dist/EmbeddedLoginCard.d.ts +2 -7
- package/dist/EmbeddedLoginCard.d.ts.map +1 -1
- package/dist/MMContext.d.ts +1 -6
- package/dist/MMContext.d.ts.map +1 -1
- package/dist/MMEmbeddedAppProvider.d.ts.map +1 -1
- package/dist/MMProvider.d.ts +1 -3
- package/dist/MMProvider.d.ts.map +1 -1
- package/dist/credentialStore.d.ts +1 -5
- package/dist/credentialStore.d.ts.map +1 -1
- package/dist/hooks.d.ts +1 -5
- package/dist/hooks.d.ts.map +1 -1
- package/dist/localStorage.d.ts +2 -0
- package/dist/localStorage.d.ts.map +1 -1
- package/dist/mm-react-tools.es.js +8079 -7817
- package/dist/pkce.d.ts +4 -0
- package/dist/pkce.d.ts.map +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -37,6 +37,8 @@ npm install react react-router-dom styled-components @apollo/client
|
|
|
37
37
|
|
|
38
38
|
Wrap your application in the `MMProvider` to wire up everything necessary to authenticate against MachineMetrics Cloud with OAuth.
|
|
39
39
|
|
|
40
|
+
Sign-in uses the OAuth authorization-code flow with PKCE (S256). **There is no `clientSecret` prop**: a browser app is a public client and must not ship a secret. If you are upgrading from v4, delete `clientSecret` from your config and rotate that secret — it has been in every build that included it.
|
|
41
|
+
|
|
40
42
|
```jsx
|
|
41
43
|
import React from 'react';
|
|
42
44
|
import ReactDOM from 'react-dom';
|
|
@@ -46,7 +48,6 @@ import App from './App';
|
|
|
46
48
|
ReactDOM.render(
|
|
47
49
|
<MMProvider
|
|
48
50
|
clientId={process.env.REACT_APP_CLIENT_ID}
|
|
49
|
-
clientSecret={process.env.REACT_APP_CLIENT_SECRET}
|
|
50
51
|
releaseStage={process.env.REACT_APP_RELEASE_STAGE}
|
|
51
52
|
scope={'reporting'}
|
|
52
53
|
>
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
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
|
-
*/
|
|
1
|
+
/** The popup runs OAuth top-level at the app's own origin; completion returns over same-origin
|
|
2
|
+
* postMessage, unaffected by third-party storage partitioning. */
|
|
8
3
|
declare const EmbeddedLoginCard: () => import("react/jsx-runtime").JSX.Element;
|
|
9
4
|
export default EmbeddedLoginCard;
|
|
10
5
|
//# sourceMappingURL=EmbeddedLoginCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddedLoginCard.d.ts","sourceRoot":"","sources":["../src/EmbeddedLoginCard.tsx"],"names":[],"mappings":"AA2CA
|
|
1
|
+
{"version":3,"file":"EmbeddedLoginCard.d.ts","sourceRoot":"","sources":["../src/EmbeddedLoginCard.tsx"],"names":[],"mappings":"AA2CA;kEACkE;AAClE,QAAA,MAAM,iBAAiB,+CAoGtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/dist/MMContext.d.ts
CHANGED
|
@@ -34,12 +34,7 @@ export type MMRequest = <T = any>(url: string, options?: MMRequestOptions) => Pr
|
|
|
34
34
|
export interface MMContextValue {
|
|
35
35
|
/** The OAuth client id passed to `MMProvider`. */
|
|
36
36
|
clientId: string;
|
|
37
|
-
/**
|
|
38
|
-
* The credential for a purpose (`'api'` | `'graphql'` | `'nats'`), read from
|
|
39
|
-
* the internal store — the api bearer, the Hasura JWT, the NATS creds. Read
|
|
40
|
-
* per-use; never cache the result. Sourced identically whether the app
|
|
41
|
-
* derived it from a token (standalone/BMVP) or received a host push (P2).
|
|
42
|
-
*/
|
|
37
|
+
/** The credential for a purpose ('api' | 'graphql' | 'nats'). Read per-use; never cache it. */
|
|
43
38
|
getCredential: (purpose: CredentialPurpose) => string | null;
|
|
44
39
|
/** Subscribe to credential-store changes (for the reactive `useCredential`). */
|
|
45
40
|
subscribeCredentials: (listener: () => void) => () => void;
|
package/dist/MMContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MMContext.d.ts","sourceRoot":"","sources":["../src/MMContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;;;;;;;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
|
|
1
|
+
{"version":3,"file":"MMContext.d.ts","sourceRoot":"","sources":["../src/MMContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC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|
+
{"version":3,"file":"MMEmbeddedAppProvider.d.ts","sourceRoot":"","sources":["../src/MMEmbeddedAppProvider.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,yBAAyB,UAAmB,CAAC;AAK1D,QAAA,MAAM,qBAAqB,+CA6tB1B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/dist/MMProvider.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export interface MMProviderProps {
|
|
|
9
9
|
scope?: string;
|
|
10
10
|
/** OAuth client id. */
|
|
11
11
|
clientId: string;
|
|
12
|
-
/** OAuth client secret, used when exchanging the authorization code. */
|
|
13
|
-
clientSecret?: string;
|
|
14
12
|
/**
|
|
15
13
|
* Selects the default url set. Known stages keep autocomplete; a plain
|
|
16
14
|
* `string` (e.g. from JSON config) is also accepted and validated at runtime.
|
|
@@ -25,6 +23,6 @@ export interface MMProviderProps {
|
|
|
25
23
|
/** Overrides for the urls derived from `releaseStage`. */
|
|
26
24
|
urls?: Partial<MMUrls>;
|
|
27
25
|
}
|
|
28
|
-
declare const MMProvider: ({ domain, children, scope, clientId,
|
|
26
|
+
declare const MMProvider: ({ domain, children, scope, clientId, releaseStage, refreshJwtIntervalMs, device, graphQLRoleOverride, urls: customUrls, ...legacyProps }: MMProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
27
|
export default MMProvider;
|
|
30
28
|
//# sourceMappingURL=MMProvider.d.ts.map
|
package/dist/MMProvider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MMProvider.d.ts","sourceRoot":"","sources":["../src/MMProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MMProvider.d.ts","sourceRoot":"","sources":["../src/MMProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAuBf,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;;;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,0IAWjB,eAAe,4CAgTjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -20,11 +20,7 @@ export interface CredentialStore {
|
|
|
20
20
|
isAuthenticated(): boolean;
|
|
21
21
|
/** Whether the bundle is past its expiry (if it declared one). */
|
|
22
22
|
isExpired(): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Replace the bundle. `null` clears it. Fields set to `undefined` are left
|
|
25
|
-
* unchanged; fields set to `null` are cleared — so a partial update (e.g.
|
|
26
|
-
* only refreshing the api jwt) is expressible.
|
|
27
|
-
*/
|
|
23
|
+
/** Replace the bundle; `null` clears it. `undefined` fields are left unchanged, `null` fields cleared. */
|
|
28
24
|
setBundle(bundle: CredentialBundle | null): void;
|
|
29
25
|
clear(): void;
|
|
30
26
|
/** Subscribe to changes; returns an unsubscribe. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialStore.d.ts","sourceRoot":"","sources":["../src/credentialStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentialStore.d.ts","sourceRoot":"","sources":["../src/credentialStore.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,4EAA4E;IAC5E,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAAC;IACzD,SAAS,IAAI,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACxC,YAAY,IAAI,MAAM,GAAG,IAAI,CAAC;IAC9B,8EAA8E;IAC9E,eAAe,IAAI,OAAO,CAAC;IAC3B,kEAAkE;IAClE,SAAS,IAAI,OAAO,CAAC;IACrB,0GAA0G;IAC1G,SAAS,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;IACjD,KAAK,IAAI,IAAI,CAAC;IACd,oDAAoD;IACpD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C;AAgBD,wBAAgB,qBAAqB,CACnC,GAAG,GAAE,MAAM,MAAyB,GACnC,eAAe,CAmDjB"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -42,11 +42,7 @@ export declare const useMMTemplates: (namespacePart: any) => (((id: any, { name,
|
|
|
42
42
|
error: Error | undefined;
|
|
43
43
|
})[];
|
|
44
44
|
export declare const useMMAuth: () => MMContextValue;
|
|
45
|
-
/**
|
|
46
|
-
* Reactive credential for a purpose ('api' | 'graphql' | 'nats'). Re-renders
|
|
47
|
-
* the component when that credential changes (e.g. a token refresh or a host
|
|
48
|
-
* push). For imperative one-off reads, use `useMMAuth().getCredential`.
|
|
49
|
-
*/
|
|
45
|
+
/** Reactive credential for a purpose ('api' | 'graphql' | 'nats'); re-renders when it changes. */
|
|
50
46
|
export declare const useCredential: (purpose: CredentialPurpose) => string | null;
|
|
51
47
|
export declare const useMMAppContext: () => any;
|
|
52
48
|
export declare const useMMAppParams: () => any;
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAM3D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIpE,eAAO,MAAM,oBAAoB,GAC/B,iBAAiB,GAAG,EACpB,cAAc,GAAG,EACjB,eAAe,GAAG,GAAG,QAAM,EAC3B,aAAa,GAAG,GAAG,QAAM,UAqB1B,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,UAAU,GAAG,EACb,eAAe,SAAS,OAAO,EAAE,EACjC,SAAS,GAAG,kBAmBb,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,UAAU,GAAG,EACb,OAAO,MAAM,GAAG,IAAI,YAAO,EAC3B,eAAe,SAAS,OAAO,EAAE,SAiClC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,4CAA4C;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC;IACpB,KAAK,EAAE,KAA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,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/localStorage.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ 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?: string | null) => void;
|
|
9
11
|
//# sourceMappingURL=localStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../src/localStorage.ts"],"names":[],"mappings":"
|
|
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;AAGF,eAAO,MAAM,oBAAoB,qBAEhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,GAAG,IAAI,SAMzD,CAAC"}
|