@getauthui/core 0.1.1 → 0.1.2

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/authui.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as t, c as r, o } from "./authui-user-button-BRfrh3si.js";
2
- import { A as m, b as E, d as w, e as v, f as b, g as x, h as C, i as M, j as B, E as O, P, k as j, l as k, p as y, t as L } from "./authui-user-button-BRfrh3si.js";
1
+ import { a as t, c as r, o } from "./authui-user-button-C64OcOdr.js";
2
+ import { A as m, b as E, d as w, e as v, f as b, g as x, h as C, i as M, j as B, E as O, P, k as j, l as k, p as y, t as L } from "./authui-user-button-C64OcOdr.js";
3
3
  import * as U from "appwrite";
4
4
  function u(n) {
5
5
  return t.configure(n), I;
@@ -1 +1 @@
1
- {"version":3,"file":"authui-user-button.d.ts","sourceRoot":"","sources":["../../src/components/authui-user-button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK7C;;;GAGG;AACH,qBACa,gBAAiB,SAAQ,aAAa;IACjD,MAAM,CAAC,MAAM,4BA+EX;IAEF,gDAAgD;IACpB,GAAG,SAAM;IAE5B,OAAO,CAAC,QAAQ,CAAS;IAElC,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAM5B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,SAAS,CAEf;IAEF,SAAS,CAAC,MAAM;CAsDjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
1
+ {"version":3,"file":"authui-user-button.d.ts","sourceRoot":"","sources":["../../src/components/authui-user-button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK7C;;;GAGG;AACH,qBACa,gBAAiB,SAAQ,aAAa;IACjD,MAAM,CAAC,MAAM,4BA+EX;IAEF,gDAAgD;IACpB,GAAG,SAAM;IAE5B,OAAO,CAAC,QAAQ,CAAS;IAElC,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAO5B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,SAAS,CAEf;IAEF,SAAS,CAAC,MAAM;CAsDjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
@@ -9,6 +9,14 @@ export declare class AuthUIElement extends LitElement {
9
9
  protected auth: AuthUIState;
10
10
  private unsubscribeStore;
11
11
  private unsubscribeTheme;
12
+ /**
13
+ * Keyboard events fired inside the component stop at the host element, so page-level
14
+ * shortcuts (a game listening for WASD on `document`, a docs site toggling the theme on
15
+ * "d") never see keystrokes meant for our inputs. The default action is untouched, so
16
+ * typing, Enter to submit and Escape to close the dialog keep working.
17
+ */
18
+ private static readonly KEY_EVENTS;
19
+ private stopKeys;
12
20
  connectedCallback(): void;
13
21
  disconnectedCallback(): void;
14
22
  protected get strings(): AuthUIStrings;
@@ -1 +1 @@
1
- {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/components/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D;;;GAGG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAAkB;IAEtB,SAAS,CAAC,IAAI,EAAE,WAAW,CAAwB;IAE5D,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,gBAAgB,CAA6B;IAErD,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;IAQ5B,SAAS,KAAK,OAAO,IAAI,aAAa,CAErC;IAED,6DAA6D;IAC7D,SAAS,CAAC,CAAC,CAAC,GAAG,E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D,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI;CAGlD"}
package/dist/react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement as n, useEffect as i, Fragment as r, useState as s } from "react";
2
- import { a as u, c as a, o as h } from "./authui-user-button-BRfrh3si.js";
2
+ import { a as u, c as a, o as h } from "./authui-user-button-C64OcOdr.js";
3
3
  function v() {
4
4
  const [t, e] = s(() => u.getState());
5
5
  return i(() => u.on("change", e), []), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getauthui/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Drop-in authentication UI for Appwrite. One script tag, every sign-in method, MFA, sessions and account management as web components.",
5
5
  "type": "module",
6
6
  "main": "./dist/authui.js",