tabulark 0.0.4 → 0.1.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/CHANGELOG.md +16 -0
- package/README.md +215 -110
- package/THIRD_PARTY_NOTICES.md +37 -0
- package/dist/adapters.d.ts +62 -0
- package/dist/arrow.d.ts +3 -0
- package/dist/arrow.js +2 -0
- package/dist/arrow.js.map +7 -0
- package/dist/client.d.ts +76 -0
- package/dist/errors.d.ts +19 -0
- package/dist/excel.d.ts +3 -0
- package/dist/excel.js +2 -0
- package/dist/excel.js.map +7 -0
- package/dist/experimental.d.ts +13 -0
- package/dist/experimental.js +2 -0
- package/dist/experimental.js.map +7 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +7 -0
- package/dist/model.d.ts +389 -0
- package/dist/official-adapter-manifest.d.ts +31 -0
- package/dist/parquet.d.ts +3 -0
- package/dist/parquet.js +2 -0
- package/dist/parquet.js.map +7 -0
- package/dist/protocol.d.ts +54 -0
- package/dist/range-cache.d.ts +28 -0
- package/dist/rpc-client.d.ts +18 -0
- package/dist/view/accessible-grid.d.ts +36 -0
- package/dist/view/canvas-painter.d.ts +91 -0
- package/dist/view/canvas-table-view-public.d.ts +58 -0
- package/dist/view/canvas-table-view.d.ts +32 -0
- package/dist/view/controller.d.ts +34 -0
- package/dist/view/layout.d.ts +34 -0
- package/dist/view/selection.d.ts +7 -0
- package/dist/view/types.d.ts +184 -0
- package/dist/wasm/arrow/tabulark_arrow.d.ts +126 -0
- package/dist/wasm/arrow/tabulark_arrow.js +771 -0
- package/dist/wasm/arrow/tabulark_arrow_bg.wasm +0 -0
- package/dist/wasm/arrow/tabulark_arrow_bg.wasm.d.ts +25 -0
- package/dist/wasm/delimited/tabulark_delimited.d.ts +131 -0
- package/dist/wasm/delimited/tabulark_delimited.js +845 -0
- package/dist/wasm/delimited/tabulark_delimited_bg.wasm +0 -0
- package/dist/wasm/delimited/tabulark_delimited_bg.wasm.d.ts +26 -0
- package/dist/wasm/excel/tabulark_excel.d.ts +121 -0
- package/dist/wasm/excel/tabulark_excel.js +766 -0
- package/dist/wasm/excel/tabulark_excel_bg.wasm +0 -0
- package/dist/wasm/excel/tabulark_excel_bg.wasm.d.ts +25 -0
- package/dist/wasm/parquet/tabulark_parquet.d.ts +121 -0
- package/dist/wasm/parquet/tabulark_parquet.js +754 -0
- package/dist/wasm/parquet/tabulark_parquet_bg.wasm +0 -0
- package/dist/wasm/parquet/tabulark_parquet_bg.wasm.d.ts +25 -0
- package/dist/worker/wasm-adapter.d.ts +57 -0
- package/dist/worker/worker-errors.d.ts +9 -0
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +2 -0
- package/dist/worker.js.map +7 -0
- package/package.json +55 -12
- package/js/index.d.ts +0 -18
- package/js/index.js +0 -26
package/package.json
CHANGED
|
@@ -1,29 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabulark",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "A WebAssembly-first engine for format-agnostic tabular data preview",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
7
|
-
"types": "./
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"types": "./
|
|
11
|
-
"import": "./
|
|
12
|
-
"default": "./
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./arrow": {
|
|
15
|
+
"types": "./dist/arrow.d.ts",
|
|
16
|
+
"import": "./dist/arrow.js",
|
|
17
|
+
"default": "./dist/arrow.js"
|
|
18
|
+
},
|
|
19
|
+
"./parquet": {
|
|
20
|
+
"types": "./dist/parquet.d.ts",
|
|
21
|
+
"import": "./dist/parquet.js",
|
|
22
|
+
"default": "./dist/parquet.js"
|
|
23
|
+
},
|
|
24
|
+
"./excel": {
|
|
25
|
+
"types": "./dist/excel.d.ts",
|
|
26
|
+
"import": "./dist/excel.js",
|
|
27
|
+
"default": "./dist/excel.js"
|
|
28
|
+
},
|
|
29
|
+
"./experimental": {
|
|
30
|
+
"types": "./dist/experimental.d.ts",
|
|
31
|
+
"import": "./dist/experimental.js",
|
|
32
|
+
"default": "./dist/experimental.js"
|
|
13
33
|
}
|
|
14
34
|
},
|
|
15
35
|
"files": [
|
|
16
|
-
"
|
|
36
|
+
"dist",
|
|
17
37
|
"README.md",
|
|
38
|
+
"CHANGELOG.md",
|
|
18
39
|
"LICENSE-MIT",
|
|
19
|
-
"LICENSE-APACHE"
|
|
40
|
+
"LICENSE-APACHE",
|
|
41
|
+
"THIRD_PARTY_NOTICES.md"
|
|
20
42
|
],
|
|
21
43
|
"sideEffects": false,
|
|
22
44
|
"scripts": {
|
|
23
|
-
"
|
|
45
|
+
"build": "npm run build:js && npm run build:wasm",
|
|
46
|
+
"build:js": "node scripts/build.mjs",
|
|
47
|
+
"build:pages": "npm run build && node scripts/build-pages.mjs",
|
|
48
|
+
"build:wasm": "node scripts/build-wasm.mjs",
|
|
49
|
+
"benchmark:arrow": "node test/performance/run-arrow-matrix.mjs",
|
|
50
|
+
"benchmark:canonical": "node test/performance/run-browser.mjs --scenario canonical --output test/performance/baselines/windows-chromium-16mib.json",
|
|
51
|
+
"benchmark:formats": "node test/performance/run-format-smoke.mjs",
|
|
52
|
+
"benchmark:size": "node test/performance/measure-sizes.mjs",
|
|
53
|
+
"benchmark:smoke": "node test/performance/run-browser.mjs --scenario smoke --output target/bench/performance-smoke.json",
|
|
54
|
+
"typecheck": "tsc --project tsconfig.json",
|
|
55
|
+
"check": "npm run build && npm run check:versions && npm run typecheck && node --test test/*.test.js && npm run package:check && npm run pages:check",
|
|
56
|
+
"check:api": "node scripts/stable-api-snapshot.mjs",
|
|
24
57
|
"check:versions": "node scripts/check-versions.mjs",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
58
|
+
"example": "npm run build:pages && node test/browser/server.mjs",
|
|
59
|
+
"pages:check": "npm run build:pages",
|
|
60
|
+
"package:check": "node scripts/package-smoke.mjs",
|
|
61
|
+
"test": "npm run build:js && node --test test/*.test.js",
|
|
62
|
+
"test:browser": "npm run build:pages && playwright test",
|
|
63
|
+
"prepack": "npm run build"
|
|
27
64
|
},
|
|
28
65
|
"repository": {
|
|
29
66
|
"type": "git",
|
|
@@ -32,7 +69,7 @@
|
|
|
32
69
|
"bugs": {
|
|
33
70
|
"url": "https://github.com/Ronbb/tabulark/issues"
|
|
34
71
|
},
|
|
35
|
-
"homepage": "https://github.
|
|
72
|
+
"homepage": "https://ronbb.github.io/tabulark/",
|
|
36
73
|
"keywords": [
|
|
37
74
|
"table",
|
|
38
75
|
"tabular",
|
|
@@ -46,5 +83,11 @@
|
|
|
46
83
|
},
|
|
47
84
|
"publishConfig": {
|
|
48
85
|
"access": "public"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@axe-core/playwright": "4.12.1",
|
|
89
|
+
"@playwright/test": "1.61.1",
|
|
90
|
+
"esbuild": "0.28.1",
|
|
91
|
+
"typescript": "7.0.2"
|
|
49
92
|
}
|
|
50
93
|
}
|
package/js/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** The current maturity of the published API. */
|
|
2
|
-
export declare const PROJECT_STATUS: "prototype";
|
|
3
|
-
|
|
4
|
-
/** Immutable row and column counts for a table. */
|
|
5
|
-
export interface TableShape {
|
|
6
|
-
readonly rows: number;
|
|
7
|
-
readonly columns: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Creates immutable shape metadata for a table.
|
|
12
|
-
*
|
|
13
|
-
* Both arguments must be non-negative safe integers.
|
|
14
|
-
*/
|
|
15
|
-
export declare function createTableShape(
|
|
16
|
-
rows: number,
|
|
17
|
-
columns: number,
|
|
18
|
-
): Readonly<TableShape>;
|
package/js/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** The current maturity of the published API. */
|
|
2
|
-
export const PROJECT_STATUS = "prototype";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates immutable shape metadata for a table.
|
|
6
|
-
*
|
|
7
|
-
* JavaScript counts are restricted to non-negative safe integers. Larger
|
|
8
|
-
* datasets will be represented through the future viewport API instead of
|
|
9
|
-
* relying on imprecise Number values.
|
|
10
|
-
*
|
|
11
|
-
* @param {number} rows
|
|
12
|
-
* @param {number} columns
|
|
13
|
-
* @returns {Readonly<{rows: number, columns: number}>}
|
|
14
|
-
*/
|
|
15
|
-
export function createTableShape(rows, columns) {
|
|
16
|
-
assertCount(rows, "rows");
|
|
17
|
-
assertCount(columns, "columns");
|
|
18
|
-
|
|
19
|
-
return Object.freeze({ rows, columns });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function assertCount(value, name) {
|
|
23
|
-
if (!Number.isSafeInteger(value) || value < 0) {
|
|
24
|
-
throw new RangeError(`${name} must be a non-negative safe integer`);
|
|
25
|
-
}
|
|
26
|
-
}
|