@devwareng/vanilla-ts 1.1.0 → 1.1.3
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/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -38,6 +38,30 @@ declare const useAnchorSingle: AnchorSingle$1;
|
|
|
38
38
|
|
|
39
39
|
declare const useAnchor: debounce.Function<(anchors: NodeListOf<HTMLAnchorElement>) => void> | (() => void);
|
|
40
40
|
|
|
41
|
+
type SEOConfig$1 = {
|
|
42
|
+
name?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
author?: string;
|
|
45
|
+
};
|
|
46
|
+
type CSPConfig$1 = {
|
|
47
|
+
scriptSrc?: string;
|
|
48
|
+
styleSrc?: string;
|
|
49
|
+
objectSrc?: string;
|
|
50
|
+
connectSrc?: string[];
|
|
51
|
+
reportOnly?: boolean;
|
|
52
|
+
};
|
|
53
|
+
type SEOHandler$1 = {
|
|
54
|
+
setName: (name: string) => void;
|
|
55
|
+
setDescription: (description: string) => void;
|
|
56
|
+
setAuthor: (author: string) => void;
|
|
57
|
+
getName: () => string;
|
|
58
|
+
getDescription: () => string;
|
|
59
|
+
getAuthor: () => string;
|
|
60
|
+
getAllMetaData: () => SEOConfig$1;
|
|
61
|
+
appendMetaTagsToHead: () => void;
|
|
62
|
+
};
|
|
63
|
+
declare const useTSMetaData: (config: SEOConfig$1, cspConfig?: CSPConfig$1) => SEOHandler$1;
|
|
64
|
+
|
|
41
65
|
type TSComponent$1 = (id: string, DOM: HTMLElement, element: Function, params?: any, params2?: any) => void;
|
|
42
66
|
declare const useTSComponent: TSComponent$1;
|
|
43
67
|
|
|
@@ -184,4 +208,4 @@ type TSElementEach = (
|
|
|
184
208
|
callback: (element: HTMLElement, event: Event) => void
|
|
185
209
|
) => void;
|
|
186
210
|
|
|
187
|
-
export { type AnchorSingle, type CSPConfig, type FetchFunction, type FetchResult, type InputElementType, type SEOConfig, type SEOHandler, type SanitizeInput, type TSAuth, type TSCollection, type TSComponent, type TSElementEach, type TSEvent, type TSInitialDOM, type TSInput, type TSPurifier, TSRouter, type TSSelect, type TSURLState, type TSVerify, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSParams, useTSPurifier, useTSSelect };
|
|
211
|
+
export { type AnchorSingle, type CSPConfig, type FetchFunction, type FetchResult, type InputElementType, type SEOConfig, type SEOHandler, type SanitizeInput, type TSAuth, type TSCollection, type TSComponent, type TSElementEach, type TSEvent, type TSInitialDOM, type TSInput, type TSPurifier, TSRouter, type TSSelect, type TSURLState, type TSVerify, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSMetaData, useTSParams, useTSPurifier, useTSSelect };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,30 @@ declare const useAnchorSingle: AnchorSingle$1;
|
|
|
38
38
|
|
|
39
39
|
declare const useAnchor: debounce.Function<(anchors: NodeListOf<HTMLAnchorElement>) => void> | (() => void);
|
|
40
40
|
|
|
41
|
+
type SEOConfig$1 = {
|
|
42
|
+
name?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
author?: string;
|
|
45
|
+
};
|
|
46
|
+
type CSPConfig$1 = {
|
|
47
|
+
scriptSrc?: string;
|
|
48
|
+
styleSrc?: string;
|
|
49
|
+
objectSrc?: string;
|
|
50
|
+
connectSrc?: string[];
|
|
51
|
+
reportOnly?: boolean;
|
|
52
|
+
};
|
|
53
|
+
type SEOHandler$1 = {
|
|
54
|
+
setName: (name: string) => void;
|
|
55
|
+
setDescription: (description: string) => void;
|
|
56
|
+
setAuthor: (author: string) => void;
|
|
57
|
+
getName: () => string;
|
|
58
|
+
getDescription: () => string;
|
|
59
|
+
getAuthor: () => string;
|
|
60
|
+
getAllMetaData: () => SEOConfig$1;
|
|
61
|
+
appendMetaTagsToHead: () => void;
|
|
62
|
+
};
|
|
63
|
+
declare const useTSMetaData: (config: SEOConfig$1, cspConfig?: CSPConfig$1) => SEOHandler$1;
|
|
64
|
+
|
|
41
65
|
type TSComponent$1 = (id: string, DOM: HTMLElement, element: Function, params?: any, params2?: any) => void;
|
|
42
66
|
declare const useTSComponent: TSComponent$1;
|
|
43
67
|
|
|
@@ -184,4 +208,4 @@ type TSElementEach = (
|
|
|
184
208
|
callback: (element: HTMLElement, event: Event) => void
|
|
185
209
|
) => void;
|
|
186
210
|
|
|
187
|
-
export { type AnchorSingle, type CSPConfig, type FetchFunction, type FetchResult, type InputElementType, type SEOConfig, type SEOHandler, type SanitizeInput, type TSAuth, type TSCollection, type TSComponent, type TSElementEach, type TSEvent, type TSInitialDOM, type TSInput, type TSPurifier, TSRouter, type TSSelect, type TSURLState, type TSVerify, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSParams, useTSPurifier, useTSSelect };
|
|
211
|
+
export { type AnchorSingle, type CSPConfig, type FetchFunction, type FetchResult, type InputElementType, type SEOConfig, type SEOHandler, type SanitizeInput, type TSAuth, type TSCollection, type TSComponent, type TSElementEach, type TSEvent, type TSInitialDOM, type TSInput, type TSPurifier, TSRouter, type TSSelect, type TSURLState, type TSVerify, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSMetaData, useTSParams, useTSPurifier, useTSSelect };
|