timered-counter 0.0.8 → 0.0.9
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/dist/src/timered-counter-string.js +7 -2
- package/dist/src/timered-counter-string.js.map +1 -1
- package/dist/timered-counter.esm-browser.js +367 -0
- package/dist/timered-counter.esm-browser.js.map +1 -0
- package/dist/timered-counter.global.js +367 -0
- package/dist/timered-counter.global.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -3
- package/dist/src/global-style-helper.d.ts +0 -7
- package/dist/src/global-style-helper.js +0 -15
- package/dist/src/global-style-helper.js.map +0 -1
- package/dist/src/style-helper.d.ts +0 -1
- package/dist/src/style-helper.js +0 -2
- package/dist/src/style-helper.js.map +0 -1
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent timered-counter following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "timered-counter",
|
6
|
-
"version": "0.0.
|
6
|
+
"version": "0.0.9",
|
7
7
|
"type": "module",
|
8
8
|
"main": "dist/src/index.js",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"scripts": {
|
25
25
|
"analyze": "cem analyze --litelement",
|
26
26
|
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\"",
|
27
|
-
"build": "tsc && npm run analyze -- --exclude dist",
|
28
|
-
"prepublish": "
|
27
|
+
"build": "tsc && rollup -c && npm run analyze -- --exclude dist",
|
28
|
+
"prepublish": "npm run build",
|
29
29
|
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
30
30
|
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
31
31
|
"prepare": "husky",
|
@@ -49,6 +49,9 @@
|
|
49
49
|
"@faker-js/faker": "^9.5.0",
|
50
50
|
"@open-wc/eslint-config": "^12.0.3",
|
51
51
|
"@open-wc/testing": "^4.0.0",
|
52
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
53
|
+
"@rollup/plugin-terser": "^0.4.4",
|
54
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
52
55
|
"@storybook/addon-a11y": "^8.5.0",
|
53
56
|
"@storybook/addon-coverage": "^1.0.5",
|
54
57
|
"@storybook/addon-essentials": "^8.5.0",
|
@@ -64,6 +67,7 @@
|
|
64
67
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
65
68
|
"@typescript-eslint/parser": "^7.16.0",
|
66
69
|
"@web/dev-server": "^0.4.6",
|
70
|
+
"@web/rollup-plugin-copy": "^0.5.1",
|
67
71
|
"@web/storybook-builder": "^0.1.21",
|
68
72
|
"@web/storybook-framework-web-components": "^0.1.2",
|
69
73
|
"@web/test-runner": "^0.18.2",
|
@@ -73,6 +77,9 @@
|
|
73
77
|
"husky": "^9.0.11",
|
74
78
|
"lint-staged": "^15.2.7",
|
75
79
|
"prettier": "^3.3.2",
|
80
|
+
"rollup": "^4.37.0",
|
81
|
+
"rollup-plugin-summary": "^3.0.0",
|
82
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
76
83
|
"storybook": "^8.5.0",
|
77
84
|
"type-fest": "^4.32.0",
|
78
85
|
"typescript": "^5.5.3"
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export type TimeredCounterStyleSheets = Partial<{
|
2
|
-
'timered-counter': string;
|
3
|
-
'timered-counter-roller': string;
|
4
|
-
'timered-counter-roller-digit': string;
|
5
|
-
}>;
|
6
|
-
export declare function getTimeredCounterStyleSheets(id: Symbol): TimeredCounterStyleSheets;
|
7
|
-
export declare function setTimeredCounterStyleSheets(id: Symbol, styles: string | TimeredCounterStyleSheets): void;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { isString } from 'remeda';
|
2
|
-
import { parseJsonString } from './utils/parse-json-string.js';
|
3
|
-
const GlobalTimeredCounterStyleCache = new WeakMap();
|
4
|
-
export function getTimeredCounterStyleSheets(id) {
|
5
|
-
return GlobalTimeredCounterStyleCache.has(id)
|
6
|
-
? GlobalTimeredCounterStyleCache.get(id)
|
7
|
-
: {};
|
8
|
-
}
|
9
|
-
export function setTimeredCounterStyleSheets(id, styles) {
|
10
|
-
const _styles = isString(styles)
|
11
|
-
? parseJsonString(styles)
|
12
|
-
: styles;
|
13
|
-
GlobalTimeredCounterStyleCache.set(id, _styles);
|
14
|
-
}
|
15
|
-
//# sourceMappingURL=global-style-helper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"global-style-helper.js","sourceRoot":"","sources":["../../src/global-style-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAW/D,MAAM,8BAA8B,GAAG,IAAI,OAAO,EAG/C,CAAC;AAEJ,MAAM,UAAU,4BAA4B,CAC1C,EAAU;IAEV,OAAO,8BAA8B,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3C,CAAC,CAAC,8BAA8B,CAAC,GAAG,CAAC,EAAE,CAAE;QACzC,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,EAAU,EACV,MAA0C;IAE1C,MAAM,OAAO,GAA8B,QAAQ,CAAC,MAAM,CAAC;QACzD,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC;QACzB,CAAC,CAAC,MAAM,CAAC;IAEX,8BAA8B,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC","sourcesContent":["import { isString } from 'remeda';\nimport { parseJsonString } from './utils/parse-json-string.js';\n\nexport type TimeredCounterStyleSheets = Partial<{\n 'timered-counter': string;\n // 'timered-counter-datetime-duration': string;\n // 'timered-counter-number': string;\n // 'timered-counter-string': string;\n 'timered-counter-roller': string;\n 'timered-counter-roller-digit': string;\n}>;\n\nconst GlobalTimeredCounterStyleCache = new WeakMap<\n Symbol,\n TimeredCounterStyleSheets\n>();\n\nexport function getTimeredCounterStyleSheets(\n id: Symbol,\n): TimeredCounterStyleSheets {\n return GlobalTimeredCounterStyleCache.has(id)\n ? GlobalTimeredCounterStyleCache.get(id)!\n : {};\n}\n\nexport function setTimeredCounterStyleSheets(\n id: Symbol,\n styles: string | TimeredCounterStyleSheets,\n) {\n const _styles: TimeredCounterStyleSheets = isString(styles)\n ? parseJsonString(styles)\n : styles;\n\n GlobalTimeredCounterStyleCache.set(id, _styles);\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/dist/src/style-helper.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"style-helper.js","sourceRoot":"","sources":["../../src/style-helper.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|