@pontive/pontkit-core 1.29.0 → 1.31.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.
Files changed (47) hide show
  1. package/README.md +40 -0
  2. package/catalog.json +1 -1
  3. package/custom-elements.json +1 -1
  4. package/dist/components/ui/badge-selector/badge-selector.d.ts +5 -0
  5. package/dist/components/widgets/pont-member-management/components/action-modal.d.ts +2 -0
  6. package/dist/components/widgets/pont-member-management/components/index.d.ts +0 -1
  7. package/dist/components/widgets/pont-member-management/components/invitations-panel.d.ts +3 -0
  8. package/dist/components/widgets/pont-member-management/components/invite-members-form.d.ts +5 -6
  9. package/dist/components/widgets/pont-member-management/components/manage-roles-form.d.ts +11 -5
  10. package/dist/components/widgets/pont-member-management/components/members-panel.d.ts +5 -1
  11. package/dist/components/widgets/pont-member-management/components/page-range.d.ts +5 -0
  12. package/dist/components/widgets/pont-member-management/components/role-badges.d.ts +5 -0
  13. package/dist/components/widgets/pont-member-management/components/role-options.d.ts +9 -0
  14. package/dist/components/widgets/pont-member-management/errors.d.ts +24 -0
  15. package/dist/components/widgets/pont-member-management/pont-member-management.d.ts +69 -17
  16. package/dist/components/widgets/pont-member-management/types.d.ts +4 -3
  17. package/dist/i18n/messages.d.ts +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +936 -1019
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +6543 -6713
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/pont2/globals.css +3 -3
  24. package/dist/pont2/index.mjs +678 -617
  25. package/dist/pont2/index.mjs.map +1 -1
  26. package/dist/pont2/kit/flow-widget/preview.d.ts +46 -0
  27. package/dist/pont2/kit/index.d.ts +1 -0
  28. package/dist/pont2/styles.css +390 -149
  29. package/dist/pont2/theme/tokens.json.d.ts +1020 -440
  30. package/dist/pont2/theme/types.d.ts +4 -0
  31. package/dist/pont2/theme.mjs +172 -157
  32. package/dist/pont2/theme.mjs.map +1 -1
  33. package/dist/pont2/tokens.json +1020 -440
  34. package/dist/primitives/components/ui/data-table/data-table.d.ts +4 -0
  35. package/dist/service/http/fetch.d.ts +6 -3
  36. package/dist/service/http/organization/assignable-roles.d.ts +8 -0
  37. package/dist/service/http/organization/index.d.ts +2 -1
  38. package/dist/service/http/organization/management-token.d.ts +13 -0
  39. package/dist/service/http/organization/members.d.ts +0 -1
  40. package/dist/styles.css +5 -43
  41. package/dist/types/core/index.d.ts +19 -2
  42. package/dist/types/service/http/invitation/index.d.ts +7 -2
  43. package/dist/types/service/http/roles/index.d.ts +16 -35
  44. package/package.json +2 -2
  45. package/dist/components/widgets/pont-member-management/components/monitoring-cards.d.ts +0 -20
  46. package/dist/components/widgets/pont-member-management/mock-data.d.ts +0 -4
  47. package/dist/service/http/organization/roles.d.ts +0 -7
