@sheetxl/sdk 0.7.9 → 0.7.10

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 (86) hide show
  1. package/browser/cjs/{CZiCg9FbieIU8Rm0.cjs → B5sOr_qNfzdlK6r5.cjs} +1 -1
  2. package/browser/cjs/{Bz0rP9EcRqnVWbZf.cjs → BMAXavmiWEoQ4d7w.cjs} +1 -1
  3. package/browser/cjs/{du0k_Q9EOsqIxWSw.cjs → BYJYiOa62d2KcthP.cjs} +1 -1
  4. package/browser/cjs/{BFyzN_JI79jVr2uy.cjs → Bt1Imuv4UJakhq34.cjs} +1 -1
  5. package/browser/cjs/{CEHmNrX8KkBmUiSO.cjs → Bw_6g6HnrYARaE_c.cjs} +1 -1
  6. package/browser/cjs/{DB3n3E5e-Uzk4F5D.cjs → C43pmRixdQcJAYhM.cjs} +2 -2
  7. package/browser/cjs/{Q9Q7taCm2DK7l7wG.cjs → CUHf3R7HAqlFgZfr.cjs} +1 -1
  8. package/browser/cjs/{BZesTF075OkJWn8D.cjs → CXi7-QPH2qOvW2ig.cjs} +1 -1
  9. package/browser/cjs/{BeugfQWLHUsJjYWp.cjs → CsoyCFi-i5balUsy.cjs} +1 -1
  10. package/browser/cjs/{tmhCkuaar2Xw2iaW.cjs → D0HSm46wnMwqM0fV.cjs} +1 -1
  11. package/browser/cjs/{BMn3UlzIiu-Jz_hX.cjs → DFZn272cF7DnvpVs.cjs} +1 -1
  12. package/browser/cjs/{BW0aVBJI3ntXFfY7.cjs → DYh18BCrb2nRAWSC.cjs} +1 -1
  13. package/browser/cjs/{D0BG4FL8Quz_7bM9.cjs → DhnjaWdsnq2k0WB6.cjs} +1 -1
  14. package/browser/cjs/{COZ5KnUDdjFqNWM0.cjs → DkK2KLukNSE20weE.cjs} +1 -1
  15. package/browser/cjs/DoS3hyIHWQdr-NLW.cjs +55 -0
  16. package/browser/cjs/{Cbqx01YxLFBtBc1-.cjs → Dps8tDhlL1soLNAN.cjs} +1 -1
  17. package/browser/cjs/{CVdJCI1FaDLrSiAX.cjs → Fvg-zk7oHo6A28wS.cjs} +1 -1
  18. package/browser/cjs/{Dkz0Gea1ka1raWKE.cjs → Jr--WwZDSz0u7gpu.cjs} +1 -1
  19. package/browser/cjs/{DkMYJkLK-ToNBMLe.cjs → YhQ_DJJ-NASBcutY.cjs} +1 -1
  20. package/browser/cjs/{ruTLqYc9pFvVzZCD.cjs → i1zPKZAngwRK1H6R.cjs} +1 -1
  21. package/browser/cjs/index.cjs +2 -2
  22. package/browser/cjs/{y_JnwjKyXeqjsCB2.cjs → mJI4PWzSNTlX2y_7.cjs} +1 -1
  23. package/browser/cjs/{DGYo-pidNOzISAnM.cjs → mWnzwcbrwDSuOQ5k.cjs} +2 -2
  24. package/browser/cjs/{bhE7P1KpzsfjmQ5r.cjs → pAaoznCw2R-NvoJO.cjs} +3 -3
  25. package/browser/cjs/{BuQGLzvEHQpuoe3r.cjs → rJvO21DUgDkVVJ98.cjs} +1 -1
  26. package/browser/cjs/{B22pTnwVjDSSM7GS.cjs → s2__xJk4opSAXMT4.cjs} +1 -1
  27. package/browser/cjs/{BXbcweTRhVgb2QGJ.cjs → wsNrOvjgANfZCUcJ.cjs} +1 -1
  28. package/browser/cjs/{B3IOVhWeqDnux4SH.cjs → zV5DYS2805g6oBg0.cjs} +1 -1
  29. package/browser/esm/{D_IbVWmdMNUGb7zb.mjs → 2YmVbenvf3pJnVgX.mjs} +6123 -6087
  30. package/browser/esm/{DYebbmA3AAPLA3IC.mjs → 9jzbE6uqSvh2gkcM.mjs} +1 -1
  31. package/browser/esm/{aMika-ens7Yopkas.mjs → B4cJvX94gkjInKF9.mjs} +1 -1
  32. package/{node/esm/0DI1WTHtaIUJsBYM.mjs → browser/esm/BB5FMNWC9DoXj2F_.mjs} +1 -1
  33. package/browser/esm/{B9L4cODib2b2FsB1.mjs → BQ7ZqtqqmMvl87Xx.mjs} +1 -1
  34. package/browser/esm/{f0POvHQSDMS831Yo.mjs → BhZy8T3_0HmqrtYn.mjs} +1 -1
  35. package/{node/esm/Dxd4gd9RMG6Vb3FC.mjs → browser/esm/BkX0U6wwm5bhhoOc.mjs} +1 -1
  36. package/{node/esm/0hOpj_OahOtewreK.mjs → browser/esm/CCJHhN0uG4RlLT21.mjs} +1 -1
  37. package/browser/esm/{n6I3q4Xge3hOPjo9.mjs → CfhLzbwjjeTmk029.mjs} +2 -2
  38. package/{node/esm/CRNBcH0UhZHE0f99.mjs → browser/esm/CfxraIBE6h5Sxyav.mjs} +1 -1
  39. package/browser/esm/{CbInKvdNI1Frpbao.mjs → Ch1-YbB2C42189ma.mjs} +1 -1
  40. package/browser/esm/{CGa6lKXhqVKMV59U.mjs → CkpqqAG46XpO7nXX.mjs} +1 -1
  41. package/browser/esm/{tvnLPOG7Tra-GDh5.mjs → CuUVvXtLjRd07JGG.mjs} +1 -1
  42. package/browser/esm/{DwAuvqJukiWUWs9q.mjs → DGLu7QFVBNDLxamQ.mjs} +1 -1
  43. package/{node/esm/Dt4lXU3lYBAis3zm.mjs → browser/esm/DWCeeKtyWbwBsMtd.mjs} +1 -1
  44. package/{node/esm/BSl9PHZpx-dcReUX.mjs → browser/esm/DefSqdVcNBlKVAMo.mjs} +1 -1
  45. package/browser/esm/{CVFOKKF2S-oaSgLu.mjs → DkABk-qW6Oyyokp1.mjs} +2 -2
  46. package/browser/esm/{Dd5ZJnTZGz3wkJvx.mjs → DoZ_BtRRWO1CTdku.mjs} +1 -1
  47. package/browser/esm/{Dizp3z8RgwqnPF39.mjs → DpCweIlJhb7rwPUQ.mjs} +1 -1
  48. package/browser/esm/{DPY7j6_7i5baMItx.mjs → Dub8ZgcEXucEp2NI.mjs} +1 -1
  49. package/{node/esm/CM2WwLVDwWMvpu3Q.mjs → browser/esm/F-KBakghLhTUf7o1.mjs} +1 -1
  50. package/browser/esm/{B6aYhVaFkfSyx3RS.mjs → MLzNHv219T3C5hvE.mjs} +1 -1
  51. package/{node/esm/CkhlvXOEzH992ee4.mjs → browser/esm/OYzq3aFElHhhWUbl.mjs} +1 -1
  52. package/browser/esm/{DSQWHJQB3kEX1MxN.mjs → fwEmOMkbOozZtG_Z.mjs} +1 -1
  53. package/browser/esm/index.mjs +2 -2
  54. package/browser/esm/{79SDQ-dwPljVm-Ru.mjs → jMZ0iMZ-2uMoOS91.mjs} +3 -3
  55. package/{node/esm/LGPCrL2m7zJhCaoL.mjs → browser/esm/kV8uXcO0eq-dKVP6.mjs} +1 -1
  56. package/{node/esm/DBN6aybNiDRbTocu.mjs → browser/esm/pFiDhbuMy42dhPsi.mjs} +1 -1
  57. package/node/esm/{C9-sEMKxQI064gKk.mjs → B1YReOzxQ_MwWTr7.mjs} +1 -1
  58. package/node/esm/{aMika-ens7Yopkas.mjs → B4cJvX94gkjInKF9.mjs} +1 -1
  59. package/{browser/esm/0DI1WTHtaIUJsBYM.mjs → node/esm/BB5FMNWC9DoXj2F_.mjs} +1 -1
  60. package/node/esm/{B9L4cODib2b2FsB1.mjs → BQ7ZqtqqmMvl87Xx.mjs} +1 -1
  61. package/node/esm/{BDgg43tHI0WHMLFP.mjs → BVNYg8Q9tkggTFax.mjs} +1 -1
  62. package/{browser/esm/Dxd4gd9RMG6Vb3FC.mjs → node/esm/BkX0U6wwm5bhhoOc.mjs} +1 -1
  63. package/node/esm/{BLYKw0Xl6-mMi_sy.mjs → BtVIwG6U8r7kikQn.mjs} +1 -1
  64. package/{browser/esm/0hOpj_OahOtewreK.mjs → node/esm/CCJHhN0uG4RlLT21.mjs} +1 -1
  65. package/{browser/esm/CRNBcH0UhZHE0f99.mjs → node/esm/CfxraIBE6h5Sxyav.mjs} +1 -1
  66. package/node/esm/{tvnLPOG7Tra-GDh5.mjs → CuUVvXtLjRd07JGG.mjs} +1 -1
  67. package/node/esm/{pncn6wzLW-__5OpG.mjs → DTATxp-TMmO0pR0E.mjs} +2 -2
  68. package/node/esm/{DQJ__Lm7d2Aiybkm.mjs → DVAwEnfivTa21GDa.mjs} +1 -1
  69. package/{browser/esm/Dt4lXU3lYBAis3zm.mjs → node/esm/DWCeeKtyWbwBsMtd.mjs} +1 -1
  70. package/{browser/esm/BSl9PHZpx-dcReUX.mjs → node/esm/DefSqdVcNBlKVAMo.mjs} +1 -1
  71. package/node/esm/{BsQgFfGw57QhU00h.mjs → DfshBT8P2doaHCH-.mjs} +1 -1
  72. package/node/esm/{D9FXi-8M6k_qyOi7.mjs → DhnJcCAHnMAvIKHY.mjs} +1 -1
  73. package/node/esm/{Dd5ZJnTZGz3wkJvx.mjs → DoZ_BtRRWO1CTdku.mjs} +1 -1
  74. package/node/esm/{Dizp3z8RgwqnPF39.mjs → DpCweIlJhb7rwPUQ.mjs} +1 -1
  75. package/node/esm/{DPY7j6_7i5baMItx.mjs → Dub8ZgcEXucEp2NI.mjs} +1 -1
  76. package/node/esm/{CuBtn2ufnDRR9AWF.mjs → DzTkpJZ5xV-M-8g3.mjs} +1 -1
  77. package/{browser/esm/CM2WwLVDwWMvpu3Q.mjs → node/esm/F-KBakghLhTUf7o1.mjs} +1 -1
  78. package/{browser/esm/CkhlvXOEzH992ee4.mjs → node/esm/OYzq3aFElHhhWUbl.mjs} +1 -1
  79. package/node/esm/{C0uhe94WInr5bNg6.mjs → X8L9OldTik-62PGX.mjs} +1 -1
  80. package/node/esm/index.mjs +3342 -3283
  81. package/{browser/esm/LGPCrL2m7zJhCaoL.mjs → node/esm/kV8uXcO0eq-dKVP6.mjs} +1 -1
  82. package/{browser/esm/DBN6aybNiDRbTocu.mjs → node/esm/pFiDhbuMy42dhPsi.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +15 -10
  85. package/types/scripting.d.ts +24 -16
  86. package/browser/cjs/CSnYr9f8FLxVbEb8.cjs +0 -55
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.9
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.9
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/sdk",
3
3
  "description": "SDK - A high-performance, embeddable spreadsheet engine.",
4
- "version": "0.7.9",
4
+ "version": "0.7.10",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -43,9 +43,9 @@
43
43
  "automation"
44
44
  ],
