@xylabs/react-rich-result 5.1.2 → 5.1.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.
@@ -2,24 +2,23 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
4
  // src/jsonld/ActionStatusType.ts
5
- var ActionStatusType;
6
- (function(ActionStatusType2) {
5
+ var ActionStatusType = /* @__PURE__ */ function(ActionStatusType2) {
7
6
  ActionStatusType2["ActiveActionStatus"] = "ActiveActionStatus";
8
7
  ActionStatusType2["CompletedActionStatus"] = "CompletedActionStatus";
9
8
  ActionStatusType2["FailedActionStatus"] = "FailedActionStatus";
10
9
  ActionStatusType2["PotentialActionStatus"] = "PotentialActionStatus";
11
- })(ActionStatusType || (ActionStatusType = {}));
10
+ return ActionStatusType2;
11
+ }(ActionStatusType || {});
12
12
 
13
13
  // src/jsonld/ContactPointOption.ts
14
- var ContactPointOption;
15
- (function(ContactPointOption2) {
14
+ var ContactPointOption = /* @__PURE__ */ function(ContactPointOption2) {
16
15
  ContactPointOption2["HearingImpairedSupported"] = "HearingImpairedSupported";
17
16
  ContactPointOption2["TollFree"] = "TollFree";
18
- })(ContactPointOption || (ContactPointOption = {}));
17
+ return ContactPointOption2;
18
+ }(ContactPointOption || {});
19
19
 
20
20
  // src/jsonld/ItemAvailability.ts
21
- var ItemAvailability;
22
- (function(ItemAvailability2) {
21
+ var ItemAvailability = /* @__PURE__ */ function(ItemAvailability2) {
23
22
  ItemAvailability2["Discontinued"] = "https://schema.org/Discontinued";
24
23
  ItemAvailability2["InStock"] = "https://schema.org/InStock";
25
24
  ItemAvailability2["InStoreOnly"] = "https://schema.org/InStoreOnly";
@@ -29,16 +28,17 @@ var ItemAvailability;
29
28
  ItemAvailability2["PreOrder"] = "https://schema.org/PreOrder";
30
29
  ItemAvailability2["PreSale"] = "https://schema.org/PreSale";
31
30
  ItemAvailability2["SoldOut"] = "https://schema.org/SoldOut";
32
- })(ItemAvailability || (ItemAvailability = {}));
31
+ return ItemAvailability2;
32
+ }(ItemAvailability || {});
33
33
 
34
34
  // src/jsonld/MapCategoryType.ts
35
- var MapCategoryType;
36
- (function(MapCategoryType2) {
35
+ var MapCategoryType = /* @__PURE__ */ function(MapCategoryType2) {
37
36
  MapCategoryType2["ParkingMap"] = "ParkingMap";
38
37
  MapCategoryType2["SeatingMap"] = "SeatingMap";
39
38
  MapCategoryType2["TransitMap"] = "TransitMap";
40
39
  MapCategoryType2["VenueMap"] = "VenueMap";
41
- })(MapCategoryType || (MapCategoryType = {}));
40
+ return MapCategoryType2;
41
+ }(MapCategoryType || {});
42
42
 
43
43
  // src/RichResult.tsx
44
44
  import React from "react";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/jsonld/ActionStatusType.ts","../../src/jsonld/ContactPointOption.ts","../../src/jsonld/ItemAvailability.ts","../../src/jsonld/MapCategoryType.ts","../../src/RichResult.tsx"],"sourcesContent":["enum ActionStatusType {\n ActiveActionStatus = 'ActiveActionStatus',\n CompletedActionStatus = 'CompletedActionStatus',\n FailedActionStatus = 'FailedActionStatus',\n PotentialActionStatus = 'PotentialActionStatus',\n}\n\nexport { ActionStatusType }\n","enum ContactPointOption {\n HearingImpairedSupported = 'HearingImpairedSupported',\n TollFree = 'TollFree',\n}\n\nexport { ContactPointOption }\n","enum ItemAvailability {\n /** Indicates that the item has been discontinued. */\n Discontinued = 'https://schema.org/Discontinued',\n /** Indicates that the item is in stock. */\n InStock = 'https://schema.org/InStock',\n /** Indicates that the item is available only at physical locations. */\n InStoreOnly = 'https://schema.org/InStoreOnly',\n /** Indicates that the item has limited availability. */\n LimitedAvailability = 'https://schema.org/LimitedAvailability',\n /** Indicates that the item is available only online. */\n OnlineOnly = 'https://schema.org/OnlineOnly',\n /** Indicates that the item is out of stock. */\n OutOfStock = 'https://schema.org/OutOfStock',\n /** Indicates that the item is available for pre-order. */\n PreOrder = 'https://schema.org/PreOrder',\n /** Indicates that the item is available for ordering and delivery before general availability. */\n PreSale = 'https://schema.org/PreSale',\n /** Indicates that the item has sold out. */\n SoldOut = 'https://schema.org/SoldOut',\n}\n\nexport { ItemAvailability }\n","enum MapCategoryType {\n ParkingMap = 'ParkingMap',\n SeatingMap = 'SeatingMap',\n TransitMap = 'TransitMap',\n VenueMap = 'VenueMap',\n}\n\nexport { MapCategoryType }\n","import React from 'react'\n\nimport type { Base, Thing } from './jsonld/index.ts'\n\ntype WithContext<T extends Base> = T & {\n '@context': 'https://schema.org'\n}\n\nexport interface RichResultProps {\n thing: Thing\n}\n\nexport const RichResult: React.FC<RichResultProps> = (props) => {\n const { thing } = props\n const thingWithContext = thing as WithContext<Thing>\n thingWithContext['@context'] = 'https://schema.org'\n return <script type=\"application/ld+json\">{JSON.stringify(thingWithContext)}</script>\n}\n"],"mappings":";;;;;UAAKA,mBAAAA;;;;;GAAAA,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;UCAAC,qBAAAA;;;GAAAA,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;UCAAC,mBAAAA;AACgD,EAAAA,kBAAA,cAAA,IAAA;AAEV,EAAAA,kBAAA,SAAA,IAAA;AAE4B,EAAAA,kBAAA,aAAA,IAAA;AAEf,EAAAA,kBAAA,qBAAA,IAAA;AAEA,EAAAA,kBAAA,YAAA,IAAA;AAET,EAAAA,kBAAA,YAAA,IAAA;AAEW,EAAAA,kBAAA,UAAA,IAAA;AAEwC,EAAAA,kBAAA,SAAA,IAAA;AAEtD,EAAAA,kBAAA,SAAA,IAAA;GAjBvCA,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;UCAAC,kBAAAA;;;;;GAAAA,oBAAAA,kBAAAA,CAAAA,EAAAA;;;ACAL,OAAOC,WAAW;AAYX,IAAMC,aAAwC,wBAACC,UAAAA;AACpD,QAAM,EAAEC,MAAK,IAAKD;AAClB,QAAME,mBAAmBD;AACzBC,mBAAiB,UAAA,IAAc;AAC/B,SAAO,sBAAA,cAACC,UAAAA;IAAOC,MAAK;KAAuBC,KAAKC,UAAUJ,gBAAAA,CAAAA;AAC5D,GALqD;","names":["ActionStatusType","ContactPointOption","ItemAvailability","MapCategoryType","React","RichResult","props","thing","thingWithContext","script","type","JSON","stringify"]}
