@lobb-js/studio 0.27.2 → 0.28.0

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.
@@ -0,0 +1,14 @@
1
+ <div class="min-h-screen flex items-center justify-center bg-background text-foreground p-6">
2
+ <div class="max-w-md text-center space-y-4">
3
+ <h1 class="text-2xl font-semibold">Lobb Studio</h1>
4
+ <p class="text-muted-foreground">
5
+ This application is served under <code class="font-mono">/studio</code>.
6
+ </p>
7
+ <a
8
+ href="/studio"
9
+ class="inline-block px-4 py-2 rounded-md bg-primary text-primary-foreground hover:opacity-90 transition"
10
+ >
11
+ Go to /studio
12
+ </a>
13
+ </div>
14
+ </div>
@@ -0,0 +1,26 @@
1
+ export default Landing;
2
+ type Landing = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string;
8
+ };
9
+ declare const Landing: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
+ $$bindings?: Bindings;
17
+ } & Exports;
18
+ (internal: unknown, props: {
19
+ $$events?: Events;
20
+ $$slots?: Slots;
21
+ }): Exports & {
22
+ $set?: any;
23
+ $on?: any;
24
+ };
25
+ z_$$bindings?: Bindings;
26
+ }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type { ExtensionProps, Extension, ExtensionUtils } from "./extensions/extension.types";
2
2
  export { default as Studio } from "./components/Studio.svelte";
3
+ export { default as Landing } from "./components/landing.svelte";
3
4
  export { Button } from "./components/ui/button";
4
5
  export { Input } from "./components/ui/input";
5
6
  export { Separator } from "./components/ui/separator";
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as Studio } from "./components/Studio.svelte";
2
+ export { default as Landing } from "./components/landing.svelte";
2
3
  export { Button } from "./components/ui/button";
3
4
  export { Input } from "./components/ui/input";
4
5
  export { Separator } from "./components/ui/separator";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lobb-js/studio",
3
3
  "license": "UNLICENSED",
4
- "version": "0.27.2",
4
+ "version": "0.28.0",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -29,11 +29,9 @@
29
29
  },
30
30
  "scripts": {
31
31
  "dev": "vite",
32
- "build": "rm -rf dist && vite build --config vite.build.svelte.config.ts && vite build",
33
32
  "package": "svelte-package --input src/lib",
34
33
  "preview": "vite preview",
35
34
  "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
36
- "build_extension": "vite build --config vite.extension.config.ts",
37
35
  "storybook": "storybook dev -p 6006",
38
36
  "build-storybook": "storybook build",
39
37
  "test": "vitest",
@@ -42,7 +40,7 @@
42
40
  "postpublish": "./scripts/postpublish.sh"
43
41
  },
44
42
  "devDependencies": {
45
- "@lobb-js/core": "^0.31.3",
43
+ "@lobb-js/core": "^0.31.8",
46
44
  "@chromatic-com/storybook": "^4.1.2",
47
45
  "@storybook/addon-a11y": "^10.0.1",
48
46
  "@storybook/addon-docs": "^10.0.1",
@@ -69,7 +67,6 @@
69
67
  "tw-animate-css": "^1.4.0",
70
68
  "typescript": "~5.9.3",
71
69
  "vite": "6.3.3",
72
- "vite-plugin-css-injected-by-js": "^3.5.2",
73
70
  "vitest": "^4.0.5"
74
71
  },
75
72
  "peerDependencies": {
@@ -0,0 +1,14 @@
1
+ <div class="min-h-screen flex items-center justify-center bg-background text-foreground p-6">
2
+ <div class="max-w-md text-center space-y-4">
3
+ <h1 class="text-2xl font-semibold">Lobb Studio</h1>
4
+ <p class="text-muted-foreground">
5
+ This application is served under <code class="font-mono">/studio</code>.
6
+ </p>
7
+ <a
8
+ href="/studio"
9
+ class="inline-block px-4 py-2 rounded-md bg-primary text-primary-foreground hover:opacity-90 transition"
10
+ >
11
+ Go to /studio
12
+ </a>
13
+ </div>
14
+ </div>
package/src/lib/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type { ExtensionProps, Extension, ExtensionUtils } from "./extensions/extension.types"
2
2
 
3
3
  export { default as Studio } from "./components/Studio.svelte";
4
+ export { default as Landing } from "./components/landing.svelte";
4
5
  export { Button } from "./components/ui/button";
5
6
  export { Input } from "./components/ui/input";
6
7
  export { Separator } from "./components/ui/separator";
@@ -13,6 +13,17 @@ export function lobbExtensionsPlugin() {
13
13
 
14
14
  return {
15
15
  name: "lobb-studio-extensions",
16
+ // Studio.svelte imports `virtual:lobb-studio-extensions` — a Vite-only
17
+ // virtual module. Vite's esbuild-based dep optimizer can't resolve it,
18
+ // so we exclude @lobb-js/studio from optimizeDeps to keep the studio's
19
+ // sources on the plugin pipeline (where this plugin can resolve them).
20
+ config() {
21
+ return {
22
+ optimizeDeps: {
23
+ exclude: ["@lobb-js/studio"],
24
+ },
25
+ };
26
+ },
16
27
  resolveId(id) {
17
28
  if (id === virtualModuleId) return resolvedVirtualModuleId;
18
29
  },