@nectary/components 5.26.0 → 5.26.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.
- package/bundle.d.ts +4 -0
- package/bundle.js +722 -276
- package/bundle.ts +4 -0
- package/icon/generated-icon-type.d.ts +1 -1
- package/package.json +2 -2
- package/standalone.d.ts +4 -0
- package/standalone.js +4 -0
- package/standalone.ts +4 -0
- package/utils/countries.d.ts +13 -0
- package/utils/global-components-manager.d.ts +51 -0
package/standalone.ts
CHANGED
|
@@ -30,6 +30,7 @@ import './dialog/index.js'
|
|
|
30
30
|
import './emoji-picker/index.js'
|
|
31
31
|
import './emoji/index.js'
|
|
32
32
|
import './field/index.js'
|
|
33
|
+
import './field-v2/index.js'
|
|
33
34
|
import './file-drop/index.js'
|
|
34
35
|
import './file-picker/index.js'
|
|
35
36
|
import './file-status/index.js'
|
|
@@ -54,6 +55,7 @@ import './radio-option/index.js'
|
|
|
54
55
|
import './radio/index.js'
|
|
55
56
|
import './rich-text/index.js'
|
|
56
57
|
import './rich-textarea/index.js'
|
|
58
|
+
import './rich-textarea-chip/index.js'
|
|
57
59
|
import './segment-collapse/index.js'
|
|
58
60
|
import './segmented-control-option/index.js'
|
|
59
61
|
import './segmented-control/index.js'
|
|
@@ -62,6 +64,8 @@ import './segmented-icon-control/index.js'
|
|
|
62
64
|
import './select-button/index.js'
|
|
63
65
|
import './select-menu-option/index.js'
|
|
64
66
|
import './select-menu/index.js'
|
|
67
|
+
import './sheet/index.js'
|
|
68
|
+
import './sheet-title/index.js'
|
|
65
69
|
import './skeleton-item/index.js'
|
|
66
70
|
import './skeleton/index.js'
|
|
67
71
|
import './spinner/index.js'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TSinchCountry = {
|
|
2
|
+
name: string;
|
|
3
|
+
phoneCode: string;
|
|
4
|
+
phoneMask: string | null;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated -
|
|
8
|
+
* not up to date:
|
|
9
|
+
* - for a general list of country, https://www.npmjs.com/package/countries-list is a better choice
|
|
10
|
+
* - for validating phone numbers, we recommend https://www.npmjs.com/package/google-libphonenumber or https://www.npmjs.com/package/awesome-phonenumber
|
|
11
|
+
* - for the phone masks, we used the `countries-phone-masks` (https://www.npmjs.com/package/countries-phone-masks) in the example, but how well maintained it is is unknown.
|
|
12
|
+
**/
|
|
13
|
+
export declare const countries: Record<string, TSinchCountry>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
export type SinchElementName = `sinch-${string}`;
|
|
4
|
+
export interface GlobalManagerConfig {
|
|
5
|
+
storeKey: symbol;
|
|
6
|
+
registryUrl: string;
|
|
7
|
+
baseElementNames: Set<string>;
|
|
8
|
+
nameToPathMap?: Map<string, string>;
|
|
9
|
+
}
|
|
10
|
+
export interface GlobalManagerInitOptions {
|
|
11
|
+
/**
|
|
12
|
+
* URL to resolve the modules from
|
|
13
|
+
*/
|
|
14
|
+
cdnUrl: string;
|
|
15
|
+
/**
|
|
16
|
+
* Fallback URL to resolve the modules from if `cdnUrl` fails
|
|
17
|
+
*/
|
|
18
|
+
fallbackCdnUrl?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Preloads all components from the bundle.js module
|
|
21
|
+
*/
|
|
22
|
+
preload?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Target version of the library to resolve
|
|
25
|
+
*
|
|
26
|
+
* If left unspecified, it will resolve to the latest version
|
|
27
|
+
*/
|
|
28
|
+
targetlibVersion?: string;
|
|
29
|
+
}
|
|
30
|
+
declare abstract class GlobalElementsManager {
|
|
31
|
+
private config;
|
|
32
|
+
constructor(config: GlobalManagerConfig);
|
|
33
|
+
getConstructor(name: SinchElementName): Promise<CustomElementConstructor> | null;
|
|
34
|
+
private patchCustomElements;
|
|
35
|
+
private toClassName;
|
|
36
|
+
private loadModule;
|
|
37
|
+
private createLoader;
|
|
38
|
+
private preloadBundle;
|
|
39
|
+
init(options: GlobalManagerInitOptions): Promise<void>;
|
|
40
|
+
whenLoaded(): Promise<void>;
|
|
41
|
+
private getModulePath;
|
|
42
|
+
preload(name: SinchElementName | SinchElementName[] | "all"): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
declare class GlobalComponentsManagerImpl extends GlobalElementsManager {
|
|
45
|
+
private static instance;
|
|
46
|
+
constructor();
|
|
47
|
+
static getInstance(): GlobalComponentsManagerImpl;
|
|
48
|
+
}
|
|
49
|
+
export declare const GlobalComponentsManager: GlobalComponentsManagerImpl;
|
|
50
|
+
|
|
51
|
+
export {};
|