@tenorlab/vue-dashboard 1.4.904 → 1.5.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 (2) hide show
  1. package/README.md +2 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -135,9 +135,9 @@ import {
135
135
  TWidgetFactory,
136
136
  } from '@tenorlab/vue-dashboard'
137
137
  import {
138
- createStaticEntry as _createStaticEntry,
138
+ createStaticEntry,
139
139
  localWidgetDiscovery,
140
- remoteWidgetDiscovery as _remoteWidgetDiscovery,
140
+ remoteWidgetDiscovery,
141
141
  } from '@tenorlab/vue-dashboard/core'
142
142
 
143
143
  import WidgetRecentPaymentInfo from './other-widgets/WidgetRecentPaymentInfo.vue'
@@ -146,9 +146,6 @@ import WidgetRecentPaymentInfo from './other-widgets/WidgetRecentPaymentInfo.vue
146
146
  const bundledWidgetsSrcPath = '/src/bundled-widgets'
147
147
  const asyncWidgetsSrcPath = '/src/async-widgets'
148
148
 
149
- import { markRaw } from 'vue'
150
- import type { Component as VueComponent } from 'vue'
151
-
152
149
  // Use Vite's Glob Import
153
150
  // This creates an object where the keys are file paths, and the values are the TWidgetFactory functions.
154
151
  // We target the 'index.ts' files within the widgets subdirectories.
@@ -169,18 +166,6 @@ const allMetaModules = import.meta.glob('/src/**/widget-*/meta.ts', {
169
166
 
170
167
  const hasPermission = (_user: any, _permission: string) => true
171
168
 
172
- /**
173
- * @name createStaticEntry
174
- * Wraps around createStaticEntry from npm package to ensure the component added is marked raw (using markRaw)
175
- */
176
- export const createStaticEntry = (
177
- key: string,
178
- component: VueComponent,
179
- metaData?: TWidgetMetaInfoBase,
180
- ): [string, IDynamicWidgetCatalogEntry] => {
181
- return _createStaticEntry(key, markRaw(component), metaData)
182
- }
183
-
184
169
  /**
185
170
  * @name getWidgetCatalog
186
171
  * @description Dynamically builds the widgets catalog based on user type and operations/permissions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenorlab/vue-dashboard",
3
- "version": "1.4.904",
3
+ "version": "1.5.2",
4
4
  "description": "Foundation components for creating user-configurable dashboards in Vue",
5
5
  "author": "Damiano Fusco",
6
6
  "type": "module",