logisheets 1.14.1 → 1.15.1

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 (60) hide show
  1. package/dist/src/api/workbook.d.ts +98 -1
  2. package/dist/src/api/workbook.js +110 -0
  3. package/dist/src/bindings/bind_form_schema.d.ts +13 -19
  4. package/dist/src/bindings/bind_form_schema.js +7 -25
  5. package/dist/src/bindings/block_field_type.d.ts +7 -0
  6. package/dist/src/bindings/block_field_type.js +2 -0
  7. package/dist/src/bindings/block_info.d.ts +4 -0
  8. package/dist/src/bindings/block_op_for_payload.d.ts +5 -0
  9. package/dist/src/bindings/block_op_for_payload.js +2 -0
  10. package/dist/src/bindings/block_op_policy.d.ts +6 -0
  11. package/dist/src/bindings/block_op_policy.js +2 -0
  12. package/dist/src/bindings/block_schema.d.ts +4 -0
  13. package/dist/src/bindings/block_schema_field_entry.d.ts +12 -0
  14. package/dist/src/bindings/create_block.d.ts +9 -0
  15. package/dist/src/bindings/create_block.js +11 -1
  16. package/dist/src/bindings/duplicate_block_key.d.ts +7 -0
  17. package/dist/src/bindings/duplicate_block_key.js +2 -0
  18. package/dist/src/bindings/edit_payload.d.ts +12 -0
  19. package/dist/src/bindings/enum_set_info.d.ts +6 -0
  20. package/dist/src/bindings/enum_set_info.js +2 -0
  21. package/dist/src/bindings/enum_variant_info.d.ts +4 -0
  22. package/dist/src/bindings/enum_variant_info.js +2 -0
  23. package/dist/src/bindings/enum_variant_spec.d.ts +14 -0
  24. package/dist/src/bindings/enum_variant_spec.js +21 -0
  25. package/dist/src/bindings/get_block_op_policies_params.d.ts +4 -0
  26. package/dist/src/bindings/get_block_op_policies_params.js +2 -0
  27. package/dist/src/bindings/index.d.ts +19 -0
  28. package/dist/src/bindings/index.js +19 -0
  29. package/dist/src/bindings/pivot_excel_note.d.ts +4 -0
  30. package/dist/src/bindings/pivot_excel_note.js +2 -0
  31. package/dist/src/bindings/pivot_filter.d.ts +4 -0
  32. package/dist/src/bindings/pivot_filter.js +2 -0
  33. package/dist/src/bindings/pivot_plan.d.ts +12 -0
  34. package/dist/src/bindings/pivot_plan.js +2 -0
  35. package/dist/src/bindings/pivot_spec.d.ts +10 -0
  36. package/dist/src/bindings/pivot_spec.js +2 -0
  37. package/dist/src/bindings/remove_enum_set.d.ts +10 -0
  38. package/dist/src/bindings/remove_enum_set.js +16 -0
  39. package/dist/src/bindings/rpc_pivot_plan_for_params.d.ts +6 -0
  40. package/dist/src/bindings/rpc_pivot_plan_for_params.js +2 -0
  41. package/dist/src/bindings/rpc_pivot_plan_params.d.ts +4 -0
  42. package/dist/src/bindings/rpc_pivot_plan_params.js +2 -0
  43. package/dist/src/bindings/rpc_workbook_methods.d.ts +17 -0
  44. package/dist/src/bindings/schema_field_spec.d.ts +71 -0
  45. package/dist/src/bindings/schema_field_spec.js +93 -0
  46. package/dist/src/bindings/set_block_analyzes.d.ts +23 -0
  47. package/dist/src/bindings/set_block_analyzes.js +33 -0
  48. package/dist/src/bindings/unique_together_group.d.ts +3 -0
  49. package/dist/src/bindings/unique_together_group.js +2 -0
  50. package/dist/src/bindings/upsert_enum_set.d.ts +19 -0
  51. package/dist/src/bindings/upsert_enum_set.js +28 -0
  52. package/dist/wasm/logisheets_wasm_server.d.ts +6 -6
  53. package/dist/wasm/logisheets_wasm_server.js +28 -28
  54. package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
  55. package/dist/wasm/package.json +1 -1
  56. package/package.json +1 -1
  57. package/wasm/logisheets_wasm_server.d.ts +6 -6
  58. package/wasm/logisheets_wasm_server.js +28 -28
  59. package/wasm/logisheets_wasm_server_bg.wasm +0 -0
  60. package/wasm/package.json +1 -1
@@ -181,27 +181,15 @@ module.exports.handle = function(msg, book_id) {
181
181
  };
182
182
 
183
183
  /**
184
- * Render a text value with an Excel number-format code (for the `@` text
185
- * section). Falls back to the text itself on an unsupported format.
186
- * @param {string} fmt
187
- * @param {string} text
188
- * @returns {string}
184
+ * Input: AsyncFuncResult
185
+ * Output: ActionAffect
186
+ * @param {number} id
187
+ * @param {any} result
188
+ * @returns {any}
189
189
  */
