@htmlbricks/hb-banner 0.8.37 → 0.8.43
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 +15 -6
- package/package.json +9 -7
- package/release/docs.js +12 -4
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +33 -0
- package/release/docs.ts +15 -6
- package/release/manifest.json +77 -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 -30
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
|
logouri: { control: { type: "text" } },
|
|
@@ -16,14 +17,22 @@ export const styleSetup: StyleSetup = {
|
|
|
16
17
|
parts: cssParts,
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
const examples: Component[] = [
|
|
21
|
+
{
|
|
22
|
+
title: "ciao",
|
|
23
|
+
description: "desc",
|
|
24
|
+
logouri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
28
|
+
definitions: null,
|
|
20
29
|
storybookArgs,
|
|
21
30
|
styleSetup,
|
|
22
31
|
htmlSlots,
|
|
23
32
|
i18n: i18nLanguages,
|
|
24
|
-
examples
|
|
25
|
-
name: "",
|
|
26
|
-
category: "",
|
|
27
|
-
tags: [],
|
|
33
|
+
examples,
|
|
34
|
+
name: "hb-banner",
|
|
35
|
+
category: "basic",
|
|
36
|
+
tags: ["basic"],
|
|
28
37
|
size: {},
|
|
29
38
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-banner",
|
|
3
3
|
"displayName": "Svelte Banner WebComponent",
|
|
4
4
|
"description": "Svelte Banner WebComponent",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.43",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,15 +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-
|
|
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
|
"devDependencies": {
|
|
31
|
-
"@htmlbricks/hb-jsutils": "^0.8.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.8.43",
|
|
34
|
+
"@htmlbricks/manifester": "^0.0.5",
|
|
32
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
33
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
34
37
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -42,7 +45,6 @@
|
|
|
42
45
|
"eslint": "^7.25.0",
|
|
43
46
|
"eslint-plugin-jsdoc": "^33.0.0",
|
|
44
47
|
"eslint-plugin-svelte3": "^3.2.0",
|
|
45
|
-
"generate-json-from-js-object": "^0.0.17",
|
|
46
48
|
"node-sass": "^6.0.1",
|
|
47
49
|
"postcss": "^8.2.13",
|
|
48
50
|
"postcss-load-config": "^3.0.1",
|
|
@@ -74,5 +76,5 @@
|
|
|
74
76
|
"html5-webcomponents"
|
|
75
77
|
],
|
|
76
78
|
"contributors": [],
|
|
77
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "00bfec0d080db03f42972124577a880c9bf2570e"
|
|
78
80
|
}
|
package/release/docs.js
CHANGED
|
@@ -11,15 +11,23 @@ export var styleSetup = {
|
|
|
11
11
|
vars: cssVars,
|
|
12
12
|
parts: cssParts
|
|
13
13
|
};
|
|
14
|
+
var examples = [
|
|
15
|
+
{
|
|
16
|
+
title: "ciao",
|
|
17
|
+
description: "desc",
|
|
18
|
+
logouri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"
|
|
19
|
+
},
|
|
20
|
+
];
|
|
14
21
|
export var componentSetup = {
|
|
22
|
+
definitions: null,
|
|
15
23
|
storybookArgs: storybookArgs,
|
|
16
24
|
styleSetup: styleSetup,
|
|
17
25
|
htmlSlots: htmlSlots,
|
|
18
26
|
i18n: i18nLanguages,
|
|
19
|
-
examples:
|
|
20
|
-
name: "",
|
|
21
|
-
category: "",
|
|
22
|
-
tags: [],
|
|
27
|
+
examples: examples,
|
|
28
|
+
name: "hb-banner",
|
|
29
|
+
category: "basic",
|
|
30
|
+
tags: ["basic"],
|
|
23
31
|
size: {}
|
|
24
32
|
};
|
|
25
33
|
//# 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,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC1C,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,IAAM,QAAQ,GAAgB;IAC7B;QACC,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,2EAA2E;KACpF;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,WAAW;IACjB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export var storybookArgs = {
|
|
2
|
+
logouri: { control: { type: "text" } },
|
|
3
|
+
title: { control: { type: "text" } },
|
|
4
|
+
description: { control: { type: "text" } }
|
|
5
|
+
};
|
|
6
|
+
var cssVars = [];
|
|
7
|
+
export var cssParts = [];
|
|
8
|
+
export var htmlSlots = [];
|
|
9
|
+
export var i18nLanguages = [];
|
|
10
|
+
export var styleSetup = {
|
|
11
|
+
vars: cssVars,
|
|
12
|
+
parts: cssParts
|
|
13
|
+
};
|
|
14
|
+
var examples = [
|
|
15
|
+
{
|
|
16
|
+
title: "ciao",
|
|
17
|
+
description: "desc",
|
|
18
|
+
logouri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
export var componentSetup = {
|
|
22
|
+
definitions: null,
|
|
23
|
+
storybookArgs: storybookArgs,
|
|
24
|
+
styleSetup: styleSetup,
|
|
25
|
+
htmlSlots: htmlSlots,
|
|
26
|
+
i18n: i18nLanguages,
|
|
27
|
+
examples: examples,
|
|
28
|
+
name: "hb-banner",
|
|
29
|
+
category: "basic",
|
|
30
|
+
tags: ["basic"],
|
|
31
|
+
size: {}
|
|
32
|
+
};
|
|
33
|
+
//# 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
|
logouri: { control: { type: "text" } },
|
|
@@ -16,14 +17,22 @@ export const styleSetup: StyleSetup = {
|
|
|
16
17
|
parts: cssParts,
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
const examples: Component[] = [
|
|
21
|
+
{
|
|
22
|
+
title: "ciao",
|
|
23
|
+
description: "desc",
|
|
24
|
+
logouri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
28
|
+
definitions: null,
|
|
20
29
|
storybookArgs,
|
|
21
30
|
styleSetup,
|
|
22
31
|
htmlSlots,
|
|
23
32
|
i18n: i18nLanguages,
|
|
24
|
-
examples
|
|
25
|
-
name: "",
|
|
26
|
-
category: "",
|
|
27
|
-
tags: [],
|
|
33
|
+
examples,
|
|
34
|
+
name: "hb-banner",
|
|
35
|
+
category: "basic",
|
|
36
|
+
tags: ["basic"],
|
|
28
37
|
size: {},
|
|
29
38
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
"description": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"id": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"logouri": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"style": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"title": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"type": "object"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"storybookArgs": {
|
|
42
|
+
"logouri": {
|
|
43
|
+
"control": {
|
|
44
|
+
"type": "text"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"title": {
|
|
48
|
+
"control": {
|
|
49
|
+
"type": "text"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"description": {
|
|
53
|
+
"control": {
|
|
54
|
+
"type": "text"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"styleSetup": {
|
|
59
|
+
"vars": [],
|
|
60
|
+
"parts": []
|
|
61
|
+
},
|
|
62
|
+
"htmlSlots": [],
|
|
63
|
+
"i18n": [],
|
|
64
|
+
"examples": [
|
|
65
|
+
{
|
|
66
|
+
"title": "ciao",
|
|
67
|
+
"description": "desc",
|
|
68
|
+
"logouri": "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"name": "hb-banner",
|
|
72
|
+
"category": "basic",
|
|
73
|
+
"tags": [
|
|
74
|
+
"basic"
|
|
75
|
+
],
|
|
76
|
+
"size": {}
|
|
77
|
+
}
|
|
@@ -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": {
|
|
@@ -21,10 +22,6 @@
|
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
24
|
"type": "object"
|
|
24
|
-
},
|
|
25
|
-
"Events": {
|
|
26
|
-
"additionalProperties": false,
|
|
27
|
-
"type": "object"
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
}
|
package/release/docs.type.d.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"storybookArgs": {
|
|
3
|
-
"logouri": {
|
|
4
|
-
"control": {
|
|
5
|
-
"type": "text"
|
|
6
|
-
}
|
|
7
|
-
},
|
|
8
|
-
"title": {
|
|
9
|
-
"control": {
|
|
10
|
-
"type": "text"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"description": {
|
|
14
|
-
"control": {
|
|
15
|
-
"type": "text"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"styleSetup": {
|
|
20
|
-
"vars": [],
|
|
21
|
-
"parts": []
|
|
22
|
-
},
|
|
23
|
-
"htmlSlots": [],
|
|
24
|
-
"i18n": [],
|
|
25
|
-
"examples": [],
|
|
26
|
-
"name": "",
|
|
27
|
-
"category": "",
|
|
28
|
-
"tags": [],
|
|
29
|
-
"size": {}
|
|
30
|
-
}
|