rune-lab 0.4.1 → 0.4.2-beta.2

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.
Files changed (100) hide show
  1. package/deno.json +10 -10
  2. package/package.json +2 -2
  3. package/scripts/build_pkg.ts +34 -28
  4. package/scripts/deploy.just +12 -7
  5. package/src/app.d.ts +13 -0
  6. package/src/app.html +12 -0
  7. package/src/lib/mod.ts +10 -0
  8. package/src/routes/+page.svelte +3 -0
  9. package/tsconfig.json +6 -6
  10. package/vite.config.ts +2 -24
  11. package/src/mod.ts +0 -10
  12. /package/src/{RuneProvider.svelte → lib/RuneProvider.svelte} +0 -0
  13. /package/src/{i18n → lib/i18n}/message-resolver.test.ts +0 -0
  14. /package/src/{i18n → lib/i18n}/message-resolver.ts +0 -0
  15. /package/src/{i18n → lib/i18n}/project.inlang/settings.json +0 -0
  16. /package/src/{i18n → lib/i18n}/translations/ar.json +0 -0
  17. /package/src/{i18n → lib/i18n}/translations/de.json +0 -0
  18. /package/src/{i18n → lib/i18n}/translations/en.json +0 -0
  19. /package/src/{i18n → lib/i18n}/translations/es.json +0 -0
  20. /package/src/{i18n → lib/i18n}/translations/fr.json +0 -0
  21. /package/src/{i18n → lib/i18n}/translations/hi.json +0 -0
  22. /package/src/{i18n → lib/i18n}/translations/it.json +0 -0
  23. /package/src/{i18n → lib/i18n}/translations/ja.json +0 -0
  24. /package/src/{i18n → lib/i18n}/translations/ko.json +0 -0
  25. /package/src/{i18n → lib/i18n}/translations/pt.json +0 -0
  26. /package/src/{i18n → lib/i18n}/translations/ru.json +0 -0
  27. /package/src/{i18n → lib/i18n}/translations/vi.json +0 -0
  28. /package/src/{i18n → lib/i18n}/translations/zh.json +0 -0
  29. /package/src/{kernel → lib/kernel}/deno.json +0 -0
  30. /package/src/{kernel → lib/kernel}/src/actions/portal.ts +0 -0
  31. /package/src/{kernel → lib/kernel}/src/actions/shortcut-listener.ts +0 -0
  32. /package/src/{kernel → lib/kernel}/src/context/app.svelte.ts +0 -0
  33. /package/src/{kernel → lib/kernel}/src/context/context.ts +0 -0
  34. /package/src/{kernel → lib/kernel}/src/context/stores.svelte.ts +0 -0
  35. /package/src/{kernel → lib/kernel}/src/context/types.ts +0 -0
  36. /package/src/{kernel → lib/kernel}/src/context/useRuneLab.ts +0 -0
  37. /package/src/{kernel → lib/kernel}/src/mod.ts +0 -0
  38. /package/src/{kernel → lib/kernel}/src/persistence/createConfigStore.svelte.ts +0 -0
  39. /package/src/{kernel → lib/kernel}/src/persistence/drivers.test.ts +0 -0
  40. /package/src/{kernel → lib/kernel}/src/persistence/drivers.ts +0 -0
  41. /package/src/{kernel → lib/kernel}/src/persistence/provider.test.ts +0 -0
  42. /package/src/{kernel → lib/kernel}/src/persistence/provider.ts +0 -0
  43. /package/src/{kernel → lib/kernel}/src/persistence/types.ts +0 -0
  44. /package/src/{kernel → lib/kernel}/src/persistence/usePersistence.ts +0 -0
  45. /package/src/{kernel → lib/kernel}/src/registry/mod.ts +0 -0
  46. /package/src/{kernel → lib/kernel}/src/registry/registry.test.ts +0 -0
  47. /package/src/{kernel → lib/kernel}/src/tokens/props.ts +0 -0
  48. /package/src/{runes → lib/runes}/layout/deno.json +0 -0
  49. /package/src/{runes → lib/runes}/layout/src/APP_CONFIGURATIONS.ts +0 -0
  50. /package/src/{runes → lib/runes}/layout/src/AppSettingSelector.svelte +0 -0
  51. /package/src/{runes → lib/runes}/layout/src/ConnectedNavigationPanel.svelte +0 -0
  52. /package/src/{runes → lib/runes}/layout/src/ConnectedWorkspaceStrip.svelte +0 -0
  53. /package/src/{runes → lib/runes}/layout/src/ContentArea.svelte +0 -0
  54. /package/src/{runes → lib/runes}/layout/src/DetailPanel.svelte +0 -0
  55. /package/src/{runes → lib/runes}/layout/src/Icon.svelte +0 -0
  56. /package/src/{runes → lib/runes}/layout/src/LanguageSelector.svelte +0 -0
  57. /package/src/{runes → lib/runes}/layout/src/NavigationPanel.svelte +0 -0
  58. /package/src/{runes → lib/runes}/layout/src/ResourceSelector.svelte +0 -0
  59. /package/src/{runes → lib/runes}/layout/src/ThemeSelector.svelte +0 -0
  60. /package/src/{runes → lib/runes}/layout/src/WorkspaceLayout.svelte +0 -0
  61. /package/src/{runes → lib/runes}/layout/src/WorkspaceStrip.svelte +0 -0
  62. /package/src/{runes → lib/runes}/layout/src/connection-factory.ts +0 -0
  63. /package/src/{runes → lib/runes}/layout/src/language.svelte.ts +0 -0
  64. /package/src/{runes → lib/runes}/layout/src/mod.ts +0 -0
  65. /package/src/{runes → lib/runes}/layout/src/store.svelte.ts +0 -0
  66. /package/src/{runes → lib/runes}/layout/src/theme.svelte.ts +0 -0
  67. /package/src/{runes → lib/runes}/layout/src/types.ts +0 -0
  68. /package/src/{runes → lib/runes}/palettes/deno.json +0 -0
  69. /package/src/{runes → lib/runes}/palettes/src/commands/CommandPalette.svelte +0 -0
  70. /package/src/{runes → lib/runes}/palettes/src/commands/mod.ts +0 -0
  71. /package/src/{runes → lib/runes}/palettes/src/commands/store.svelte.ts +0 -0
  72. /package/src/{runes → lib/runes}/palettes/src/mod.ts +0 -0
  73. /package/src/{runes → lib/runes}/palettes/src/notifications/NotificationBell.svelte +0 -0
  74. /package/src/{runes → lib/runes}/palettes/src/notifications/Toaster.svelte +0 -0
  75. /package/src/{runes → lib/runes}/palettes/src/notifications/bridge.ts +0 -0
  76. /package/src/{runes → lib/runes}/palettes/src/notifications/mod.ts +0 -0
  77. /package/src/{runes → lib/runes}/palettes/src/notifications/store.svelte.ts +0 -0
  78. /package/src/{runes → lib/runes}/palettes/src/shortcuts/ShortcutPalette.svelte +0 -0
  79. /package/src/{runes → lib/runes}/palettes/src/shortcuts/mod.ts +0 -0
  80. /package/src/{runes → lib/runes}/palettes/src/shortcuts/store.svelte.ts +0 -0
  81. /package/src/{runes → lib/runes}/palettes/src/shortcuts/types.ts +0 -0
  82. /package/src/{runes → lib/runes}/palettes/src/shortcuts/useShortcuts.ts +0 -0
  83. /package/src/{runes → lib/runes}/plugins/money/deno.json +0 -0
  84. /package/src/{runes → lib/runes}/plugins/money/src/CurrencySelector.svelte +0 -0
  85. /package/src/{runes → lib/runes}/plugins/money/src/MoneyDisplay.svelte +0 -0
  86. /package/src/{runes → lib/runes}/plugins/money/src/MoneyInput.svelte +0 -0
  87. /package/src/{runes → lib/runes}/plugins/money/src/currency.svelte.ts +0 -0
  88. /package/src/{runes → lib/runes}/plugins/money/src/currency.test.ts +0 -0
  89. /package/src/{runes → lib/runes}/plugins/money/src/exchange-rate.svelte.ts +0 -0
  90. /package/src/{runes → lib/runes}/plugins/money/src/exchange-rate.test.ts +0 -0
  91. /package/src/{runes → lib/runes}/plugins/money/src/mod.ts +0 -0
  92. /package/src/{runes → lib/runes}/plugins/money/src/money-primitive.test.ts +0 -0
  93. /package/src/{runes → lib/runes}/plugins/money/src/money-primitive.ts +0 -0
  94. /package/src/{runes → lib/runes}/plugins/money/src/money.test.ts +0 -0
  95. /package/src/{runes → lib/runes}/plugins/money/src/money.ts +0 -0
  96. /package/src/{runes → lib/runes}/plugins/money/src/strategies.test.ts +0 -0
  97. /package/src/{runes → lib/runes}/plugins/money/src/strategies.ts +0 -0
  98. /package/src/{runes → lib/runes}/plugins/money/src/types.ts +0 -0
  99. /package/src/{runes → lib/runes}/plugins/money/src/useMoney.ts +0 -0
  100. /package/src/{runes → lib/runes}/plugins/money/src/useMoneyFilter.ts +0 -0
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrrrrrf/rune-lab",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-beta.2",
4
4
  "description": "Modern toolkit for Svelte 5 Runes applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -11,21 +11,21 @@
