@wix/forms 1.0.148 → 1.0.149
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/build/cjs/context.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/service-plugins-context.js +1 -0
- package/build/cjs/service-plugins-context.js.map +1 -0
- package/build/cjs/service-plugins.js +1 -0
- package/build/cjs/service-plugins.js.map +1 -0
- package/package.json +6 -6
- package/type-bundles/context.bundle.d.ts +1296 -89
- package/type-bundles/index.bundle.d.ts +1296 -89
- package/type-bundles/meta.bundle.d.ts +12 -0
- package/type-bundles/service-plugins-context.bundle.d.ts +42 -9
- package/type-bundles/service-plugins.bundle.d.ts +42 -9
|
@@ -1965,6 +1965,11 @@ interface PhoneInput$1 {
|
|
|
1965
1965
|
showLabel?: boolean | null;
|
|
1966
1966
|
/** Default value of the country code */
|
|
1967
1967
|
defaultCountryCode?: string | null;
|
|
1968
|
+
/**
|
|
1969
|
+
* Flag identifying to show country flag or not
|
|
1970
|
+
* Default: false
|
|
1971
|
+
*/
|
|
1972
|
+
showCountryFlag?: boolean;
|
|
1968
1973
|
}
|
|
1969
1974
|
interface DateInput$1 {
|
|
1970
1975
|
/** Label of the field. Displayed text for the date/time input. */
|
|
@@ -3767,6 +3772,7 @@ interface DateTimeInputNonNullableFields$1 {
|
|
|
3767
3772
|
}
|
|
3768
3773
|
interface PhoneInputNonNullableFields$1 {
|
|
3769
3774
|
description?: RichContentNonNullableFields$1;
|
|
3775
|
+
showCountryFlag: boolean;
|
|
3770
3776
|
}
|
|
3771
3777
|
interface DateInputNonNullableFields$1 {
|
|
3772
3778
|
description?: RichContentNonNullableFields$1;
|
|
@@ -6099,6 +6105,11 @@ interface PhoneInput {
|
|
|
6099
6105
|
showLabel?: boolean | null;
|
|
6100
6106
|
/** Default value of the country code */
|
|
6101
6107
|
defaultCountryCode?: string | null;
|
|
6108
|
+
/**
|
|
6109
|
+
* Flag identifying to show country flag or not
|
|
6110
|
+
* Default: false
|
|
6111
|
+
*/
|
|
6112
|
+
showCountryFlag?: boolean;
|
|
6102
6113
|
}
|
|
6103
6114
|
interface DateInput {
|
|
6104
6115
|
/** Label of the field. Displayed text for the date/time input. */
|
|
@@ -7878,6 +7889,7 @@ interface DateTimeInputNonNullableFields {
|
|
|
7878
7889
|
}
|
|
7879
7890
|
interface PhoneInputNonNullableFields {
|
|
7880
7891
|
description?: RichContentNonNullableFields;
|
|
7892
|
+
showCountryFlag: boolean;
|
|
7881
7893
|
}
|
|
7882
7894
|
interface DateInputNonNullableFields {
|
|
7883
7895
|
description?: RichContentNonNullableFields;
|
|
@@ -295,27 +295,26 @@ interface IdentificationDataIdOneOf {
|
|
|
295
295
|
appId?: string;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
type ServicePluginMethodInput = {
|
|
298
|
+
type ServicePluginMethodInput$1 = {
|
|
299
299
|
request: any;
|
|
300
300
|
metadata: any;
|
|
301
301
|
};
|
|
302
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
303
|
-
type ServicePluginMethodMetadata = {
|
|
302
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
303
|
+
type ServicePluginMethodMetadata$1 = {
|
|
304
304
|
name: string;
|
|
305
305
|
primaryHttpMappingPath: string;
|
|
306
306
|
transformations: {
|
|
307
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
307
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
308
308
|
toREST: (...args: unknown[]) => unknown;
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
311
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
312
312
|
__type: 'service-plugin-definition';
|
|
313
313
|
componentType: string;
|
|
314
|
-
methods: ServicePluginMethodMetadata[];
|
|
314
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
315
315
|
__contract: Contract;
|
|
316
316
|
};
|
|
317
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
318
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
317
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
319
318
|
|
|
320
319
|
declare global {
|
|
321
320
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -324,11 +323,16 @@ declare global {
|
|
|
324
323
|
}
|
|
325
324
|
}
|
|
326
325
|
|
|
326
|
+
declare global {
|
|
327
|
+
interface ContextualClient {
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
327
331
|
interface ValidateSubmissionEnvelope {
|
|
328
332
|
request: ValidateSubmissionRequest;
|
|
329
333
|
metadata: Context;
|
|
330
334
|
}
|
|
331
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
335
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
332
336
|
/**
|
|
333
337
|
*
|
|
334
338
|
* > **Note:** The Form Submission service plugin only works with the Wix Forms app.
|
|
@@ -339,6 +343,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
339
343
|
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
340
344
|
}>;
|
|
341
345
|
|
|
346
|
+
type ServicePluginMethodInput = {
|
|
347
|
+
request: any;
|
|
348
|
+
metadata: any;
|
|
349
|
+
};
|
|
350
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
351
|
+
type ServicePluginMethodMetadata = {
|
|
352
|
+
name: string;
|
|
353
|
+
primaryHttpMappingPath: string;
|
|
354
|
+
transformations: {
|
|
355
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
356
|
+
toREST: (...args: unknown[]) => unknown;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
360
|
+
__type: 'service-plugin-definition';
|
|
361
|
+
componentType: string;
|
|
362
|
+
methods: ServicePluginMethodMetadata[];
|
|
363
|
+
__contract: Contract;
|
|
364
|
+
};
|
|
365
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
366
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
367
|
+
|
|
368
|
+
declare global {
|
|
369
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
370
|
+
interface SymbolConstructor {
|
|
371
|
+
readonly observable: symbol;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
342
375
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
343
376
|
|
|
344
377
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|
|
@@ -295,27 +295,26 @@ interface IdentificationDataIdOneOf {
|
|
|
295
295
|
appId?: string;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
type ServicePluginMethodInput = {
|
|
298
|
+
type ServicePluginMethodInput$1 = {
|
|
299
299
|
request: any;
|
|
300
300
|
metadata: any;
|
|
301
301
|
};
|
|
302
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
303
|
-
type ServicePluginMethodMetadata = {
|
|
302
|
+
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
303
|
+
type ServicePluginMethodMetadata$1 = {
|
|
304
304
|
name: string;
|
|
305
305
|
primaryHttpMappingPath: string;
|
|
306
306
|
transformations: {
|
|
307
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
307
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
308
308
|
toREST: (...args: unknown[]) => unknown;
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
311
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
312
312
|
__type: 'service-plugin-definition';
|
|
313
313
|
componentType: string;
|
|
314
|
-
methods: ServicePluginMethodMetadata[];
|
|
314
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
315
315
|
__contract: Contract;
|
|
316
316
|
};
|
|
317
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
318
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
317
|
+
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
319
318
|
|
|
320
319
|
declare global {
|
|
321
320
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -324,11 +323,16 @@ declare global {
|
|
|
324
323
|
}
|
|
325
324
|
}
|
|
326
325
|
|
|
326
|
+
declare global {
|
|
327
|
+
interface ContextualClient {
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
327
331
|
interface ValidateSubmissionEnvelope {
|
|
328
332
|
request: ValidateSubmissionRequest;
|
|
329
333
|
metadata: Context;
|
|
330
334
|
}
|
|
331
|
-
declare const provideHandlers$1: ServicePluginDefinition<{
|
|
335
|
+
declare const provideHandlers$1: ServicePluginDefinition$1<{
|
|
332
336
|
/**
|
|
333
337
|
*
|
|
334
338
|
* > **Note:** The Form Submission service plugin only works with the Wix Forms app.
|
|
@@ -339,6 +343,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
|
|
|
339
343
|
validateSubmission(payload: ValidateSubmissionEnvelope): ValidateSubmissionResponse | Promise<ValidateSubmissionResponse>;
|
|
340
344
|
}>;
|
|
341
345
|
|
|
346
|
+
type ServicePluginMethodInput = {
|
|
347
|
+
request: any;
|
|
348
|
+
metadata: any;
|
|
349
|
+
};
|
|
350
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
351
|
+
type ServicePluginMethodMetadata = {
|
|
352
|
+
name: string;
|
|
353
|
+
primaryHttpMappingPath: string;
|
|
354
|
+
transformations: {
|
|
355
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
356
|
+
toREST: (...args: unknown[]) => unknown;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
360
|
+
__type: 'service-plugin-definition';
|
|
361
|
+
componentType: string;
|
|
362
|
+
methods: ServicePluginMethodMetadata[];
|
|
363
|
+
__contract: Contract;
|
|
364
|
+
};
|
|
365
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
366
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
367
|
+
|
|
368
|
+
declare global {
|
|
369
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
370
|
+
interface SymbolConstructor {
|
|
371
|
+
readonly observable: symbol;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
342
375
|
declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
343
376
|
|
|
344
377
|
type _publicProvideHandlersType = typeof provideHandlers$1;
|