@memberstack/dom 2.0.2-beta.0 → 2.0.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.
Files changed (87) hide show
  1. package/lib/index.d.mts +61 -26
  2. package/lib/index.d.ts +61 -26
  3. package/lib/index.js +793 -53
  4. package/lib/index.mjs +793 -53
  5. package/lib/{models-CTRKogoR.d.ts → models-CFT_ABd5.d.ts} +2 -2
  6. package/lib/testing/index.d.mts +25 -2
  7. package/lib/testing/index.d.ts +25 -2
  8. package/lib/testing/index.js +28 -6
  9. package/lib/testing/index.mjs +26 -5
  10. package/package.json +1 -1
  11. package/lib/auth/index.d.mts +0 -63
  12. package/lib/auth/index.d.ts +0 -63
  13. package/lib/auth/index.global.js +0 -244
  14. package/lib/auth/index.js +0 -161
  15. package/lib/auth/index.mjs +0 -123
  16. package/lib/constants/endpoints.d.mts +0 -5
  17. package/lib/constants/endpoints.d.ts +0 -5
  18. package/lib/constants/endpoints.global.js +0 -29
  19. package/lib/constants/endpoints.js +0 -32
  20. package/lib/constants/endpoints.mjs +0 -7
  21. package/lib/methods/dom/index.d.mts +0 -2
  22. package/lib/methods/dom/index.d.ts +0 -2
  23. package/lib/methods/dom/index.global.js +0 -2
  24. package/lib/methods/dom/index.js +0 -1
  25. package/lib/methods/dom/index.mjs +0 -0
  26. package/lib/methods/dom/main-dom.d.mts +0 -2
  27. package/lib/methods/dom/main-dom.d.ts +0 -2
  28. package/lib/methods/dom/main-dom.global.js +0 -30620
  29. package/lib/methods/dom/main-dom.js +0 -15611
  30. package/lib/methods/dom/main-dom.mjs +0 -15593
  31. package/lib/methods/dom/methods.d.mts +0 -100
  32. package/lib/methods/dom/methods.d.ts +0 -100
  33. package/lib/methods/dom/methods.global.js +0 -30827
  34. package/lib/methods/dom/methods.js +0 -335
  35. package/lib/methods/dom/methods.mjs +0 -302
  36. package/lib/methods/index.d.mts +0 -185
  37. package/lib/methods/index.d.ts +0 -185
  38. package/lib/methods/index.global.js +0 -46361
  39. package/lib/methods/index.js +0 -2530
  40. package/lib/methods/index.mjs +0 -2500
  41. package/lib/methods/requests/index.d.mts +0 -912
  42. package/lib/methods/requests/index.d.ts +0 -912
  43. package/lib/methods/requests/index.global.js +0 -15553
  44. package/lib/methods/requests/index.js +0 -2145
  45. package/lib/methods/requests/index.mjs +0 -2110
  46. package/lib/methods/requests/requests.d.mts +0 -43
  47. package/lib/methods/requests/requests.d.ts +0 -43
  48. package/lib/methods/requests/requests.global.js +0 -14528
  49. package/lib/methods/requests/requests.js +0 -244
  50. package/lib/methods/requests/requests.mjs +0 -210
  51. package/lib/models-BmZS-mc4.d.ts +0 -193
  52. package/lib/models-le7xaT4H.d.ts +0 -193
  53. package/lib/types/index.d.mts +0 -5
  54. package/lib/types/index.d.ts +0 -5
  55. package/lib/types/index.global.js +0 -19
  56. package/lib/types/index.js +0 -18
  57. package/lib/types/index.mjs +0 -0
  58. package/lib/types/params.d.mts +0 -946
  59. package/lib/types/params.d.ts +0 -946
  60. package/lib/types/params.global.js +0 -19
  61. package/lib/types/params.js +0 -18
  62. package/lib/types/params.mjs +0 -0
  63. package/lib/types/payloads.d.mts +0 -342
  64. package/lib/types/payloads.d.ts +0 -342
  65. package/lib/types/payloads.global.js +0 -19
  66. package/lib/types/payloads.js +0 -18
  67. package/lib/types/payloads.mjs +0 -0
  68. package/lib/types/translations.d.mts +0 -101
  69. package/lib/types/translations.d.ts +0 -101
  70. package/lib/types/translations.global.js +0 -19
  71. package/lib/types/translations.js +0 -18
  72. package/lib/types/translations.mjs +0 -0
  73. package/lib/types/utils/payloads.d.mts +0 -297
  74. package/lib/types/utils/payloads.d.ts +0 -297
  75. package/lib/types/utils/payloads.global.js +0 -19
  76. package/lib/types/utils/payloads.js +0 -18
  77. package/lib/types/utils/payloads.mjs +0 -0
  78. package/lib/utils/cookies.d.mts +0 -13
  79. package/lib/utils/cookies.d.ts +0 -13
  80. package/lib/utils/cookies.global.js +0 -261
  81. package/lib/utils/cookies.js +0 -190
  82. package/lib/utils/cookies.mjs +0 -148
  83. package/lib/utils/defaultMessageBox.d.mts +0 -5
  84. package/lib/utils/defaultMessageBox.d.ts +0 -5
  85. package/lib/utils/defaultMessageBox.global.js +0 -125
  86. package/lib/utils/defaultMessageBox.js +0 -130
  87. package/lib/utils/defaultMessageBox.mjs +0 -103