11
11
  "url": "git+https://github.com/Yrrrrrf/rune-lab.git"
12
12
  },
13
13
  "exports": {
14
- ".": "./src/mod.ts"
14
+ ".": "./src/lib/mod.ts"
15
15
  },
16
16
  "nodeModulesDir": "manual",
17
17
  "workspace": [
18
- "./src/kernel",
19
- "./src/runes/layout",
20
- "./src/runes/palettes",
21
- "./src/runes/plugins/money"
18
+ "./src/lib/kernel",
19
+ "./src/lib/runes/layout",
20
+ "./src/lib/runes/palettes",
21
+ "./src/lib/runes/plugins/money"
22
22
  ],
23
23
  "tasks": {
24
- "i18n": "paraglide-js compile --project ./src/i18n/project.inlang --outdir ./src/i18n/paraglide"
24
+ "i18n": "paraglide-js compile --project ./src/lib/i18n/project.inlang --outdir ./src/lib/i18n/paraglide"
25
25
  },
26
26
  "imports": {
27
- "@rune-lab/core": "./src/mod.ts",
28
- "@rune-lab/i18n/": "./src/i18n/",
27
+ "@rune-lab/core": "./src/lib/mod.ts",
28
+ "@rune-lab/i18n/": "./src/lib/i18n/",
29
29
  "typescript": "npm:typescript@5.9.3",
30
30
  "@tailwindcss/vite": "npm:@tailwindcss/vite",
31
31
  "esm-env": "npm:esm-env",
@@ -42,9 +42,9 @@
42
42
  "@testing-library/jest-dom": "npm:@testing-library/jest-dom"
43
43
  },