190
- module.exports.format_text = function(fmt, text) {
191
- let deferred3_0;
192
- let deferred3_1;
193
- try {
194
- const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
195
- const len0 = WASM_VECTOR_LEN;
196
- const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
197
- const len1 = WASM_VECTOR_LEN;
198
- const ret = wasm.format_text(ptr0, len0, ptr1, len1);
199
- deferred3_0 = ret[0];
200
- deferred3_1 = ret[1];
201
- return getStringFromWasm0(ret[0], ret[1]);
202
- } finally {
203
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
204
- }
190
+ module.exports.input_async_result = function(id, result) {
191
+ const ret = wasm.input_async_result(id, result);
192
+ return ret;
205
193
  };
206
194
 
207
195
  /**
@@ -229,15 +217,27 @@ module.exports.format_number = function(fmt, value) {
229
217
  };
230
218
 
231
219
  /**
232
- * Input: AsyncFuncResult
233
- * Output: ActionAffect
234
- * @param {number} id
235
- * @param {any} result
236
- * @returns {any}
220
+ * Render a text value with an Excel number-format code (for the `@` text
221
+ * section). Falls back to the text itself on an unsupported format.
222
+ * @param {string} fmt
223
+ * @param {string} text
224
+ * @returns {string}
237
225
  */
238
- module.exports.input_async_result = function(id, result) {
239
- const ret = wasm.input_async_result(id, result);
240
- return ret;
226
+ module.exports.format_text = function(fmt, text) {
227
+ let deferred3_0;
228
+ let deferred3_1;
229
+ try {
230
+ const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
231
+ const len0 = WASM_VECTOR_LEN;
232
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
233
+ const len1 = WASM_VECTOR_LEN;
234
+ const ret = wasm.format_text(ptr0, len0, ptr1, len1);
235
+ deferred3_0 = ret[0];
236
+ deferred3_1 = ret[1];
237
+ return getStringFromWasm0(ret[0], ret[1]);
238
+ } finally {
239
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
240
+ }
241
241
  };
242
242
 
243
243
  module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.14.1",
6
+ "version": "1.15.1",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logisheets",
3
- "version": "1.14.1",
3
+ "version": "1.15.1",
4
4
  "description": "Node.js bindings for LogiSheets — a Rust + WebAssembly spreadsheet engine that reads, edits, and writes real .xlsx (Excel) files (formulas, styles, and structure preserved) with no browser required.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  export function handle(msg: any, book_id?: number | null): any;
4
4
  /**
5
- * Render a text value with an Excel number-format code (for the `@` text
6
- * section). Falls back to the text itself on an unsupported format.
5
+ * Input: AsyncFuncResult
6
+ * Output: ActionAffect
7
7
  */
8
- export function format_text(fmt: string, text: string): string;
8
+ export function input_async_result(id: number, result: any): any;
9
9
  /**
10
10
  * Render a number with an Excel number-format code, natively via `ssf-rs`
11
11
  * (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
@@ -14,7 +14,7 @@ export function format_text(fmt: string, text: string): string;
14
14
  */
15
15
  export function format_number(fmt: string, value: number): string;
16
16
  /**
17
- * Input: AsyncFuncResult
18
- * Output: ActionAffect
17
+ * Render a text value with an Excel number-format code (for the `@` text
18
+ * section). Falls back to the text itself on an unsupported format.
19
19
  */
20
- export function input_async_result(id: number, result: any): any;
20
+ export function format_text(fmt: string, text: string): string;
@@ -181,27 +181,15 @@ module.exports.handle = function(msg, book_id) {
181
181
  };
182
182
 
183
183
  /**
184
- * Render a text value with an Excel number-format code (for the `@` text
185
- * section). Falls back to the text itself on an unsupported format.
186
- * @param {string} fmt
187
- * @param {string} text
188
- * @returns {string}
184
+ * Input: AsyncFuncResult
185
+ * Output: ActionAffect
186
+ * @param {number} id
187
+ * @param {any} result
188
+ * @returns {any}
189
189
  */
190
- module.exports.format_text = function(fmt, text) {
191
- let deferred3_0;
192
- let deferred3_1;
193
- try {
194
- const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
195
- const len0 = WASM_VECTOR_LEN;
196
- const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
197
- const len1 = WASM_VECTOR_LEN;
198
- const ret = wasm.format_text(ptr0, len0, ptr1, len1);
199
- deferred3_0 = ret[0];
200
- deferred3_1 = ret[1];
201
- return getStringFromWasm0(ret[0], ret[1]);
202
- } finally {
203
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
204
- }
190
+ module.exports.input_async_result = function(id, result) {
191
+ const ret = wasm.input_async_result(id, result);
192
+ return ret;
205
193
  };
206
194
 
207
195
  /**
@@ -229,15 +217,27 @@ module.exports.format_number = function(fmt, value) {
229
217
  };
230
218
 
231
219
  /**
232
- * Input: AsyncFuncResult
233
- * Output: ActionAffect
234
- * @param {number} id
235
- * @param {any} result
236
- * @returns {any}
220
+ * Render a text value with an Excel number-format code (for the `@` text
221
+ * section). Falls back to the text itself on an unsupported format.
222
+ * @param {string} fmt
223
+ * @param {string} text
224
+ * @returns {string}
237
225
  */
238
- module.exports.input_async_result = function(id, result) {
239
- const ret = wasm.input_async_result(id, result);
240
- return ret;
226
+ module.exports.format_text = function(fmt, text) {
227
+ let deferred3_0;
228
+ let deferred3_1;
229
+ try {
230
+ const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
231
+ const len0 = WASM_VECTOR_LEN;
232
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
233
+ const len1 = WASM_VECTOR_LEN;
234
+ const ret = wasm.format_text(ptr0, len0, ptr1, len1);
235
+ deferred3_0 = ret[0];
236
+ deferred3_1 = ret[1];
237
+ return getStringFromWasm0(ret[0], ret[1]);
238
+ } finally {
239
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
240
+ }
241
241
  };
242
242
 
243
243
  module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
Binary file
package/wasm/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.14.1",
6
+ "version": "1.15.1",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",