@pantoken/svelte 0.1.27 → 0.1.29
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/index.d.mts +5 -6
- package/dist/index.mjs +1 -2
- package/dist/scaffold-preset.d.mts +2 -3
- package/package.json +8 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { register } from "@pantoken/web-components";
|
|
2
|
-
import { registerLocalized } from "@pantoken/i18n";
|
|
1
|
+
import { register, registerLocalized } from "@pantoken/web-components";
|
|
3
2
|
//#region src/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Read a resolved token value. Returns `fallback` on the server.
|
|
@@ -11,9 +10,9 @@ import { registerLocalized } from "@pantoken/i18n";
|
|
|
11
10
|
* const brand = readToken("--instui-color-background-brand", "#0374B5");
|
|
12
11
|
* ```
|
|
13
12
|
*/
|
|
14
|
-
declare function readToken(name: string, fallback?: string): string;
|
|
13
|
+
export declare function readToken(name: string, fallback?: string): string;
|
|
15
14
|
/** A Svelte action's return shape. */
|
|
16
|
-
interface ActionResult {
|
|
15
|
+
export interface ActionResult {
|
|
17
16
|
update(name: string): void;
|
|
18
17
|
destroy(): void;
|
|
19
18
|
}
|
|
@@ -33,6 +32,6 @@ interface ActionResult {
|
|
|
33
32
|
* <span use:icon={"arrow-left"} />
|
|
34
33
|
* ```
|
|
35
34
|
*/
|
|
36
|
-
declare function icon(node: Element, name: string): ActionResult;
|
|
35
|
+
export declare function icon(node: Element, name: string): ActionResult;
|
|
37
36
|
//#endregion
|
|
38
|
-
export {
|
|
37
|
+
export { register, registerLocalized };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { iconSvg, register, register as register$1 } from "@pantoken/web-components";
|
|
2
|
-
import { registerLocalized } from "@pantoken/i18n";
|
|
1
|
+
import { iconSvg, register, register as register$1, registerLocalized } from "@pantoken/web-components";
|
|
3
2
|
//#region src/index.ts
|
|
4
3
|
/**
|
|
5
4
|
* `@pantoken/svelte` — Svelte helpers over `@pantoken/web-components`.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantoken/svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "Svelte helpers for pantoken: an icon action over the web components, plus token reads.",
|
|
5
|
-
"homepage": "https://pantoken.
|
|
5
|
+
"homepage": "https://pantoken.app",
|
|
6
6
|
"bugs": "https://github.com/thedannywahl/pantoken/issues",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -28,17 +28,16 @@
|
|
|
28
28
|
"provenance": true
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pantoken/
|
|
32
|
-
"@pantoken/
|
|
33
|
-
"@pantoken/web-components": "0.5.7"
|
|
31
|
+
"@pantoken/scaffold-base": "0.2.1",
|
|
32
|
+
"@pantoken/web-components": "0.6.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@pantoken/components": "1.0
|
|
37
|
-
"@types/node": "^26.
|
|
35
|
+
"@pantoken/components": "1.1.0",
|
|
36
|
+
"@types/node": "^26.5.0",
|
|
38
37
|
"bingo-stratum": "^0.5.13",
|
|
39
38
|
"typescript": "^7.0.2",
|
|
40
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.
|
|
41
|
-
"vite-plus": "0.3.
|
|
39
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
|
|
40
|
+
"vite-plus": "0.3.1"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
43
|
"svelte": ">=4"
|