@object-ui/plugin-dashboard 3.1.0 → 3.1.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @object-ui/plugin-dashboard@3.1.0 build /home/runner/work/objectui/objectui/packages/plugin-dashboard
2
+ > @object-ui/plugin-dashboard@3.1.2 build /home/runner/work/objectui/objectui/packages/plugin-dashboard
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
@@ -8,46 +8,13 @@ transforming...
8
8
  rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
- src/DashboardRenderer.tsx:203:44 - error TS2339: Property 'filter' does not exist on type '{ provider: "object"; object?: string | undefined; aggregate?: any; }'.
12
-
13
- 203 filter: widgetData.filter || widget.filter,
14
-    ~~~~~~
15
- src/DashboardRenderer.tsx:204:44 - error TS2339: Property 'searchable' does not exist on type 'DashboardWidgetSchema'.
16
-
17
- 204 searchable: widget.searchable ?? false,
18
-    ~~~~~~~~~~
19
- src/DashboardRenderer.tsx:205:44 - error TS2339: Property 'pagination' does not exist on type 'DashboardWidgetSchema'.
20
-
21
- 205 pagination: widget.pagination ?? false,
22
-    ~~~~~~~~~~
23
- src/DashboardRenderer.tsx:217:44 - error TS2339: Property 'searchable' does not exist on type 'DashboardWidgetSchema'.
24
-
25
- 217 searchable: widget.searchable ?? false,
26
-    ~~~~~~~~~~
27
- src/DashboardRenderer.tsx:218:44 - error TS2339: Property 'pagination' does not exist on type 'DashboardWidgetSchema'.
28
-
29
- 218 pagination: widget.pagination ?? false,
30
-    ~~~~~~~~~~
31
- src/DashboardRenderer.tsx:244:44 - error TS2339: Property 'filter' does not exist on type '{ provider: "object"; object?: string | undefined; aggregate?: any; }'.
32
-
33
- 244 filter: widgetData.filter || widget.filter,
34
-    ~~~~~~
35
- src/WidgetConfigPanel.tsx:523:70 - error TS2339: Property 'type' does not exist on type '{ title: any; description: any; }'.
36
-
37
- 523 () => buildWidgetSchema(availableObjects, availableFields, draft.type),
38
-    ~~~~
39
- src/WidgetConfigPanel.tsx:524:47 - error TS2339: Property 'type' does not exist on type '{ title: any; description: any; }'.
40
-
41
- 524 [availableObjects, availableFields, draft.type],
42
-    ~~~~
43
-
44
11
  computing gzip size...
45
12
  dist/index.css  2.40 kB │ gzip: 0.58 kB
46
13
  dist/index.js 186.28 kB │ gzip: 45.82 kB
47
- [vite:dts] Declaration files built in 30232ms.
14
+ [vite:dts] Declaration files built in 28822ms.
48
15
  
49
16
  No name was provided for external module "lucide-react" in "output.globals" – guessing "LucideIcons".
50
17
  No name was provided for external module "clsx" in "output.globals" – guessing "clsx".
51
18
  dist/index.css  2.40 kB │ gzip: 0.58 kB
52
19
  dist/index.umd.cjs 118.26 kB │ gzip: 36.48 kB
53
- ✓ built in 36.95s
20
+ ✓ built in 35.90s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @object-ui/plugin-dashboard
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @object-ui/types@3.1.2
8
+ - @object-ui/core@3.1.2
9
+ - @object-ui/react@3.1.2
10
+ - @object-ui/components@3.1.2
11
+
12
+ ## 3.1.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+ - @object-ui/types@3.1.1
18
+ - @object-ui/components@3.1.1
19
+ - @object-ui/core@3.1.1
20
+ - @object-ui/react@3.1.1
21
+
3
22
  ## 3.0.3
4
23
 
5
24
  ### Patch Changes
@@ -10,5 +10,6 @@ export declare function isObjectProvider(widgetData: unknown): widgetData is {
10
10
  provider: 'object';
11
11
  object?: string;
12
12
  aggregate?: any;
13
+ filter?: any;
13
14
  };
14
15
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,CAAA;CAAE,CAO5H"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,GAAG,CAAA;CAAE,CAO1I"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-dashboard",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Dashboard plugin for Object UI",
@@ -21,10 +21,10 @@
21
21
  "react-dom": "19.2.4",
22
22
  "react-grid-layout": "^2.2.2",
23
23
  "tailwind-merge": "^3.5.0",
24
- "@object-ui/components": "3.1.0",
25
- "@object-ui/core": "3.1.0",
26
- "@object-ui/react": "3.1.0",
27
- "@object-ui/types": "3.1.0"
24
+ "@object-ui/components": "3.1.2",
25
+ "@object-ui/core": "3.1.2",
26
+ "@object-ui/react": "3.1.2",
27
+ "@object-ui/types": "3.1.2"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": "^18.0.0",
@@ -509,7 +509,7 @@ export function WidgetConfigPanel({
509
509
  availableFields,
510
510
  }: WidgetConfigPanelProps) {
511
511
  // Pre-process config to resolve any I18nLabel values for title/description
512
- const normalizedConfig = React.useMemo(() => ({
512
+ const normalizedConfig: Record<string, any> = React.useMemo(() => ({
513
513
  ...config,
514
514
  title: typeof config.title === 'object' ? resolveLabel(config.title) : config.title,
515
515
  description: typeof config.description === 'object' ? resolveLabel(config.description) : config.description,
package/src/utils.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  /** Returns true when the widget data config uses provider: 'object' (async data source). */
10
- export function isObjectProvider(widgetData: unknown): widgetData is { provider: 'object'; object?: string; aggregate?: any } {
10
+ export function isObjectProvider(widgetData: unknown): widgetData is { provider: 'object'; object?: string; aggregate?: any; filter?: any } {
11
11
  return (
12
12
  widgetData != null &&
13
13
  typeof widgetData === 'object' &&