@factorialco/fcode-react-forms 3.4.0 → 3.4.1
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/components/json-schema-form/oauth/resolve-oauth-value.d.ts +2 -1
- package/dist/components/json-schema-form/oauth/types.d.ts +12 -1
- package/dist/fcode-form.cjs.js +67 -67
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +6586 -6488
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +68 -68
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/hooks/use-form-specs.d.ts +6 -1
- package/dist/utils/oauth-popup.d.ts +54 -4
- package/dist/utils/oauth-relay.d.ts +1 -0
- package/dist/utils/oauth-relay.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { OauthSuccess, OauthValueKind } from './types';
|
|
|
3
3
|
* The value an `oauth` field takes after a successful flow, by property type:
|
|
4
4
|
* a boolean is simply `true`; a string takes the callback page's `value`
|
|
5
5
|
* (an opaque handle such as a connection id); an object takes every parameter
|
|
6
|
-
* the callback page received, minus the ones that describe the outcome
|
|
6
|
+
* the callback page received, minus the ones that describe the outcome
|
|
7
|
+
* (`status`, `message`) or correlate the flow (the echoed `state`).
|
|
7
8
|
*/
|
|
8
9
|
export declare const resolveOauthValue: (kind: OauthValueKind, result: OauthSuccess) => true | string | Record<string, string>;
|
|
@@ -39,6 +39,14 @@ export type OauthSuccess = OauthOutcome & {
|
|
|
39
39
|
};
|
|
40
40
|
export type OauthResult = OauthOutcome | {
|
|
41
41
|
status: 'cancelled';
|
|
42
|
+
/**
|
|
43
|
+
* The popup reported closed within seconds of opening while a
|
|
44
|
+
* BroadcastChannel is available — the signature of a
|
|
45
|
+
* `Cross-Origin-Opener-Policy` severance, where the flow is most likely
|
|
46
|
+
* still running and its completion can still arrive over the channel.
|
|
47
|
+
* Set only when true.
|
|
48
|
+
*/
|
|
49
|
+
possiblySevered?: boolean;
|
|
42
50
|
} | {
|
|
43
51
|
status: 'blocked';
|
|
44
52
|
};
|
|
@@ -73,6 +81,9 @@ export interface FcodeFormContext {
|
|
|
73
81
|
* server can mint a fresh authorization URL. `FcodeForm` provides it; an
|
|
74
82
|
* embedder rendering `FcodeJsonSchemaForm` itself can set its own.
|
|
75
83
|
*/
|
|
76
|
-
reloadFormSpecs?: (
|
|
84
|
+
reloadFormSpecs?: (options?: {
|
|
85
|
+
/** Skip the loading overlay: a background refresh. */
|
|
86
|
+
silent?: boolean;
|
|
87
|
+
}) => void;
|
|
77
88
|
};
|
|
78
89
|
}
|