@htmlbricks/hb-cookie-law-banner 0.8.34 → 0.8.39
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/extra/docs.ts +14 -1
- package/package.json +9 -5
- package/release/docs.js +12 -0
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +34 -0
- package/release/docs.ts +14 -1
- package/release/manifest.json +214 -0
- package/release/webcomponent.type.d.json +1 -25
- package/release/webcomponent_events.type.d.json +31 -0
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
2
|
|
|
3
3
|
export const storybookArgs = {
|
|
4
4
|
allowdecline: { control: { type: "boolean" } },
|
|
@@ -22,3 +22,16 @@ export const styleSetup: StyleSetup = {
|
|
|
22
22
|
vars: cssVars,
|
|
23
23
|
parts: cssParts,
|
|
24
24
|
};
|
|
25
|
+
|
|
26
|
+
export const componentSetup: ComponentSetup = {
|
|
27
|
+
definitions: null,
|
|
28
|
+
storybookArgs,
|
|
29
|
+
styleSetup,
|
|
30
|
+
htmlSlots,
|
|
31
|
+
i18n: i18nLanguages,
|
|
32
|
+
examples: [],
|
|
33
|
+
name: "",
|
|
34
|
+
category: "",
|
|
35
|
+
tags: [],
|
|
36
|
+
size: {},
|
|
37
|
+
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-cookie-law-banner",
|
|
3
3
|
"displayName": "Svelte cookielaw WebComponent",
|
|
4
4
|
"description": "Svelte cookielaw WebComponent",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.39",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,14 +20,18 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-
|
|
23
|
+
"generate-manifest": "npm run generate-schemes && manifester --dir $PWD",
|
|
24
|
+
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
|
+
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
|
+
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
24
27
|
"copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
|
|
25
28
|
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
26
|
-
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-
|
|
29
|
+
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
|
|
27
30
|
"prepublish": "npm run build:release"
|
|
28
31
|
},
|
|
29
32
|
"devDependencies": {
|
|
30
|
-
"@htmlbricks/hb-jsutils": "^0.8.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.8.39",
|
|
34
|
+
"@htmlbricks/manifester": "^0.0.5",
|
|
31
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
32
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
33
37
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -71,5 +75,5 @@
|
|
|
71
75
|
"webcomponents"
|
|
72
76
|
],
|
|
73
77
|
"contributors": [],
|
|
74
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
|
|
75
79
|
}
|
package/release/docs.js
CHANGED
|
@@ -19,4 +19,16 @@ export var styleSetup = {
|
|
|
19
19
|
vars: cssVars,
|
|
20
20
|
parts: cssParts
|
|
21
21
|
};
|
|
22
|
+
export var componentSetup = {
|
|
23
|
+
definitions: null,
|
|
24
|
+
storybookArgs: storybookArgs,
|
|
25
|
+
styleSetup: styleSetup,
|
|
26
|
+
htmlSlots: htmlSlots,
|
|
27
|
+
i18n: i18nLanguages,
|
|
28
|
+
examples: [],
|
|
29
|
+
name: "",
|
|
30
|
+
category: "",
|
|
31
|
+
tags: [],
|
|
32
|
+
size: {}
|
|
33
|
+
};
|
|
22
34
|
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC9C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,iBAAiB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAChD,YAAY,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC7C,eAAe,EAAE,EAAE,MAAM,EAAE,sBAAsB,EAAE;CACnD,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe;IACpC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;IAClC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;CACjC,CAAC;AACF,MAAM,CAAC,IAAM,aAAa,GAAe;IACxC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE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eAAA;IACb,UAAU,YAAA;IACV,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export var storybookArgs = {
|
|
2
|
+
allowdecline: { control: { type: "boolean" } },
|
|
3
|
+
i18nlang: { control: { type: "text" } },
|
|
4
|
+
cookielawuri4more: { control: { type: "text" } },
|
|
5
|
+
capabilities: { control: { type: "object" } },
|
|
6
|
+
acceptCookieLaw: { action: "acceptCookieLawEvent" }
|
|
7
|
+
};
|
|
8
|
+
var cssVars = [];
|
|
9
|
+
export var cssParts = [];
|
|
10
|
+
export var htmlSlots = [
|
|
11
|
+
{ name: "title", description: "" },
|
|
12
|
+
{ name: "text", description: "" },
|
|
13
|
+
];
|
|
14
|
+
export var i18nLanguages = [
|
|
15
|
+
{ lang: "it", language: "italian" },
|
|
16
|
+
{ lang: "en", language: "english" },
|
|
17
|
+
];
|
|
18
|
+
export var styleSetup = {
|
|
19
|
+
vars: cssVars,
|
|
20
|
+
parts: cssParts
|
|
21
|
+
};
|
|
22
|
+
export var componentSetup = {
|
|
23
|
+
definitions: null,
|
|
24
|
+
storybookArgs: storybookArgs,
|
|
25
|
+
styleSetup: styleSetup,
|
|
26
|
+
htmlSlots: htmlSlots,
|
|
27
|
+
i18n: i18nLanguages,
|
|
28
|
+
examples: [],
|
|
29
|
+
name: "",
|
|
30
|
+
category: "",
|
|
31
|
+
tags: [],
|
|
32
|
+
size: {}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=docs.js.map
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
2
|
|
|
3
3
|
export const storybookArgs = {
|
|
4
4
|
allowdecline: { control: { type: "boolean" } },
|
|
@@ -22,3 +22,16 @@ export const styleSetup: StyleSetup = {
|
|
|
22
22
|
vars: cssVars,
|
|
23
23
|
parts: cssParts,
|
|
24
24
|
};
|
|
25
|
+
|
|
26
|
+
export const componentSetup: ComponentSetup = {
|
|
27
|
+
definitions: null,
|
|
28
|
+
storybookArgs,
|
|
29
|
+
styleSetup,
|
|
30
|
+
htmlSlots,
|
|
31
|
+
i18n: i18nLanguages,
|
|
32
|
+
examples: [],
|
|
33
|
+
name: "",
|
|
34
|
+
category: "",
|
|
35
|
+
tags: [],
|
|
36
|
+
size: {},
|
|
37
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"events": {
|
|
4
|
+
"$ref": "#/definitions/Events",
|
|
5
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
|
+
"definitions": {
|
|
7
|
+
"Events": {
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"acceptCookieLaw": {
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"properties": {
|
|
13
|
+
"accepted": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"yes",
|
|
16
|
+
"no"
|
|
17
|
+
],
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"accepted"
|
|
23
|
+
],
|
|
24
|
+
"type": "object"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"acceptCookieLaw"
|
|
29
|
+
],
|
|
30
|
+
"type": "object"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"component": {
|
|
35
|
+
"$ref": "#/definitions/Component",
|
|
36
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
37
|
+
"definitions": {
|
|
38
|
+
"Component": {
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"allowdecline": {
|
|
42
|
+
"enum": [
|
|
43
|
+
"yes",
|
|
44
|
+
"no"
|
|
45
|
+
],
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"capabilities": {
|
|
49
|
+
"$ref": "#/definitions/ICapabilities"
|
|
50
|
+
},
|
|
51
|
+
"cookielawuri4more": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"i18nlang": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"id": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"style": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"type": "object"
|
|
65
|
+
},
|
|
66
|
+
"ICapabilities": {
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"groups": {
|
|
70
|
+
"items": {
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"properties": {
|
|
73
|
+
"_id": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"label": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"type": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"_id",
|
|
85
|
+
"label",
|
|
86
|
+
"type"
|
|
87
|
+
],
|
|
88
|
+
"type": "object"
|
|
89
|
+
},
|
|
90
|
+
"type": "array"
|
|
91
|
+
},
|
|
92
|
+
"items": {
|
|
93
|
+
"items": {
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"properties": {
|
|
96
|
+
"_id": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"cookieExpirationInSeconds": {
|
|
100
|
+
"type": "number"
|
|
101
|
+
},
|
|
102
|
+
"cookieName": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"description": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"descriptionUrl": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"groupId": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"isMandatory": {
|
|
115
|
+
"type": "boolean"
|
|
116
|
+
},
|
|
117
|
+
"isMarketing": {
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"isSessionCookie": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"isTechnical": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"isThirdPartyOwned": {
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
},
|
|
129
|
+
"scope": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"thirdCompanyName": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"title": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": [
|
|
140
|
+
"groupId",
|
|
141
|
+
"title",
|
|
142
|
+
"scope",
|
|
143
|
+
"_id",
|
|
144
|
+
"cookieName"
|
|
145
|
+
],
|
|
146
|
+
"type": "object"
|
|
147
|
+
},
|
|
148
|
+
"type": "array"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"groups",
|
|
153
|
+
"items"
|
|
154
|
+
],
|
|
155
|
+
"type": "object"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"storybookArgs": {
|
|
161
|
+
"allowdecline": {
|
|
162
|
+
"control": {
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"i18nlang": {
|
|
167
|
+
"control": {
|
|
168
|
+
"type": "text"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"cookielawuri4more": {
|
|
172
|
+
"control": {
|
|
173
|
+
"type": "text"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"capabilities": {
|
|
177
|
+
"control": {
|
|
178
|
+
"type": "object"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"acceptCookieLaw": {
|
|
182
|
+
"action": "acceptCookieLawEvent"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"styleSetup": {
|
|
186
|
+
"vars": [],
|
|
187
|
+
"parts": []
|
|
188
|
+
},
|
|
189
|
+
"htmlSlots": [
|
|
190
|
+
{
|
|
191
|
+
"name": "title",
|
|
192
|
+
"description": ""
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "text",
|
|
196
|
+
"description": ""
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"i18n": [
|
|
200
|
+
{
|
|
201
|
+
"lang": "it",
|
|
202
|
+
"language": "italian"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"lang": "en",
|
|
206
|
+
"language": "english"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"examples": [],
|
|
210
|
+
"name": "",
|
|
211
|
+
"category": "",
|
|
212
|
+
"tags": [],
|
|
213
|
+
"size": {}
|
|
214
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$ref": "#/definitions/Component",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"definitions": {
|
|
4
5
|
"Component": {
|
|
@@ -29,31 +30,6 @@
|
|
|
29
30
|
},
|
|
30
31
|
"type": "object"
|
|
31
32
|
},
|
|
32
|
-
"Events": {
|
|
33
|
-
"additionalProperties": false,
|
|
34
|
-
"properties": {
|
|
35
|
-
"acceptCookieLaw": {
|
|
36
|
-
"additionalProperties": false,
|
|
37
|
-
"properties": {
|
|
38
|
-
"accepted": {
|
|
39
|
-
"enum": [
|
|
40
|
-
"yes",
|
|
41
|
-
"no"
|
|
42
|
-
],
|
|
43
|
-
"type": "string"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"required": [
|
|
47
|
-
"accepted"
|
|
48
|
-
],
|
|
49
|
-
"type": "object"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"required": [
|
|
53
|
-
"acceptCookieLaw"
|
|
54
|
-
],
|
|
55
|
-
"type": "object"
|
|
56
|
-
},
|
|
57
33
|
"ICapabilities": {
|
|
58
34
|
"additionalProperties": false,
|
|
59
35
|
"properties": {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Events",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Events": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"acceptCookieLaw": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"accepted": {
|
|
12
|
+
"enum": [
|
|
13
|
+
"yes",
|
|
14
|
+
"no"
|
|
15
|
+
],
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"accepted"
|
|
21
|
+
],
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"acceptCookieLaw"
|
|
27
|
+
],
|
|
28
|
+
"type": "object"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|