@xylabs/react-rich-result 4.0.2 → 4.0.4

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 (141) hide show
  1. package/dist/browser/RichResult.d.ts +7 -0
  2. package/dist/browser/RichResult.d.ts.map +1 -0
  3. package/dist/browser/index.d.ts +3 -648
  4. package/dist/browser/index.d.ts.map +1 -0
  5. package/dist/browser/index.mjs.map +1 -1
  6. package/dist/browser/jsonld/Action.d.ts +25 -0
  7. package/dist/browser/jsonld/Action.d.ts.map +1 -0
  8. package/dist/browser/jsonld/ActionStatusType.d.ts +8 -0
  9. package/dist/browser/jsonld/ActionStatusType.d.ts.map +1 -0
  10. package/dist/browser/jsonld/AdministrativeArea.d.ts +4 -0
  11. package/dist/browser/jsonld/AdministrativeArea.d.ts.map +1 -0
  12. package/dist/browser/jsonld/AggregateRating.d.ts +9 -0
  13. package/dist/browser/jsonld/AggregateRating.d.ts.map +1 -0
  14. package/dist/browser/jsonld/Article.d.ts +15 -0
  15. package/dist/browser/jsonld/Article.d.ts.map +1 -0
  16. package/dist/browser/jsonld/Base.d.ts +5 -0
  17. package/dist/browser/jsonld/Base.d.ts.map +1 -0
  18. package/dist/browser/jsonld/Brand.d.ts +11 -0
  19. package/dist/browser/jsonld/Brand.d.ts.map +1 -0
  20. package/dist/browser/jsonld/Class.d.ts +8 -0
  21. package/dist/browser/jsonld/Class.d.ts.map +1 -0
  22. package/dist/browser/jsonld/ContactPoint.d.ts +20 -0
  23. package/dist/browser/jsonld/ContactPoint.d.ts.map +1 -0
  24. package/dist/browser/jsonld/ContactPointOption.d.ts +6 -0
  25. package/dist/browser/jsonld/ContactPointOption.d.ts.map +1 -0
  26. package/dist/browser/jsonld/Country.d.ts +4 -0
  27. package/dist/browser/jsonld/Country.d.ts.map +1 -0
  28. package/dist/browser/jsonld/CreativeWork.d.ts +123 -0
  29. package/dist/browser/jsonld/CreativeWork.d.ts.map +1 -0
  30. package/dist/browser/jsonld/DateTime.d.ts +3 -0
  31. package/dist/browser/jsonld/DateTime.d.ts.map +1 -0
  32. package/dist/browser/jsonld/EntryPoint.d.ts +14 -0
  33. package/dist/browser/jsonld/EntryPoint.d.ts.map +1 -0
  34. package/dist/browser/jsonld/Enumeration.d.ts +8 -0
  35. package/dist/browser/jsonld/Enumeration.d.ts.map +1 -0
  36. package/dist/browser/jsonld/GeoShape.d.ts +16 -0
  37. package/dist/browser/jsonld/GeoShape.d.ts.map +1 -0
  38. package/dist/browser/jsonld/GeospatialGeometry.d.ts +16 -0
  39. package/dist/browser/jsonld/GeospatialGeometry.d.ts.map +1 -0
  40. package/dist/browser/jsonld/ImageObject.d.ts +10 -0
  41. package/dist/browser/jsonld/ImageObject.d.ts.map +1 -0
  42. package/dist/browser/jsonld/Intangible.d.ts +4 -0
  43. package/dist/browser/jsonld/Intangible.d.ts.map +1 -0
  44. package/dist/browser/jsonld/Integer.d.ts +3 -0
  45. package/dist/browser/jsonld/Integer.d.ts.map +1 -0
  46. package/dist/browser/jsonld/ItemAvailability.d.ts +13 -0
  47. package/dist/browser/jsonld/ItemAvailability.d.ts.map +1 -0
  48. package/dist/browser/jsonld/Language.d.ts +4 -0
  49. package/dist/browser/jsonld/Language.d.ts.map +1 -0
  50. package/dist/browser/jsonld/Map.d.ts +7 -0
  51. package/dist/browser/jsonld/Map.d.ts.map +1 -0
  52. package/dist/browser/jsonld/MapCategoryType.d.ts +8 -0
  53. package/dist/browser/jsonld/MapCategoryType.d.ts.map +1 -0
  54. package/dist/browser/jsonld/MediaObject.d.ts +11 -0
  55. package/dist/browser/jsonld/MediaObject.d.ts.map +1 -0
  56. package/dist/browser/jsonld/MobileApplication.d.ts +7 -0
  57. package/dist/browser/jsonld/MobileApplication.d.ts.map +1 -0
  58. package/dist/browser/jsonld/Offer.d.ts +65 -0
  59. package/dist/browser/jsonld/Offer.d.ts.map +1 -0
  60. package/dist/browser/jsonld/Organization.d.ts +78 -0
  61. package/dist/browser/jsonld/Organization.d.ts.map +1 -0
  62. package/dist/browser/jsonld/Person.d.ts +72 -0
  63. package/dist/browser/jsonld/Person.d.ts.map +1 -0
  64. package/dist/browser/jsonld/Photograph.d.ts +4 -0
  65. package/dist/browser/jsonld/Photograph.d.ts.map +1 -0
  66. package/dist/browser/jsonld/Place.d.ts +43 -0
  67. package/dist/browser/jsonld/Place.d.ts.map +1 -0
  68. package/dist/browser/jsonld/PostalAddress.d.ts +13 -0
  69. package/dist/browser/jsonld/PostalAddress.d.ts.map +1 -0
  70. package/dist/browser/jsonld/Product.d.ts +57 -0
  71. package/dist/browser/jsonld/Product.d.ts.map +1 -0
  72. package/dist/browser/jsonld/Property.d.ts +11 -0
  73. package/dist/browser/jsonld/Property.d.ts.map +1 -0
  74. package/dist/browser/jsonld/PropertyValue.d.ts +17 -0
  75. package/dist/browser/jsonld/PropertyValue.d.ts.map +1 -0
  76. package/dist/browser/jsonld/QualitativeValue.d.ts +16 -0
  77. package/dist/browser/jsonld/QualitativeValue.d.ts.map +1 -0
  78. package/dist/browser/jsonld/QuantitativeValue.d.ts +16 -0
  79. package/dist/browser/jsonld/QuantitativeValue.d.ts.map +1 -0
  80. package/dist/browser/jsonld/Rating.d.ts +11 -0
  81. package/dist/browser/jsonld/Rating.d.ts.map +1 -0
  82. package/dist/browser/jsonld/Review.d.ts +11 -0
  83. package/dist/browser/jsonld/Review.d.ts.map +1 -0
  84. package/dist/browser/jsonld/Service.d.ts +39 -0
  85. package/dist/browser/jsonld/Service.d.ts.map +1 -0
  86. package/dist/browser/jsonld/SoftwareApplication.d.ts +29 -0
  87. package/dist/browser/jsonld/SoftwareApplication.d.ts.map +1 -0
  88. package/dist/browser/jsonld/StructuredValue.d.ts +4 -0
  89. package/dist/browser/jsonld/StructuredValue.d.ts.map +1 -0
  90. package/dist/browser/jsonld/Text.d.ts +3 -0
  91. package/dist/browser/jsonld/Text.d.ts.map +1 -0
  92. package/dist/browser/jsonld/Thing.d.ts +23 -0
  93. package/dist/browser/jsonld/Thing.d.ts.map +1 -0
  94. package/dist/browser/jsonld/Time.d.ts +3 -0
  95. package/dist/browser/jsonld/Time.d.ts.map +1 -0
  96. package/dist/browser/jsonld/URL.d.ts +3 -0
  97. package/dist/browser/jsonld/URL.d.ts.map +1 -0
  98. package/dist/browser/jsonld/VirtualLocation.d.ts +4 -0
  99. package/dist/browser/jsonld/VirtualLocation.d.ts.map +1 -0
  100. package/dist/browser/jsonld/index.d.ts +48 -0
  101. package/dist/browser/jsonld/index.d.ts.map +1 -0
  102. package/package.json +32 -32
  103. package/src/RichResult.tsx +1 -1
  104. package/src/jsonld/Action.ts +10 -10
  105. package/src/jsonld/AdministrativeArea.ts +1 -1
  106. package/src/jsonld/AggregateRating.ts +2 -2
  107. package/src/jsonld/Article.ts +3 -3
  108. package/src/jsonld/Brand.ts +4 -4
  109. package/src/jsonld/Class.ts +3 -3
  110. package/src/jsonld/ContactPoint.ts +8 -8
  111. package/src/jsonld/Country.ts +1 -1
  112. package/src/jsonld/CreativeWork.ts +16 -16
  113. package/src/jsonld/EntryPoint.ts +4 -4
  114. package/src/jsonld/Enumeration.ts +3 -3
  115. package/src/jsonld/GeoShape.ts +4 -4
  116. package/src/jsonld/GeospatialGeometry.ts +2 -2
  117. package/src/jsonld/ImageObject.ts +2 -2
  118. package/src/jsonld/Intangible.ts +1 -1
  119. package/src/jsonld/Language.ts +1 -1
  120. package/src/jsonld/Map.ts +2 -2
  121. package/src/jsonld/MediaObject.ts +3 -3
  122. package/src/jsonld/MobileApplication.ts +2 -2
  123. package/src/jsonld/Offer.ts +18 -18
  124. package/src/jsonld/Organization.ts +19 -19
  125. package/src/jsonld/Person.ts +11 -11
  126. package/src/jsonld/Photograph.ts +1 -1
  127. package/src/jsonld/Place.ts +12 -12
  128. package/src/jsonld/PostalAddress.ts +3 -3
  129. package/src/jsonld/Product.ts +13 -13
  130. package/src/jsonld/Property.ts +3 -3
  131. package/src/jsonld/PropertyValue.ts +5 -5
  132. package/src/jsonld/QualitativeValue.ts +4 -4
  133. package/src/jsonld/QuantitativeValue.ts +5 -5
  134. package/src/jsonld/Rating.ts +2 -2
  135. package/src/jsonld/Review.ts +3 -3
  136. package/src/jsonld/Service.ts +14 -14
  137. package/src/jsonld/SoftwareApplication.ts +4 -4
  138. package/src/jsonld/StructuredValue.ts +1 -1
  139. package/src/jsonld/Thing.ts +7 -7
  140. package/src/jsonld/VirtualLocation.ts +1 -1
  141. package/xy.config.ts +2 -4
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { Thing } from './jsonld/index.ts';
3
+ export interface RichResultProps {
4
+ thing: Thing;
5
+ }
6
+ export declare const RichResult: React.FC<RichResultProps>;
7
+ //# sourceMappingURL=RichResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichResult.d.ts","sourceRoot":"","sources":["../../src/RichResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAQ,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAMpD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAA;CACb;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAKhD,CAAA"}
@@ -1,648 +1,3 @@
1
- import React from 'react';
2
-
3
- declare enum ActionStatusType {
4
- ActiveActionStatus = "ActiveActionStatus",
5
- CompletedActionStatus = "CompletedActionStatus",
6
- FailedActionStatus = "FailedActionStatus",
7
- PotentialActionStatus = "PotentialActionStatus"
8
- }
9
-
10
- type DateTime = string;
11
-
12
- interface Base {
13
- '@type': string;
14
- }
15
-
16
- type Text$1 = string | string[];
17
-
18
- interface Rating extends Intangible {
19
- bestRating?: number;
20
- ratingExplaination?: Text$1;
21
- ratingValue?: number;
22
- reviewAspect?: Text$1;
23
- worstRating?: number;
24
- }
25
-
26
- interface AggregateRating extends Rating {
27
- itemReviewed?: Thing;
28
- ratingCount?: number;
29
- reviewCount?: number;
30
- }
31
-
32
- type Integer = number;
33
-
34
- type Language = Intangible;
35
-
36
- type URL$1 = string | string[];
37
-
38
- interface MediaObject extends CreativeWork {
39
- contentSize?: Text$1;
40
- contentUrl?: URL$1;
41
- height?: unknown;
42
- width?: unknown;
43
- }
44
-
45
- interface GeospatialGeometry extends Intangible {
46
- geoContains?: Place | GeospatialGeometry;
47
- geoCoveredBy?: Place | GeospatialGeometry;
48
- geoCovers?: Place | GeospatialGeometry;
49
- geoCrosses?: Place | GeospatialGeometry;
50
- geoDisjoint?: Place | GeospatialGeometry;
51
- geoEquals?: Place | GeospatialGeometry;
52
- geoIntersects?: Place | GeospatialGeometry;
53
- geoOverlaps?: Place | GeospatialGeometry;
54
- geoTouches?: Place | GeospatialGeometry;
55
- geoWithin?: Place | GeospatialGeometry;
56
- }
57
-
58
- interface ImageObject extends MediaObject {
59
- caption?: Text$1;
60
- exifData?: Text$1;
61
- representativeOfPage?: boolean;
62
- thumbnail?: ImageObject;
63
- }
64
-
65
- declare enum MapCategoryType {
66
- ParkingMap = "ParkingMap",
67
- SeatingMap = "SeatingMap",
68
- TransitMap = "TransitMap",
69
- VenueMap = "VenueMap"
70
- }
71
-
72
- interface Map extends CreativeWork {
73
- mapType?: MapCategoryType;
74
- }
75
-
76
- type Photograph = CreativeWork;
77
-
78
- declare enum ContactPointOption {
79
- HearingImpairedSupported = "HearingImpairedSupported",
80
- TollFree = "TollFree"
81
- }
82
-
83
- type Country = AdministrativeArea;
84
-
85
- interface GeoShape extends Thing {
86
- address?: PostalAddress | Text$1;
87
- addressCountry?: Country | Text$1;
88
- box?: Text$1;
89
- circle?: Text$1;
90
- elevation?: number | Text$1;
91
- line?: Text$1;
92
- polygon?: Text$1;
93
- postalCode?: Text$1;
94
- }
95
-
96
- interface Review extends CreativeWork {
97
- itemReviewed?: Thing;
98
- reviewAspect?: Text;
99
- reviewBody?: Text;
100
- reviewRating?: Rating;
101
- }
102
-
103
- interface Brand extends Intangible {
104
- aggregateRating?: AggregateRating;
105
- logo?: ImageObject | URL;
106
- review?: Review;
107
- slogan?: Text;
108
- }
109
-
110
- interface Article extends CreativeWork {
111
- articleBody?: Text$1;
112
- articleSection?: Text$1;
113
- backstory?: CreativeWork | Text$1;
114
- pageEnd?: Integer | Text$1;
115
- pageStart?: Integer | Text$1;
116
- pagination?: Text$1;
117
- speakable?: unknown | URL;
118
- wordCount?: Integer;
119
- }
120
-
121
- interface Person extends Thing {
122
- additionalName?: string;
123
- address?: string | PostalAddress;
124
- affiliation?: Organization | Organization[];
125
- alumniOf?: Organization | Organization[];
126
- award?: string | string[];
127
- birthDate?: string | Date;
128
- birthPlace?: string | Place;
129
- brand?: Brand | Organization;
130
- callSign?: string;
131
- children?: Person | Person[];
132
- colleague?: Person | string | (Person | string)[];
133
- contactPoint?: ContactPoint;
134
- deathDate?: string | Date;
135
- deathPlace?: string | Place;
136
- duns?: string;
137
- email?: string;
138
- familyName?: string;
139
- faxNumber?: string;
140
- follows?: Person | Person[];
141
- funder?: Organization | Person | (Organization | Person)[];
142
- gender?: string;
143
- givenName?: string;
144
- globalLocationNumber?: string;
145
- hasCredential?: unknown;
146
- hasOccupation?: unknown;
147
- hasOfferCatalog?: unknown;
148
- hasPOS?: Place;
149
- height?: unknown;
150
- homeLocation?: ContactPoint | Place;
151
- honorificPrefix?: string;
152
- honorificSuffix?: string;
153
- interactionStatistic?: unknown;
154
- isicV4?: string;
155
- jobTitle?: string;
156
- knows?: Person | Person[];
157
- knowsAbout?: string | Thing | (string | Thing)[];
158
- knowsLanguage?: Language | string | (Language | string)[];
159
- makesOffer?: Offer | Offer[];
160
- memberOf?: Organization | unknown | (Organization | unknown)[];
161
- naics?: string;
162
- nationality?: Country;
163
- netWorth?: unknown;
164
- owns?: Product | unknown | (Product | unknown)[];
165
- parent?: Person | Person[];
166
- performerIn?: Event | CreativeWork | string | (Event | CreativeWork | string)[];
167
- publishingPrinciples?: CreativeWork | string;
168
- relatedTo?: Person | Person[];
169
- seeks?: unknown;
170
- sibling?: Person | Person[];
171
- sponsor?: Organization | Person | (Organization | Person)[];
172
- spouse?: Person;
173
- taxID?: string;
174
- telephone?: string;
175
- vatID?: string;
176
- weight?: unknown;
177
- workLocation?: ContactPoint | Place | (ContactPoint | Place)[];
178
- worksFor?: Organization | Organization[];
179
- }
180
-
181
- interface Property extends Intangible {
182
- domainIncludes?: Class;
183
- inverseOf?: Property;
184
- rangeIncludes?: Class;
185
- supersededBy?: Class | Enumeration | Property;
186
- }
187
-
188
- interface Class extends Intangible {
189
- supersededBy?: Class | Enumeration | Property;
190
- }
191
-
192
- interface Enumeration extends Intangible {
193
- supersededBy?: Class | Enumeration | Property;
194
- }
195
-
196
- type StructuredValue = Intangible;
197
-
198
- interface QualitativeValue extends Enumeration {
199
- additionalProperty?: PropertyValue;
200
- equal?: QualitativeValue;
201
- greater?: QualitativeValue;
202
- greaterOrEqual?: QualitativeValue;
203
- lesser?: QualitativeValue;
204
- lesserOrEqual?: QualitativeValue;
205
- nonEqual?: QualitativeValue;
206
- valueReference?: Enumeration | PropertyValue | QualitativeValue | QuantitativeValue | StructuredValue;
207
- }
208
-
209
- interface PropertyValue extends StructuredValue {
210
- maxValue?: number;
211
- measurementTechnique?: string | URL$1;
212
- minValue?: number;
213
- propertyId?: string | URL$1;
214
- unitCode?: string | URL$1;
215
- unitText?: string;
216
- value?: boolean | number | StructuredValue | string;
217
- valueReference?: Enumeration | PropertyValue | QualitativeValue | QuantitativeValue | StructuredValue;
218
- }
219
-
220
- interface QuantitativeValue extends Enumeration {
221
- additionalProperty?: PropertyValue;
222
- maxValue?: number;
223
- minValue?: number;
224
- unitCode?: string | URL$1;
225
- unitText?: string;
226
- value?: boolean | number | StructuredValue | string;
227
- valueReference?: Enumeration | PropertyValue | QualitativeValue | QuantitativeValue | StructuredValue;
228
- }
229
-
230
- type VirtualLocation = Thing;
231
-
232
- interface Organization extends Thing {
233
- actionableFeedbackPolicy?: CreativeWork | URL;
234
- address?: PostalAddress | Text$1;
235
- aggregateRating?: AggregateRating;
236
- alumni?: Person;
237
- areaServed?: AdministrativeArea | GeoShape | Place | Text$1;
238
- award?: Text$1;
239
- brand?: Brand;
240
- contactPoint?: ContactPoint;
241
- correctionsPolicy?: CreativeWork | URL;
242
- department?: Organization;
243
- dissolutionDate?: DateTime;
244
- diversityPolicy?: CreativeWork | URL;
245
- diversityStaffingReport?: Article | URL;
246
- duns?: Text$1;
247
- email?: Text$1;
248
- employee?: Person | Person[];
249
- ethicsPolicy?: CreativeWork | URL;
250
- event?: Event;
251
- faxNumber?: Text$1;
252
- founder?: Person | Text$1;
253
- founders?: (Person | Text$1)[];
254
- foundingDate?: DateTime;
255
- foundingLocation?: Place;
256
- funder?: Organization | Person;
257
- globalLocationNumber?: Text$1;
258
- hasCredential?: unknown;
259
- hasMerchantReturnPolicy?: unknown;
260
- hasOfferCatalog?: unknown;
261
- hasPOS?: Place;
262
- interactionStatistic?: unknown;
263
- isicV4?: Text$1;
264
- knowsAbout?: Text$1 | Thing | URL;
265
- knowsLanguage?: Language | Text$1;
266
- legalName?: Text$1;
267
- location?: Place | PostalAddress | Text$1 | VirtualLocation;
268
- logo?: unknown;
269
- makesOffer?: Offer;
270
- member?: Organization | Person;
271
- memberOf?: Organization | unknown;
272
- naics?: Text$1;
273
- nonprofitStatus?: unknown;
274
- numberOfEmployees?: QuantitativeValue;
275
- ownershipFundingInfo?: unknown | CreativeWork | Text$1 | URL;
276
- owns?: unknown | Product;
277
- parentOrganization?: Organization;
278
- publishingPrinciples?: CreativeWork | URL;
279
- review?: Review;
280
- seeks?: unknown;
281
- slogan?: Text$1;
282
- sponsor?: Organization | Person;
283
- subOrganization?: Organization;
284
- taxID?: Text$1;
285
- telephone?: Text$1;
286
- unnamedSourcesPolicy?: CreativeWork | URL;
287
- vatID?: Text$1;
288
- }
289
-
290
- interface Service extends Intangible {
291
- aggregateRating?: AggregateRating;
292
- areaServed?: AdministrativeArea | GeoShape | Place | Text$1;
293
- audience?: unknown;
294
- availableChannel?: unknown;
295
- award?: Text$1;
296
- brand?: unknown | Organization;
297
- broker?: Organization | Person;
298
- category?: unknown | Text$1 | Thing | URL$1;
299
- hasOfferCatalog?: unknown;
300
- hoursAvailable?: unknown;
301
- isRelatedTo?: Product | Service;
302
- isSimilarTo?: Product | Service;
303
- logo?: ImageObject | URL$1;
304
- offers?: Offer[];
305
- provider?: Organization | Person;
306
- providerMobility?: Text$1;
307
- review?: Review;
308
- serviceOutput?: Thing;
309
- serviceType?: unknown | Text$1;
310
- slogan?: Text$1;
311
- termsOfService?: Text$1 | URL$1;
312
- }
313
-
314
- interface Product extends Thing {
315
- additionalProperty?: PropertyValue;
316
- aggregateRating?: AggregateRating;
317
- audience?: unknown;
318
- award?: Text$1;
319
- brand?: Brand | Organization;
320
- category?: unknown | Text$1 | Thing | URL$1;
321
- color?: Text$1;
322
- depth?: unknown | QuantitativeValue;
323
- gtin?: Text$1;
324
- gtin12?: Text$1;
325
- gtin13?: Text$1;
326
- gtin14?: Text$1;
327
- gtin8?: Text$1;
328
- hasEnergyConsumptionDetails?: unknown;
329
- hasMerchantReturnPolicy?: unknown;
330
- height?: unknown | QuantitativeValue;
331
- inAccessoryOrSparePartFor?: Product;
332
- inProductGroupWithId?: Text$1;
333
- isConsumableFor?: Product;
334
- isRelatedTo?: Product | Service;
335
- isSimilarTo?: Product | Service;
336
- isVariantOf?: unknown;
337
- itemCondition?: unknown;
338
- logo?: ImageObject | URL$1;
339
- manufacturer?: Organization;
340
- material?: Product | Text$1 | URL$1;
341
- model?: unknown | Text$1;
342
- mpn?: Text$1;
343
- nsn?: Text$1;
344
- offers?: Offer[];
345
- pattern?: unknown | Text$1;
346
- productID?: Text$1;
347
- productionDate?: DateTime;
348
- purchaseDate?: DateTime;
349
- review?: Review;
350
- size?: unknown | QuantitativeValue | Text$1;
351
- sku?: Text$1;
352
- slogan?: Text$1;
353
- weight?: QuantitativeValue;
354
- width?: unknown | QuantitativeValue;
355
- }
356
-
357
- interface ContactPoint extends Thing {
358
- areaServed?: AdministrativeArea | GeoShape | Place | Text$1;
359
- availableLanguages?: Language | Text$1;
360
- contactOption?: ContactPointOption;
361
- contactType?: Text$1;
362
- email?: Text$1;
363
- hoursAvailable?: unknown;
364
- productsSupported?: Product | Text$1;
365
- telephone?: Text$1;
366
- }
367
-
368
- interface PostalAddress extends ContactPoint {
369
- addressCountry?: Country | Text$1;
370
- addressLocality?: Text$1;
371
- addressRegion?: Text$1;
372
- postOfficeBoxNumber?: Text$1;
373
- postalCode?: Text$1;
374
- streetAddress?: Text$1;
375
- }
376
-
377
- interface Place extends Thing, GeospatialGeometry {
378
- additionalProperty?: PropertyValue;
379
- address?: PostalAddress | Text$1;
380
- aggregateRating?: AggregateRating;
381
- amenityFeature?: unknown;
382
- branchCode?: Text$1;
383
- containedInPlace?: Place;
384
- containsPlace?: Place;
385
- event?: Event;
386
- geo?: unknown;
387
- geoLocationNumber?: Text$1;
388
- hasDriveThroughService?: boolean;
389
- hasMap?: Map | URL$1;
390
- isAccessibleForFree?: boolean;
391
- isicV4?: Text$1;
392
- latitude?: number | Text$1;
393
- logo?: ImageObject | URL$1;
394
- longitude?: number | Text$1;
395
- maximumAttendeeCapacity?: Integer;
396
- openingHoursSpecification?: unknown;
397
- photo?: ImageObject | Photograph;
398
- publicAccess?: boolean;
399
- review?: Review;
400
- slogan?: Text$1;
401
- smokingAllowed?: boolean;
402
- specialOpeningHoursSpecification?: unknown;
403
- telephone?: Text$1;
404
- tourBookingPage?: URL$1;
405
- }
406
-
407
- type AdministrativeArea = Place;
408
-
409
- declare enum ItemAvailability {
410
- Discontinued = "https://schema.org/Discontinued",
411
- InStock = "https://schema.org/InStock",
412
- InStoreOnly = "https://schema.org/InStoreOnly",
413
- LimitedAvailability = "https://schema.org/LimitedAvailability",
414
- OnlineOnly = "https://schema.org/OnlineOnly",
415
- OutOfStock = "https://schema.org/OutOfStock",
416
- PreOrder = "https://schema.org/PreOrder",
417
- PreSale = "https://schema.org/PreSale",
418
- SoldOut = "https://schema.org/SoldOut"
419
- }
420
-
421
- type Time = string;
422
-
423
- interface Offer extends Intangible {
424
- acceptedPaymentMethod?: unknown;
425
- addOn?: Offer;
426
- advanceBookingRequirement?: QuantitativeValue;
427
- aggrigateRating?: AggregateRating;
428
- areaServed?: AdministrativeArea | GeoShape | Place | Text$1;
429
- availability?: ItemAvailability;
430
- availabilityAtOrFrom?: Place;
431
- availabilityEnds?: DateTime | Time;
432
- availabilityStarts?: DateTime | Time;
433
- availableDeliveryMethod?: unknown;
434
- businessFunction?: unknown;
435
- category?: unknown | Text$1 | Thing | URL$1;
436
- deliveryLeadTime?: QuantitativeValue;
437
- eligibleCustomerType?: unknown;
438
- eligibleDuration?: QuantitativeValue;
439
- eligibleQuantity?: QuantitativeValue;
440
- eligibleRegion?: GeoShape | Place | Text$1;
441
- eligibleTransactionVolume?: unknown;
442
- gtin?: Text$1;
443
- gtin12?: Text$1;
444
- gtin13?: Text$1;
445
- gtin14?: Text$1;
446
- gtin8?: Text$1;
447
- includesObject?: unknown;
448
- ineligibleRegion?: GeoShape | Place | Text$1;
449
- inventoryLevel?: QuantitativeValue;
450
- itemCondition?: unknown;
451
- itemOffered?: unknown | CreativeWork | Event | unknown | Product | Service | unknown;
452
- leaseLength?: unknown | QuantitativeValue;
453
- mpn?: Text$1;
454
- offeredBy?: Organization | Person;
455
- price?: number | Text$1;
456
- priceCurrency?: Text$1;
457
- priceSpecification?: unknown;
458
- priceValidUntil?: DateTime;
459
- review?: Review;
460
- seller?: Organization | Person;
461
- serialNumber?: Text$1;
462
- shippingDetails?: unknown;
463
- sku?: Text$1;
464
- validFrom?: DateTime;
465
- validThrough?: DateTime;
466
- warranty?: unknown;
467
- }
468
-
469
- interface CreativeWork extends Thing {
470
- about?: Thing;
471
- abstract?: Text$1;
472
- accessMode?: Text$1;
473
- accessModeSufficient?: unknown;
474
- accessibilityAPI?: Text$1;
475
- accessibilityControl?: Text$1;
476
- accessibilityFeature?: Text$1;
477
- accessibilityHazard?: Text$1;
478
- accessibilitySummary?: Text$1;
479
- accountablePerson?: Person;
480
- acquireLicensePage?: CreativeWork | URL$1;
481
- aggregateRating?: AggregateRating;
482
- alternativeHeading?: Text$1;
483
- assesses?: unknown | Text$1;
484
- associatedMedia?: MediaObject;
485
- audience?: unknown;
486
- audio?: unknown | unknown | unknown;
487
- author?: Organization | Person;
488
- award?: Text$1;
489
- character?: Person;
490
- citation?: CreativeWork | Text$1;
491
- comment?: unknown;
492
- commentCount?: Integer;
493
- conditionsOfAccess?: Text$1;
494
- contentLocation?: Place;
495
- contentRating?: Rating | Text$1;
496
- contentReferenceTime?: DateTime;
497
- contributor?: Organization | Person;
498
- copyrightHolder?: Organization | Person;
499
- copyrightNotice?: Text$1;
500
- copyrightYear?: number;
501
- correction?: unknown | Text$1 | URL$1;
502
- creativeWorkStatus?: unknown | Text$1;
503
- creator?: Organization | Person;
504
- creditText?: Text$1;
505
- dateCreated?: DateTime;
506
- dateModified?: DateTime;
507
- datePublished?: DateTime;
508
- discussionUrl?: URL$1;
509
- editEIDR?: Text$1 | URL$1;
510
- editor?: Person;
511
- educationalAlignment?: unknown;
512
- educationalLevel?: unknown | Text$1 | URL$1;
513
- educationalUse?: unknown | Text$1;
514
- encoding?: MediaObject;
515
- encodingFormat?: Text$1 | URL$1;
516
- exampleOfWork?: CreativeWork;
517
- expires?: DateTime;
518
- funder?: Organization | Person;
519
- genre?: Text$1 | URL$1;
520
- hasPart?: CreativeWork;
521
- headline?: Text$1;
522
- inLanguage?: Language | Text$1;
523
- interactionStatistic?: unknown;
524
- interactiveityType?: Text$1;
525
- isAccessibleForFree?: boolean;
526
- isBasedOn?: CreativeWork | Product | URL$1;
527
- isFamilyFriendly?: boolean;
528
- isPartOf?: CreativeWork | URL$1;
529
- keywords?: unknown | Text$1 | URL$1;
530
- learningResourceType?: unknown | Text$1;
531
- license?: CreativeWork | URL$1;
532
- locationCreated?: Place;
533
- mainEntry?: Thing;
534
- maintainer?: Organization | Person;
535
- material?: Product | Text$1 | URL$1;
536
- materialExtent?: QuantitativeValue | Text$1;
537
- mentions?: Thing;
538
- offers?: unknown | Offer[];
539
- pattern?: unknown | Text$1;
540
- position?: Integer | Text$1;
541
- producer?: Organization | Person;
542
- provider?: Organization | Person;
543
- publication?: unknown;
544
- publisher?: Organization | Person;
545
- publisherImprint?: Organization;
546
- publishingPrinciples?: CreativeWork | URL$1;
547
- recordedAt?: Event;
548
- releasedEvent?: unknown;
549
- review?: Review;
550
- schemaVersion?: Text$1 | URL$1;
551
- sdDatePublished?: DateTime;
552
- sdLicense?: CreativeWork | URL$1;
553
- sdPublisher?: Organization | Person;
554
- size?: unknown | QuantitativeValue | Text$1;
555
- sourceOrganization?: Organization;
556
- spatial?: Place;
557
- spatialCoverage?: Place;
558
- sponsor?: Organization | Person;
559
- teaches?: unknown | Text$1;
560
- temporal?: DateTime | Text$1;
561
- temporalCoverage?: DateTime | Text$1 | URL$1;
562
- text?: Text$1;
563
- thumbnailUrl?: URL$1;
564
- timeRequired?: unknown;
565
- translationOfWork?: CreativeWork;
566
- translator?: Organization | Person;
567
- typicalAgeRange?: Text$1;
568
- usageInfo?: CreativeWork | URL$1;
569
- version?: number | Text$1;
570
- video?: unknown;
571
- workExample?: CreativeWork;
572
- workTranslation?: CreativeWork;
573
- }
574
-
575
- interface Thing extends Base {
576
- additionalType?: URL$1;
577
- alternateName?: Text$1;
578
- description?: Text$1;
579
- disambiguatingDescription?: Text$1;
580
- identifier?: PropertyValue | Text$1 | URL$1;
581
- image?: ImageObject | URL$1;
582
- mainIdentityOfPage?: CreativeWork | URL$1;
583
- name?: Text$1;
584
- potentialAction?: Action;
585
- sameAs?: URL$1;
586
- subjectOf?: CreativeWork | Event;
587
- url?: URL$1;
588
- }
589
-
590
- type Intangible = Thing;
591
-
592
- interface SoftwareApplication extends CreativeWork {
593
- applicationCategory?: Text$1 | URL$1;
594
- applicationSubCategory?: Text$1 | URL$1;
595
- applicationSuite?: Text$1;
596
- availableOnDevice?: Text$1;
597
- countriesNotSupported?: Text$1;
598
- countriesSupported?: Text$1;
599
- downloadUrl?: URL$1;
600
- featureList?: Text$1 | URL$1;
601
- installUrl?: URL$1;
602
- memoryRequirements?: Text$1 | URL$1;
603
- operatingSystem?: Text$1;
604
- permissions?: Text$1;
605
- processorRequiremewnts?: Text$1;
606
- releaseNotes?: Text$1 | URL$1;
607
- screenshot?: ImageObject | URL$1;
608
- softwareAddOn?: SoftwareApplication;
609
- softwareHelp?: CreativeWork;
610
- softwareRequirements?: Text$1 | URL$1;
611
- softwareVersion?: Text$1;
612
- storageRequirements?: Text$1 | URL$1;
613
- supportingData?: unknown;
614
- }
615
-
616
- interface EntryPoint extends Intangible {
617
- actionApplication?: SoftwareApplication;
618
- actionPlatform?: Text$1 | URL$1;
619
- contentType?: Text$1;
620
- encodingType?: Text$1;
621
- httpMethod?: Text$1;
622
- urlTemplate?: Text$1;
623
- }
624
-
625
- interface Action extends Thing {
626
- actionStatus?: ActionStatusType;
627
- agent?: Organization | Person;
628
- endTime?: DateTime | Time;
629
- error?: Thing;
630
- instrument?: Thing;
631
- location?: Place | PostalAddress | string | VirtualLocation;
632
- object?: Thing;
633
- participant?: Organization | Person;
634
- result?: Thing;
635
- startTime?: DateTime | Time;
636
- target?: EntryPoint;
637
- }
638
-
639
- interface MobileApplication extends SoftwareApplication {
640
- carrierRequirements?: Text$1;
641
- }
642
-
643
- interface RichResultProps {
644
- thing: Thing;
645
- }
646
- declare const RichResult: React.FC<RichResultProps>;
647
-
648
- export { type Action, ActionStatusType, type AdministrativeArea, type AggregateRating, type Article, type Base, type Brand, type Class, type ContactPoint, ContactPointOption, type Country, type CreativeWork, type DateTime, type EntryPoint, type Enumeration, type GeoShape, type GeospatialGeometry, type ImageObject, type Intangible, type Integer, ItemAvailability, type Language, type Map, MapCategoryType, type MediaObject, type MobileApplication, type Offer, type Organization, type Person, type Photograph, type Place, type PostalAddress, type Product, type Property, type PropertyValue, type QualitativeValue, type QuantitativeValue, type Rating, type Review, RichResult, type RichResultProps, type Service, type SoftwareApplication, type StructuredValue, type Text$1 as Text, type Thing, type Time, type URL$1 as URL, type VirtualLocation };
1
+ export * from './jsonld/index.ts';
2
+ export * from './RichResult.tsx';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
@@ -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 { 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":";;;;;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"]}