@@ -0,0 +1,46 @@
1
+ import { WidgetClient } from './flow-widget';
2
+ export interface PreviewScreen {
3
+ /** A name for a screen picker. */
4
+ label: string;
5
+ /** The widget to preview it in (its tag is `pont2-<flow>`). */
6
+ flow: "signin" | "signup";
7
+ /** The screen, as a render spec would write it. */
8
+ spec: string;
9
+ }
10
+ /** Sample screens for a branding preview, keyed by id. */
11
+ export declare const PREVIEW_SCREENS: {
12
+ readonly signin: {
13
+ readonly label: "Sign in";
14
+ readonly flow: "signin";
15
+ readonly spec: "<pont2-block>\n <pont2-header>\n <pont2-title content=\"Welcome back\"></pont2-title>\n <pont2-subtitle content=\"Sign in to your account\"></pont2-subtitle>\n </pont2-header>\n <pont2-provider-field providers=\"google apple github\"></pont2-provider-field>\n <pont2-divider label=\"Or continue with\"></pont2-divider>\n <pont2-identifier-field identifiers=\"email username\" required></pont2-identifier-field>\n <pont2-submit-button event=\"submit_identifier\" label=\"Continue\"></pont2-submit-button>\n <pont2-passkey-button content=\"icon-label\" event=\"passkey\"></pont2-passkey-button>\n <pont2-link prompt=\"Don't have an account?\" label=\"Sign up\" event=\"goto_signup\"></pont2-link>\n</pont2-block>";
16
+ };
17
+ readonly password: {
18
+ readonly label: "Password";
19
+ readonly flow: "signin";
20
+ readonly spec: "<pont2-block>\n <pont2-header>\n <pont2-title content=\"Enter your password\"></pont2-title>\n </pont2-header>\n <pont2-edit-identifier identifier=\"ada@example.com\" event=\"change_identifier\"></pont2-edit-identifier>\n <pont2-password-field required rules=\"[]\" forgot forgot-event=\"forgot_password\"></pont2-password-field>\n <pont2-submit-button event=\"submit_password\" label=\"Sign in\"></pont2-submit-button>\n</pont2-block>";
21
+ };
22
+ readonly verify: {
23
+ readonly label: "Verification code";
24
+ readonly flow: "signin";
25
+ readonly spec: "<pont2-block>\n <pont2-header>\n <pont2-title content=\"Check your email\"></pont2-title>\n <pont2-subtitle content=\"We sent a 6-digit code to ada@example.com\"></pont2-subtitle>\n </pont2-header>\n <pont2-alert status=\"info\" icon description=\"The code expires in 10 minutes.\"></pont2-alert>\n <pont2-container align=\"center\">\n <pont2-otp-field layout=\"simple\" required></pont2-otp-field>\n </pont2-container>\n <pont2-submit-button event=\"verify_code\" label=\"Verify\"></pont2-submit-button>\n <pont2-otp-resend duration=\"30\" event=\"resend_code\"></pont2-otp-resend>\n</pont2-block>";
26
+ };
27
+ readonly signup: {
28
+ readonly label: "Sign up";
29
+ readonly flow: "signup";
30
+ readonly spec: "<pont2-block>\n <pont2-header>\n <pont2-title content=\"Create an account\"></pont2-title>\n <pont2-subtitle content=\"It only takes a minute\"></pont2-subtitle>\n </pont2-header>\n <pont2-name-field required></pont2-name-field>\n <pont2-email-field required></pont2-email-field>\n <pont2-password-field required></pont2-password-field>\n <pont2-confirm-field required></pont2-confirm-field>\n <pont2-submit-button event=\"submit_signup\" label=\"Create account\"></pont2-submit-button>\n <pont2-link prompt=\"Already have an account?\" label=\"Sign in\" event=\"goto_signin\"></pont2-link>\n</pont2-block>";
31
+ };
32
+ };
33
+ export type PreviewScreenId = keyof typeof PREVIEW_SCREENS;
34
+ export interface PreviewClientOptions {
35
+ /** How long each request stays busy, in ms, so busy states can be seen (default 600). */
36
+ delay?: number;
37
+ /** The flow's localised messages (flow errors, "Start again" …). */
38
+ messages?: Record<string, string>;
39
+ }
40
+ /**
41
+ * A `WidgetClient` that shows one screen and never leaves it. Every request
42
+ * (a submit, a provider button, a link) is busy for `delay` ms and then
43
+ * resolves without a new screen, so the screen and what was typed stay put.
44
+ * Nothing is sent anywhere.
45
+ */
46
+ export declare function previewClient(spec: string, options?: PreviewClientOptions): WidgetClient;
@@ -24,3 +24,4 @@ export * from './recovery-codes/recovery-codes';
24
24
  export * from './scope-list/scope-list';
25
25
  export * from './layout/layout';
26
26
  export * from './flow-widget/flow-widget';
27
+ export * from './flow-widget/preview';