@htmlbricks/hb-cookie-law-banner 0.4.37 → 0.5.7
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/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.
|
|
5
|
+
"version": "0.5.7",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' --type 'Component' > app/types/webcomponent.type.d.json",
|
|
24
|
+
"copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
|
|
25
|
+
"build:release": "PRODUCTION=true npm run build && npm run generate-schema && npm run copydest",
|
|
25
26
|
"prepublish": "npm run build:release"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
@@ -66,5 +67,5 @@
|
|
|
66
67
|
"webcomponents"
|
|
67
68
|
],
|
|
68
69
|
"contributors": [],
|
|
69
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "b55bd06e7bdae3f5c284f7e66ae87f0ff762e926"
|
|
70
71
|
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
"language": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"allowdecline",
|
|
27
|
+
"language",
|
|
28
|
+
"capabilities",
|
|
29
|
+
"cookielawuri4more"
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ICapabilities {
|
|
2
|
+
groups: {
|
|
3
|
+
_id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}[];
|
|
7
|
+
items: {
|
|
8
|
+
groupId: string;
|
|
9
|
+
title: string;
|
|
10
|
+
scope: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
descriptionUrl?: string;
|
|
13
|
+
_id: string;
|
|
14
|
+
thirdCompanyName?: string;
|
|
15
|
+
cookieName: string;
|
|
16
|
+
isMandatory?: boolean;
|
|
17
|
+
isTechnical?: boolean;
|
|
18
|
+
isMarketing?: boolean;
|
|
19
|
+
isThirdPartyOwned?: boolean;
|
|
20
|
+
isSessionCookie?: boolean;
|
|
21
|
+
cookieExpirationInSeconds?: number;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type Component = {
|
|
26
|
+
allowdecline: "yes" | "no";
|
|
27
|
+
language: string;
|
|
28
|
+
capabilities: ICapabilities;
|
|
29
|
+
cookielawuri4more: string;
|
|
30
|
+
};
|