@sheetxl/sdk 0.6.4 → 0.6.5

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/{B_MVp8Uera_7QlWk.cjs → 1_3EVzySgJNDiaUE.cjs} +1 -1
  2. package/browser/cjs/{CWg4C5sljKTRYdKu.cjs → B4chjtcr0o4aFuKT.cjs} +1 -1
  3. package/browser/cjs/{D0IVkMoNN-COZmjl.cjs → B7HXbtk4kID0BFaG.cjs} +1 -1
  4. package/browser/cjs/{BHYAYtEaA5UKRD1j.cjs → BAYao212xpuZ5TXQ.cjs} +1 -1
  5. package/browser/cjs/{B4dcFJt-2JEynxPm.cjs → BA_ADszVhVvZkaLd.cjs} +1 -1
  6. package/browser/cjs/{tzwNtSPsJUgIEY5N.cjs → BGmMCGwb4XgFFKer.cjs} +1 -1
  7. package/browser/cjs/{pF3P2vRwWY3wGbeT.cjs → BGx56F7lgS9TuWlq.cjs} +1 -1
  8. package/browser/cjs/{DIeYQNnruuFhxKb_.cjs → BH07HKbHpwqyW2in.cjs} +1 -1
  9. package/browser/cjs/{SYjopsO7Qi_S-bix.cjs → BiTNmhgmm9gC1ud4.cjs} +1 -1
  10. package/browser/cjs/{XssBrF8DDaZC5xE1.cjs → BqF9QaFKzLLweJgQ.cjs} +1 -1
  11. package/browser/cjs/{CfBNfYalNe9euDiV.cjs → BqQNrlCkhTo4hJJu.cjs} +1 -1
  12. package/browser/cjs/{Cjm0rHltIC6u1Prf.cjs → C4FaeErft9fajfRi.cjs} +1 -1
  13. package/browser/cjs/{B1KoTcvtAGrHbRmP.cjs → CA6aXYWbgqnHrXZs.cjs} +1 -1
  14. package/browser/cjs/{DUDXGRhi2q5FiQBv.cjs → CKnNfucWxsU0GqOU.cjs} +3 -3
  15. package/browser/cjs/CW7duG4wUZ2WGZ6k.cjs +54 -0
  16. package/browser/cjs/{CrQzC8s0fsrVYXnk.cjs → CacU9Y0hsm3Yv9yS.cjs} +1 -1
  17. package/browser/cjs/{CUzZS6wq23TI9nzy.cjs → Cnaau39zV7oIkm4G.cjs} +2 -2
  18. package/browser/cjs/{CXzQZlKCoA_oNpmL.cjs → Cr3XSNPQWBKBK6Qf.cjs} +1 -1
  19. package/browser/cjs/{D9lnpzNEAf2gilen.cjs → D1XJApP3pCpWxIWb.cjs} +1 -1
  20. package/browser/cjs/{B2Wlm7POkbiHTH-c.cjs → DLlHfOQKiI_IrjYQ.cjs} +1 -1
  21. package/browser/cjs/{DiM4wNuhjj13Mguw.cjs → DUuZTmAJXQTUIaFw.cjs} +1 -1
  22. package/browser/cjs/{SIbWAxmy_evb5nrx.cjs → DcvgT8cOF7iblf4H.cjs} +2 -2
  23. package/browser/cjs/{4v4n-OqVJTTDq9pb.cjs → DdNebT4BGt17jBKs.cjs} +1 -1
  24. package/browser/cjs/{DS1hyy_SNvhatUvW.cjs → DoP5-LoSp-4SfGav.cjs} +1 -1
  25. package/browser/cjs/{DFMiwOZ9joCPvFPQ.cjs → awAj8HPyBoZMSBF8.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{BXOQC771M92mrEBF.cjs → rAAzrafDjXApW6d1.cjs} +1 -1
  28. package/browser/cjs/{CBZzApuqkMQgmy16.cjs → y7gCGZaexp66Y_O3.cjs} +1 -1
  29. package/browser/esm/{DK66Wl0or5RCrTtT.mjs → 2VPWJpfkjSQrHOqx.mjs} +1 -1
  30. package/browser/esm/{Gbn__Vno84xZlVnt.mjs → 4EtdUdiceVPoz2IK.mjs} +1 -1
  31. package/{node/esm/zqoD7V9tPRS22VZ5.mjs → browser/esm/BEZokq93dUsAd34H.mjs} +1 -1
  32. package/browser/esm/{KGsrafeyxbtvDiYV.mjs → BKN7K66eizh6M7cw.mjs} +1 -1
  33. package/browser/esm/{Cs2e5lJOt1S5w-_j.mjs → BjQzB4bNiC-CHGoK.mjs} +1 -1
  34. package/{node/esm/BRoVd_kyqC92p76r.mjs → browser/esm/Bn6kEnI-UvNC8YdQ.mjs} +1 -1
  35. package/browser/esm/{BKbpJ6RK8plx1ssY.mjs → C-WMXya96uhP4U2M.mjs} +1 -1
  36. package/browser/esm/{CW0BShcAxwxHqGt6.mjs → C1jlzVqyQ2y7ZeS-.mjs} +2 -2
  37. package/{node/esm/b_HbgLccVmok2VW-.mjs → browser/esm/C9mJdWTccq1cSNjk.mjs} +1 -1
  38. package/{node/esm/ldR3glHnHE11RRmr.mjs → browser/esm/CFMFhO4-SEDpau6W.mjs} +1 -1
  39. package/{node/esm/Cp0hh02_xUlxr0U7.mjs → browser/esm/CFyqjJ7h0LyV_Cbx.mjs} +1 -1
  40. package/{node/esm/7PllkK7I5Ma9nBvh.mjs → browser/esm/CHaVDQvPbE97iuDU.mjs} +1 -1
  41. package/browser/esm/{6YN2Drt6CsylnbOR.mjs → CP5LGrimoqyGTA3L.mjs} +1 -1
  42. package/browser/esm/{5MSPmJYNZG1iyBl_.mjs → CTEKip2XFdhqNfth.mjs} +1 -1
  43. package/browser/esm/{BzoFQzdPKafR43T-.mjs → Cer9yix5Bz8-7fSK.mjs} +3 -3
  44. package/{node/esm/BzXXnfiES9dnA1Ph.mjs → browser/esm/Ch1Om1LTok7ZiCyj.mjs} +1 -1
  45. package/browser/esm/{DFlrI09lk7wnQtws.mjs → CsLyKtBpFcyi4TjM.mjs} +6279 -6174
  46. package/{node/esm/BXHL2Ok9ZqB0te78.mjs → browser/esm/D-dxYX_t5_ndfCmM.mjs} +1 -1
  47. package/browser/esm/{D-cmDaBDeqr-JwVo.mjs → D2JBKkRZQCMA3jTL.mjs} +1 -1
  48. package/browser/esm/{CpLTnZ9vIvIL0L5Q.mjs → D85EK9Ba-Ir_JtvT.mjs} +1 -1
  49. package/{node/esm/BOftZSycTYB8XEoK.mjs → browser/esm/DHV2aqYaKlQVdSFL.mjs} +1 -1
  50. package/browser/esm/{B1fsnPY1VCsnJRMa.mjs → DONfOZ2QJQtXJM5_.mjs} +1 -1
  51. package/{node/esm/glk2UtTouO1QiFvQ.mjs → browser/esm/DZgJwJIPP_P1B0lm.mjs} +1 -1
  52. package/browser/esm/{BNJSuQacBzjSwdGc.mjs → Dqz-9KC1M9X3oEGb.mjs} +1 -1
  53. package/browser/esm/{CL16UiUgzijmkg8u.mjs → DwtiCBFZp1tmxVJ2.mjs} +1 -1
  54. package/browser/esm/{s8drfDrkJDhCgKWX.mjs → EZD0OEqVU7mOZSjc.mjs} +2 -2
  55. package/browser/esm/index.mjs +2 -2
  56. package/browser/esm/{DA579Xh9gs99eik6.mjs → sMvI1MsSOhIsINeY.mjs} +1 -1
  57. package/node/esm/{fJL7nZqnPg5A1d2y.mjs → 4DWhSlRPd6nFspjw.mjs} +1 -1
  58. package/node/esm/{Gbn__Vno84xZlVnt.mjs → 4EtdUdiceVPoz2IK.mjs} +1 -1
  59. package/node/esm/{CeXbTuC9o_uwcAJF.mjs → 89C6MlZwB_rGzl9o.mjs} +2 -2
  60. package/{browser/esm/zqoD7V9tPRS22VZ5.mjs → node/esm/BEZokq93dUsAd34H.mjs} +1 -1
  61. package/node/esm/{CDaKOmNh-HKQ4LWe.mjs → BUwdxikyf3ZzNbIQ.mjs} +1 -1
  62. package/node/esm/{Cs2e5lJOt1S5w-_j.mjs → BjQzB4bNiC-CHGoK.mjs} +1 -1
  63. package/{browser/esm/BRoVd_kyqC92p76r.mjs → node/esm/Bn6kEnI-UvNC8YdQ.mjs} +1 -1
  64. package/node/esm/{FHnPl5ZAdB4OT30o.mjs → BrBIg6nV-AGe75cq.mjs} +1 -1
  65. package/node/esm/{BKbpJ6RK8plx1ssY.mjs → C-WMXya96uhP4U2M.mjs} +1 -1
  66. package/{browser/esm/b_HbgLccVmok2VW-.mjs → node/esm/C9mJdWTccq1cSNjk.mjs} +1 -1
  67. package/{browser/esm/ldR3glHnHE11RRmr.mjs → node/esm/CFMFhO4-SEDpau6W.mjs} +1 -1
  68. package/{browser/esm/Cp0hh02_xUlxr0U7.mjs → node/esm/CFyqjJ7h0LyV_Cbx.mjs} +1 -1
  69. package/{browser/esm/7PllkK7I5Ma9nBvh.mjs → node/esm/CHaVDQvPbE97iuDU.mjs} +1 -1
  70. package/node/esm/{6YN2Drt6CsylnbOR.mjs → CP5LGrimoqyGTA3L.mjs} +1 -1
  71. package/{browser/esm/BzXXnfiES9dnA1Ph.mjs → node/esm/Ch1Om1LTok7ZiCyj.mjs} +1 -1
  72. package/{browser/esm/BXHL2Ok9ZqB0te78.mjs → node/esm/D-dxYX_t5_ndfCmM.mjs} +1 -1
  73. package/node/esm/{DfxuMCa7ZBn-0NUn.mjs → D3_UzLLGaZ0-ql91.mjs} +1 -1
  74. package/node/esm/{Ctf652tPvLr789G5.mjs → DAQCtKuiX6-sKBZu.mjs} +1 -1
  75. package/{browser/esm/BOftZSycTYB8XEoK.mjs → node/esm/DHV2aqYaKlQVdSFL.mjs} +1 -1
  76. package/node/esm/{B1fsnPY1VCsnJRMa.mjs → DONfOZ2QJQtXJM5_.mjs} +1 -1
  77. package/node/esm/{BWtH79heK7fg3_LF.mjs → DVIvupmls0v57GIR.mjs} +1 -1
  78. package/{browser/esm/glk2UtTouO1QiFvQ.mjs → node/esm/DZgJwJIPP_P1B0lm.mjs} +1 -1
  79. package/node/esm/{DYISAZs_msPEZGTC.mjs → DeS_3-Eqtlxjoyjf.mjs} +1 -1
  80. package/node/esm/{BNJSuQacBzjSwdGc.mjs → Dqz-9KC1M9X3oEGb.mjs} +1 -1
  81. package/node/esm/index.mjs +3417 -3298
  82. package/node/esm/{DH19S1M27hG0ushG.mjs → qu-NfeeDZTjvhO6W.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +16 -3
  85. package/types/scripting.d.ts +42 -10
  86. package/browser/cjs/B41PzxC0w5TPpEci.cjs +0 -54
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.4
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.5
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.6.4",
4
+ "version": "0.6.5",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -31,9 +31,9 @@
31
31
  "automation"
32
32
  ],
33
33
  "dependencies": {
34
- "@sheetxl/primitives": "^0.6.4",
35
- "@sheetxl/scripting": "^0.6.4",
36
- "@sheetxl/utils": "^0.6.4",
34
+ "@sheetxl/primitives": "^0.6.5",
35
+ "@sheetxl/scripting": "^0.6.5",
36
+ "@sheetxl/utils": "^0.6.5",
37
37
  "bahttext": "^2.3.0",
38
38
  "bessel": "^1.0.2",
39
39
  "chalk": "^5.5.0",
package/types/index.d.ts CHANGED
@@ -17483,7 +17483,7 @@ export declare interface LicenseDetails {
17483
17483
  /**
17484
17484
  * LicenseManager is used to manage license keys at runtime.
17485
17485
  *
17486
- * License keys can be generated by visiting {@link https://www.sheetxl.com/docs/getting-started/license-key | License Keys}.
17486
+ * License keys can be generated by visiting {@link https://www.sheetxl.com/docs/guides/getting-started/license-key | License Keys}.
17487
17487
  */
17488
17488
  export declare const LicenseManager: LM;
17489
17489
 
@@ -17523,7 +17523,7 @@ declare class LM {
17523
17523
  * @param force If set to `true` will replace an existing key.
17524
17524
  *
17525
17525
  * @see
17526
- * {@link https://www.sheetxl.com/docs/getting-started/license-key | License Keys}
17526
+ * {@link https://www.sheetxl.com/docs/guides/getting-started/license-key | License Keys}
17527
17527
  */
17528
17528
  setLicenseKey(licenseKey: string, force?: boolean): Promise<LicenseDetails>;
17529
17529
  private _validate;
@@ -18122,8 +18122,8 @@ declare namespace RangeState {
18122
18122
  */
18123
18123
  type SearchTypes = Partial<Record<RangeState.Type, boolean>>;
18124
18124
  interface IteratorOptions extends OverlappingRange.IteratorOptions {
18125
- bounds?: IRange.Coords;
18126
18125
  includeRangeTypes: boolean | SearchTypes;
18126
+ bounds?: IRange.Coords;
18127
18127
  excludeHidden?: boolean | IRange.Orientation;
18128
18128
  includeMergeOverflow?: boolean;
18129
18129
  }
@@ -18422,6 +18422,7 @@ export declare class Sheet implements ISheet {
18422
18422
  /* Excluded from this release type: _collectRanges */
18423
18423
  /* Excluded from this release type: _cellIterator */
18424
18424
  /* Excluded from this release type: _rangeStateIterator */
18425
+ /* Excluded from this release type: _overflowAndStops */
18425
18426
  /* Excluded from this release type: _cellStateIterator */
18426
18427
  /* Excluded from this release type: _indexMerges */
18427
18428
  /* Excluded from this release type: _updateStyles */
@@ -20498,6 +20499,18 @@ declare namespace _Utils {
20498
20499
  */
20499
20500
  declare const validateRuns: (runs: RunCoords[]) => boolean;
20500
20501
 
20502
+ declare interface ViewEdgeEntry {
20503
+ rowIndex: number;
20504
+ colIndex: number;
20505
+ continuous: IProperties.ICellRanged<IStyle.Properties> | null;
20506
+ leftIndex: number;
20507
+ rightIndex: number;
20508
+ overflow: ICell.HorizontalOverflow | null;
20509
+ intersection: RangeState.Intersection;
20510
+ scalar: Scalar | null;
20511
+ style: IStyle;
20512
+ }
20513
+
20501
20514
  declare type WellKnownIterator<T, TReturn = any, TNext = undefined> = Iterator<T, TReturn, TNext>;
20502
20515
 
20503
20516
  declare type WellKnownIteratorResult<T, TReturn = any> = IteratorResult<T, TReturn>;
@@ -16878,8 +16878,8 @@ declare module "sheet/_SheetTypes" {
16878
16878
  */
16879
16879
  type SearchTypes = Partial<Record<RangeState.Type, boolean>>;
16880
16880
  interface IteratorOptions extends OverlappingRange.IteratorOptions {
16881
- bounds?: IRange.Coords;
16882
16881
  includeRangeTypes: boolean | SearchTypes;
16882
+ bounds?: IRange.Coords;
16883
16883
  excludeHidden?: boolean | IRange.Orientation;
16884
16884
  includeMergeOverflow?: boolean;
16885
16885
  }
@@ -17003,19 +17003,24 @@ declare module "sheet/_SheetTypes" {
17003
17003
  };
17004
17004
  type Type = typeof Type[keyof typeof Type];
17005
17005
  }
17006
- export const RangeTypesAll: RangeState.SearchTypes;
17007
- export const RangeTypesCellState: RangeState.SearchTypes;
17006
+ export const AllRangeTypes: RangeState.SearchTypes;
17007
+ export const CellStateRangeTypes: RangeState.SearchTypes;
17008
17008
  /**
17009
17009
  * We don't want to copy TextOverflows.
17010
17010
  * TODO - create a more generalize Type (Eager vs on demand.)
17011
17011
  * @internal
17012
17012
  */
17013
- export const RangeTypesCopy: RangeState.SearchTypes;
17013
+ export const CopyRangeTypes: RangeState.SearchTypes;
17014
17014
  /**
17015
17015
  * Used by merge redirect lookup.
17016
17016
  * @internal
17017
17017
  */
17018
- export const RangeTypesNoMerge: RangeState.SearchTypes;
17018
+ export const NoMergeRangeTypes: RangeState.SearchTypes;
17019
+ /**
17020
+ * Used by overlaps lookup
17021
+ * @internal
17022
+ */
17023
+ export const OverflowsRangeTypes: RangeState.SearchTypes;
17019
17024
  }
17020
17025
  declare module "sheet/spatial/MergeEntry" {
17021
17026
  import { Scalar, IRange } from '@sheetxl/primitives';
@@ -17919,8 +17924,13 @@ declare module "sheet/SheetCell" {
17919
17924
  export const resolveCellModifiers: (update: ICell.Update, options: SheetCellOptions, optionsFromString?: ICell.ModifiersFromStringOptions, resolvedStringCache?: Map<string, ICell.Modifiers>, // assumes the same fromStringOptions is used
17920
17925
  isParsingCustom?: boolean) => ResolvedCellModifiers;
17921
17926
  export const csOverflowable: (type: ScalarType, style: IStyle, prev?: boolean, next?: boolean) => boolean;
17927
+ /**
17928
+ * Updates the overflow calc and returns a range if overflowed
17929
+ * @internal
17930
+ */
17931
+ export const calcTextOverflow: (rowIndex: number, colIndex: number, type: ScalarType, style: IStyle, value: Scalar, prev: IRange.CellCoords, next: IRange.CellCoords, continuousCoords: IRange.Coords, cellOptions: SheetCellOptions) => ICell.HorizontalOverflow | null;
17922
17932
  /** Guaranteed to never return null */
17923
- export const csStyle: (specific: boolean, range: IRange.Coords, rs: RangeState.Intersection, options: SheetCellOptions) => IStyle;
17933
+ export const csStyle: (specific: boolean, range: IRange.Coords, intersection: RangeState.Intersection, options: SheetCellOptions) => IStyle;
17924
17934
  export const csBestFit: (type: ScalarType, style: IStyle, value: Scalar, options: SheetCellOptions, colWidth: number, isMinContent: boolean, isRowOnly: boolean, // if true we only measure the height
17925
17935
  customHash?: string, cache?: Cache<string, Readonly<Partial<Dimensions>>>) => Readonly<Partial<Dimensions>>;
17926
17936
  export interface SheetCellOptions {
@@ -17938,7 +17948,7 @@ declare module "sheet/SheetCell" {
17938
17948
  opener(url: string, options: ICellRange.SelectOptions, target?: string, features?: string): Promise<boolean>;
17939
17949
  }
17940
17950
  export class SheetCell implements ICell {
17941
- protected _rs: RangeState.Intersection;
17951
+ protected _ri: RangeState.Intersection;
17942
17952
  protected _p: IRange.CellCoords;
17943
17953
  protected _n: IRange.CellCoords;
17944
17954
  protected _to: ICell.HorizontalOverflow;
@@ -17948,7 +17958,7 @@ declare module "sheet/SheetCell" {
17948
17958
  protected _v: Scalar;
17949
17959
  protected _styleSpecific: IStyle;
17950
17960
  protected _styleConditional: IStyle;
17951
- constructor(options: SheetCellOptions, coords: IRange.CellCoords, type?: ScalarType, value?: Scalar, rs?: RangeState.Intersection, p?: IRange.CellCoords, // prev
17961
+ constructor(options: SheetCellOptions, coords: IRange.CellCoords, type?: ScalarType, value?: Scalar, intersection?: RangeState.Intersection, p?: IRange.CellCoords, // prev
17952
17962
  n?: IRange.CellCoords);
17953
17963
  /** {@inheritDoc ICell.getRange} */
17954
17964
  getRange(): ICellRange;
@@ -19618,7 +19628,7 @@ declare module "license/LicenseManager" {
19618
19628
  * @param force If set to `true` will replace an existing key.
19619
19629
  *
19620
19630
  * @see
19621
- * {@link https://www.sheetxl.com/docs/getting-started/license-key | License Keys}
19631
+ * {@link https://www.sheetxl.com/docs/guides/getting-started/license-key | License Keys}
19622
19632
  */
19623
19633
  setLicenseKey(licenseKey: string, force?: boolean): Promise<LicenseDetails>;
19624
19634
  private _validate;
@@ -19661,7 +19671,7 @@ declare module "license/LicenseManager" {
19661
19671
  /**
19662
19672
  * LicenseManager is used to manage license keys at runtime.
19663
19673
  *
19664
- * License keys can be generated by visiting {@link https://www.sheetxl.com/docs/getting-started/license-key | License Keys}.
19674
+ * License keys can be generated by visiting {@link https://www.sheetxl.com/docs/guides/getting-started/license-key | License Keys}.
19665
19675
  */
19666
19676
  const LicenseManager: LM;
19667
19677
  export default LicenseManager;
@@ -32398,6 +32408,17 @@ declare module "sheet/Sheet" {
32398
32408
  reverse?: boolean;
32399
32409
  };
32400
32410
  }
32411
+ interface ViewEdgeEntry {
32412
+ rowIndex: number;
32413
+ colIndex: number;
32414
+ continuous: IProperties.ICellRanged<IStyle.Properties> | null;
32415
+ leftIndex: number;
32416
+ rightIndex: number;
32417
+ overflow: ICell.HorizontalOverflow | null;
32418
+ intersection: RangeState.Intersection;
32419
+ scalar: Scalar | null;
32420
+ style: IStyle;
32421
+ }
32401
32422
  interface State {
32402
32423
  cellValuesGrid: ISparseGrid<Scalar>;
32403
32424
  contentfulSpatial: ISpatialMap<ContentfulEntry>;
@@ -32612,6 +32633,17 @@ declare module "sheet/Sheet" {
32612
32633
  * @internal
32613
32634
  */
32614
32635
  protected _rangeStateIterator(options: RangeState.IteratorOptions): RangeState.Iterator;
32636
+ /**
32637
+ * iterator for overlaps and stops.
32638
+ *
32639
+ * @param view
32640
+ *
32641
+ * @internal
32642
+ */
32643
+ protected _overflowAndStops(bounds: IRange.Coords, maxDistance?: number): {
32644
+ overflows: ViewEdgeEntry[];
32645
+ stops: ViewEdgeEntry[];
32646
+ };
32615
32647
  /**
32616
32648
  * Creates a an iterator that combines the values and ranges into a single iterator.
32617
32649
  * @internal