timezone-overlap-map 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +110 -2
- package/dist/TimezoneOverlap.d.ts +12 -0
- package/dist/WorldMap.d.ts +5 -0
- package/dist/element.d.ts +31 -0
- package/dist/geo.d.ts +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/messages.d.ts +14 -0
- package/dist/overlap.d.ts +41 -0
- package/dist/sun.d.ts +12 -0
- package/dist/timezone-overlap-map.js +956 -0
- package/dist/zones.d.ts +5 -0
- package/package.json +56 -4
package/dist/zones.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** "America/Argentina/Buenos_Aires" → "Buenos Aires". */
|
|
2
|
+
export declare function cityName(zone: string): string;
|
|
3
|
+
export declare function detectZone(): string;
|
|
4
|
+
/** Every zone the runtime knows, plus `extra` (a detected alias like America/Buenos_Aires may be missing). */
|
|
5
|
+
export declare function listZones(extra?: string[]): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "timezone-overlap-map",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A web component that shows two timezones and how their working hours overlap",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Santiago Palenque",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/santipalenque/timezone-overlap-map.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/santipalenque/timezone-overlap-map#readme",
|
|
12
|
+
"bugs": "https://github.com/santipalenque/timezone-overlap-map/issues",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"timezone",
|
|
15
|
+
"web-component",
|
|
16
|
+
"custom-element",
|
|
17
|
+
"working-hours",
|
|
18
|
+
"remote",
|
|
19
|
+
"react"
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/timezone-overlap-map.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"sideEffects": true,
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"build": "vite build && tsc -p tsconfig.build.json",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"geo": "node scripts/build-geo.mjs",
|
|
38
|
+
"prepublishOnly": "yarn test && yarn build"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
42
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/react": "19.3.0",
|
|
46
|
+
"@types/react-dom": "19.3.0",
|
|
47
|
+
"@types/topojson-client": "3.1.5",
|
|
48
|
+
"@vitejs/plugin-react": "6.2.1",
|
|
49
|
+
"happy-dom": "21.0.4",
|
|
50
|
+
"react": "19.3.1",
|
|
51
|
+
"react-dom": "19.3.1",
|
|
52
|
+
"topojson-client": "3.1.0",
|
|
53
|
+
"typescript": "7.0.2",
|
|
54
|
+
"vite": "8.3.5",
|
|
55
|
+
"vitest": "5.1.0",
|
|
56
|
+
"world-atlas": "2.0.2"
|
|
57
|
+
}
|
|
58
|
+
}
|