@ishibashi0112/spreadsheet-grid 1.3.0 → 1.4.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.
package/API_REFERENCE.md CHANGED
@@ -2293,14 +2293,14 @@ export const OrdersTable = () => <Grid columns={columns} dataSource={dataSource}
2293
2293
  | `motionExtras` | `motionExtrasFeature` | 変更のハイライト、コピー範囲の点線、十字ホバー(`highlightChanges` / `showCopyRange` / `hoverHighlight`) | +1.2KB |
2294
2294
  | `autoHeight` | `autoHeightFeature` | 行の高さの実測(`autoHeight` / `columns[].autoHeight`) | +1.2KB |
2295
2295
 
2296
- サイズ(初期読み込みの JS の gzip。esbuild で minify・React は外部化・`@tanstack/virtual-core` 込み。2026-11-08 の dist で計測):
2296
+ サイズ(初期読み込みの JS の gzip。esbuild で minify・React は外部化・`@tanstack/virtual-core` 込み。2026-11-23 の dist で計測):
2297
2297
 
2298
2298
  | 構成 | 初期 JS(gzip) |
2299
2299
  | --- | --- |
2300
- | 全部入り(`SpreadsheetGrid`) | 約 140KB |
2301
- | `/lite` 機能なし | 約 80KB |
2302
- | `/lite` + `standardFeatures` | 約 102KB |
2303
- | `/lite` + `standardFeatures` + `serverSideFeature` | 約 107KB |
2300
+ | 全部入り(`SpreadsheetGrid`) | 約 153KB |
2301
+ | `/lite` 機能なし | 約 90KB |
2302
+ | `/lite` + `standardFeatures` | 約 114KB |
2303
+ | `/lite` + `standardFeatures` + `serverSideFeature` | 約 118KB |
2304
2304
 
2305
2305
  - 各機能の目安は「機能なし」に 1 つだけ足したときの増え方で、組み合わせると共通部分のぶん合計より少し小さくなる。バンドラーによって数 KB 前後する(0.61.0 の全部入りの実測で、Vite 8(Rolldown)は esbuild より約 1.5KB 小さく、Vite 7(Rollup)はほぼ同じ。Next.js 16 では webpack が Turbopack より約 4KB 大きい)。
2306
2306
  - 使わない機能がバンドルから落ちることは、Vite 8・webpack 5・Next.js 16(既定の Turbopack)・esbuild で確かめている(バンドラーが `package.json` の `sideEffects` と `/* @__PURE__ */` を解釈する必要がある)。
