@htmlbricks/hb-card-video 0.8.35 → 0.8.42
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 +17 -3
- package/package.json +9 -7
- package/release/docs.js +14 -1
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +39 -0
- package/release/docs.ts +17 -3
- package/release/manifest.json +131 -0
- package/release/webcomponent.type.d.json +1 -4
- package/release/webcomponent_events.type.d.json +10 -0
- package/release/docs.type.d.json +0 -56
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
videosrc: { control: { type: "text" } },
|
|
@@ -21,10 +22,23 @@ export const styleSetup: StyleSetup = {
|
|
|
21
22
|
parts: cssParts,
|
|
22
23
|
};
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
const examples: Component[] = [
|
|
26
|
+
{
|
|
27
|
+
videosrc: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
|
|
28
|
+
title: "aa",
|
|
29
|
+
description: "desc6",
|
|
30
|
+
time: new Date("2021-08-15T18:55:22.135Z"),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
34
|
+
definitions: null,
|
|
25
35
|
storybookArgs,
|
|
26
36
|
styleSetup,
|
|
27
37
|
htmlSlots,
|
|
28
38
|
i18n: i18nLanguages,
|
|
29
|
-
examples
|
|
39
|
+
examples,
|
|
40
|
+
name: "hb-card-video",
|
|
41
|
+
category: "components",
|
|
42
|
+
tags: ["components"],
|
|
43
|
+
size: {},
|
|
30
44
|
};
|
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.
|
|
5
|
+
"version": "0.8.42",
|
|
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-
|
|
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-
|
|
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.
|
|
36
|
+
"@htmlbricks/hb-jsutils": "^0.8.42",
|
|
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": "
|
|
81
|
+
"gitHead": "d6919a86b5627d502a37fe2a28830a32724d0a52"
|
|
80
82
|
}
|
package/release/docs.js
CHANGED
|
@@ -16,11 +16,24 @@ export var styleSetup = {
|
|
|
16
16
|
vars: cssVars,
|
|
17
17
|
parts: cssParts
|
|
18
18
|
};
|
|
19
|
+
var examples = [
|
|
20
|
+
{
|
|
21
|
+
videosrc: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
|
|
22
|
+
title: "aa",
|
|
23
|
+
description: "desc6",
|
|
24
|
+
time: new Date("2021-08-15T18:55:22.135Z")
|
|
25
|
+
},
|
|
26
|
+
];
|
|
19
27
|
export var componentSetup = {
|
|
28
|
+
definitions: null,
|
|
20
29
|
storybookArgs: storybookArgs,
|
|
21
30
|
styleSetup: styleSetup,
|
|
22
31
|
htmlSlots: htmlSlots,
|
|
23
32
|
i18n: i18nLanguages,
|
|
24
|
-
examples:
|
|
33
|
+
examples: examples,
|
|
34
|
+
name: "hb-card-video",
|
|
35
|
+
category: "components",
|
|
36
|
+
tags: ["components"],
|
|
37
|
+
size: {}
|
|
25
38
|
};
|
|
26
39
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IAC1C,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACxC,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CACzC,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAAgB;IAC7B;QACC,QAAQ,EAAE,0EAA0E;QACpF,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,IAAI,IAAI,CAAC,0BAA0B,CAAC;KAC1C;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,eAAe;IACrB,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var examples = [
|
|
20
|
+
{
|
|
21
|
+
videosrc: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
|
|
22
|
+
title: "aa",
|
|
23
|
+
description: "desc6",
|
|
24
|
+
time: new Date("2021-08-15T18:55:22.135Z")
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export var componentSetup = {
|
|
28
|
+
definitions: null,
|
|
29
|
+
storybookArgs: storybookArgs,
|
|
30
|
+
styleSetup: styleSetup,
|
|
31
|
+
htmlSlots: htmlSlots,
|
|
32
|
+
i18n: i18nLanguages,
|
|
33
|
+
examples: examples,
|
|
34
|
+
name: "hb-card-video",
|
|
35
|
+
category: "components",
|
|
36
|
+
tags: ["components"],
|
|
37
|
+
size: {}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=docs.js.map
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
videosrc: { control: { type: "text" } },
|
|
@@ -21,10 +22,23 @@ export const styleSetup: StyleSetup = {
|
|
|
21
22
|
parts: cssParts,
|
|
22
23
|
};
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
const examples: Component[] = [
|
|
26
|
+
{
|
|
27
|
+
videosrc: "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
|
|
28
|
+
title: "aa",
|
|
29
|
+
description: "desc6",
|
|
30
|
+
time: new Date("2021-08-15T18:55:22.135Z"),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
34
|
+
definitions: null,
|
|
25
35
|
storybookArgs,
|
|
26
36
|
styleSetup,
|
|
27
37
|
htmlSlots,
|
|
28
38
|
i18n: i18nLanguages,
|
|
29
|
-
examples
|
|
39
|
+
examples,
|
|
40
|
+
name: "hb-card-video",
|
|
41
|
+
category: "components",
|
|
42
|
+
tags: ["components"],
|
|
43
|
+
size: {},
|
|
30
44
|
};
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
{
|
|
119
|
+
"videosrc": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
|
|
120
|
+
"title": "aa",
|
|
121
|
+
"description": "desc6",
|
|
122
|
+
"time": "2021-08-15T18:55:22.135Z"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"name": "hb-card-video",
|
|
126
|
+
"category": "components",
|
|
127
|
+
"tags": [
|
|
128
|
+
"components"
|
|
129
|
+
],
|
|
130
|
+
"size": {}
|
|
131
|
+
}
|
|
@@ -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
|
}
|
package/release/docs.type.d.json
DELETED
|
@@ -1,56 +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
|
-
}
|