44
44
  "exclude": [
45
+ ".*",
45
46
  "scripts/**",
46
47
  "dist/**",
47
- ".old/**",
48
48
  "**/*.test.ts"
49
49
  ]
50
50
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "rune-lab",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-beta.2",
4
4
  "packageManager": "pnpm@10.33.0"
5
- }
5
+ }
@@ -8,44 +8,50 @@ for await (const entry of Deno.readDir("./dist")) {
8
8
  await Deno.rename(`./dist/${entry.name}`, `./dist/src/${entry.name}`);
9
9
  }
10
10
 
11
- // Clean up any stray deno.ts artifact
12
- try {
13
- await Deno.remove("./dist/src/deno.ts");
14
- } catch { /* already gone */ }
15
-
16
- // ── 2. Generate dist/deno.json (standalone — no workspace members) ────────────
17
- const denoDistConfig = {
18
- name: denoConfig.name,
11
+ // ── Shared metadata ───────────────────────────────────────────────────────────
12
+ const exports = { ".": "./src/mod.ts" };
13
+ const imports = {
14
+ "esm-env": "npm:esm-env@^1.2.2",
15
+ "hotkeys-js": "npm:hotkeys-js@^4.0.2",
16
+ "dinero.js": "npm:dinero.js@^2.0.2",
17
+ "svelte": "npm:svelte@^5.55.0",
18
+ "svelte/": "npm:svelte@^5.55.0/",
19
+ "@sveltejs/kit": "npm:@sveltejs/kit@^2.55.0",
20
+ "@inlang/paraglide-js": "npm:@inlang/paraglide-js@^2.15.1",
21
+ "@inlang/": "npm:@inlang/paraglide-js@^2.15.1/",
22
+ };
23
+ const peerDependencies = {
24
+ "svelte": "^5.0.0",
25
+ "@inlang/paraglide-js": "^2.0.0",
26
+ };
27
+ const meta = {
19
28
  version: denoConfig.version,
20
29
  description: denoConfig.description,
21
30
  license: denoConfig.license,
22
- exports: { ".": "./src/mod.ts" },
23
31
  repository: denoConfig.repository,
24
32
  };
25
- await Deno.writeTextFile(
26
- "./dist/deno.json",
27
- JSON.stringify(denoDistConfig, null, 2),
28
- );
29
33
 
30
- // ── 3. Generate dist/package.json (derived from deno.json) ───────────────────
31
- const pkg = {
32
- name: "rune-lab",
33
- version: denoConfig.version,
34
- description: denoConfig.description,
34
+ // ── 2. Generate dist/deno.json ────────────────────────────────────────────────
35
+ await Deno.writeTextFile("./dist/deno.json", JSON.stringify({
36
+ name: "@yrrrrrf/rune-lab", // JSR scoped name
37
+ ...meta,
38
+ exports,
39
+ imports,
40
+ }, null, 2));
41
+
42
+ // ── 3. Generate dist/package.json ─────────────────────────────────────────────
43
+ await Deno.writeTextFile("./dist/package.json", JSON.stringify({
44
+ name: "rune-lab", // npm unscoped name
45
+ ...meta,
35
46
  type: "module",
36
- exports: { ".": "./src/mod.ts" },
37
- license: denoConfig.license,
38
- repository: denoConfig.repository,
39
- peerDependencies: {
40
- "svelte": "^5.0.0",
41
- "@inlang/paraglide-js": "^2.0.0",
42
- },
47
+ exports,
48
+ imports,
49
+ peerDependencies,
43
50
  keywords: ["svelte", "svelte-5", "runes", "ui", "components"],
44
- };
45
- await Deno.writeTextFile("./dist/package.json", JSON.stringify(pkg, null, 2));
51
+ }, null, 2));
46
52
 
47
53
  // ── 4. Copy metadata ──────────────────────────────────────────────────────────
48
54
  await Deno.copyFile("README.md", "./dist/README.md");
49
55
  await Deno.copyFile("LICENSE", "./dist/LICENSE");
50
56
 
51
- console.log(`dist/ (v${denoConfig.version})`);
57
+ console.log(`dist/ (v${denoConfig.version})`);
@@ -4,18 +4,23 @@ build:
4
4
  # * Clean up previous build
5
5
  rm -rf dist/
6
6
  # * Build library using vite-plus
7
- vp build
7
+ deno run -A npm:@sveltejs/package -- -i src -o dist
8
+ # vp build
8
9
  # * Build ESM package
9
- deno run -A scripts/build_pkg.ts
10
+ # deno run -A scripts/build_pkg.ts
10
11
  @echo "✓ build done"
11
12
 
12
13
  [doc('Publish to jsr')]
13
14
  [group('Deploy')]
14
15
  deploy: build
15
16
  # * Format build output
16
- deno fmt --no-config dist
17
- # # * Build npm package
18
- # deno task build:npm
19
- # # * Publish to jsr
20
- # deno publish
17
+ # deno fmt --no-config dist
18
+ deno fmt dist
19
+ # * Publish to npm
20
+ # (cd dist && bun publish)
21
+ # * Publish to jsr
22
+ # rm -rf /tmp/rune-lab
23
+ # cp -r dist/ /tmp/rune-lab
24
+ # (cd /tmp/rune-lab && deno publish --no-check)
25
+ # (cd /tmp/rune-lab && deno install && deno publish --no-check --allow-slow-types)
21
26
  @echo "✓ deploy done"
package/src/app.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ // See https://svelte.dev/docs/kit/types#app.d.ts
2
+ // for information about these interfaces
3
+ declare global {
4
+ namespace App {
5
+ // interface Error {}
6
+ // interface Locals {}
7
+ // interface PageData {}
8
+ // interface PageState {}
9
+ // interface Platform {}
10
+ }
11
+ }
12
+
13
+ export {};
package/src/app.html ADDED
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="icon" href="%sveltekit.assets%/favicon.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ %sveltekit.head%
8
+ </head>
9
+ <body data-sveltekit-preload-data="hover">
10
+ <div style="display: contents">%sveltekit.body%</div>
11
+ </body>
12
+ </html>
package/src/lib/mod.ts ADDED
@@ -0,0 +1,10 @@
1
+ export { default as RuneProvider } from "./RuneProvider.svelte";
2
+ // export { default as Icon } from "./Icon.svelte";
3
+
4
+ export * from "@rune-lab/kernel";
5
+ export * from "@rune-lab/layout";
6
+ export * from "@rune-lab/palettes";
7
+ export * from "@rune-lab/money";
8
+
9
+ // import denoConfig from "../deno.json" with { type: "json" };
10
+ // export const version = (): string => denoConfig.version;
@@ -0,0 +1,3 @@
1
+ <h1>Welcome to your library project</h1>
2
+ <p>Create your package using @sveltejs/package and preview/showcase your work with SvelteKit</p>
3
+ <p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
package/tsconfig.json CHANGED
@@ -16,26 +16,26 @@
16
16
  "skipLibCheck": true,
17
17
  "paths": {
18
18
  "@rune-lab/kernel": [
19
- "./src/kernel/src/mod.ts"
19
+ "./src/lib/kernel/src/mod.ts"
20
20
  ],
21
21
  "@rune-lab/layout": [
22
- "./src/runes/layout/src/mod.ts"
22
+ "./src/lib/runes/layout/src/mod.ts"
23
23
  ],
24
24
  "@rune-lab/palettes": [
25
- "./src/runes/palettes/src/mod.ts"
25
+ "./src/lib/runes/palettes/src/mod.ts"
26
26
  ],
27
27
  "@rune-lab/money": [
28
- "./src/runes/plugins/money/src/mod.ts"
28
+ "./src/lib/runes/plugins/money/src/mod.ts"
29
29
  ],
30
30
  "@rune-lab/i18n/*": [
31
- "./src/i18n/*"
31
+ "./src/lib/i18n/*"
32
32
  ]
33
33
  }
34
34
  },
