@object-ui/plugin-view 0.5.0 → 3.0.0

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,21 +1,22 @@
1
1
 
2
- > @object-ui/plugin-view@0.5.0 build /home/runner/work/objectui/objectui/packages/plugin-view
2
+ > @object-ui/plugin-view@3.0.0 build /home/runner/work/objectui/objectui/packages/plugin-view
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
6
6
  transforming...
7
- ✓ 11 modules transformed.
7
+ ✓ 16 modules transformed.
8
8
  rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/index.js 17.10 kB │ gzip: 5.03 kB
13
- [vite:dts] Declaration files built in 4664ms.
12
+ dist/index.js 47.74 kB │ gzip: 12.27 kB
13
+ [vite:dts] Declaration files built in 3998ms.
14
14
  
15
15
  No name was provided for external module "@object-ui/core" in "output.globals" – guessing "core".
16
16
  No name was provided for external module "@object-ui/plugin-grid" in "output.globals" – guessing "pluginGrid".
17
17
  No name was provided for external module "@object-ui/plugin-form" in "output.globals" – guessing "pluginForm".
18
18
  No name was provided for external module "@object-ui/components" in "output.globals" – guessing "components".
19
19
  No name was provided for external module "lucide-react" in "output.globals" – guessing "lucideReact".
20
- dist/index.umd.cjs 11.73 kB │ gzip: 4.45 kB
21
- ✓ built in 5.31s
20
+ No name was provided for external module "@object-ui/react" in "output.globals" – guessing "react".
21
+ dist/index.umd.cjs 33.55 kB │ gzip: 10.79 kB
22
+ ✓ built in 4.41s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @object-ui/plugin-view
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 87979c3: Upgrade to @objectstack v3.0.0 and console bundle optimization
8
+ - Upgraded all @objectstack/\* packages from ^2.0.7 to ^3.0.0
9
+ - Breaking change migrations: Hub → Cloud namespace, definePlugin removed, PaginatedResult.value → .records, PaginatedResult.count → .total, client.meta.getObject() → client.meta.getItem()
10
+ - Console bundle optimization: split monolithic 3.7 MB chunk into 17 granular cacheable chunks (95% main entry reduction)
11
+ - Added gzip + brotli pre-compression via vite-plugin-compression2
12
+ - Lazy MSW loading for build:server (~150 KB gzip saved)
13
+ - Added bundle analysis with rollup-plugin-visualizer
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [87979c3]
18
+ - @object-ui/types@3.0.0
19
+ - @object-ui/core@3.0.0
20
+ - @object-ui/react@3.0.0
21
+ - @object-ui/components@3.0.0
22
+ - @object-ui/plugin-form@3.0.0
23
+ - @object-ui/plugin-grid@3.0.0
24
+
25
+ ## 2.0.0
26
+
27
+ ### Major Changes
28
+
29
+ - b859617: Release v1.0.0 — unify all package versions to 1.0.0
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [b859617]
34
+ - @object-ui/types@2.0.0
35
+ - @object-ui/core@2.0.0
36
+ - @object-ui/react@2.0.0
37
+ - @object-ui/components@2.0.0
38
+ - @object-ui/plugin-form@2.0.0
39
+ - @object-ui/plugin-grid@2.0.0
40
+
3
41
  ## 0.3.1
4
42
 
5
43
  ### Patch Changes
package/README.md CHANGED
@@ -11,6 +11,7 @@ Object View plugin for Object UI - Unified component for displaying and managing
11
11
  - **Field Mapping** - Automatic field type detection
12
12
  - **Validation** - Schema-based validation
13
13
  - **ObjectQL Integration** - Native ObjectStack support
14
+ - **View Controls** - View switcher, filter UI, and sort UI components
14
15
 
15
16
  ## Installation
16
17
 
@@ -66,6 +67,63 @@ Unified view component for ObjectQL objects:
66
67
  }
67
68
  ```
68
69
 
70
+ ### ViewSwitcher
71
+
72
+ Toggle between multiple view configurations:
73
+
74
+ ```typescript
75
+ {
76
+ type: 'view-switcher',
77
+ views: [
78
+ { type: 'grid', label: 'Grid', schema: { type: 'text', content: 'Grid content' } },
79
+ { type: 'kanban', label: 'Kanban', schema: { type: 'text', content: 'Kanban content' } }
80
+ ],
81
+ defaultView: 'grid',
82
+ variant: 'tabs',
83
+ position: 'top',
84
+ persistPreference: true,
85
+ storageKey: 'my-view-switcher'
86
+ }
87
+ ```
88
+
89
+ ### FilterUI
90
+
91
+ Render a filter toolbar with multiple field types:
92
+
93
+ ```typescript
94
+ {
95
+ type: 'filter-ui',
96
+ layout: 'popover',
97
+ showApply: true,
98
+ showClear: true,
99
+ filters: [
100
+ { field: 'name', label: 'Name', type: 'text', placeholder: 'Search name' },
101
+ { field: 'status', label: 'Status', type: 'select', options: [
102
+ { label: 'Open', value: 'open' },
103
+ { label: 'Closed', value: 'closed' }
104
+ ] },
105
+ { field: 'created_at', label: 'Created', type: 'date-range' }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ ### SortUI
111
+
112
+ Configure sorting with dropdowns or buttons:
113
+
114
+ ```typescript
115
+ {
116
+ type: 'sort-ui',
117
+ variant: 'dropdown',
118
+ multiple: true,
119
+ fields: [
120
+ { field: 'name', label: 'Name' },
121
+ { field: 'created_at', label: 'Created At' }
122
+ ],
123
+ sort: [{ field: 'name', direction: 'asc' }]
124
+ }
125
+ ```
126
+
69
127
  ## Examples
70
128
 
71
129
  ### Grid View