@brickflow/ui 0.0.6 → 0.0.8

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "configKey": "brickflowUi",
6
6
  "name": "@brickflow/ui",
7
- "version": "0.0.6",
7
+ "version": "0.0.8",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { createBrickGreeting } from '@brickflow/utils';
2
1
  import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir } from '@nuxt/kit';
3
2
  import tailwindcss from '@tailwindcss/vite';
4
3
 
@@ -19,7 +18,7 @@ const module$1 = defineNuxtModule({
19
18
  const currentConfig = nuxt.options.runtimeConfig.public.brickflowUi ?? {};
20
19
  nuxt.options.runtimeConfig.public.brickflowUi = {
21
20
  ...currentConfig,
22
- message: createBrickGreeting(options.target ?? "world"),
21
+ message: "world",
23
22
  target: options.target ?? "world"
24
23
  };
25
24
  nuxt.options.css.push(resolver.resolve("./runtime/assets/css/main.css"));
@@ -1,13 +1,14 @@
1
- import { createBrickGreeting, toBrickClassName } from "@brickflow/utils";
2
1
  import { useRuntimeConfig } from "nuxt/app";
3
2
  import { computed } from "vue";
4
3
  export const usebrickflow = () => {
5
4
  const config = useRuntimeConfig();
6
5
  const brickflowConfig = computed(() => config.public.brickflowUi ?? {});
7
6
  const target = computed(() => brickflowConfig.value.target ?? "world");
7
+ const message = computed(() => brickflowConfig.value.message ?? `Hello ${target.value}`);
8
+ const className = computed(() => target.value === "world" ? "ring-1 ring-brick-100/70" : "");
8
9
  return {
9
- className: computed(() => `brick-demo--${toBrickClassName(target.value)}`),
10
- message: computed(() => createBrickGreeting(target.value)),
10
+ className,
11
+ message,
11
12
  target
12
13
  };
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickflow/ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "description": "brickflow UI Nuxt module.",
6
6
  "files": [
@@ -35,8 +35,8 @@
35
35
  "@nuxt/kit": "4.4.6",
36
36
  "@nuxt/module-builder": "1.0.2",
37
37
  "nuxt": "4.4.6",
38
- "vue": "3.5.34",
39
- "vue-tsc": "3.3.1"
38
+ "vue": "3.5.35",
39
+ "vue-tsc": "3.3.2"
40
40
  },
41
41
  "author": "",
42
42
  "license": "ISC"