@htmlbricks/hb-card-video 0.8.37 → 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
  videosrc: { control: { type: "text" } },
@@ -21,7 +21,8 @@ export const styleSetup: StyleSetup = {
21
21
  parts: cssParts,
22
22
  };
23
23
 
24
- export const componentSetup = {
24
+ export const componentSetup: ComponentSetup = {
25
+ definitions: null,
25
26
  storybookArgs,
26
27
  styleSetup,
27
28
  htmlSlots,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-card-video",
3
3
  "displayName": "Svelte Boostrap Video Card WebComponent",
4
4
  "description": "Svelte Boostrap Video Card WebComponent",
5
- "version": "0.8.37",
5
+ "version": "0.8.39",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -20,18 +20,21 @@
20
20
  "start": "sirv dist",
21
21
  "dev": "rm -rf ./dist && rollup -c -w",
22
22
  "build": "rm -rf ./dist && rollup -c",
23
- "generate-docs": "cp $PWD/dist/docs.js $PWD/dist/docs.mjs && generate-json-from-js-object --input $PWD/dist/docs.mjs --var componentSetup --output $PWD/dist/docs.type.d.json && rm $PWD/dist/docs.mjs",
24
- "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",
25
27
  "copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
26
28
  "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
27
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-schema && npm run generate-docs && npm run copydest",
29
+ "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
28
30
  "prepublish": "npm run build:release"
29
31
  },
30
32
  "dependencies": {
31
33
  "dayjs": "^1.10.7"
32
34
  },
33
35
  "devDependencies": {
34
- "@htmlbricks/hb-jsutils": "^0.8.37",
36
+ "@htmlbricks/hb-jsutils": "^0.8.39",
37
+ "@htmlbricks/manifester": "^0.0.5",
35
38
  "@rollup/plugin-alias": "^3.1.2",
36
39
  "@rollup/plugin-commonjs": "^18.0.0",
37
40
  "@rollup/plugin-json": "^4.1.0",
@@ -45,7 +48,6 @@
45
48
  "eslint": "^7.25.0",
46
49
  "eslint-plugin-jsdoc": "^33.0.0",
47
50
  "eslint-plugin-svelte3": "^3.2.0",
48
- "generate-json-from-js-object": "^0.0.17",
49
51
  "node-sass": "^6.0.1",
50
52
  "postcss": "^8.2.13",
51
53
  "postcss-load-config": "^3.0.1",
@@ -76,5 +78,5 @@
76
78
  "webcomponents"
77
79
  ],
78
80
  "contributors": [],
79
- "gitHead": "1a737cc2f90ff5f9c3bd06a155743e47329e8861"
81
+ "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
80
82
  }
package/release/docs.js CHANGED
@@ -17,6 +17,7 @@ export var styleSetup = {
17
17
  parts: cssParts
18
18
  };