@@ -1,342 +0,0 @@
1
- import { Payload } from './utils/payloads.js';
2
-
3
- /**
4
- * @fileoverview Response payload types for Memberstack SDK methods.
5
- * All SDK methods return Promise<PayloadType> where PayloadType wraps the data.
6
- */
7
-
8
- /** Response from getApp() - contains app configuration */
9
- type AppPayload = Response<Payload.Transforms["App"]>;
10
- /** Response from deleteMember() - contains deletion confirmation */
11
- type DeleteMemberPayload = Response<Payload.Transforms["DeletedMember"]>;
12
- /** Response from getAppAndMember() - contains both app and member data */
13
- type GetAppAndMemberPayload = Response<Payload.Transforms["GetAppAndMember"]>;
14
- /** Response from addMemberCard() - contains updated member data */
15
- type AddMemberCardPayload = Response<Payload.Transforms["Member"]>;
16
- /** Response from cancelPlan() - contains updated member data */
17
- type CancelPlanPayload = Response<Payload.Transforms["Member"]>;
18
- /** Response from removePlan() - contains removal confirmation */
19
- type RemovePlanPayload = Response<Payload.Transforms["RemovePlan"]>;
20
- /**
21
- * Response from getCurrentMember() - contains member data or null if not logged in.
22
- *
23
- * @example
24
- * ```typescript
25
- * const { data: member } = await memberstack.getCurrentMember();
26
- * if (member) {
27
- * console.log('Logged in:', member.auth.email);
28
- * }
29
- * ```
30
- */
31
- type GetCurrentMemberPayload = Response<Payload.Transforms["Member"] | null>;
32
- /** Response from getMemberJSON() - contains member's JSON store */
33
- type GetMemberJSONPayload = Response<Payload.Transforms["MemberJSON"]>;
34
- /** Response from getMemberCards() - contains array of saved payment cards */
35
- type GetMemberCardsPayload = Response<Payload.Transforms["MemberCard"][]>;
36
- /** Response from connectProvider()/disconnectProvider() - contains updated auth providers */
37
- type ConnectProviderPayload = Response<Payload.Transforms["AuthProviders"]>;
38
- /** Response from getMemberInvoices() - paginated list of invoices */
39
- type GetMemberInvoicesPayload = PaginatedResponse<Payload.Transforms["MemberInvoice"]>;
40
- /** Response from getMemberReceipts() - paginated list of receipts */
41
- type GetMemberReceiptsPayload = PaginatedResponse<Payload.Transforms["MemberReceipt"]>;
42
- /** Response from updateMemberProfileImage() - contains new profile image URL */
43
- type UpdateMemberProfileImagePayload = Response<{
44
- profileImage: string;
45
- }>;
46
- /** Response from getSecureContent() - contains the gated content HTML */
47
- type GetSecureContentPayload = Response<Payload.Transforms["SecureContent"]>;
48
- /** Response from setPassword() - contains updated member data */
49
- type SetPasswordPayload = Response<Payload.Transforms["Member"]>;
50
- /** Response from getRestrictedUrlGroups() - array of content access groups */
51
- type GetRestrictedUrlGroupsPayload = Response<Payload.Transforms["RestrictedUrlGroup"][]>;
52
- /** Response from getPlans() - array of available plans */
53
- type GetPlansPayload = Response<Payload.Transforms["Plan"][]>;
54
- /** Response from getPlan() - single plan details */
55
- type GetPlanPayload = Response<Payload.Transforms["Plan"]>;
56
- /**
57
- * Response from loginMemberEmailPassword() - contains member and tokens.
58
- *
59
- * @example
60
- * ```typescript
61
- * const { data } = await memberstack.loginMemberEmailPassword({
62
- * email: 'user@example.com',
63
- * password: 'password123'
64
- * });
65
- * console.log('Logged in:', data.member.auth.email);
66
- * ```
67
- */
68
- type LoginMemberEmailPasswordPayload = Response<Payload.Transforms["MemberAuth"]>;
69
- /** Response from sendMemberLoginPasswordlessEmail() - success indicator */
70
- type SendMemberLoginPasswordlessEmailPayload = Response<{
71
- success: boolean;
72
- }>;
73
- /** Response from logout() - optional redirect URL */
74
- type LogoutMemberPayload = Response<{
75
- redirect?: string;
76
- }>;
77
- /** Response from purchasePlans() - contains purchase details */
78
- type PurchasePlansPayload = Response<Payload.Transforms["Purchase"]>;
79
- /** Response from addPlan() - contains updated plan connections */
80
- type AddPlanPayload = Response<Payload.Transforms["AddPlan"]>;
81
- /** Response from purchasePlansWithCheckout() - contains Stripe checkout URL */
82
- type PurchasePlansWithCheckoutPayload = Response<Payload.Transforms["PurchaseWithCheckout"]>;
83
- /** Response from launchStripeCustomerPortal() - contains portal URL */
84
- type LaunchStripeCustomerPortalPayload = Response<Payload.Transforms["LaunchStripeCustomerPortal"]>;
85
- /** Response from openStripeCustomerPortal() - contains portal URL */
86
- type OpenStripeCustomerPortalPayload = Response<Payload.Transforms["OpenStripeCustomerPortal"]>;
87
- /**
88
- * Response from signupMemberEmailPassword() - contains new member and tokens.
89
- *
90
- * @example
91
- * ```typescript
92
- * const { data } = await memberstack.signupMemberEmailPassword({
93
- * email: 'newuser@example.com',
94
- * password: 'password123'
95
- * });
96
- * console.log('Signed up:', data.member.id);
97
- * ```
98
- */
99
- type SignupMemberEmailPasswordPayload = Response<Payload.Transforms["MemberAuth"]>;
100
- /** Response from signupMemberAuthProvider() - contains member and tokens */
101
- type SignupMemberAuthProviderPayload = Response<Payload.Transforms["MemberAuth"]>;
102
- /** Response from updateDefaultCard() - contains updated member data */
103
- type UpdateDefaultCardPayload = Response<Payload.Transforms["Member"]>;
104
- /** Response from updateMemberAuth() - contains updated member data */
105
- type UpdateMemberAuthPayload = Response<Payload.Transforms["Member"]>;
106
- /** Response from updateMember() - contains updated member data */
107
- type UpdateMemberPayload = Response<Payload.Transforms["Member"]>;
108
- /** Response from updatePlanPayment() - contains updated member data */
109
- type UpdatePlanPaymentPayload = Response<Payload.Transforms["Member"]>;
110
- /** Response from refreshMemberTokens() - contains new access tokens */
111
- type RefreshMemberTokensPayload = Response<Payload.Transforms["MemberAuth"]["tokens"]>;
112
- /** Response from sendMemberResetPasswordEmail() - success message */
113
- type SendMemberResetPasswordEmailPayload = Response<string>;
114
- /** Response from replacePlan() - contains purchase/upgrade details */
115
- type ReplacePlanPayload = Response<Payload.Transforms["Purchase"]>;
116
- /** Response from getAuthProviders() - array of configured OAuth providers */
117
- type GetAuthProvidersPayload = Response<Payload.Transforms["AuthProvider"][]>;
118
- /** Response from getTotalCheckoutAmount() - calculated checkout total */
119
- type GetTotalCheckoutAmountPayload = Response<Payload.Transforms["TotalCheckoutAmount"]>;
120
- /** Response from getAuthenticationClientSecret() - Stripe client secret for SCA */
121
- type GetAuthenticationClientSecretPayload = Response<Payload.Transforms["AuthenticationClientSecret"]>;
122
- /** Response from sendMemberVerificationEmail() - success indicator */
123
- type SendMemberVerificationEmailPayload = Response<Payload.Transforms["SendMemberVerificationEmail"]>;
124
- /** Response from resetMemberPassword() - success indicator */
125
- type ResetMemberPassworPayload = Response<Payload.Transforms["ResetMemberPassword"]>;
126
- /** Response from getPosts() - contains posts array */
127
- type GetPostsPayload = Response<Payload.Transforms["Posts"]>;
128
- /** Response from getThreads() - contains threads array */
129
- type GetThreadsPayload = Response<Payload.Transforms["Threads"]>;
130
- /** Response from createPost() - contains created post */
131
- type CreatePostPayload = Response<Payload.Transforms["Post"]>;
132
- /** Response from createThread() - contains created thread */
133
- type CreateThreadPayload = Response<Payload.Transforms["Thread"]>;
134
- /** Response from updatePost() - contains updated post */
135
- type UpdatePostPayload = Response<Payload.Transforms["Post"]>;
136
- /** Response from updateThread() - contains updated thread */
137
- type UpdateThreadPayload = Response<Payload.Transforms["Thread"]>;
138
- /**
139
- * Response from getDataTables() - list of all data tables.
140
- *
141
- * @example
142
- * ```typescript
143
- * const { data } = await memberstack.getDataTables();
144
- * data.tables.forEach(table => console.log(table.name, table.key));
145
- * ```
146
- */
147
- type GetDataTablesPayload = Response<{
148
- tables: DataTableResponse[];
149
- }>;
150
- /**
151
- * Response from getDataTable() - single table schema.
152
- *
153
- * @example
154
- * ```typescript
155
- * const { data: table } = await memberstack.getDataTable({ table: 'posts' });
156
- * console.log('Fields:', table.fields.map(f => f.name));
157
- * ```
158
- */
159
- type GetDataTablePayload = Response<DataTableResponse>;
160
- /**
161
- * Response from getDataRecords() - paginated records list.
162
- *
163
- * @example
164
- * ```typescript
165
- * const { data } = await memberstack.getDataRecords({ table: 'posts', limit: 10 });
166
- * console.log('Records:', data.records.length);
167
- * console.log('Has more:', data.pagination.hasMore);
168
- * ```
169
- */
170
- type GetDataRecordsPayload = Response<{
171
- /** Array of data records */
172
- records: DataRecordResponse[];
173
- /** Pagination information */
174
- pagination: {
175
- /** Number of records returned */
176
- limit: number;
177
- /** Cursor for next page (null if no more) */
178
- endCursor: number | null;
179
- /** Whether more records exist */
180
- hasMore: boolean;
181
- };
182
- }>;
183
- /** Response from createDataRecord() - the created record */
184
- type CreateDataRecordPayload = Response<DataRecordResponse>;
185
- /** Response from getDataRecord() - single record data */
186
- type GetDataRecordPayload = Response<DataRecordResponse>;
187
- /** Response from updateDataRecord() - the updated record */
188
- type UpdateDataRecordPayload = Response<DataRecordResponse>;
189
- /** Response from deleteDataRecord() - deleted record ID */
190
- type DeleteDataRecordPayload = Response<{
191
- id: string;
192
- }>;
193
- /**
194
- * Response from queryDataRecords() - advanced query results.
195
- * Can return either records with pagination or a count result.
196
- *
197
- * @example Records response
198
- * ```typescript
199
- * const { data } = await memberstack.queryDataRecords({
200
- * table: 'posts',
201
- * query: { where: { published: { equals: true } }, take: 10 }
202
- * });
203
- * if ('records' in data) {
204
- * console.log('Found:', data.records.length);
205
- * }
206
- * ```
207
- */
208
- type QueryDataRecordsPayload = Response<{
209
- /** Array of matching records */
210
- records: QueryDataRecordResponse[];
211
- /** Pagination info (if applicable) */
212
- pagination?: {
213
- limit: number;
214
- hasMore: boolean;
215
- endCursor: number;
216
- };
217
- }> | Response<{
218
- /** Count result when using _count query */
219
- _count: number;
220
- }>;
221
- /**
222
- * Data table schema and configuration.
223
- */
224
- type DataTableResponse = {
225
- /** Unique table ID */
226
- id: string;
227
- /** Table key/slug for API calls */
228
- key: string;
229
- /** Display name */
230
- name: string;
231
- /** Create permission rule */
232
- createRule: string;
233
- /** Read permission rule */
234
- readRule: string;
235
- /** Update permission rule */
236
- updateRule: string;
237
- /** Delete permission rule */
238
- deleteRule: string;
239
- /** ISO timestamp of creation */
240
- createdAt: string;
241
- /** ISO timestamp of last update */
242
- updatedAt?: string;
243
- /** Total number of records in table */
244
- recordCount: number;
245
- /** Array of field definitions */
246
- fields: {
247
- /** Unique field ID */
248
- id: string;
249
- /** Field key for data access */
250
- key: string;
251
- /** Display name */
252
- name: string;
253
- /** Field type (text, number, boolean, date, reference, etc.) */
254
- type: string;
255
- /** Whether field is required */
256
- required: boolean;
257
- /** Default value if not provided */
258
- defaultValue?: any;
259
- /** Display order in table */
260
- tableOrder?: number;
261
- /** For reference fields: ID of referenced table */
262
- referencedTableId?: string;
263
- /** For reference fields: referenced table info */
264
- referencedTable?: {
265
- id: string;
266
- key: string;
267
- name: string;
268
- };
269
- }[];
270
- };
271
- /**
272
- * Single data record from a table.
273
- */
274
- type DataRecordResponse = {
275
- /** Unique record ID */
276
- id: string;
277
- /** Key of the table this record belongs to */
278
- tableKey: string;
279
- /** ID of member who created this record (if applicable) */
280
- createdByMemberId?: string;
281
- /** Record data as key-value pairs */
282
- data: Record<string, any>;
283
- /** ISO timestamp of creation */
284
- createdAt: string;
285
- /** ISO timestamp of last update */
286
- updatedAt: string;
287
- /** Internal ordering value for pagination */
288
- internalOrder: number;
289
- /** Whether current authenticated member owns this record */
290
- activeMemberOwnsIt: boolean;
291
- };
292
- /**
293
- * Result of a reference field connect/disconnect operation.
294
- */
295
- type ReferenceFieldResult = {
296
- /** Number of records affected */
297
- count: number;
298
- /** Action that was performed */
299
- action: 'connected' | 'disconnected' | 'unchanged';
300
- };
301
- /**
302
- * Result of a member reference field operation.
303
- */
304
- type MemberReferenceFieldResult = {
305
- /** Number of records affected */
306
- count: number;
307
- /** Whether the current member is referenced */
308
- hasself: boolean;
309
- /** Action that was performed */
310
- action: 'connected' | 'disconnected' | 'unchanged';
311
- };
312
- /**
313
- * Enhanced record response for query API including relationships.
314
- */
315
- type QueryDataRecordResponse = DataRecordResponse & {
316
- /** Included relationships appear as top-level properties */
317
- [relationName: string]: any;
318
- /** Count of related records when using _count */
319
- _count?: Record<string, number>;
320
- };
321
- /**
322
- * Paginated response wrapper for list endpoints.
323
- */
324
- type PaginatedResponse<T> = {
325
- /** Whether more pages exist */
326
- hasNext: boolean;
327
- /** Cursor for fetching next page */
328
- endCursor: string | null;
329
- /** Total count of all matching items */
330
- totalCount: number;
331
- /** Array of items for current page */
332
- data: T[];
333
- };
334
- /**
335
- * Standard response wrapper - all SDK methods return this shape.
336
- */
337
- type Response<T> = {
338
- /** The response data */
339
- data: T;
340
- };
341
-
342
- export type { AddMemberCardPayload, AddPlanPayload, AppPayload, CancelPlanPayload, ConnectProviderPayload, CreateDataRecordPayload, CreatePostPayload, CreateThreadPayload, DeleteDataRecordPayload, DeleteMemberPayload, GetAppAndMemberPayload, GetAuthProvidersPayload, GetAuthenticationClientSecretPayload, GetCurrentMemberPayload, GetDataRecordPayload, GetDataRecordsPayload, GetDataTablePayload, GetDataTablesPayload, GetMemberCardsPayload, GetMemberInvoicesPayload, GetMemberJSONPayload, GetMemberReceiptsPayload, GetPlanPayload, GetPlansPayload, GetPostsPayload, GetRestrictedUrlGroupsPayload, GetSecureContentPayload, GetThreadsPayload, GetTotalCheckoutAmountPayload, LaunchStripeCustomerPortalPayload, LoginMemberEmailPasswordPayload, LogoutMemberPayload, MemberReferenceFieldResult, OpenStripeCustomerPortalPayload, PurchasePlansPayload, PurchasePlansWithCheckoutPayload, QueryDataRecordsPayload, ReferenceFieldResult, RefreshMemberTokensPayload, RemovePlanPayload, ReplacePlanPayload, ResetMemberPassworPayload, SendMemberLoginPasswordlessEmailPayload, SendMemberResetPasswordEmailPayload, SendMemberVerificationEmailPayload, SetPasswordPayload, SignupMemberAuthProviderPayload, SignupMemberEmailPasswordPayload, UpdateDataRecordPayload, UpdateDefaultCardPayload, UpdateMemberAuthPayload, UpdateMemberPayload, UpdateMemberProfileImagePayload, UpdatePlanPaymentPayload, UpdatePostPayload, UpdateThreadPayload };
@@ -1,19 +0,0 @@
1
- var MemberstackDOM = (() => {
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/types/payloads.ts
17
- var payloads_exports = {};
18
- return __toCommonJS(payloads_exports);
19
- })();
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/types/payloads.ts
17
- var payloads_exports = {};
18
- module.exports = __toCommonJS(payloads_exports);
File without changes
@@ -1,101 +0,0 @@
1
- /**
2
- * Memberstack UI Translation Keys
3
- *
4
- * Define custom translations for the Memberstack pre-built UI modals.
5
- * All keys are optional - any undefined keys will use the default English text.
6
- */
7
- interface MemberstackTranslations {
8
- email_address?: string;
9
- email_error_message?: string;
10
- password?: string;
11
- password_error_message?: string;
12
- forgot_password?: string;
13
- login_to_your_account?: string;
14
- login_email_placeholder?: string;
15
- login_password_placeholder?: string;
16
- login?: string;
17
- login_with_email?: string;
18
- login_with_password?: string;
19
- dont_have_an_account?: string;
20
- continue_with?: string;
21
- or?: string;
22
- continue_with_email?: string;
23
- signup_with_password?: string;
24
- create_an_account?: string;
25
- already_have_an_account?: string;
26
- signup_button?: string;
27
- signup_email_placeholder?: string;
28
- signup_password_placeholder?: string;
29
- reset_your_password?: string;
30
- reset_instructions?: string;
31
- reset_email_placeholder?: string;
32
- reset?: string;
33
- reset_already_have_code?: string;
34
- reset_enter_code?: string;
35
- reset_password_placeholder?: string;
36
- reset_confirm_reset?: string;
37
- passwordless_token_heading?: string;
38
- login_passwordless_instructions?: string;
39
- login_verification_code?: string;
40
- login_verify_email?: string;
41
- test_card_title?: string;
42
- test_card_subtitle?: string;
43
- test_card_copy_button?: string;
44
- test_card_copied_button?: string;
45
- test_successful_payments?: string;
46
- test_declined_payments?: string;
47
- test_card_visa?: string;
48
- test_card_mastercard?: string;
49
- test_card_amex?: string;
50
- test_card_generic_decline?: string;
51
- test_card_insufficient_funds?: string;
52
- test_card_instructions?: string;
53
- test_card_continue?: string;
54
- test_card_alternatives?: string;
55
- success_title?: string;
56
- password_reset_success?: string;
57
- save_button?: string;
58
- cancel_button?: string;
59
- copy_button?: string;
60
- copied_button?: string;
61
- remove_button?: string;
62
- upgrade_button?: string;
63
- delete_account?: string;
64
- set_password?: string;
65
- change_password?: string;
66
- connect_additional_accounts?: string;
67
- disconnect_provider?: string;
68
- connect_with_provider?: string;
69
- delete_confirmation_title?: string;
70
- delete_confirmation_message?: string;
71
- yes_delete_account?: string;
72
- team_title?: string;
73
- loading_text?: string;
74
- regenerate_invite_link?: string;
75
- seats_full_warning?: string;
76
- are_you_sure?: string;
77
- member_avatar_alt?: string;
78
- plans_title?: string;
79
- paid_plans?: string;
80
- team_plans?: string;
81
- free_plans?: string;
82
- no_plans_message?: string;
83
- manage_subscriptions?: string;
84
- leave_team?: string;
85
- profile_button?: string;
86
- security_button?: string;
87
- plans_button?: string;
88
- team_button?: string;
89
- logout_button?: string;
90
- profile_information_title?: string;
91
- security_title?: string;
92
- upload_profile_image?: string;
93
- replace_image?: string;
94
- }
95
- declare global {
96
- interface Window {
97
- memberstackTranslations?: MemberstackTranslations;
98
- }
99
- }
100
-
101
- export type { MemberstackTranslations };
@@ -1,101 +0,0 @@
1
- /**
2
- * Memberstack UI Translation Keys
3
- *
4
- * Define custom translations for the Memberstack pre-built UI modals.
5
- * All keys are optional - any undefined keys will use the default English text.
6
- */
7
- interface MemberstackTranslations {
8
- email_address?: string;
9
- email_error_message?: string;
10
- password?: string;
11
- password_error_message?: string;
12
- forgot_password?: string;
13
- login_to_your_account?: string;
14
- login_email_placeholder?: string;
15
- login_password_placeholder?: string;
16
- login?: string;
17
- login_with_email?: string;
18
- login_with_password?: string;
19
- dont_have_an_account?: string;
20
- continue_with?: string;
21
- or?: string;
22
- continue_with_email?: string;
23
- signup_with_password?: string;
24
- create_an_account?: string;
25
- already_have_an_account?: string;
26
- signup_button?: string;
27
- signup_email_placeholder?: string;
28
- signup_password_placeholder?: string;
29
- reset_your_password?: string;
30
- reset_instructions?: string;
31
- reset_email_placeholder?: string;
32
- reset?: string;
33
- reset_already_have_code?: string;
34
- reset_enter_code?: string;
35
- reset_password_placeholder?: string;
36
- reset_confirm_reset?: string;
37
- passwordless_token_heading?: string;
38
- login_passwordless_instructions?: string;
39
- login_verification_code?: string;
40
- login_verify_email?: string;
41
- test_card_title?: string;
42
- test_card_subtitle?: string;
43
- test_card_copy_button?: string;
44
- test_card_copied_button?: string;
45
- test_successful_payments?: string;
46
- test_declined_payments?: string;
47
- test_card_visa?: string;
48
- test_card_mastercard?: string;
49
- test_card_amex?: string;
50
- test_card_generic_decline?: string;
51
- test_card_insufficient_funds?: string;
52
- test_card_instructions?: string;
53
- test_card_continue?: string;
54
- test_card_alternatives?: string;
55
- success_title?: string;
56
- password_reset_success?: string;
57
- save_button?: string;
58
- cancel_button?: string;
59
- copy_button?: string;
60
- copied_button?: string;
61
- remove_button?: string;
62
- upgrade_button?: string;
63
- delete_account?: string;
64
- set_password?: string;
65
- change_password?: string;
66
- connect_additional_accounts?: string;
67
- disconnect_provider?: string;
68
- connect_with_provider?: string;
69
- delete_confirmation_title?: string;
70
- delete_confirmation_message?: string;
71
- yes_delete_account?: string;
72
- team_title?: string;
73
- loading_text?: string;
74
- regenerate_invite_link?: string;
75
- seats_full_warning?: string;
76
- are_you_sure?: string;
77
- member_avatar_alt?: string;
78
- plans_title?: string;
79
- paid_plans?: string;
80
- team_plans?: string;
81
- free_plans?: string;
82
- no_plans_message?: string;
83
- manage_subscriptions?: string;
84
- leave_team?: string;
85
- profile_button?: string;
86
- security_button?: string;
87
- plans_button?: string;
88
- team_button?: string;
89
- logout_button?: string;
90
- profile_information_title?: string;
91
- security_title?: string;
92
- upload_profile_image?: string;
93
- replace_image?: string;
94
- }
95
- declare global {
96
- interface Window {
97
- memberstackTranslations?: MemberstackTranslations;
98
- }
99
- }
100
-
101
- export type { MemberstackTranslations };
@@ -1,19 +0,0 @@
1
- var MemberstackDOM = (() => {
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/types/translations.ts
17
- var translations_exports = {};
18
- return __toCommonJS(translations_exports);
19
- })();
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/types/translations.ts
17
- var translations_exports = {};
18
- module.exports = __toCommonJS(translations_exports);
File without changes