@htmlbricks/hb-cookie-law-banner 0.8.39 → 0.8.45

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
+ import type { Component } from "../app/types/webcomponent.type";
2
3
 
3
4
  export const storybookArgs = {
4
5
  allowdecline: { control: { type: "boolean" } },
@@ -23,15 +24,20 @@ export const styleSetup: StyleSetup = {
23
24
  parts: cssParts,
24
25
  };
25
26
 
26
- export const componentSetup: ComponentSetup = {
27
+ const examples: Component[] = [
28
+ {
29
+ allowdecline: "yes",
30
+ },
31
+ ];
32
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
27
33
  definitions: null,
28
34
  storybookArgs,
29
35
  styleSetup,
30
36
  htmlSlots,
31
37
  i18n: i18nLanguages,
32
- examples: [],
33
- name: "",
34
- category: "",
35
- tags: [],
38
+ examples,
39
+ name: "hb-cookie-law-banner",
40
+ category: "layout",
41
+ tags: ["layout"],
36
42
  size: {},
37
43
  };
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.39",
5
+ "version": "0.8.45",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -30,8 +30,8 @@
30
30
  "prepublish": "npm run build:release"
31
31
  },
32
32
  "devDependencies": {
33
- "@htmlbricks/hb-jsutils": "^0.8.39",
34
- "@htmlbricks/manifester": "^0.0.5",
33
+ "@htmlbricks/hb-jsutils": "^0.8.45",
34
+ "@htmlbricks/manifester": "^0.0.9",
35
35
  "@rollup/plugin-alias": "^3.1.2",
36
36
  "@rollup/plugin-commonjs": "^18.0.0",
37
37
  "@rollup/plugin-json": "^4.1.0",
@@ -75,5 +75,5 @@
75
75
  "webcomponents"
76
76
  ],
77
77
  "contributors": [],
78
- "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
78
+ "gitHead": "cad34cdf98084f7b6d972812fbc05c783318f0ea"
79
79
  }
package/release/docs.js CHANGED
@@ -19,16 +19,21 @@ export var styleSetup = {
19
19
  vars: cssVars,
20
20
  parts: cssParts
21
21
  };
22
+ var examples = [
23
+ {
24
+ allowdecline: "yes"
25
+ },
26
+ ];
22
27
  export var componentSetup = {
23
28
  definitions: null,
24
29
  storybookArgs: storybookArgs,
25
30
  styleSetup: styleSetup,
26
31
  htmlSlots: htmlSlots,
27
32
  i18n: i18nLanguages,
28
- examples: [],
29
- name: "",
30
- category: "",
31
- tags: [],
33
+ examples: examples,
34
+ name: "hb-cookie-law-banner",
35
+ category: "layout",
36
+ tags: ["layout"],
32
37
  size: {}
33
38
  };
34
39
  //# sourceMappingURL=docs.js.map
@@ -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,EAA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I,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;IACnC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE;CACnC,CAAC;AACF,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAAgB;IAC7B;QACC,YAAY,EAAE,KAAK;KACnB;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA+C;IACzE,WAAW,EAAE,IAAI;IACjB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,IAAI,EAAE,sBAAsB;IAC5B,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,IAAI,EAAE,EAAE;CACR,CAAC"}
package/release/docs.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
+ import type { Component } from "../app/types/webcomponent.type";
2
3
 
3
4
  export const storybookArgs = {
4
5
  allowdecline: { control: { type: "boolean" } },
@@ -23,15 +24,20 @@ export const styleSetup: StyleSetup = {
23
24
  parts: cssParts,
24
25
  };
25
26
 
26
- export const componentSetup: ComponentSetup = {
27
+ const examples: Component[] = [
28
+ {
29
+ allowdecline: "yes",
30
+ },
31
+ ];
32
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
27
33
  definitions: null,
28
34
  storybookArgs,
29
35
  styleSetup,
30
36
  htmlSlots,
31
37
  i18n: i18nLanguages,
32
- examples: [],
33
- name: "",
34
- category: "",
35
- tags: [],
38
+ examples,
39
+ name: "hb-cookie-law-banner",
40
+ category: "layout",
41
+ tags: ["layout"],
36
42
  size: {},
37
43
  };
@@ -206,9 +206,15 @@
206
206
  "language": "english"
207
207
  }
208
208
  ],
209
- "examples": [],
210
- "name": "",
211
- "category": "",
212
- "tags": [],
209
+ "examples": [
210
+ {
211
+ "allowdecline": "yes"
212
+ }
213
+ ],
214
+ "name": "hb-cookie-law-banner",
215
+ "category": "layout",
216
+ "tags": [
217
+ "layout"
218
+ ],
213
219
  "size": {}
214
220
  }
package/release/docs.mjs DELETED
@@ -1,34 +0,0 @@
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
@@ -1,125 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Component",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Component": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "allowdecline": {
9
- "enum": [
10
- "yes",
11
- "no"
12
- ],
13
- "type": "string"
14
- },
15
- "capabilities": {
16
- "$ref": "#/definitions/ICapabilities"
17
- },
18
- "cookielawuri4more": {
19
- "type": "string"
20
- },
21
- "i18nlang": {
22
- "type": "string"
23
- },
24
- "id": {
25
- "type": "string"
26
- },
27
- "style": {
28
- "type": "string"
29
- }
30
- },
31
- "type": "object"
32
- },
33
- "ICapabilities": {
34
- "additionalProperties": false,
35
- "properties": {
36
- "groups": {
37
- "items": {
38
- "additionalProperties": false,
39
- "properties": {
40
- "_id": {
41
- "type": "string"
42
- },
43
- "label": {
44
- "type": "string"
45
- },
46
- "type": {
47
- "type": "string"
48
- }
49
- },
50
- "required": [
51
- "_id",
52
- "label",
53
- "type"
54
- ],
55
- "type": "object"
56
- },
57
- "type": "array"
58
- },
59
- "items": {
60
- "items": {
61
- "additionalProperties": false,
62
- "properties": {
63
- "_id": {
64
- "type": "string"
65
- },
66
- "cookieExpirationInSeconds": {
67
- "type": "number"
68
- },
69
- "cookieName": {
70
- "type": "string"
71
- },
72
- "description": {
73
- "type": "string"
74
- },
75
- "descriptionUrl": {
76
- "type": "string"
77
- },
78
- "groupId": {
79
- "type": "string"
80
- },
81
- "isMandatory": {
82
- "type": "boolean"
83
- },
84
- "isMarketing": {
85
- "type": "boolean"
86
- },
87
- "isSessionCookie": {
88
- "type": "boolean"
89
- },
90
- "isTechnical": {
91
- "type": "boolean"
92
- },
93
- "isThirdPartyOwned": {
94
- "type": "boolean"
95
- },
96
- "scope": {
97
- "type": "string"
98
- },
99
- "thirdCompanyName": {
100
- "type": "string"
101
- },
102
- "title": {
103
- "type": "string"
104
- }
105
- },
106
- "required": [
107
- "groupId",
108
- "title",
109
- "scope",
110
- "_id",
111
- "cookieName"
112
- ],
113
- "type": "object"
114
- },
115
- "type": "array"
116
- }
117
- },
118
- "required": [
119
- "groups",
120
- "items"
121
- ],
122
- "type": "object"
123
- }
124
- }
125
- }
@@ -1,31 +0,0 @@
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
- }