35
35
  "exclude": [
36
+ ".*",
36
37
  "scripts/**",
37
38
  "dist/**",
38
- ".old/**",
39
39
  "**/*.test.ts"
40
40
  ]
41
41
  }
package/vite.config.ts CHANGED
@@ -11,34 +11,12 @@ export default defineConfig({
11
11
  svelte(),
12
12
  tailwindcss(),
13
13
  paraglideVitePlugin({
14
- project: "./src/i18n/project.inlang",
15
- outdir: "./src/i18n/paraglide",
14
+ project: "./src/lib/i18n/project.inlang",
15
+ outdir: "./src/lib/i18n/paraglide",
16
16
  }),
17
17
  ],
18
18
  test: {
19
19
  environment: "jsdom",
20
20
  setupFiles: ["@testing-library/jest-dom/vitest"],
21
21
  },
22
- build: {
23
- lib: {
24
- entry: "./src/mod.ts",
25
- formats: ["es"],
26
- },
27
- outDir: "dist",
28
- rollupOptions: {
29
- external: [
30
- "svelte",
31
- /^svelte\//,
32
- "esm-env",
33
- /^@sveltejs\//,
34
- /^@inlang\//,
35
- "hotkeys-js",
36
- ],
37
- output: {
38
- preserveModules: true,
39
- preserveModulesRoot: "src",
40
- entryFileNames: "[name].ts",
41
- },
42
- },
43
- },
44
22
  });
package/src/mod.ts DELETED
@@ -1,10 +0,0 @@
1
- export { default as RuneProvider } from "./RuneProvider.svelte";
2
- // export { default as Icon } from "./Icon.svelte";
3
-
4
- export * from "./kernel/src/mod.ts";
5
- export * from "./runes/layout/src/mod.ts";
6
- export * from "./runes/palettes/src/mod.ts";
7
- export * from "./runes/plugins/money/src/mod.ts";
8
-
9
- import denoConfig from "../deno.json" with { type: "json" };
10
- export const version = (): string => denoConfig.version;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes