@arbocollab/arbo-xlsx-mapping 0.0.1 → 0.0.2-alpha.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.
Files changed (4) hide show
  1. package/README.md +37 -0
  2. package/index.es.js +53750 -0
  3. package/package.json +23 -1
  4. package/style.css +1 -0
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @arbocollab/arbo-xlsx-mapping
2
+
3
+ Browser-only spreadsheet mapping UI for TESSR task-upload files.
4
+
5
+ ## Installation
6
+
7
+ ~~~bash
8
+ npm install @arbocollab/arbo-xlsx-mapping@beta
9
+ ~~~
10
+
11
+ ## Usage
12
+
13
+ ~~~ts
14
+ import { createXlsxMappingInstance } from '@arbocollab/arbo-xlsx-mapping'
15
+ import '@arbocollab/arbo-xlsx-mapping/style.css'
16
+
17
+ const instance = createXlsxMappingInstance()
18
+ instance.mount(document.querySelector('#xlsx-mapping'))
19
+
20
+ // Call instance.unmount() when the host removes the container.
21
+ ~~~
22
+
23
+ The application runs in the browser. Uploaded spreadsheets are not sent to a
24
+ backend.
25
+
26
+ When the user exports a workbook, the host receives a postMessage event:
27
+
28
+ ~~~ts
29
+ {
30
+ type: 'TOOLBOX_EXPORT_DATA',
31
+ file: Blob,
32
+ fileName: 'export.xlsx',
33
+ }
34
+ ~~~
35
+
36
+ The production bundle also includes index.umd.js for direct browser-script
37
+ loading. It exposes window.ArboXlsxMapping.