@htmlbricks/hb-contact-item 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 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
  id: { control: { disable: true } },
@@ -19,3 +19,16 @@ export const styleSetup: StyleSetup = {
19
19
  vars: cssVars,
20
20
  parts: cssParts,
21
21
  };
22
+
23
+ export const componentSetup: ComponentSetup = {
24
+ definitions: null,
25
+ storybookArgs,
26
+ styleSetup,
27
+ htmlSlots,
28
+ i18n: i18nLanguages,
29
+ examples: [],
30
+ name: "",
31
+ category: "",
32
+ tags: [],
33
+ size: {},
34
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-contact-item",
3
3
  "displayName": "Svelte Contact WebComponent",
4
4
  "description": "Svelte Contact WebComponent",
5
- "version": "0.8.34",
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-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
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-schema && npm run copydest",
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.34",
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": "68d64dec84ac3a051b842b04560d89d952217af7"
78
+ "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
75
79
  }
package/release/docs.js CHANGED
@@ -15,4 +15,16 @@ export var styleSetup = {
15
15
  vars: cssVars,
16
16
  parts: cssParts
17
17
  };
18
+ export var componentSetup = {
19
+ definitions: null,
20
+ storybookArgs: storybookArgs,
21
+ styleSetup: styleSetup,
22
+ htmlSlots: htmlSlots,
23
+ i18n: i18nLanguages,
24
+ examples: [],
25
+ name: "",
26
+ category: "",
27
+ tags: [],
28
+ size: {}
29
+ };
18
30
  //# 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,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAClC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC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7C,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,IAAM,cAAc,GAAmB;IAC7C,WAAW,EAAE,IAAI;IACjB,aAAa,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"}
@@ -0,0 +1,30 @@
1
+ export var storybookArgs = {
2
+ id: { control: { disable: true } },
3
+ phone: { control: { type: "object" } },
4
+ address: { control: { type: "object" } },
5
+ email: { control: { type: "object" } },
6
+ site: { control: { type: "object" } },
7
+ config: { control: { type: "object" } },
8
+ contactclick: { action: "contactClickEvent" }
9
+ };
10
+ var cssVars = [];
11
+ export var cssParts = [];
12
+ export var htmlSlots = [];
13
+ export var i18nLanguages = [];
14
+ export var styleSetup = {
15
+ vars: cssVars,
16
+ parts: cssParts
17
+ };
18
+ export var componentSetup = {
19
+ definitions: null,
20
+ storybookArgs: storybookArgs,
21
+ styleSetup: styleSetup,
22
+ htmlSlots: htmlSlots,
23
+ i18n: i18nLanguages,
24
+ examples: [],
25
+ name: "",
26
+ category: "",
27
+ tags: [],
28
+ size: {}
29
+ };
30
+ //# 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
  id: { control: { disable: true } },
@@ -19,3 +19,16 @@ export const styleSetup: StyleSetup = {
19
19
  vars: cssVars,
20
20
  parts: cssParts,
21
21
  };
