@zoreal/oauth2-js 0.1.20 → 0.1.21

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.d.cts CHANGED
@@ -139,6 +139,13 @@ interface StartLoginOptions {
139
139
  * sign-in. See LoginIntent for what is inferred when this is omitted.
140
140
  */
141
141
  intent?: LoginIntent;
142
+ /**
143
+ * The control the person used to start this login, held busy with the
144
+ * pairing modal's light round it until the login ends, and let go on
145
+ * every outcome. Pass the button from your click handler. Nothing else is
146
+ * needed: no wrapper, no busy state of your own.
147
+ */
148
+ control?: HTMLElement;
142
149
  /** Sent to the provider so the pairing surface speaks the visitor's language. */
143
150
  locale?: string;
144
151
  /** Called on each pairing state change. Drive your UI from this. */
@@ -221,7 +228,7 @@ declare function startLogin(options: AuthCodeLoginOptions): LoginHandle<ZorealCo
221
228
  * mode, the code and the verifier in auth-code mode. The fragment is removed
222
229
  * from the address bar as it is read.
223
230
  */
224
- declare function resumeLogin(options: Pick<StartLoginOptions, 'clientId' | 'issuer' | 'onState'>): LoginHandle<ZorealCredentialResponse | ZorealCodeResponse> | null;
231
+ declare function resumeLogin(options: Pick<StartLoginOptions, 'clientId' | 'issuer' | 'onState' | 'control'>): LoginHandle<ZorealCredentialResponse | ZorealCodeResponse> | null;
225
232
 
226
233
  /**
227
234
  * The pairing modal, in plain DOM.
@@ -321,7 +328,7 @@ declare function mountPairingModal(state: PairingState, options: PairingModalOpt
321
328
  * auth-code mode leaves it to the RP backend.
322
329
  */
323
330
  declare const WIRE_VERSION = 1;
324
- declare const SDK_VERSION = "0.1.20";
331
+ declare const SDK_VERSION = "0.1.21";
325
332
  declare const SDK_NAME = "@zoreal/oauth2-js";
326
333
  declare const DEFAULT_ISSUER = "https://id.zoreal.com";
327
334
  /** Pending TTL is short. Poll gently; over-polling cancels the request. */
package/dist/index.d.ts CHANGED
@@ -139,6 +139,13 @@ interface StartLoginOptions {
139
139
  * sign-in. See LoginIntent for what is inferred when this is omitted.
140
140
  */
141
141
  intent?: LoginIntent;
142
+ /**
143
+ * The control the person used to start this login, held busy with the
144
+ * pairing modal's light round it until the login ends, and let go on
145
+ * every outcome. Pass the button from your click handler. Nothing else is
146
+ * needed: no wrapper, no busy state of your own.
147
+ */
148
+ control?: HTMLElement;
142
149
  /** Sent to the provider so the pairing surface speaks the visitor's language. */
143
150
  locale?: string;
144
151
  /** Called on each pairing state change. Drive your UI from this. */
@@ -221,7 +228,7 @@ declare function startLogin(options: AuthCodeLoginOptions): LoginHandle<ZorealCo
221
228
  * mode, the code and the verifier in auth-code mode. The fragment is removed
222
229
  * from the address bar as it is read.
223
230
  */
224
- declare function resumeLogin(options: Pick<StartLoginOptions, 'clientId' | 'issuer' | 'onState'>): LoginHandle<ZorealCredentialResponse | ZorealCodeResponse> | null;
231
+ declare function resumeLogin(options: Pick<StartLoginOptions, 'clientId' | 'issuer' | 'onState' | 'control'>): LoginHandle<ZorealCredentialResponse | ZorealCodeResponse> | null;
225
232
 
226
233
  /**
227
234
  * The pairing modal, in plain DOM.
@@ -321,7 +328,7 @@ declare function mountPairingModal(state: PairingState, options: PairingModalOpt
321
328
  * auth-code mode leaves it to the RP backend.
322
329
  */
323
330
  declare const WIRE_VERSION = 1;
324
- declare const SDK_VERSION = "0.1.20";
331
+ declare const SDK_VERSION = "0.1.21";
325
332
  declare const SDK_NAME = "@zoreal/oauth2-js";
326
333
  declare const DEFAULT_ISSUER = "https://id.zoreal.com";
327
334
  /** Pending TTL is short. Poll gently; over-polling cancels the request. */