@xylabs/react-rich-result 6.3.12 → 6.3.14

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