@voyant-travel/storefront-react 0.120.1
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.
- package/LICENSE +201 -0
- package/README.md +17 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +78 -0
- package/dist/components/storefront-settings-page.d.ts +5 -0
- package/dist/components/storefront-settings-page.d.ts.map +1 -0
- package/dist/components/storefront-settings-page.js +39 -0
- package/dist/customer-portal/client.d.ts +16 -0
- package/dist/customer-portal/client.d.ts.map +1 -0
- package/dist/customer-portal/client.js +78 -0
- package/dist/customer-portal/hooks/index.d.ts +12 -0
- package/dist/customer-portal/hooks/index.d.ts.map +1 -0
- package/dist/customer-portal/hooks/index.js +11 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts +18 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts +16 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-documents.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts +109 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts +22 -0
- package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-bookings.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts +42 -0
- package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-companions.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-contact-exists.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts +419 -0
- package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-mutation.js +62 -0
- package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts +13 -0
- package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts +69 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.js +28 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts +20 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts +61 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile.js +12 -0
- package/dist/customer-portal/index.d.ts +9 -0
- package/dist/customer-portal/index.d.ts.map +1 -0
- package/dist/customer-portal/index.js +7 -0
- package/dist/customer-portal/operations.d.ts +595 -0
- package/dist/customer-portal/operations.d.ts.map +1 -0
- package/dist/customer-portal/operations.js +84 -0
- package/dist/customer-portal/provider.d.ts +2 -0
- package/dist/customer-portal/provider.d.ts.map +1 -0
- package/dist/customer-portal/provider.js +1 -0
- package/dist/customer-portal/query-keys.d.ts +21 -0
- package/dist/customer-portal/query-keys.d.ts.map +1 -0
- package/dist/customer-portal/query-keys.js +14 -0
- package/dist/customer-portal/query-options.d.ts +1148 -0
- package/dist/customer-portal/query-options.d.ts.map +1 -0
- package/dist/customer-portal/query-options.js +58 -0
- package/dist/customer-portal/schemas.d.ts +751 -0
- package/dist/customer-portal/schemas.d.ts.map +1 -0
- package/dist/customer-portal/schemas.js +21 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/use-admin-storefront-settings.d.ts +290 -0
- package/dist/hooks/use-admin-storefront-settings.d.ts.map +1 -0
- package/dist/hooks/use-admin-storefront-settings.js +29 -0
- package/dist/hooks/use-storefront-departure-itinerary.d.ts +23 -0
- package/dist/hooks/use-storefront-departure-itinerary.d.ts.map +1 -0
- package/dist/hooks/use-storefront-departure-itinerary.js +12 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +244 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts.map +1 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.js +15 -0
- package/dist/hooks/use-storefront-departure.d.ts +51 -0
- package/dist/hooks/use-storefront-departure.d.ts.map +1 -0
- package/dist/hooks/use-storefront-departure.js +12 -0
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +68 -0
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts.map +1 -0
- package/dist/hooks/use-storefront-offer-apply-mutation.js +15 -0
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +69 -0
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts.map +1 -0
- package/dist/hooks/use-storefront-offer-redeem-mutation.js +12 -0
- package/dist/hooks/use-storefront-offer.d.ts +26 -0
- package/dist/hooks/use-storefront-offer.d.ts.map +1 -0
- package/dist/hooks/use-storefront-offer.js +12 -0
- package/dist/hooks/use-storefront-product-departures.d.ts +55 -0
- package/dist/hooks/use-storefront-product-departures.d.ts.map +1 -0
- package/dist/hooks/use-storefront-product-departures.js +12 -0
- package/dist/hooks/use-storefront-product-extensions.d.ts +47 -0
- package/dist/hooks/use-storefront-product-extensions.d.ts.map +1 -0
- package/dist/hooks/use-storefront-product-extensions.js +12 -0
- package/dist/hooks/use-storefront-product-offers.d.ts +26 -0
- package/dist/hooks/use-storefront-product-offers.d.ts.map +1 -0
- package/dist/hooks/use-storefront-product-offers.js +12 -0
- package/dist/hooks/use-storefront-settings.d.ts +101 -0
- package/dist/hooks/use-storefront-settings.d.ts.map +1 -0
- package/dist/hooks/use-storefront-settings.js +12 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/internal/storefront-settings-form.d.ts +50 -0
- package/dist/internal/storefront-settings-form.d.ts.map +1 -0
- package/dist/internal/storefront-settings-form.js +246 -0
- package/dist/internal/storefront-settings-payment-section.d.ts +12 -0
- package/dist/internal/storefront-settings-payment-section.d.ts.map +1 -0
- package/dist/internal/storefront-settings-payment-section.js +14 -0
- package/dist/internal/storefront-settings-sections.d.ts +23 -0
- package/dist/internal/storefront-settings-sections.d.ts.map +1 -0
- package/dist/internal/storefront-settings-sections.js +32 -0
- package/dist/operations.d.ts +827 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +46 -0
- package/dist/operations.test.d.ts +2 -0
- package/dist/operations.test.d.ts.map +1 -0
- package/dist/operations.test.js +77 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +32 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +15 -0
- package/dist/query-options.d.ts +1648 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +52 -0
- package/dist/schemas.d.ts +576 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +11 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +1 -0
- package/package.json +133 -0
- package/src/styles.css +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voyant-travel/storefront-react",
|
|
3
|
+
"version": "0.120.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/voyant-travel/voyant.git",
|
|
8
|
+
"directory": "packages/storefront-react"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./provider": {
|
|
19
|
+
"types": "./dist/provider.d.ts",
|
|
20
|
+
"import": "./dist/provider.js",
|
|
21
|
+
"default": "./dist/provider.js"
|
|
22
|
+
},
|
|
23
|
+
"./hooks": {
|
|
24
|
+
"types": "./dist/hooks/index.d.ts",
|
|
25
|
+
"import": "./dist/hooks/index.js",
|
|
26
|
+
"default": "./dist/hooks/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./client": {
|
|
29
|
+
"types": "./dist/client.d.ts",
|
|
30
|
+
"import": "./dist/client.js",
|
|
31
|
+
"default": "./dist/client.js"
|
|
32
|
+
},
|
|
33
|
+
"./query-keys": {
|
|
34
|
+
"types": "./dist/query-keys.d.ts",
|
|
35
|
+
"import": "./dist/query-keys.js",
|
|
36
|
+
"default": "./dist/query-keys.js"
|
|
37
|
+
},
|
|
38
|
+
"./ui": {
|
|
39
|
+
"types": "./dist/ui.d.ts",
|
|
40
|
+
"import": "./dist/ui.js",
|
|
41
|
+
"default": "./dist/ui.js"
|
|
42
|
+
},
|
|
43
|
+
"./styles.css": {
|
|
44
|
+
"default": "./src/styles.css"
|
|
45
|
+
},
|
|
46
|
+
"./customer-portal": {
|
|
47
|
+
"types": "./dist/customer-portal/index.d.ts",
|
|
48
|
+
"import": "./dist/customer-portal/index.js",
|
|
49
|
+
"default": "./dist/customer-portal/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./customer-portal/client": {
|
|
52
|
+
"types": "./dist/customer-portal/client.d.ts",
|
|
53
|
+
"import": "./dist/customer-portal/client.js",
|
|
54
|
+
"default": "./dist/customer-portal/client.js"
|
|
55
|
+
},
|
|
56
|
+
"./customer-portal/hooks": {
|
|
57
|
+
"types": "./dist/customer-portal/hooks/index.d.ts",
|
|
58
|
+
"import": "./dist/customer-portal/hooks/index.js",
|
|
59
|
+
"default": "./dist/customer-portal/hooks/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./customer-portal/operations": {
|
|
62
|
+
"types": "./dist/customer-portal/operations.d.ts",
|
|
63
|
+
"import": "./dist/customer-portal/operations.js",
|
|
64
|
+
"default": "./dist/customer-portal/operations.js"
|
|
65
|
+
},
|
|
66
|
+
"./customer-portal/provider": {
|
|
67
|
+
"types": "./dist/customer-portal/provider.d.ts",
|
|
68
|
+
"import": "./dist/customer-portal/provider.js",
|
|
69
|
+
"default": "./dist/customer-portal/provider.js"
|
|
70
|
+
},
|
|
71
|
+
"./customer-portal/query-keys": {
|
|
72
|
+
"types": "./dist/customer-portal/query-keys.d.ts",
|
|
73
|
+
"import": "./dist/customer-portal/query-keys.js",
|
|
74
|
+
"default": "./dist/customer-portal/query-keys.js"
|
|
75
|
+
},
|
|
76
|
+
"./components/storefront-settings-page": {
|
|
77
|
+
"types": "./dist/components/storefront-settings-page.d.ts",
|
|
78
|
+
"import": "./dist/components/storefront-settings-page.js",
|
|
79
|
+
"default": "./dist/components/storefront-settings-page.js"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"@tanstack/react-query": "^5.0.0",
|
|
84
|
+
"lucide-react": "^0.475.0",
|
|
85
|
+
"react": "^19.0.0",
|
|
86
|
+
"react-dom": "^19.0.0",
|
|
87
|
+
"zod": "^4.0.0",
|
|
88
|
+
"@voyant-travel/storefront": "^0.120.1",
|
|
89
|
+
"@voyant-travel/ui": "^0.106.1"
|
|
90
|
+
},
|
|
91
|
+
"peerDependenciesMeta": {
|
|
92
|
+
"@voyant-travel/ui": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"lucide-react": {
|
|
96
|
+
"optional": true
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"@voyant-travel/react": "^0.104.1"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@tanstack/react-query": "^5.100.11",
|
|
104
|
+
"@types/react": "^19.2.14",
|
|
105
|
+
"@types/react-dom": "^19.2.3",
|
|
106
|
+
"lucide-react": "^1.7.0",
|
|
107
|
+
"react": "^19.2.4",
|
|
108
|
+
"react-dom": "^19.2.4",
|
|
109
|
+
"typescript": "^6.0.2",
|
|
110
|
+
"vitest": "^4.1.2",
|
|
111
|
+
"zod": "^4.3.6",
|
|
112
|
+
"@voyant-travel/ui": "^0.106.1",
|
|
113
|
+
"@voyant-travel/react": "^0.104.1",
|
|
114
|
+
"@voyant-travel/storefront": "^0.120.1",
|
|
115
|
+
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
116
|
+
},
|
|
117
|
+
"files": [
|
|
118
|
+
"dist",
|
|
119
|
+
"src/styles.css"
|
|
120
|
+
],
|
|
121
|
+
"publishConfig": {
|
|
122
|
+
"access": "public"
|
|
123
|
+
},
|
|
124
|
+
"scripts": {
|
|
125
|
+
"build": "tsc -p tsconfig.build.json",
|
|
126
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
|
|
127
|
+
"typecheck": "tsc --noEmit",
|
|
128
|
+
"lint": "biome check src/",
|
|
129
|
+
"test": "vitest run --passWithNoTests"
|
|
130
|
+
},
|
|
131
|
+
"main": "./dist/index.js",
|
|
132
|
+
"types": "./dist/index.d.ts"
|
|
133
|
+
}
|
package/src/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@source "./**/*.{ts,tsx}";
|