@opengrid-ui/pro 0.1.38 → 0.1.39

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/llms.txt CHANGED
@@ -15,8 +15,8 @@ npm install @opengrid-ui/core @opengrid-ui/pro
15
15
  GitHub Releases also provides versioned tarballs with SHA-256 checksums.
16
16
 
17
17
  ```sh
18
- release=https://github.com/Han-wangyu/opengrid-ui/releases/download/v0.1.38
19
- npm install "$release/opengrid-ui-core-0.1.38.tgz" "$release/opengrid-ui-pro-0.1.38.tgz"
18
+ release=https://github.com/Han-wangyu/opengrid-ui/releases/download/v0.1.39
19
+ npm install "$release/opengrid-ui-core-0.1.39.tgz" "$release/opengrid-ui-pro-0.1.39.tgz"
20
20
  ```
21
21
 
22
22
  ```tsx
@@ -116,6 +116,8 @@ For master/detail layouts, the virtualizer retains visual row positions. The spr
116
116
 
117
117
  Core's opt-in column reordering applies sibling preferences to the definitions passed to TanStack. A pointer drag resolves the destination against logical column boxes and holds capture on the header while center columns virtualize. The same sibling rules serve keyboard moves and successive grip activation.
118
118
 
119
+ Row reorder shares pointer capture and body-edge scrolling with spreadsheet gestures. Its destination follows logical row geometry, including scaled tracks and variable heights. The host receives a move between row IDs and visual positions through `onRowMove`.
120
+
119
121
  The horizontal virtualizer stores column offsets and pin boundaries with the layout. A binary search locates the first visible center column. The mounted leaves identify the grouped headers using a per-pane ancestry index, so horizontal scroll work follows the visible columns, pinned columns and header depth.
120
122
 
121
123
  Local [merged cells](https://github.com/Han-wangyu/opengrid-ui/blob/main/docs/specs/core-engine.spec.md#merged-cells) use a rectangle index over logical rows and columns. The viewport mounts each intersecting merge once, preserves the anchor used for accessibility and edits, and clips its paint to the scaled track beneath pinned columns.
@@ -50,6 +50,11 @@ declare const en: {
50
50
  filter: string;
51
51
  clearFilter: string;
52
52
  exportError: string;
53
+ rowReordering: {
54
+ picked: (position: number) => string;
55
+ moved: (from: number, to: number) => string;
56
+ cancelMove: string;
57
+ };
53
58
  columnReordering: {
54
59
  move: (column: string) => string;
55
60
  picked: (column: string) => string;
@@ -69,8 +74,8 @@ declare const en: {
69
74
  };
70
75
  };
71
76
  export type ResolvedProMessages = typeof en;
72
- type WorkbookMessage = 'exportingXlsx' | 'cancelExport';
73
- export type ProMessages = Omit<ResolvedProMessages, WorkbookMessage> & Partial<Pick<ResolvedProMessages, WorkbookMessage>>;
77
+ type OptionalMessage = 'exportingXlsx' | 'cancelExport' | 'rowReordering';
78
+ export type ProMessages = Omit<ResolvedProMessages, OptionalMessage> & Partial<Pick<ResolvedProMessages, OptionalMessage>>;
74
79
  export type ProLocale = GridLocale | Partial<ProMessages>;
75
80
  export declare function messagesFor(host: GridLocale, override: ProLocale | undefined): ResolvedProMessages;
76
81
  export {};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@opengrid-ui/pro","version":"0.1.38","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/Han-wangyu/opengrid-ui.git","directory":"packages/pro"},"files":["dist","LICENSE"],"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./styles.css":"./dist/styles.css"},"sideEffects":["**/*.css"],"publishConfig":{"access":"public"},"scripts":{"build":"node ../../scripts/build-package.mjs"},"peerDependencies":{"react":"^17.0.2 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.2 || ^18.0.0 || ^19.0.0"},"dependencies":{"@opengrid-ui/core":"^0.1.38"}}
1
+ {"name":"@opengrid-ui/pro","version":"0.1.39","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/Han-wangyu/opengrid-ui.git","directory":"packages/pro"},"files":["dist","LICENSE"],"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./styles.css":"./dist/styles.css"},"sideEffects":["**/*.css"],"publishConfig":{"access":"public"},"scripts":{"build":"node ../../scripts/build-package.mjs"},"peerDependencies":{"react":"^17.0.2 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.2 || ^18.0.0 || ^19.0.0"},"dependencies":{"@opengrid-ui/core":"^0.1.39"}}