@corbe30/fortune-excel 2.2.2 → 2.2.3

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.
@@ -573,8 +573,8 @@ var FortuneSheet = /** @class */ (function (_super) {
573
573
  var attrList = row.attributeList;
574
574
  var ref = (0, method_1.getXmlAttibute)(attrList, "ref", null), refArr = (0, method_1.getMultiSequenceToNum)(ref), _display = (0, method_1.getXmlAttibute)(attrList, "display", null), _address = (0, method_1.getXmlAttibute)(attrList, "location", null), _tooltip = (0, method_1.getXmlAttibute)(attrList, "tooltip", null);
575
575
  var _type = _address
576
- ? "internal"
577
- : "external";
576
+ ? "cellrange"
577
+ : "webpage";
578
578
  // external hyperlink
579
579
  if (!_address) {
580
580
  var rid_1 = attrList["r:id"];
@@ -583,7 +583,10 @@ var FortuneSheet = /** @class */ (function (_super) {
583
583
  var findRid = relationshipList === null || relationshipList === void 0 ? void 0 : relationshipList.find(function (e) { return e.attributeList["Id"] === rid_1; });
584
584
  if (findRid) {
585
585
  _address = findRid.attributeList["Target"];
586
- _type = (_a = findRid.attributeList["TargetMode"]) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase();
586
+ var type = (_a = findRid.attributeList["TargetMode"]) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase();
587
+ if (type === "external") {
588
+ _type = "webpage";
589
+ }
587
590
  }
588
591
  }
589
592
  // match R1C1
@@ -298,4 +298,4 @@ export interface IfortunesheetHyperlinkValue {
298
298
  linkType: IfortunesheetHyperlinkType;
299
299
  display: string;
300
300
  }
301
- export type IfortunesheetHyperlinkType = "internal" | "external";
301
+ export type IfortunesheetHyperlinkType = "webpage" | "cellrange" | "sheet";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "src/*"
5
5
  ],
6
- "version": "2.2.2",
6
+ "version": "2.2.3",
7
7
  "description": "An Excel import/export import library for FortuneSheet",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",