@frigear-nu/widget 0.0.3 → 0.0.4
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
|
@@ -3,7 +3,7 @@ import type { WidgetDefinition } from '../../types.js';
|
|
|
3
3
|
import { sortWidgets } from './sort.js';
|
|
4
4
|
export type { WidgetDefinition, RegisteredWidget } from '../../types.js';
|
|
5
5
|
export { sortWidgets };
|
|
6
|
-
/** Id for a widget without one: its component's file name, e.g. `
|
|
6
|
+
/** Id for a widget without one: its component's file name, e.g. `NewUsers` for `.../NewUsers.vue`. */
|
|
7
7
|
export declare function deriveWidgetId(widget: Pick<WidgetDefinition, 'id' | 'component'>): string;
|
|
8
8
|
/**
|
|
9
9
|
* Build-time API for modules to contribute widgets to a named area, without the host wiring anything. Call it
|
|
@@ -13,7 +13,7 @@ export declare function deriveWidgetId(widget: Pick<WidgetDefinition, 'id' | 'co
|
|
|
13
13
|
* import { extendWidgets } from '@frigear-nu/widget/utils'
|
|
14
14
|
*
|
|
15
15
|
* extendWidgets(nuxt, 'admin.dashboard', {
|
|
16
|
-
* component: resolver.resolve('./runtime/app/widgets/
|
|
16
|
+
* component: resolver.resolve('./runtime/app/widgets/NewUsers.vue'),
|
|
17
17
|
* order: 10,
|
|
18
18
|
* })
|
|
19
19
|
* ```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frigear-nu/widget",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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": "1.0.
|
|
34
|
+
"@frigear-nu/module-kit": "1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@nuxt/devtools": "^3.4.2",
|