@pontive/pontkit-core 1.1.4 → 1.3.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,6 +1,7 @@
1
1
  export * from './pont-account-settings';
2
2
  export * from './pont-member-management';
3
3
  export * from './pont-preview/pont-preview';
4
+ export * from './pont-invitation/pont-invitation';
4
5
  export * from './pont-signin/pont-signin';
5
6
  export * from './pont-signup/pont-signup';
6
7
  export * from './pont-account-menu';
@@ -0,0 +1,35 @@
1
+ import { LitElement } from 'lit';
2
+ import { BrandingEntitlements } from '../../../context';
3
+ /**
4
+ * Accepting an invitation.
5
+ *
6
+ * The invitee arrives from a link in an email holding a token and nothing else.
7
+ * They are not asked who they are — the invitation already knows — so this
8
+ * widget starts the invitation flow, which resolves the token, decides for
9
+ * itself whether the invitee signs in or registers, and accepts the invitation
10
+ * once they are authenticated.
11
+ *
12
+ * It is its own element rather than pont-signin on another page because the
13
+ * flow it runs is its own: an invitation answered by the sign-in flow signs the
14
+ * invitee in and joins them to nothing, which is what used to happen. The flow
15
+ * type comes from the page's path, so the host serving this widget names that
16
+ * path as `invitationUrl` in the env it gives pont-provider.
17
+ *
18
+ * Everything on screen comes from the flow's render spec, as it does for
19
+ * sign-in and sign-up: the instance's own invitation widgets, if it has
20
+ * published any, and otherwise the built-in ones.
21
+ */
22
+ export declare class PontInvitation extends LitElement {
23
+ renderSpec: string | null;
24
+ branding: BrandingEntitlements;
25
+ locales: string;
26
+ createRenderRoot(): this;
27
+ private __flowStarted;
28
+ private __initialized;
29
+ private __previousLocale;
30
+ protected firstUpdated(): void;
31
+ protected updated(changedProperties: Map<string, unknown>): void;
32
+ private startAuthFlow;
33
+ private tryRemoveFallback;
34
+ render(): import('lit-html').TemplateResult<1>;
35
+ }
@@ -16,6 +16,7 @@ import { PontGap } from './components/renderers/layout/gap/_gap';
16
16
  import { PontHeader } from './components/renderers/layout/header/_header';
17
17
  import { PontHint } from './components/ui/hint/index';
18
18
  import { PontIdentifierField } from './components/renderers/auth/field/_identifier-field';
19
+ import { PontInvitation } from './components/widgets/pont-invitation/pont-invitation';
19
20
  import { PontKitLayout } from './components/wrappers/layout/layout';
20
21
  import { PontLink } from './components/renderers/navigation/link/_link';
21
22
  import { PontLogo } from './components/renderers/visuals/logo/_logo';
@@ -62,6 +63,7 @@ declare global {
62
63
  "pont-header": PontHeader;
63
64
  "pont-hint": PontHint;
64
65
  "pont-identifier-field": PontIdentifierField;
66
+ "pont-invitation": PontInvitation;
65
67
  "pont-layout": PontKitLayout;
66
68
  "pont-link": PontLink;
67
69
  "pont-logo": PontLogo;