@object-ui/plugin-grid 3.0.2 → 3.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.
Files changed (24) hide show
  1. package/.turbo/turbo-build.log +3 -48
  2. package/CHANGELOG.md +11 -0
  3. package/dist/index.d.ts +1 -1
  4. package/package.json +8 -8
  5. package/tsconfig.json +2 -1
  6. package/dist/packages/plugin-grid/src/ListColumnExtensions.test.d.ts +0 -0
  7. package/dist/packages/plugin-grid/src/ListColumnSchema.test.d.ts +0 -1
  8. package/dist/packages/plugin-grid/src/ObjectGrid.EdgeCases.stories.d.ts +0 -25
  9. package/dist/packages/plugin-grid/src/ObjectGrid.msw.test.d.ts +0 -0
  10. package/dist/packages/plugin-grid/src/ObjectGrid.stories.d.ts +0 -33
  11. package/dist/packages/plugin-grid/src/VirtualGrid.test.d.ts +0 -8
  12. package/dist/packages/plugin-grid/src/__tests__/InlineEditing.test.d.ts +0 -0
  13. package/dist/packages/plugin-grid/src/__tests__/VirtualGrid.test.d.ts +0 -0
  14. package/dist/packages/plugin-grid/src/__tests__/accessibility.test.d.ts +0 -0
  15. package/dist/packages/plugin-grid/src/__tests__/performance-benchmark.test.d.ts +0 -0
  16. package/dist/packages/plugin-grid/src/__tests__/view-states.test.d.ts +0 -0
  17. package/dist/packages/plugin-grid/src/index.test.d.ts +0 -1
  18. package/src/VirtualGrid.test.tsx +0 -23
  19. /package/dist/{packages/plugin-grid → plugin-grid}/src/InlineEditing.d.ts +0 -0
  20. /package/dist/{packages/plugin-grid → plugin-grid}/src/ObjectGrid.d.ts +0 -0
  21. /package/dist/{packages/plugin-grid → plugin-grid}/src/VirtualGrid.d.ts +0 -0
  22. /package/dist/{packages/plugin-grid → plugin-grid}/src/index.d.ts +0 -0
  23. /package/dist/{packages/plugin-grid → plugin-grid}/src/useGroupedData.d.ts +0 -0
  24. /package/dist/{packages/plugin-grid → plugin-grid}/src/useRowColor.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
 
2
- > @object-ui/plugin-grid@3.0.2 build /home/runner/work/objectui/objectui/packages/plugin-grid
2
+ > @object-ui/plugin-grid@3.0.3 build /home/runner/work/objectui/objectui/packages/plugin-grid
3
3
  > vite build
4
4
 
5
5
  vite v7.3.1 building client environment for production...
@@ -8,54 +8,9 @@ transforming...
8
8
  rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