45
45
  "dependencies": {
46
- "@sheetxl/primitives": "^0.7.9",
47
- "@sheetxl/scripting": "^0.7.9",
48
- "@sheetxl/utils": "^0.7.9",
46
+ "@sheetxl/primitives": "^0.7.10",
47
+ "@sheetxl/scripting": "^0.7.10",
48
+ "@sheetxl/utils": "^0.7.10",
49
49
  "bahttext": "^2.3.0",
50
50
  "bessel": "^1.0.2",
51
51
  "chalk": "^5.6.2",
package/types/index.d.ts CHANGED
@@ -3957,11 +3957,6 @@ export declare namespace ICellHeader {
3957
3957
  * Style id
3958
3958
  */
3959
3959
  s?: number;
3960
- /**
3961
- * Custom style
3962
- * @deprecated - Was for backward compatibility with Excel but no longer used.
3963
- */
3964
- cs?: boolean;
3965
3960
  /**
3966
3961
  * Header level
3967
3962
  */
@@ -5773,9 +5768,18 @@ export declare namespace ICellRange {
5773
5768
  * @remarks
5774
5769
  * This may change shape due to insert/delete/move of cells or sheets.
5775
5770
  */
5776
- getSource<T = any>(): T;
5777
- getFrom?<T = any>(): T;
5778
- getTo?<T = any>(): T;
5771
+ getSource<T = ICellRange | ICellRanges>(): T;
5772
+ /**
5773
+ * This is the range of data that has been changed.
5774
+ *
5775
+ * @remarks
5776
+ * This is different than the source range as that is the entire range area that was listened to.
5777
+ */
5778
+ getFrom(): ICellRanges;
5779
+ /**
5780
+ * Used for moves. Represents the new location of the data that has changed.
5781
+ */
5782
+ getTo?(): ICellRange;
5779
5783
  /**
5780
5784
  * Indicates the type of change that triggered the event.
5781
5785
  *
@@ -18071,7 +18075,7 @@ declare namespace OverlappingRange {
18071
18075
  * but it will modify the original range data.
18072
18076
  * - **Safety:** If you need to preserve the original range data, set this to `false`.
18073
18077
  */
18074
- reuseIterator?: IteratorResult<OverlappingRange.Intersection>;
18078
+ reuseIterator?: boolean | IteratorResult<OverlappingRange.Intersection>;
18075
18079
  }
18076
18080
  /**
18077
18081
  * When iterating a cursor is used to track the
@@ -18962,7 +18966,8 @@ declare class SheetDirectStyle implements ISpatialMap.IUpdatableEntry, IProperti
18962
18966
  protected _p: IStyle.Properties;
18963
18967
  protected _t: IRange.Coords;
18964
18968
  protected _e: boolean;
18965
- constructor(styles: IStyleCollection, range: IRange.Coords, properties?: IStyle.Properties, tile?: IRange.Coords);
18969
+ protected _o: IRange.Orientations;
18970
+ constructor(styles: IStyleCollection, range: IRange.Coords, properties?: IStyle.Properties, tile?: IRange.Coords, orientations?: IRange.Orientations);
18966
18971
  isEmpty(): boolean;
18967
18972
  getProperties(): IStyle.Properties;
18968
18973
  /** {@inheritDoc IProperties.ICellRanged.getCoords} */
@@ -13040,7 +13040,7 @@ declare module "collections/OverlappingRangeIterator" {
13040
13040
  * but it will modify the original range data.
13041
13041
  * - **Safety:** If you need to preserve the original range data, set this to `false`.
13042
13042
  */
13043
- reuseIterator?: IteratorResult<OverlappingRange.Intersection>;
13043
+ reuseIterator?: boolean | IteratorResult<OverlappingRange.Intersection>;
13044
13044
  }
13045
13045
  /**
13046
13046
  * When iterating a cursor is used to track the
@@ -20252,7 +20252,8 @@ declare module "sheet/style/SheetDirectStyle" {
20252
20252
  protected _p: IStyle.Properties;
20253
20253
  protected _t: IRange.Coords;
20254
20254
  protected _e: boolean;
20255
- constructor(styles: IStyleCollection, range: IRange.Coords, properties?: IStyle.Properties, tile?: IRange.Coords);
20255
+ protected _o: IRange.Orientations;
20256
+ constructor(styles: IStyleCollection, range: IRange.Coords, properties?: IStyle.Properties, tile?: IRange.Coords, orientations?: IRange.Orientations);
20256
20257
  isEmpty(): boolean;
20257
20258
  getProperties(): IStyle.Properties;
20258
20259
  /** {@inheritDoc IProperties.ICellRanged.getCoords} */
@@ -22329,7 +22330,7 @@ declare module "sheet/Sheet" {
22329
22330
  */
22330
22331
  protected _autoFit(ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions): void;
22331
22332
  /** @internal */
22332
- protected _createRangeEvent(coords: (readonly IRange.FixableCoords[]) | IRange.FixableCoords, options: NotifierOptions): ICellRange.Event;
22333
+ protected _createRangeEvent(coords: (readonly IRange.FixableCoords[]) | IRange.FixableCoords, options: NotifierOptions, coordsFrom?: (readonly IRange.FixableCoords[]) | IRange.FixableCoords): ICellRange.Event;
22333
22334
  /**
22334
22335
  * Notifies listeners with a range.
22335
22336
  * @internal
@@ -22785,13 +22786,11 @@ declare module "workbook/WorkbookRange" {
22785
22786
  constructor(coords: IRange.FixableCoords, sheet: any, workbook: IWorkbook, options: WorkbookRangeOptions);
22786
22787
  protected _createRanges(coords: readonly IRange.FixableCoords[], getOptions?: ICellRange.GetRangeOptions): ICellRanges;
22787
22788
  protected _createRange(coords: Readonly<IRange.FixableCoords>, getOptions?: ICellRange.GetRangeOptions): this;
22788
- /** {@inheritDoc ICellRange.getSource} */
22789
- getSource<S>(): S;
22789
+ /** {@inheritDoc ICellRange.addListener} */
22790
+ addListener(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
22790
22791
  get [Symbol.toStringTag](): string;
22791
22792
  /** {@inheritDoc ICellRange.toString} */
22792
22793
  toString(): string;
22793
- /** {@inheritDoc ICellRange.addListener} */
22794
- addListener(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
22795
22794
  }
22796
22795
  }
22797
22796
  declare module "workbook/Workbook" {
@@ -24380,7 +24379,7 @@ declare module "sheet/_SheetUtils" {
24380
24379
  import { ISort } from "sort/index";
24381
24380
  import type { IRangeSelection } from "selection/index";
24382
24381
  import { type IStyle } from "style/index";
24383
- import type { ICell } from "cell/index";
24382
+ import type { ICell, ICellHeader } from "cell/index";
24384
24383
  import type { ICellRange } from "cellRange/index";
24385
24384
  import type { ISheetHeader } from "sheet/header/index";
24386
24385
  import type { ISheet } from "sheet/ISheet";
@@ -24558,6 +24557,11 @@ declare module "sheet/_SheetUtils" {
24558
24557
  * @param rangeIndex @defaultValue ranges.length 1 unless this is a single cell then -1
24559
24558
  */
24560
24559
  export const rangesToSelection: (ranges: readonly IRange.Coords[], rangeIndex?: number) => IRangeSelection.Coords;
24560
+ export type OrientedStyled = {
24561
+ orientations: IRange.Orientations;
24562
+ index: number;
24563
+ };
24564
+ export const headerToRangedStyles: (headers: ICellHeader.JSON[], orientation: IRange.Orientation, entireCoords: IRange.Coords) => ITypes.RangeCoordValue<OrientedStyled>[] | null;
24561
24565
  }
24562
24566
  declare module "primitives/_PrimitiveUtils" {
24563
24567
  import { Scalar, JSScalar, ScalarType, FormulaError, IRange, IFormulaContext } from '@sheetxl/primitives';
@@ -30580,11 +30584,6 @@ declare module "cell/ICellHeader" {
30580
30584
  * Style id
30581
30585
  */
30582
30586
  s?: number;
30583
- /**
30584
- * Custom style
30585
- * @deprecated - Was for backward compatibility with Excel but no longer used.
30586
- */
30587
- cs?: boolean;
30588
30587
  /**
30589
30588
  * Header level
30590
30589
  */
@@ -33721,9 +33720,18 @@ declare module "cellRange/ICellRange" {
33721
33720
  * @remarks
33722
33721
  * This may change shape due to insert/delete/move of cells or sheets.
33723
33722
  */
33724
- getSource<T = any>(): T;
33725
- getFrom?<T = any>(): T;
33726
- getTo?<T = any>(): T;
33723
+ getSource<T = ICellRange | ICellRanges>(): T;
33724
+ /**
33725
+ * This is the range of data that has been changed.
33726
+ *
33727
+ * @remarks
33728
+ * This is different than the source range as that is the entire range area that was listened to.
33729
+ */
33730
+ getFrom(): ICellRanges;
33731
+ /**
33732
+ * Used for moves. Represents the new location of the data that has changed.
33733
+ */
33734
+ getTo?(): ICellRange;
33727
33735
  /**
33728
33736
  * Indicates the type of change that triggered the event.
33729
33737
  *