@pontive/pontkit-core 1.7.3 → 1.7.5

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,5 +1,5 @@
1
1
  import { GetInvitationsParams, InvitationsResponse, InviteMembersRequest } from '../../../types';
2
2
  export declare function inviteMembers(organizationId: string, data: InviteMembersRequest): Promise<InvitationsResponse>;
3
3
  export declare function resendInvitation(organizationId: string, invitationId: string): Promise<InvitationsResponse>;
4
- export declare function cancelInvitation(organizationId: string, invitationId: string): Promise<InvitationsResponse>;
4
+ export declare function deleteInvitation(organizationId: string, invitationId: string, notifyInvitee?: boolean): Promise<void>;
5
5
  export declare function getInvitations(organizationId: string, params?: GetInvitationsParams): Promise<InvitationsResponse>;
package/dist/styles.css CHANGED
@@ -12881,17 +12881,6 @@ pont-member-management .pont-member-management-watermark-container {
12881
12881
  padding: var(--pont-member-management-watermark-space-pt) 0 0 0;
12882
12882
  }
12883
12883
 
12884
- pont-member-management div[part="invitation-status"] div[part="pending-icon"] {
12885
- color: hsl(var(--pont-sem-color-role-warning));
12886
- }
12887
-
12888
- pont-member-management div[part="invitation-status"] div[part="accepted-icon"] {
12889
- color: hsl(var(--pont-sem-color-role-success));
12890
- }
12891
-
12892
- pont-member-management div[part="status-expired"] {
12893
- opacity: 0.5;
12894
- }
12895
12884
  /* Group all pont-typography-p with [part] attributes */
12896
12885
  pont-member-management pont-typography-p[part="expires_at"],
12897
12886
  pont-member-management pont-typography-p[part="name"],
@@ -14297,9 +14286,6 @@ video {
14297
14286
  .pont-w-12{
14298
14287
  width: 3rem;
14299
14288
  }
14300
- .pont-w-14{
14301
- width: 3.5rem;
14302
- }
14303
14289
  .pont-w-16{
14304
14290
  width: 4rem;
14305
14291
  }
@@ -11,12 +11,9 @@ export interface Invitation {
11
11
  key: string;
12
12
  name: string;
13
13
  }[];
14
- status: string;
15
14
  invited_by: InvitedBy;
16
15
  created_at: number;
17
16
  updated_at: number;
18
- accepted_at?: number;
19
- cancelled_at?: number;
20
17
  expires_at: number;
21
18
  last_sent_at: number;
22
19
  resend_count: number;
@@ -29,8 +26,6 @@ export interface InvitationsResponse {
29
26
  object: string;
30
27
  }
31
28
  export interface GetInvitationsParams {
32
- status?: string;
33
- expired?: boolean;
34
29
  invitee_emails?: string[];
35
30
  invited_by?: string;
36
31
  search?: string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * What a flow failure says to the person on the screen.
3
+ *
4
+ * A step that fails and can be retried (a wrong password, an invalid code)
5
+ * comes back as a screen with the error banner already in it. Everything else
6
+ * comes back as an exception: the request failed, or the flow is over. Those
7
+ * used to reach only the console, so the page sat on the screen it was showing
8
+ * with nothing to say what had happened.
9
+ */
10
+ export interface FlowErrorDescription {
11
+ /** A sentence for the banner. */
12
+ message: string;
13
+ /**
14
+ * The flow has ended and takes no more events, so the screen on show is dead.
15
+ * The only way on is to start the flow again.
16
+ */
17
+ restartable: boolean;
18
+ }
19
+ export declare function describeFlowError(error: unknown): FlowErrorDescription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",