- ../../examples/crm/src/objects/contact.object.ts:3:14 - error TS2742: The inferred type of 'ContactObject' cannot be named without a reference to 'examples/crm/node_modules/@objectstack/spec/dist/state-machine.zod-DoC0JvQb'. This is likely not portable. A type annotation is necessary.
12
-
13
- 3 export const ContactObject = ObjectSchema.create({
14
-    ~~~~~~~~~~~~~
15
- src/ObjectGrid.EdgeCases.stories.tsx:4:43 - error TS2307: Cannot find module '@storybook-config/datasource' or its corresponding type declarations.
16
-
17
- 4 import { createStorybookDataSource } from '@storybook-config/datasource';
18
-    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
- src/ObjectGrid.stories.tsx:4:43 - error TS2307: Cannot find module '@storybook-config/datasource' or its corresponding type declarations.
20
-
21
- 4 import { createStorybookDataSource } from '@storybook-config/datasource';
22
-    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
- src/__tests__/VirtualGrid.test.tsx:23:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
24
-
25
- 23 const items = [];
26
-    ~~~~~
27
- src/__tests__/VirtualGrid.test.tsx:28:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
28
-
29
- 28 getVirtualItems: () => items,
30
-    ~~~~~
31
- src/__tests__/accessibility.test.tsx:28:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
32
-
33
- 28 const items = [];
34
-    ~~~~~
35
- src/__tests__/accessibility.test.tsx:33:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
36
-
37
- 33 getVirtualItems: () => items,
38
-    ~~~~~
39
- src/__tests__/performance-benchmark.test.tsx:27:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
40
-
41
- 27 const items = [];
42
-    ~~~~~
43
- src/__tests__/performance-benchmark.test.tsx:32:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
44
-
45
- 32 getVirtualItems: () => items,
46
-    ~~~~~
47
- src/__tests__/view-states.test.tsx:27:11 - error TS7034: Variable 'items' implicitly has type 'any[]' in some locations where its type cannot be determined.
48
-
49
- 27 const items = [];
50
-    ~~~~~
51
- src/__tests__/view-states.test.tsx:32:30 - error TS7005: Variable 'items' implicitly has an 'any[]' type.
52
-
53
- 32 getVirtualItems: () => items,
54
-    ~~~~~
55
-
56
11
  computing gzip size...
57
12
  dist/index.js 58.40 kB │ gzip: 15.71 kB
58
- [vite:dts] Declaration files built in 20325ms.
13
+ [vite:dts] Declaration files built in 16732ms.
59
14
  
60
15
  No name was provided for external module "@object-ui/core" in "output.globals" – guessing "core".
61
16
  No name was provided for external module "@object-ui/react" in "output.globals" – guessing "react".
@@ -63,4 +18,4 @@ computing gzip size...
63
18
  No name was provided for external module "@object-ui/components" in "output.globals" – guessing "components".
64
19
  No name was provided for external module "lucide-react" in "output.globals" – guessing "lucideReact".
65
20
  dist/index.umd.cjs 40.64 kB │ gzip: 13.64 kB
66
- ✓ built in 21.44s
21
+ ✓ built in 18.02s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @object-ui/plugin-grid
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - @object-ui/types@3.0.3
8
+ - @object-ui/core@3.0.3
9
+ - @object-ui/react@3.0.3
10
+ - @object-ui/components@3.0.3
11
+ - @object-ui/fields@3.0.3
12
+ - @object-ui/mobile@3.0.3
13
+
3
14
  ## 3.0.2
4
15
 
5
16
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './packages/plugin-grid/src/index'
1
+ export * from './plugin-grid/src/index'
2
2
  export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-grid",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Grid plugin for Object UI",
@@ -17,12 +17,12 @@
17
17
  "dependencies": {
18
18
  "@tanstack/react-virtual": "^3.13.18",
19
19
  "lucide-react": "^0.563.0",
20
- "@object-ui/components": "3.0.2",
21
- "@object-ui/core": "3.0.2",
22
- "@object-ui/fields": "3.0.2",
23
- "@object-ui/mobile": "3.0.2",
24
- "@object-ui/react": "3.0.2",
25
- "@object-ui/types": "3.0.2"
20
+ "@object-ui/components": "3.0.3",
21
+ "@object-ui/core": "3.0.3",
22
+ "@object-ui/fields": "3.0.3",
23
+ "@object-ui/mobile": "3.0.3",
24
+ "@object-ui/react": "3.0.3",
25
+ "@object-ui/types": "3.0.3"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^18.0.0 || ^19.0.0",
@@ -34,7 +34,7 @@
34
34
  "typescript": "^5.9.3",
35
35
  "vite": "^7.3.1",
36
36
  "vite-plugin-dts": "^4.5.4",
37
- "@object-ui/data-objectstack": "3.0.2"
37
+ "@object-ui/data-objectstack": "3.0.3"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "vite build",
package/tsconfig.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "outDir": "dist",
5
5
  "jsx": "react-jsx"
6
6
  },
7
- "include": ["src"]
7
+ "include": ["src"],
8
+ "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]
8
9
  }
@@ -1,25 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- declare const meta: {
3
- title: string;
4
- component: import('react').ForwardRefExoticComponent<Omit<{
5
- schema: import('../../core/src').SchemaNode;
6
- } & Record<string, any>, "ref"> & import('react').RefAttributes<any>>;
7
- parameters: {
8
- layout: string;
9
- };
10
- tags: string[];
11
- argTypes: {
12
- schema: {
13
- table: {
14
- disable: true;
15
- };
16
- };
17
- };
18
- };
19
- export default meta;
20
- type Story = StoryObj<typeof meta>;
21
- export declare const EmptyData: Story;
22
- export declare const SingleRow: Story;
23
- export declare const ManyColumns: Story;
24
- export declare const LongCellValues: Story;
25
- export declare const NullAndUndefinedValues: Story;
@@ -1,33 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- declare const meta: {
3
- title: string;
4
- component: import('react').ForwardRefExoticComponent<Omit<{
5
- schema: import('../../core/src').SchemaNode;
6
- } & Record<string, any>, "ref"> & import('react').RefAttributes<any>>;
7
- parameters: {
8
- layout: string;
9
- };
10
- tags: string[];
11
- argTypes: {
12
- schema: {
13
- table: {
14
- disable: true;
15
- };
16
- };
17
- };
18
- };
19
- export default meta;
20
- type Story = StoryObj<typeof meta>;
21
- export declare const Default: Story;
22
- export declare const WithRowActions: Story;
23
- /**
24
- * CRM Deals Pipeline — demonstrates professional data formatting:
25
- * - Currency with thousand separators (Amount column, right-aligned)
26
- * - Percentage with progress bar (Probability column, right-aligned)
27
- * - Formatted dates (Close Date column)
28
- * - Colored badges for stage/status (Stage column)
29
- * - Bold clickable name as primary link (Name column)
30
- * - Empty value placeholder (Account column)
31
- */
32
- export declare const CRMDeals: Story;
33
- export declare const EditableGrid: Story;
@@ -1,8 +0,0 @@
1
- /**
2
- * ObjectUI
3
- * Copyright (c) 2024-present ObjectStack Inc.
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- /**
2
- * ObjectUI
3
- * Copyright (c) 2024-present ObjectStack Inc.
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
-
9
- import { describe, it, expect } from 'vitest';
10
- import { VirtualGrid } from './VirtualGrid';
11
-
12
- describe('VirtualGrid', () => {
13
- it('should be exported', () => {
14
- expect(VirtualGrid).toBeDefined();
15
- expect(typeof VirtualGrid).toBe('function');
16
- });
17
-
18
- it('should have the correct display name', () => {
19
- // Verify it's a React component
20
- expect(VirtualGrid.name).toBe('VirtualGrid');
21
- });
22
- });
23
-