@trebco/treb 21.5.0 → 21.6.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/package.json +1 -1
- package/treb-bundle.css +2 -2
- package/treb-bundle.mjs +5 -5
- package/treb.d.ts +16 -1
package/treb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! API v21.
|
|
1
|
+
/*! API v21.6. Copyright 2018-2022 trebco, llc. All rights reserved. LGPL: https://treb.app/license */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Global instance. In the base script, this object will be created as an
|
|
@@ -341,6 +341,16 @@ export declare class EmbeddedSpreadsheet {
|
|
|
341
341
|
*/
|
|
342
342
|
UnmergeCells(range?: RangeReference): void;
|
|
343
343
|
|
|
344
|
+
/**
|
|
345
|
+
* revert to the original version of this document. this is a new flow
|
|
346
|
+
* that requires options set for `storage_key` and `alternate_document`.
|
|
347
|
+
*
|
|
348
|
+
* the idea is that the localStorage version will control, unless you
|
|
349
|
+
* don't have one or you revert; in that case we will load the alternate
|
|
350
|
+
* document.
|
|
351
|
+
*/
|
|
352
|
+
Revert(): void;
|
|
353
|
+
|
|
344
354
|
/**
|
|
345
355
|
* Export to XLSX file.
|
|
346
356
|
*
|
|
@@ -1034,6 +1044,11 @@ export interface EmbeddedSpreadsheetOptions {
|
|
|
1034
1044
|
|
|
1035
1045
|
/** collapsed: start sidebar closed */
|
|
1036
1046
|
collapsed?: boolean;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* show the revert button. see the Revert method.
|
|
1050
|
+
*/
|
|
1051
|
+
revert?: boolean;
|
|
1037
1052
|
}
|
|
1038
1053
|
export declare type LoadSource = "drag-and-drop" | "local-file" | "network-file" | "local-storage" | "undo";
|
|
1039
1054
|
|