1
+ {"version":3,"sources":["../../src/jsonld/ActionStatusType.ts","../../src/jsonld/ContactPointOption.ts","../../src/jsonld/ItemAvailability.ts","../../src/jsonld/MapCategoryType.ts","../../src/RichResult.tsx"],"sourcesContent":["enum ActionStatusType {\n ActiveActionStatus = 'ActiveActionStatus',\n CompletedActionStatus = 'CompletedActionStatus',\n FailedActionStatus = 'FailedActionStatus',\n PotentialActionStatus = 'PotentialActionStatus',\n}\n\nexport { ActionStatusType }\n","enum ContactPointOption {\n HearingImpairedSupported = 'HearingImpairedSupported',\n TollFree = 'TollFree',\n}\n\nexport { ContactPointOption }\n","enum ItemAvailability {\n /** Indicates that the item has been discontinued. */\n Discontinued = 'https://schema.org/Discontinued',\n /** Indicates that the item is in stock. */\n InStock = 'https://schema.org/InStock',\n /** Indicates that the item is available only at physical locations. */\n InStoreOnly = 'https://schema.org/InStoreOnly',\n /** Indicates that the item has limited availability. */\n LimitedAvailability = 'https://schema.org/LimitedAvailability',\n /** Indicates that the item is available only online. */\n OnlineOnly = 'https://schema.org/OnlineOnly',\n /** Indicates that the item is out of stock. */\n OutOfStock = 'https://schema.org/OutOfStock',\n /** Indicates that the item is available for pre-order. */\n PreOrder = 'https://schema.org/PreOrder',\n /** Indicates that the item is available for ordering and delivery before general availability. */\n PreSale = 'https://schema.org/PreSale',\n /** Indicates that the item has sold out. */\n SoldOut = 'https://schema.org/SoldOut',\n}\n\nexport { ItemAvailability }\n","enum MapCategoryType {\n ParkingMap = 'ParkingMap',\n SeatingMap = 'SeatingMap',\n TransitMap = 'TransitMap',\n VenueMap = 'VenueMap',\n}\n\nexport { MapCategoryType }\n","import React from 'react'\n\nimport type { Base, Thing } from './jsonld/index.ts'\n\ntype WithContext<T extends Base> = T & {\n '@context': 'https://schema.org'\n}\n\nexport interface RichResultProps {\n thing: Thing\n}\n\nexport const RichResult: React.FC<RichResultProps> = (props) => {\n const { thing } = props\n const thingWithContext = thing as WithContext<Thing>\n thingWithContext['@context'] = 'https://schema.org'\n return <script type=\"application/ld+json\">{JSON.stringify(thingWithContext)}</script>\n}\n"],"mappings":";;;;IAAKA,mBAAAA,yBAAAA,mBAAAA;;;;;SAAAA;EAAAA,oBAAAA,CAAAA,CAAAA;;;ICAAC,qBAAAA,yBAAAA,qBAAAA;;;SAAAA;EAAAA,sBAAAA,CAAAA,CAAAA;;;ICAAC,mBAAAA,yBAAAA,mBAAAA;AACgD,EAAAA,kBAAA,cAAA,IAAA;AAEV,EAAAA,kBAAA,SAAA,IAAA;AAE4B,EAAAA,kBAAA,aAAA,IAAA;AAEf,EAAAA,kBAAA,qBAAA,IAAA;AAEA,EAAAA,kBAAA,YAAA,IAAA;AAET,EAAAA,kBAAA,YAAA,IAAA;AAEW,EAAAA,kBAAA,UAAA,IAAA;AAEwC,EAAAA,kBAAA,SAAA,IAAA;AAEtD,EAAAA,kBAAA,SAAA,IAAA;SAjBvCA;EAAAA,oBAAAA,CAAAA,CAAAA;;;ICAAC,kBAAAA,yBAAAA,kBAAAA;;;;;SAAAA;EAAAA,mBAAAA,CAAAA,CAAAA;;;ACAL,OAAOC,WAAW;AAYX,IAAMC,aAAwC,wBAACC,UAAAA;AACpD,QAAM,EAAEC,MAAK,IAAKD;AAClB,QAAME,mBAAmBD;AACzBC,mBAAiB,UAAA,IAAc;AAC/B,SAAO,sBAAA,cAACC,UAAAA;IAAOC,MAAK;KAAuBC,KAAKC,UAAUJ,gBAAAA,CAAAA;AAC5D,GALqD;","names":["ActionStatusType","ContactPointOption","ItemAvailability","MapCategoryType","React","RichResult","props","thing","thingWithContext","script","type","JSON","stringify"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/react-rich-result",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "Common React library for all XY Labs projects that use React",
5
5
  "keywords": [
6
6
  "utility",
@@ -38,8 +38,8 @@
38
38
  ],
39
39
  "devDependencies": {
40
40
  "@types/react": "^18.3.11",
41
- "@xylabs/ts-scripts-yarn3": "^4.1.0",
42
- "@xylabs/tsconfig-react": "^4.1.0",
41
+ "@xylabs/ts-scripts-yarn3": "^4.2.1",
42
+ "@xylabs/tsconfig-react": "^4.2.1",
43
43
  "react": "^18.3.1",
44
44
  "typescript": "^5.6.3"
45
45
  },