22
+
23
+ export const componentSetup: ComponentSetup = {
24
+ definitions: null,
25
+ storybookArgs,
26
+ styleSetup,
27
+ htmlSlots,
28
+ i18n: i18nLanguages,
29
+ examples: [],
30
+ name: "",
31
+ category: "",
32
+ tags: [],
33
+ size: {},
34
+ };
@@ -0,0 +1,223 @@
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
+ "contactclick": {
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "action": {
14
+ "type": "string"
15
+ },
16
+ "options": {}
17
+ },
18
+ "required": [
19
+ "action",
20
+ "options"
21
+ ],
22
+ "type": "object"
23
+ }
24
+ },
25
+ "required": [
26
+ "contactclick"
27
+ ],
28
+ "type": "object"
29
+ }
30
+ }
31
+ },
32
+ "component": {
33
+ "$ref": "#/definitions/Component",
34
+ "$schema": "http://json-schema.org/draft-07/schema#",
35
+ "definitions": {
36
+ "Component": {
37
+ "additionalProperties": false,
38
+ "properties": {
39
+ "address": {
40
+ "$ref": "#/definitions/IAddress"
41
+ },
42
+ "config": {
43
+ "$ref": "#/definitions/IConfig"
44
+ },
45
+ "email": {
46
+ "$ref": "#/definitions/IEmail"
47
+ },
48
+ "id": {
49
+ "type": "string"
50
+ },
51
+ "phone": {
52
+ "$ref": "#/definitions/IPhone"
53
+ },
54
+ "site": {
55
+ "$ref": "#/definitions/ISite"
56
+ },
57
+ "social": {
58
+ "$ref": "#/definitions/ISocial"
59
+ },
60
+ "style": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "type": "object"
65
+ },
66
+ "IAddress": {
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "address": {
70
+ "type": "string"
71
+ },
72
+ "latLang": {
73
+ "items": {
74
+ "type": "number"
75
+ },
76
+ "type": "array"
77
+ },
78
+ "mapUri": {
79
+ "type": "string"
80
+ },
81
+ "shortAddress": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "required": [
86
+ "address"
87
+ ],
88
+ "type": "object"
89
+ },
90
+ "IConfig": {
91
+ "additionalProperties": false,
92
+ "properties": {
93
+ "dispatcher": {
94
+ "type": "boolean"
95
+ },
96
+ "icon": {
97
+ "additionalProperties": false,
98
+ "properties": {
99
+ "fill": {
100
+ "type": "boolean"
101
+ }
102
+ },
103
+ "type": "object"
104
+ },
105
+ "text": {
106
+ "type": "boolean"
107
+ }
108
+ },
109
+ "type": "object"
110
+ },
111
+ "IEmail": {
112
+ "additionalProperties": false,
113
+ "properties": {
114
+ "address": {
115
+ "type": "string"
116
+ },
117
+ "mailLink": {
118
+ "type": "boolean"
119
+ }
120
+ },
121
+ "required": [
122
+ "address"
123
+ ],
124
+ "type": "object"
125
+ },
126
+ "IPhone": {
127
+ "additionalProperties": false,
128
+ "properties": {
129
+ "callOnClick": {
130
+ "type": "boolean"
131
+ },
132
+ "number": {
133
+ "type": "string"
134
+ }
135
+ },
136
+ "required": [
137
+ "number"
138
+ ],
139
+ "type": "object"
140
+ },
141
+ "ISite": {
142
+ "additionalProperties": false,
143
+ "properties": {
144
+ "label": {
145
+ "type": "string"
146
+ },
147
+ "open": {
148
+ "type": "boolean"
149
+ },
150
+ "uri": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ "type": "object"
155
+ },
156
+ "ISocial": {
157
+ "additionalProperties": false,
158
+ "properties": {
159
+ "label": {
160
+ "type": "string"
161
+ },
162
+ "name": {
163
+ "type": "string"
164
+ },
165
+ "pageUri": {
166
+ "type": "string"
167
+ }
168
+ },
169
+ "required": [
170
+ "name"
171
+ ],
172
+ "type": "object"
173
+ }
174
+ }
175
+ }
176
+ },
177
+ "storybookArgs": {
178
+ "id": {
179
+ "control": {
180
+ "disable": true
181
+ }
182
+ },
183
+ "phone": {
184
+ "control": {
185
+ "type": "object"
186
+ }
187
+ },
188
+ "address": {
189
+ "control": {
190
+ "type": "object"
191
+ }
192
+ },
193
+ "email": {
194
+ "control": {
195
+ "type": "object"
196
+ }
197
+ },
198
+ "site": {
199
+ "control": {
200
+ "type": "object"
201
+ }
202
+ },
203
+ "config": {
204
+ "control": {
205
+ "type": "object"
206
+ }
207
+ },
208
+ "contactclick": {
209
+ "action": "contactClickEvent"
210
+ }
211
+ },
212
+ "styleSetup": {
213
+ "vars": [],
214
+ "parts": []
215
+ },
216
+ "htmlSlots": [],
217
+ "i18n": [],
218
+ "examples": [],
219
+ "name": "",
220
+ "category": "",
221
+ "tags": [],
222
+ "size": {}
223
+ }
@@ -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": {
@@ -31,29 +32,6 @@
31
32
  },
32
33
  "type": "object"
33
34
  },
34
- "Events": {
35
- "additionalProperties": false,
36
- "properties": {
37
- "contactclick": {
38
- "additionalProperties": false,
39
- "properties": {
40
- "action": {
41
- "type": "string"
42
- },
43
- "options": {}
44
- },
45
- "required": [
46
- "action",
47
- "options"
48
- ],
49
- "type": "object"
50
- }
51
- },
52
- "required": [
53
- "contactclick"
54
- ],
55
- "type": "object"
56
- },
57
35
  "IAddress": {
58
36
  "additionalProperties": false,
59
37
  "properties": {
@@ -0,0 +1,29 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "contactclick": {
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "action": {
12
+ "type": "string"
13
+ },
14
+ "options": {}
15
+ },
16
+ "required": [
17
+ "action",
18
+ "options"
19
+ ],
20
+ "type": "object"
21
+ }
22
+ },
23
+ "required": [
24
+ "contactclick"
25
+ ],
26
+ "type": "object"
27
+ }
28
+ }
29
+ }