package/README.md CHANGED
@@ -52,7 +52,7 @@ More runnable examples (server-side row model, Astryx) are in [`examples/`](http
52
52
 
53
53
  ## Smaller bundles: `/lite` (0.54.0+)
54
54
 
55
- `SpreadsheetGrid` includes every feature (about 140KB gzip of initial JS). The `/lite` entry builds a grid with only the features you pass; the rest is left out of your bundle (about 80KB with no features, about 102KB with the `standardFeatures` preset).
55
+ `SpreadsheetGrid` includes every feature (about 153KB gzip of initial JS). The `/lite` entry builds a grid with only the features you pass; the rest is left out of your bundle (about 90KB with no features, about 114KB with the `standardFeatures` preset).
56
56
 
57
57
  ```tsx
58
58
  import { createSpreadsheetGrid, standardFeatures, serverSideFeature } from '@ishibashi0112/spreadsheet-grid/lite'
@@ -107,7 +107,7 @@ This library is new, so AI coding assistants rarely know its API and tend to gue
107
107
 
108
108
  ## Versioning
109
109
 
110
- Releases follow semver, and this package and the core always share one version. Since 1.0, breaking changes ship only in major releases and are listed in the [changelog](https://github.com/ishibashi0112/datasheet-grid/blob/main/CHANGELOG.md) (before 1.0 they shipped in minor releases, under 「挙動の変化」 / 「core の破壊的変更」). The public surface is the entry points above (`.` / `/lite` / `/ai` / `/locales/en` / `/testing`), the CSS files, `API_REFERENCE.md`, and the CSS tokens, classes and attributes listed there. TypeScript 5.8 or later is supported (`moduleResolution` `bundler` or `nodenext`). Anything to be removed is deprecated in a minor release first, with a one-time console warning in development builds. The core's building blocks (`@ishibashi0112/spreadsheet-grid-core/internal/…`; the old subpaths without `internal/` were removed in 0.61.0) are internal and may change in any release (this package depends on the core of exactly the same version). Details: [Versioning](https://datasheet-grid.vercel.app/docs/versioning) (Japanese).
110
+ Releases follow semver, and this package, the core and the Solid version (`@ishibashi0112/spreadsheet-grid-solid`, from 1.4.0) always share one version. Since 1.0, breaking changes ship only in major releases and are listed in the [changelog](https://github.com/ishibashi0112/datasheet-grid/blob/main/CHANGELOG.md) (before 1.0 they shipped in minor releases, under 「挙動の変化」 / 「core の破壊的変更」). The public surface is the entry points above (`.` / `/lite` / `/ai` / `/locales/en` / `/testing`), the CSS files, `API_REFERENCE.md`, and the CSS tokens, classes and attributes listed there. TypeScript 5.8 or later is supported (`moduleResolution` `bundler` or `nodenext`). Anything to be removed is deprecated in a minor release first, with a one-time console warning in development builds. The core's building blocks (`@ishibashi0112/spreadsheet-grid-core/internal/…`; the old subpaths without `internal/` were removed in 0.61.0) are internal and may change in any release (this package depends on the core of exactly the same version). Details: [Versioning](https://datasheet-grid.vercel.app/docs/versioning) (Japanese).
111
111
 
112
112
  ## License
113
113
 
@@ -133,7 +133,7 @@ Astryx / Mantine / HeroUI v3 / shadcn/ui の中で使うときは、`style.css`
133
133
 
134
134
  ### バンドルを小さくする: `/lite`(0.54.0 から)
135
135
 
136
- `SpreadsheetGrid` は全機能入りです(初期読み込みの JS が約 140KB gzip)。`/lite` の入口では、渡した機能だけを入れたグリッドを作れます。渡さなかった機能はバンドルに入りません(機能なしで約 80KB、プリセット `standardFeatures` で約 102KB)。
136
+ `SpreadsheetGrid` は全機能入りです(初期読み込みの JS が約 153KB gzip)。`/lite` の入口では、渡した機能だけを入れたグリッドを作れます。渡さなかった機能はバンドルに入りません(機能なしで約 90KB、プリセット `standardFeatures` で約 114KB)。
137
137
 
138
138
  ```tsx
139
139
  import { createSpreadsheetGrid, standardFeatures, serverSideFeature } from '@ishibashi0112/spreadsheet-grid/lite'
@@ -188,4 +188,4 @@ npm パッケージに同梱されているため、オフライン(`node_module
188
188
 
189
189
  ### バージョンの方針
190
190
 
191
- 版は semver に沿って上げ、このパッケージと core はいつも同じ版で出します。1.0 から、壊す変更は major でだけ出し、[CHANGELOG](https://github.com/ishibashi0112/datasheet-grid/blob/main/CHANGELOG.md) に書きます(1.0 より前は minor で出し、「挙動の変化」「core の破壊的変更」に書いていました)。公開範囲は上の入口(`.` / `/lite` / `/ai` / `/locales/en` / `/testing`)、CSS ファイル、`API_REFERENCE.md` と、そこに載せた CSS のトークン・クラス・属性です。TypeScript は 5.8 以上(`moduleResolution` は `bundler` か `nodenext`)。消すものは前の minor で非推奨にし、開発ビルドでだけ console に 1 回警告を出します。core の部品(`@ishibashi0112/spreadsheet-grid-core/internal/…`。`internal/` の無い旧サブパスは 0.61.0 で消しました)は内部で、どの版でも変わることがあります(このパッケージは同じ版の core に固定で依存します)。詳しくは[バージョンと互換性](https://datasheet-grid.vercel.app/docs/versioning)。
191
+ 版は semver に沿って上げ、このパッケージ・core・Solid 版(`@ishibashi0112/spreadsheet-grid-solid`。1.4.0 から)はいつも同じ版で出します。1.0 から、壊す変更は major でだけ出し、[CHANGELOG](https://github.com/ishibashi0112/datasheet-grid/blob/main/CHANGELOG.md) に書きます(1.0 より前は minor で出し、「挙動の変化」「core の破壊的変更」に書いていました)。公開範囲は上の入口(`.` / `/lite` / `/ai` / `/locales/en` / `/testing`)、CSS ファイル、`API_REFERENCE.md` と、そこに載せた CSS のトークン・クラス・属性です。TypeScript は 5.8 以上(`moduleResolution` は `bundler` か `nodenext`)。消すものは前の minor で非推奨にし、開発ビルドでだけ console に 1 回警告を出します。core の部品(`@ishibashi0112/spreadsheet-grid-core/internal/…`。`internal/` の無い旧サブパスは 0.61.0 で消しました)は内部で、どの版でも変わることがあります(このパッケージは同じ版の core に固定で依存します)。詳しくは[バージョンと互換性](https://datasheet-grid.vercel.app/docs/versioning)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ishibashi0112/spreadsheet-grid",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "React 18.3 / 19 向けの仮想化データグリッド。SSRM(書き戻し付き)/ 行グルーピング + 集計 / Master/Detail / 範囲選択 + クリップボードを MIT で。IME に強い編集、100 万行の仮想化、Tailwind / Mantine / HeroUI と共存。コアは @ishibashi0112/spreadsheet-grid-core。",
5
5
  "keywords": [
6
6
  "react",
@@ -111,7 +111,7 @@
111
111
  },
112
112
  "dependencies": {
113
113
  "@tanstack/virtual-core": "^3.19.11",
114
- "@ishibashi0112/spreadsheet-grid-core": "1.3.0"
114
+ "@ishibashi0112/spreadsheet-grid-core": "1.4.0"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@types/react": "^19.3.0",
@@ -66,8 +66,8 @@ export function Inventory() {
66
66
 
67
67
  ## 4. 入口の選び方
68
68
 
69
- - `@ishibashi0112/spreadsheet-grid` の `SpreadsheetGrid`: 全部入り(初期 JS 約 140KB gzip)。迷ったらこれ。
70
- - `@ishibashi0112/spreadsheet-grid/lite` の `createSpreadsheetGrid`: 使う機能だけを入れる(機能なしで約 80KB、`standardFeatures` で約 102KB)。モジュールの先頭で 1 回だけ作ります。部品の名前は「キー + `Feature`」です(例: `{ ...standardFeatures, serverSide: serverSideFeature }`)。`standardFeatures` は `filtering` / `columnMenu` / `toolPanel` / `columnAutosize` / `export`。足りない機能は開発時に `console.warn` が名指しします。全部入りと同じアプリで混ぜると共通部分が二重に入るので、どちらかの入口に揃えます。
69
+ - `@ishibashi0112/spreadsheet-grid` の `SpreadsheetGrid`: 全部入り(初期 JS 約 153KB gzip)。迷ったらこれ。
70
+ - `@ishibashi0112/spreadsheet-grid/lite` の `createSpreadsheetGrid`: 使う機能だけを入れる(機能なしで約 90KB、`standardFeatures` で約 114KB)。モジュールの先頭で 1 回だけ作ります。部品の名前は「キー + `Feature`」です(例: `{ ...standardFeatures, serverSide: serverSideFeature }`)。`standardFeatures` は `filtering` / `columnMenu` / `toolPanel` / `columnAutosize` / `export`。足りない機能は開発時に `console.warn` が名指しします。全部入りと同じアプリで混ぜると共通部分が二重に入るので、どちらかの入口に揃えます。
71
71
  - `@ishibashi0112/spreadsheet-grid/ai`: `GridAskBar`(ことばで絞り込み。利用者の文から AI がフィルター・並び・検索を入れる)。グリッドの上に置いて `grid` に ref を渡します。AI は利用側の `ask`(自分のサーバー経由。API キーをブラウザに置かない)で呼び、行のデータは送りません。
72
72
  - `@ishibashi0112/spreadsheet-grid/locales/en`: 英語の文言 `localeTextEn`(グリッドの `localeText` へ)と `gridAskLocaleTextEn`(`GridAskBar` の `localeText` へ)。
73
73
  - `@ishibashi0112/spreadsheet-grid/testing`: jsdom のテストで行と列を描画させる `installJsdomLayoutStubs()`。仮想化は効いたままで、描かれるのはスタブの大きさ(既定 1200×600)に入る行・列だけ。貼り付けは `Ctrl+V` のキーではなく paste イベント(`user.paste`)。