@frigear-nu/widget 0.0.1 → 0.0.3

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frigear-nu/widget",
3
3
  "configKey": "widgets",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  name: string;
3
3
  context?: Record<string, unknown>;
4
+ gridClass?: string;
4
5
  };
5
6
  declare var __VLS_1: {
6
7
  widget: any;
@@ -2,7 +2,8 @@
2
2
  import { getWidgetComponent } from "../utils/components";
3
3
  const props = defineProps({
4
4
  name: { type: String, required: true },
5
- context: { type: Object, required: false }
5
+ context: { type: Object, required: false },
6
+ gridClass: { type: String, required: false }
6
7
  });
7
8
  const { data: widgets } = await useWidgets(props.name, () => props.context);
8
9
  </script>
@@ -10,7 +11,7 @@ const { data: widgets } = await useWidgets(props.name, () => props.context);
10
11
  <template>
11
12
  <div
12
13
  v-if="widgets?.length"
13
- class="grid grid-cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-4 md:grid-cols-4 md:[&>*]:[grid-column:span_var(--widget-span,1)]"
14
+ :class="gridClass ?? 'grid grid-cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-4 md:grid-cols-4 md:[&>*]:[grid-column:span_var(--widget-span,1)]'"
14
15
  >
15
16
  <template
16
17
  v-for="widget in widgets"
@@ -1,6 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  name: string;
3
3
  context?: Record<string, unknown>;
4
+ gridClass?: string;
4
5
  };
5
6
  declare var __VLS_1: {
6
7
  widget: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frigear-nu/widget",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Named widget areas - modules contribute widgets (extendWidgets) and hosts render them with <WidgetArea>, with ordering and a filter hook for gating.",
5
5
  "homepage": "https://docs.frigear.dev/modules/widget",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@nuxt/kit": "^4.6.0",
34
- "@frigear-nu/module-kit": "0.1.6"
34
+ "@frigear-nu/module-kit": "1.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@nuxt/devtools": "^3.4.2",