19
19
  export var componentSetup = {
20
+ definitions: null,
20
21
  storybookArgs: storybookArgs,
21
22
  styleSetup: styleSetup,
22
23
  htmlSlots: htmlSlots,
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","source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AAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACR,CAAC"}
@@ -0,0 +1,31 @@
1
+ export var storybookArgs = {
2
+ videosrc: { control: { type: "text" } },
3
+ title: { control: { type: "text" } },
4
+ provider: { control: { type: "text" } },
5
+ description: { control: { type: "text" } },
6
+ time: { control: { type: "date" } },
7
+ pageuri: { control: { type: "text" } },
8
+ linklabel: { control: { type: "text" } },
9
+ dateformat: { control: { type: "text" } }
10
+ };
11
+ var cssVars = [];
12
+ export var cssParts = [];
13
+ export var htmlSlots = [{ name: "card-footer", description: "" }];
14
+ export var i18nLanguages = [];
15
+ export var styleSetup = {
16
+ vars: cssVars,
17
+ parts: cssParts
18
+ };
19
+ export var componentSetup = {
20
+ definitions: null,
21
+ storybookArgs: storybookArgs,
22
+ styleSetup: styleSetup,
23
+ htmlSlots: htmlSlots,
24
+ i18n: i18nLanguages,
25
+ examples: [],
26
+ name: "",
27
+ category: "",
28
+ tags: [],
29
+ size: {}
30
+ };
31
+ //# 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
  videosrc: { control: { type: "text" } },
@@ -21,7 +21,8 @@ export const styleSetup: StyleSetup = {
21
21
  parts: cssParts,
22
22
  };
23
23
 
24
- export const componentSetup = {
24
+ export const componentSetup: ComponentSetup = {
25
+ definitions: null,
25
26
  storybookArgs,
26
27
  styleSetup,
27
28
  htmlSlots,
@@ -0,0 +1,122 @@
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
+ "type": "object"
10
+ }
11
+ }
12
+ },
13
+ "component": {
14
+ "$ref": "#/definitions/Component",
15
+ "$schema": "http://json-schema.org/draft-07/schema#",
16
+ "definitions": {
17
+ "Component": {
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "dateformat": {
21
+ "type": "string"
22
+ },
23
+ "description": {
24
+ "type": "string"
25
+ },
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "linklabel": {
30
+ "type": "string"
31
+ },
32
+ "pageuri": {
33
+ "type": "string"
34
+ },
35
+ "provider": {
36
+ "enum": [
37
+ "youtube",
38
+ ""
39
+ ],
40
+ "type": "string"
41
+ },
42
+ "style": {
43
+ "type": "string"
44
+ },
45
+ "time": {
46
+ "format": "date-time",
47
+ "type": "string"
48
+ },
49
+ "title": {
50
+ "type": "string"
51
+ },
52
+ "videosrc": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "required": [
57
+ "videosrc"
58
+ ],
59
+ "type": "object"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "storybookArgs": {
65
+ "videosrc": {
66
+ "control": {
67
+ "type": "text"
68
+ }
69
+ },
70
+ "title": {
71
+ "control": {
72
+ "type": "text"
73
+ }
74
+ },
75
+ "provider": {
76
+ "control": {
77
+ "type": "text"
78
+ }
79
+ },
80
+ "description": {
81
+ "control": {
82
+ "type": "text"
83
+ }
84
+ },
85
+ "time": {
86
+ "control": {
87
+ "type": "date"
88
+ }
89
+ },
90
+ "pageuri": {
91
+ "control": {
92
+ "type": "text"
93
+ }
94
+ },
95
+ "linklabel": {
96
+ "control": {
97
+ "type": "text"
98
+ }
99
+ },
100
+ "dateformat": {
101
+ "control": {
102
+ "type": "text"
103
+ }
104
+ }
105
+ },
106
+ "styleSetup": {
107
+ "vars": [],
108
+ "parts": []
109
+ },
110
+ "htmlSlots": [
111
+ {
112
+ "name": "card-footer",
113
+ "description": ""
114
+ }
115
+ ],
116
+ "i18n": [],
117
+ "examples": [],
118
+ "name": "",
119
+ "category": "",
120
+ "tags": [],
121
+ "size": {}
122
+ }
@@ -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": {
@@ -44,10 +45,6 @@
44
45
  "videosrc"
45
46
  ],
46
47
  "type": "object"
47
- },
48
- "Events": {
49
- "additionalProperties": false,
50
- "type": "object"
51
48
  }
52
49
  }
53
50
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "type": "object"
8
+ }
9
+ }
10
+ }
@@ -1,60 +0,0 @@
1
- {
2
- "storybookArgs": {
3
- "videosrc": {
4
- "control": {
5
- "type": "text"
6
- }
7
- },
8
- "title": {
9
- "control": {
10
- "type": "text"
11
- }
12
- },
13
- "provider": {
14
- "control": {
15
- "type": "text"
16
- }
17
- },
18
- "description": {
19
- "control": {
20
- "type": "text"
21
- }
22
- },
23
- "time": {
24
- "control": {
25
- "type": "date"
26
- }
27
- },
28
- "pageuri": {
29
- "control": {
30
- "type": "text"
31
- }
32
- },
33
- "linklabel": {
34
- "control": {
35
- "type": "text"
36
- }
37
- },
38
- "dateformat": {
39
- "control": {
40
- "type": "text"
41
- }
42
- }
43
- },
44
- "styleSetup": {
45
- "vars": [],
46
- "parts": []
47
- },
48
- "htmlSlots": [
49
- {
50
- "name": "card-footer",
51
- "description": ""
52
- }
53
- ],
54
- "i18n": [],
55
- "examples": [],
56
- "name": "",
57
- "category": "",
58
- "tags": [],
59
- "size": {}
60
- }