@myrjfa/state 2.1.9 → 2.2.0

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 (174) hide show
  1. package/dist/hooks/usePersistentDraftState.d.ts +20 -0
  2. package/dist/hooks/usePersistentDraftState.d.ts.map +1 -0
  3. package/dist/hooks/usePersistentDraftState.js +47 -0
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +3 -0
  7. package/dist/lib/actions/actions.d.ts +17 -19
  8. package/dist/lib/actions/actions.d.ts.map +1 -1
  9. package/dist/lib/actions/actions.js +24 -7
  10. package/dist/lib/actions/auth.d.ts +2 -2
  11. package/dist/lib/actions/auth.d.ts.map +1 -1
  12. package/dist/lib/actions/auth.js +9 -0
  13. package/dist/lib/actions/booking.js +2 -2
  14. package/dist/lib/actions/fetcher.js +2 -1
  15. package/dist/lib/actions.d.ts +556 -0
  16. package/dist/lib/actions.d.ts.map +1 -0
  17. package/dist/lib/actions.js +1327 -0
  18. package/dist/lib/adminDashboardActions.d.ts +61 -0
  19. package/dist/lib/adminDashboardActions.d.ts.map +1 -0
  20. package/dist/lib/adminDashboardActions.js +89 -0
  21. package/dist/lib/adventureActions.d.ts +102 -0
  22. package/dist/lib/adventureActions.d.ts.map +1 -0
  23. package/dist/lib/adventureActions.js +202 -0
  24. package/dist/lib/adventureDummyData.d.ts +3 -0
  25. package/dist/lib/adventureDummyData.d.ts.map +1 -0
  26. package/dist/lib/adventureDummyData.js +138 -0
  27. package/dist/lib/adventureFormPage.d.ts +39 -0
  28. package/dist/lib/adventureFormPage.d.ts.map +1 -0
  29. package/dist/lib/adventureFormPage.js +70 -0
  30. package/dist/lib/brandActions.d.ts +83 -0
  31. package/dist/lib/brandActions.d.ts.map +1 -0
  32. package/dist/lib/brandActions.js +28 -0
  33. package/dist/lib/companionActions.d.ts +174 -0
  34. package/dist/lib/companionActions.d.ts.map +1 -0
  35. package/dist/lib/companionActions.js +276 -0
  36. package/dist/lib/companionDummyData.d.ts +99 -0
  37. package/dist/lib/companionDummyData.d.ts.map +1 -0
  38. package/dist/lib/companionDummyData.js +203 -0
  39. package/dist/lib/destinations.d.ts +14 -0
  40. package/dist/lib/destinations.d.ts.map +1 -0
  41. package/dist/lib/destinations.js +203 -0
  42. package/dist/lib/entitySubmission.d.ts +21 -0
  43. package/dist/lib/entitySubmission.d.ts.map +1 -0
  44. package/dist/lib/entitySubmission.js +10 -0
  45. package/dist/lib/eventActions.d.ts +176 -0
  46. package/dist/lib/eventActions.d.ts.map +1 -0
  47. package/dist/lib/eventActions.js +222 -0
  48. package/dist/lib/eventFormPage.d.ts +49 -0
  49. package/dist/lib/eventFormPage.d.ts.map +1 -0
  50. package/dist/lib/eventFormPage.js +84 -0
  51. package/dist/lib/eventsDummyData.d.ts +54 -0
  52. package/dist/lib/eventsDummyData.d.ts.map +1 -0
  53. package/dist/lib/eventsDummyData.js +586 -0
  54. package/dist/lib/guideActions.d.ts +53 -0
  55. package/dist/lib/guideActions.d.ts.map +1 -0
  56. package/dist/lib/guideActions.js +127 -0
  57. package/dist/lib/guideDummyData.d.ts +3 -0
  58. package/dist/lib/guideDummyData.d.ts.map +1 -0
  59. package/dist/lib/guideDummyData.js +66 -0
  60. package/dist/lib/hooks/use-mobile.js +0 -1
  61. package/dist/lib/hooks/useChatSocket.js +0 -1
  62. package/dist/lib/hooks/useHostCalendarSelection.d.ts +51 -0
  63. package/dist/lib/hooks/useHostCalendarSelection.d.ts.map +1 -0
  64. package/dist/lib/hooks/useHostCalendarSelection.js +200 -0
  65. package/dist/lib/hostDashboardActions.d.ts +189 -0
  66. package/dist/lib/hostDashboardActions.d.ts.map +1 -0
  67. package/dist/lib/hostDashboardActions.js +400 -0
  68. package/dist/lib/imageUpload.d.ts +4 -0
  69. package/dist/lib/imageUpload.d.ts.map +1 -0
  70. package/dist/lib/imageUpload.js +36 -0
  71. package/dist/lib/locationActions.d.ts +141 -0
  72. package/dist/lib/locationActions.d.ts.map +1 -0
  73. package/dist/lib/locationActions.js +113 -0
  74. package/dist/lib/models/adventure.d.ts +26 -9
  75. package/dist/lib/models/adventure.d.ts.map +1 -1
  76. package/dist/lib/models/blog.d.ts +2 -2
  77. package/dist/lib/models/discount.d.ts +160 -0
  78. package/dist/lib/models/discount.d.ts.map +1 -0
  79. package/dist/lib/models/discount.js +106 -0
  80. package/dist/lib/models/enquiry.d.ts +34 -0
  81. package/dist/lib/models/enquiry.d.ts.map +1 -0
  82. package/dist/lib/models/enquiry.js +140 -0
  83. package/dist/lib/models/guide.d.ts +4 -3
  84. package/dist/lib/models/guide.d.ts.map +1 -1
  85. package/dist/lib/models/notifications.d.ts +12 -12
  86. package/dist/lib/models/opportunities/freelance.d.ts +76 -76
  87. package/dist/lib/models/opportunities/internship.d.ts +76 -76
  88. package/dist/lib/models/opportunities/job.d.ts +78 -78
  89. package/dist/lib/models/opportunities/opportunity.d.ts +76 -76
  90. package/dist/lib/models/opportunities/volunteerJob.d.ts +76 -76
  91. package/dist/lib/models/package.d.ts +380 -86
  92. package/dist/lib/models/package.d.ts.map +1 -1
  93. package/dist/lib/models/package.js +9 -8
  94. package/dist/lib/models/pricing.d.ts +255 -0
  95. package/dist/lib/models/pricing.d.ts.map +1 -0
  96. package/dist/lib/models/pricing.js +145 -0
  97. package/dist/lib/models/rental.d.ts +12 -7
  98. package/dist/lib/models/rental.d.ts.map +1 -1
  99. package/dist/lib/models/review.d.ts +5 -2
  100. package/dist/lib/models/review.d.ts.map +1 -1
  101. package/dist/lib/models/stay.d.ts +11 -8
  102. package/dist/lib/models/stay.d.ts.map +1 -1
  103. package/dist/lib/models/stay.js +1 -0
  104. package/dist/lib/models/tile.d.ts +11 -7
  105. package/dist/lib/models/tile.d.ts.map +1 -1
  106. package/dist/lib/models/travelPackage.d.ts +943 -0
  107. package/dist/lib/models/travelPackage.d.ts.map +1 -0
  108. package/dist/lib/models/travelPackage.js +326 -0
  109. package/dist/lib/multistepDraft.d.ts +4 -0
  110. package/dist/lib/multistepDraft.d.ts.map +1 -0
  111. package/dist/lib/multistepDraft.js +18 -0
  112. package/dist/lib/opportunityFormData.d.ts +13 -0
  113. package/dist/lib/opportunityFormData.d.ts.map +1 -0
  114. package/dist/lib/opportunityFormData.js +62 -0
  115. package/dist/lib/opportunityFormPage.d.ts +38 -0
  116. package/dist/lib/opportunityFormPage.d.ts.map +1 -0
  117. package/dist/lib/opportunityFormPage.js +33 -0
  118. package/dist/lib/packageActions.d.ts +86 -0
  119. package/dist/lib/packageActions.d.ts.map +1 -0
  120. package/dist/lib/packageActions.js +168 -0
  121. package/dist/lib/packageDummyData.d.ts +3 -0
  122. package/dist/lib/packageDummyData.d.ts.map +1 -0
  123. package/dist/lib/packageDummyData.js +57 -0
  124. package/dist/lib/placeActions.d.ts +192 -0
  125. package/dist/lib/placeActions.d.ts.map +1 -0
  126. package/dist/lib/placeActions.js +57 -0
  127. package/dist/lib/propertyActions.d.ts +17 -0
  128. package/dist/lib/propertyActions.d.ts.map +1 -0
  129. package/dist/lib/propertyActions.js +16 -0
  130. package/dist/lib/rentalActions.d.ts +86 -0
  131. package/dist/lib/rentalActions.d.ts.map +1 -0
  132. package/dist/lib/rentalActions.js +235 -0
  133. package/dist/lib/rentalDummyData.d.ts +3 -0
  134. package/dist/lib/rentalDummyData.d.ts.map +1 -0
  135. package/dist/lib/rentalDummyData.js +402 -0
  136. package/dist/lib/rentalFormPage.d.ts +48 -0
  137. package/dist/lib/rentalFormPage.d.ts.map +1 -0
  138. package/dist/lib/rentalFormPage.js +97 -0
  139. package/dist/lib/roomActions.d.ts +39 -0
  140. package/dist/lib/roomActions.d.ts.map +1 -0
  141. package/dist/lib/roomActions.js +74 -0
  142. package/dist/lib/stayActions.d.ts +97 -0
  143. package/dist/lib/stayActions.d.ts.map +1 -0
  144. package/dist/lib/stayActions.js +138 -0
  145. package/dist/lib/staysDummyData.d.ts +72 -0
  146. package/dist/lib/staysDummyData.d.ts.map +1 -0
  147. package/dist/lib/staysDummyData.js +694 -0
  148. package/dist/lib/storeDummyData.d.ts +33 -0
  149. package/dist/lib/storeDummyData.d.ts.map +1 -0
  150. package/dist/lib/storeDummyData.js +336 -0
  151. package/dist/lib/travelPackageActions.d.ts +102 -0
  152. package/dist/lib/travelPackageActions.d.ts.map +1 -0
  153. package/dist/lib/travelPackageActions.js +487 -0
  154. package/dist/lib/travelPackageFormData.d.ts +20 -0
  155. package/dist/lib/travelPackageFormData.d.ts.map +1 -0
  156. package/dist/lib/travelPackageFormData.js +54 -0
  157. package/dist/lib/travelPackageFormPage.d.ts +32 -0
  158. package/dist/lib/travelPackageFormPage.d.ts.map +1 -0
  159. package/dist/lib/travelPackageFormPage.js +43 -0
  160. package/dist/lib/userAtom.d.ts +32 -32
  161. package/dist/lib/userAtom.d.ts.map +1 -1
  162. package/dist/lib/userAtom.js +17 -1
  163. package/dist/lib/util.d.ts +11 -0
  164. package/dist/lib/util.d.ts.map +1 -0
  165. package/dist/lib/util.js +82 -0
  166. package/dist/lib/utils.d.ts.map +1 -1
  167. package/dist/lib/utils.js +1 -0
  168. package/dist/lib/vehicleData.d.ts +2 -0
  169. package/dist/lib/vehicleData.d.ts.map +1 -0
  170. package/dist/lib/vehicleData.js +181 -0
  171. package/dist/lib/vehicleModels.d.ts +2 -0
  172. package/dist/lib/vehicleModels.d.ts.map +1 -0
  173. package/dist/lib/vehicleModels.js +128 -0
  174. package/package.json +6 -5
@@ -0,0 +1,99 @@
1
+ export declare const dummyTravelPlans: {
2
+ _id: string;
3
+ destination: {
4
+ city: string;
5
+ state: string;
6
+ country: string;
7
+ };
8
+ startDate: string;
9
+ endDate: string;
10
+ budgetRange: {
11
+ min: number;
12
+ max: number;
13
+ };
14
+ travelStyle: string;
15
+ interests: string[];
16
+ description: string;
17
+ maxTravelers: number;
18
+ participants: {
19
+ _id: string;
20
+ profilePic: string;
21
+ }[];
22
+ images: string[];
23
+ compatibilityScore: number;
24
+ compatibilityReasons: string[];
25
+ createdBy: {
26
+ _id: string;
27
+ firstName: string;
28
+ username: string;
29
+ profilePic: string;
30
+ verifiedPhoneNumber: boolean;
31
+ };
32
+ status: string;
33
+ likes: string[];
34
+ myJoinStatus: string;
35
+ isMine: boolean;
36
+ }[];
37
+ export declare const dummyTravelers: {
38
+ userId: string;
39
+ user: {
40
+ firstName: string;
41
+ lastName: string;
42
+ username: string;
43
+ profilePic: string;
44
+ };
45
+ travelStyle: string;
46
+ bio: string;
47
+ interests: string[];
48
+ destinations: string[];
49
+ languages: string[];
50
+ matchScore: number;
51
+ matchReasons: string[];
52
+ }[];
53
+ export declare const dummyMyPlans: {
54
+ _id: string;
55
+ destination: {
56
+ city: string;
57
+ state: string;
58
+ country: string;
59
+ };
60
+ startDate: string;
61
+ endDate: string;
62
+ budgetRange: {
63
+ min: number;
64
+ max: number;
65
+ };
66
+ travelStyle: string;
67
+ interests: string[];
68
+ description: string;
69
+ maxTravelers: number;
70
+ participants: {
71
+ _id: string;
72
+ profilePic: string;
73
+ }[];
74
+ images: string[];
75
+ compatibilityScore: number;
76
+ compatibilityReasons: never[];
77
+ createdBy: {
78
+ _id: string;
79
+ firstName: string;
80
+ username: string;
81
+ profilePic: string;
82
+ verifiedPhoneNumber: boolean;
83
+ };
84
+ status: string;
85
+ likes: string[];
86
+ myJoinStatus: string;
87
+ isMine: boolean;
88
+ }[];
89
+ export declare const dummyJoinRequests: {
90
+ _id: string;
91
+ userId: {
92
+ firstName: string;
93
+ lastName: string;
94
+ profilePic: string;
95
+ };
96
+ message: string;
97
+ status: string;
98
+ }[];
99
+ //# sourceMappingURL=companionDummyData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companionDummyData.d.ts","sourceRoot":"","sources":["../../src/lib/companionDummyData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqG5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;GAiD1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;GAsB7B,CAAC"}
@@ -0,0 +1,203 @@
1
+ export const dummyTravelPlans = [
2
+ {
3
+ _id: "plan-1",
4
+ destination: { city: "Bali", state: "Bali", country: "Indonesia" },
5
+ startDate: new Date(Date.now() + 15 * 24 * 60 * 60 * 1000).toISOString(),
6
+ endDate: new Date(Date.now() + 25 * 24 * 60 * 60 * 1000).toISOString(),
7
+ budgetRange: { min: 40000, max: 80000 },
8
+ travelStyle: "flashpacker",
9
+ interests: ["surfing", "yoga", "food", "culture"],
10
+ description: "Planning to explore the beaches, temples, and rice terraces of Bali. Looking for someone adventurous to share the cost of a nice villa and join me on hikes and surfing sessions!",
11
+ maxTravelers: 4,
12
+ participants: [
13
+ { _id: "user-0", profilePic: "/images/profile_placeholder.webp" },
14
+ ],
15
+ images: [
16
+ "https://images.unsplash.com/photo-1537996194471-e657df975ab4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
17
+ ],
18
+ compatibilityScore: 85,
19
+ compatibilityReasons: [
20
+ "You both love surfing",
21
+ "Matched travel style: flashpacker",
22
+ ],
23
+ createdBy: {
24
+ _id: "user-0",
25
+ firstName: "Aarav",
26
+ username: "aarav_travels",
27
+ profilePic: "/images/profile_placeholder.webp",
28
+ verifiedPhoneNumber: true,
29
+ },
30
+ status: "open",
31
+ likes: ["user-a", "user-b"],
32
+ myJoinStatus: "none",
33
+ isMine: false,
34
+ },
35
+ {
36
+ _id: "plan-2",
37
+ destination: { city: "Leh", state: "Ladakh", country: "India" },
38
+ startDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
39
+ endDate: new Date(Date.now() + 40 * 24 * 60 * 60 * 1000).toISOString(),
40
+ budgetRange: { min: 25000, max: 45000 },
41
+ travelStyle: "backpacker",
42
+ interests: ["trekking", "photography", "adventure"],
43
+ description: "Road trip across Ladakh! Will be renting Royal Enfields. Looking for fellow riders who are comfortable with high altitudes and basic homestays.",
44
+ maxTravelers: 6,
45
+ participants: [
46
+ { _id: "user-1", profilePic: "/images/profile_placeholder.webp" },
47
+ { _id: "user-2", profilePic: "/images/profile_placeholder.webp" },
48
+ ],
49
+ images: [
50
+ "https://images.unsplash.com/photo-1626601323380-498c8c6cfd89?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
51
+ ],
52
+ compatibilityScore: 92,
53
+ compatibilityReasons: [
54
+ "Both interested in trekking",
55
+ "Highly compatible age group",
56
+ ],
57
+ createdBy: {
58
+ _id: "user-1",
59
+ firstName: "Rohan",
60
+ username: "rohan_rides",
61
+ profilePic: "/images/profile_placeholder.webp",
62
+ verifiedPhoneNumber: true,
63
+ },
64
+ status: "open",
65
+ likes: ["user-c"],
66
+ myJoinStatus: "none",
67
+ isMine: false,
68
+ },
69
+ {
70
+ _id: "plan-3",
71
+ destination: { city: "Tokyo", state: "Tokyo", country: "Japan" },
72
+ startDate: new Date(Date.now() + 60 * 24 * 60 * 60 * 1000).toISOString(),
73
+ endDate: new Date(Date.now() + 70 * 24 * 60 * 60 * 1000).toISOString(),
74
+ budgetRange: { min: 80000, max: 150000 },
75
+ travelStyle: "mid-range",
76
+ interests: ["food", "culture", "shopping", "nightlife"],
77
+ description: "First time in Japan! I want to visit Tokyo, Kyoto, and Osaka. Looking for 1-2 travel buddies to split accommodation and explore the incredible food scene.",
78
+ maxTravelers: 3,
79
+ participants: [
80
+ { _id: "user-3", profilePic: "/images/profile_placeholder.webp" },
81
+ ],
82
+ images: [
83
+ "https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
84
+ ],
85
+ compatibilityScore: 65,
86
+ compatibilityReasons: ["Shared interest in food"],
87
+ createdBy: {
88
+ _id: "user-3",
89
+ firstName: "Priya",
90
+ username: "priya_explores",
91
+ profilePic: "/images/profile_placeholder.webp",
92
+ verifiedPhoneNumber: false,
93
+ },
94
+ status: "open",
95
+ likes: [],
96
+ myJoinStatus: "none",
97
+ isMine: false,
98
+ },
99
+ ];
100
+ export const dummyTravelers = [
101
+ {
102
+ userId: "user-10",
103
+ user: {
104
+ firstName: "Kabir",
105
+ lastName: "S",
106
+ username: "kabir99",
107
+ profilePic: "/images/profile_placeholder.webp",
108
+ },
109
+ travelStyle: "backpacker",
110
+ bio: "Software engineer by day, mountain lover by weekend. Always looking for the next hiking trail.",
111
+ interests: ["trekking", "nature", "photography"],
112
+ destinations: ["Himalayas", "Nepal", "Patagonia"],
113
+ languages: ["English", "Hindi"],
114
+ matchScore: 88,
115
+ matchReasons: ["You both love trekking", "Similar travel style"],
116
+ },
117
+ {
118
+ userId: "user-11",
119
+ user: {
120
+ firstName: "Ananya",
121
+ lastName: "M",
122
+ username: "ananya_m",
123
+ profilePic: "/images/profile_placeholder.webp",
124
+ },
125
+ travelStyle: "luxury",
126
+ bio: "I travel for the food and the resorts. Let's find the best spas and fine dining spots!",
127
+ interests: ["food", "wellness", "shopping"],
128
+ destinations: ["Maldives", "Paris", "Dubai"],
129
+ languages: ["English", "French"],
130
+ matchScore: 45,
131
+ matchReasons: ["Shared interest in food"],
132
+ },
133
+ {
134
+ userId: "user-12",
135
+ user: {
136
+ firstName: "Vikram",
137
+ lastName: "K",
138
+ username: "vikram.k",
139
+ profilePic: "/images/profile_placeholder.webp",
140
+ },
141
+ travelStyle: "mid-range",
142
+ bio: "History buff who loves exploring old ruins and museums. Easy-going and flexible planner.",
143
+ interests: ["history", "culture", "architecture"],
144
+ destinations: ["Rome", "Egypt", "Cambodia"],
145
+ languages: ["English", "Hindi", "Spanish"],
146
+ matchScore: 72,
147
+ matchReasons: ["High personality compatibility"],
148
+ },
149
+ ];
150
+ export const dummyMyPlans = [
151
+ {
152
+ _id: "plan-my-1",
153
+ destination: { city: "Goa", state: "Goa", country: "India" },
154
+ startDate: new Date(Date.now() + 5 * 24 * 60 * 60 * 1000).toISOString(),
155
+ endDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
156
+ budgetRange: { min: 15000, max: 25000 },
157
+ travelStyle: "budget",
158
+ interests: ["nightlife", "beaches"],
159
+ description: "Quick weekend escape to North Goa.",
160
+ maxTravelers: 4,
161
+ participants: [
162
+ { _id: "me", profilePic: "/images/profile_placeholder.webp" },
163
+ ],
164
+ images: [
165
+ "https://images.unsplash.com/photo-1512343879784-a960bf40e7f2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
166
+ ],
167
+ compatibilityScore: 0,
168
+ compatibilityReasons: [],
169
+ createdBy: {
170
+ _id: "me",
171
+ firstName: "You",
172
+ username: "you",
173
+ profilePic: "/images/profile_placeholder.webp",
174
+ verifiedPhoneNumber: true,
175
+ },
176
+ status: "open",
177
+ likes: ["user-x", "user-y"],
178
+ myJoinStatus: "accepted",
179
+ isMine: true,
180
+ },
181
+ ];
182
+ export const dummyJoinRequests = [
183
+ {
184
+ _id: "req-1",
185
+ userId: {
186
+ firstName: "Rahul",
187
+ lastName: "T",
188
+ profilePic: "/images/profile_placeholder.webp",
189
+ },
190
+ message: "Hey, your plan sounds awesome! I have been to Goa before and know some good hidden spots.",
191
+ status: "pending",
192
+ },
193
+ {
194
+ _id: "req-2",
195
+ userId: {
196
+ firstName: "Neha",
197
+ lastName: "S",
198
+ profilePic: "/images/profile_placeholder.webp",
199
+ },
200
+ message: "Would love to join for the nightlife!",
201
+ status: "pending",
202
+ },
203
+ ];
@@ -0,0 +1,14 @@
1
+ export interface Destination {
2
+ name: string;
3
+ emoji: string;
4
+ state: string;
5
+ country: string;
6
+ }
7
+ export declare const ALL_DESTINATIONS: Destination[];
8
+ /** Flat array of city names — use for autocomplete suggestions */
9
+ export declare const INDIAN_CITIES: string[];
10
+ /** { title: cityName } format — compatible with skillsOptions / Filter component */
11
+ export declare const INDIAN_CITIES_OPTIONS: {
12
+ title: string;
13
+ }[];
14
+ //# sourceMappingURL=destinations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../src/lib/destinations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAsMzC,CAAC;AAeF,kEAAkE;AAClE,eAAO,MAAM,aAAa,EAAE,MAAM,EAAwC,CAAC;AAE3E,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAElD,CAAC"}
@@ -0,0 +1,203 @@
1
+ export const ALL_DESTINATIONS = [
2
+ // Hill Stations & Mountains
3
+ { name: "Manali", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
4
+ { name: "Shimla", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
5
+ { name: "Spiti Valley", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
6
+ { name: "Kasol", emoji: "🌲", state: "Himachal Pradesh", country: "India" },
7
+ { name: "Mcleod Ganj", emoji: "🙏", state: "Himachal Pradesh", country: "India" },
8
+ { name: "Dharamshala", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
9
+ { name: "Dalhousie", emoji: "⛰️", state: "Himachal Pradesh", country: "India" },
10
+ { name: "Kullu", emoji: "🌊", state: "Himachal Pradesh", country: "India" },
11
+ { name: "Chail", emoji: "🌲", state: "Himachal Pradesh", country: "India" },
12
+ { name: "Kinnaur", emoji: "🍎", state: "Himachal Pradesh", country: "India" },
13
+ { name: "Rishikesh", emoji: "🧘", state: "Uttarakhand", country: "India" },
14
+ { name: "Haridwar", emoji: "🕉️", state: "Uttarakhand", country: "India" },
15
+ { name: "Nainital", emoji: "💧", state: "Uttarakhand", country: "India" },
16
+ { name: "Mussoorie", emoji: "🌄", state: "Uttarakhand", country: "India" },
17
+ { name: "Dehradun", emoji: "🏔️", state: "Uttarakhand", country: "India" },
18
+ { name: "Auli", emoji: "⛷️", state: "Uttarakhand", country: "India" },
19
+ { name: "Lansdowne", emoji: "🌿", state: "Uttarakhand", country: "India" },
20
+ { name: "Chakrata", emoji: "🌲", state: "Uttarakhand", country: "India" },
21
+ { name: "Ranikhet", emoji: "🌸", state: "Uttarakhand", country: "India" },
22
+ { name: "Jim Corbett", emoji: "🐯", state: "Uttarakhand", country: "India" },
23
+ { name: "Chopta", emoji: "❄️", state: "Uttarakhand", country: "India" },
24
+ { name: "Darjeeling", emoji: "🍵", state: "West Bengal", country: "India" },
25
+ { name: "Kalimpong", emoji: "🌺", state: "West Bengal", country: "India" },
26
+ { name: "Gangtok", emoji: "🏔️", state: "Sikkim", country: "India" },
27
+ { name: "Pelling", emoji: "🏔️", state: "Sikkim", country: "India" },
28
+ { name: "Lachung", emoji: "❄️", state: "Sikkim", country: "India" },
29
+ { name: "Yumsam", emoji: "🌿", state: "Sikkim", country: "India" },
30
+ { name: "Shillong", emoji: "🌧️", state: "Meghalaya", country: "India" },
31
+ { name: "Cherrapunji", emoji: "🌧️", state: "Meghalaya", country: "India" },
32
+ { name: "Mawlynnong", emoji: "🌿", state: "Meghalaya", country: "India" },
33
+ { name: "Tawang", emoji: "🏔️", state: "Arunachal Pradesh", country: "India" },
34
+ { name: "Ziro", emoji: "🌾", state: "Arunachal Pradesh", country: "India" },
35
+ { name: "Dirang", emoji: "🏔️", state: "Arunachal Pradesh", country: "India" },
36
+ // Jammu & Kashmir
37
+ { name: "Srinagar", emoji: "🌷", state: "Jammu & Kashmir", country: "India" },
38
+ { name: "Gulmarg", emoji: "⛷️", state: "Jammu & Kashmir", country: "India" },
39
+ { name: "Pahalgam", emoji: "🏞️", state: "Jammu & Kashmir", country: "India" },
40
+ { name: "Sonamarg", emoji: "❄️", state: "Jammu & Kashmir", country: "India" },
41
+ { name: "Vaishno Devi", emoji: "⛰️", state: "Jammu & Kashmir", country: "India" },
42
+ { name: "Doodhpathri", emoji: "🌸", state: "Jammu & Kashmir", country: "India" },
43
+ // Ladakh
44
+ { name: "Ladakh", emoji: "🏕️", state: "Ladakh", country: "India" },
45
+ { name: "Leh", emoji: "🏔️", state: "Ladakh", country: "India" },
46
+ { name: "Nubra Valley", emoji: "🐪", state: "Ladakh", country: "India" },
47
+ { name: "Pangong Lake", emoji: "💙", state: "Ladakh", country: "India" },
48
+ { name: "Tso Moriri", emoji: "🏔️", state: "Ladakh", country: "India" },
49
+ { name: "Zanskar Valley", emoji: "⛰️", state: "Ladakh", country: "India" },
50
+ // Rajasthan
51
+ { name: "Jaipur", emoji: "🏯", state: "Rajasthan", country: "India" },
52
+ { name: "Udaipur", emoji: "🏰", state: "Rajasthan", country: "India" },
53
+ { name: "Jodhpur", emoji: "🏯", state: "Rajasthan", country: "India" },
54
+ { name: "Jaisalmer", emoji: "🏜️", state: "Rajasthan", country: "India" },
55
+ { name: "Pushkar", emoji: "🐫", state: "Rajasthan", country: "India" },
56
+ { name: "Ajmer", emoji: "🕌", state: "Rajasthan", country: "India" },
57
+ { name: "Bikaner", emoji: "🐪", state: "Rajasthan", country: "India" },
58
+ { name: "Mount Abu", emoji: "⛰️", state: "Rajasthan", country: "India" },
59
+ { name: "Ranthambore", emoji: "🐯", state: "Rajasthan", country: "India" },
60
+ { name: "Alwar", emoji: "🏰", state: "Rajasthan", country: "India" },
61
+ { name: "Bundi", emoji: "🏯", state: "Rajasthan", country: "India" },
62
+ { name: "Chittorgarh", emoji: "🏰", state: "Rajasthan", country: "India" },
63
+ { name: "Kota", emoji: "🌊", state: "Rajasthan", country: "India" },
64
+ // Goa & West Coast
65
+ { name: "Goa", emoji: "🏖️", state: "Goa", country: "India" },
66
+ { name: "Panaji", emoji: "🏖️", state: "Goa", country: "India" },
67
+ { name: "Calangute", emoji: "🌊", state: "Goa", country: "India" },
68
+ { name: "Arambol", emoji: "🏄", state: "Goa", country: "India" },
69
+ { name: "Palolem", emoji: "🌴", state: "Goa", country: "India" },
70
+ { name: "Candolim", emoji: "🏖️", state: "Goa", country: "India" },
71
+ // Kerala
72
+ { name: "Kerala", emoji: "🌴", state: "Kerala", country: "India" },
73
+ { name: "Munnar", emoji: "🍃", state: "Kerala", country: "India" },
74
+ { name: "Alleppey", emoji: "🚣", state: "Kerala", country: "India" },
75
+ { name: "Varkala", emoji: "🏖️", state: "Kerala", country: "India" },
76
+ { name: "Kochi", emoji: "⛵", state: "Kerala", country: "India" },
77
+ { name: "Wayanad", emoji: "🌿", state: "Kerala", country: "India" },
78
+ { name: "Thekkady", emoji: "🐘", state: "Kerala", country: "India" },
79
+ { name: "Thrissur", emoji: "🎭", state: "Kerala", country: "India" },
80
+ { name: "Kozhikode", emoji: "🌊", state: "Kerala", country: "India" },
81
+ { name: "Kovalam", emoji: "🏖️", state: "Kerala", country: "India" },
82
+ { name: "Kannur", emoji: "🌴", state: "Kerala", country: "India" },
83
+ { name: "Vagamon", emoji: "🌫️", state: "Kerala", country: "India" },
84
+ { name: "Idukki", emoji: "🌿", state: "Kerala", country: "India" },
85
+ // Tamil Nadu
86
+ { name: "Ooty", emoji: "🌿", state: "Tamil Nadu", country: "India" },
87
+ { name: "Kodaikanal", emoji: "🌫️", state: "Tamil Nadu", country: "India" },
88
+ { name: "Chennai", emoji: "🌊", state: "Tamil Nadu", country: "India" },
89
+ { name: "Madurai", emoji: "🛕", state: "Tamil Nadu", country: "India" },
90
+ { name: "Coimbatore", emoji: "🏙️", state: "Tamil Nadu", country: "India" },
91
+ { name: "Pondicherry", emoji: "🌸", state: "Puducherry", country: "India" },
92
+ { name: "Rameswaram", emoji: "🕌", state: "Tamil Nadu", country: "India" },
93
+ { name: "Kanyakumari", emoji: "🌅", state: "Tamil Nadu", country: "India" },
94
+ { name: "Tirupati", emoji: "🙏", state: "Andhra Pradesh", country: "India" },
95
+ { name: "Mahabalipuram", emoji: "🗿", state: "Tamil Nadu", country: "India" },
96
+ { name: "Yercaud", emoji: "⛰️", state: "Tamil Nadu", country: "India" },
97
+ { name: "Valparai", emoji: "🌿", state: "Tamil Nadu", country: "India" },
98
+ // Karnataka
99
+ { name: "Coorg", emoji: "☕", state: "Karnataka", country: "India" },
100
+ { name: "Mysore", emoji: "🏯", state: "Karnataka", country: "India" },
101
+ { name: "Bangalore", emoji: "🌇", state: "Karnataka", country: "India" },
102
+ { name: "Hampi", emoji: "🗿", state: "Karnataka", country: "India" },
103
+ { name: "Badami", emoji: "🗿", state: "Karnataka", country: "India" },
104
+ { name: "Chikmagalur", emoji: "☕", state: "Karnataka", country: "India" },
105
+ { name: "Dandeli", emoji: "🌊", state: "Karnataka", country: "India" },
106
+ { name: "Mangalore", emoji: "🌊", state: "Karnataka", country: "India" },
107
+ { name: "Udupi", emoji: "🛕", state: "Karnataka", country: "India" },
108
+ { name: "Gokarna", emoji: "🏖️", state: "Karnataka", country: "India" },
109
+ { name: "Sakleshpur", emoji: "🌿", state: "Karnataka", country: "India" },
110
+ { name: "Kudremukh", emoji: "🌧️", state: "Karnataka", country: "India" },
111
+ { name: "Nagarhole", emoji: "🐘", state: "Karnataka", country: "India" },
112
+ // Maharashtra
113
+ { name: "Mumbai", emoji: "🌆", state: "Maharashtra", country: "India" },
114
+ { name: "Pune", emoji: "🏙️", state: "Maharashtra", country: "India" },
115
+ { name: "Mahabaleshwar", emoji: "🍓", state: "Maharashtra", country: "India" },
116
+ { name: "Lonavala", emoji: "⛰️", state: "Maharashtra", country: "India" },
117
+ { name: "Alibaug", emoji: "🏝️", state: "Maharashtra", country: "India" },
118
+ { name: "Aurangabad", emoji: "🏯", state: "Maharashtra", country: "India" },
119
+ { name: "Nagpur", emoji: "🍊", state: "Maharashtra", country: "India" },
120
+ { name: "Nashik", emoji: "🍇", state: "Maharashtra", country: "India" },
121
+ { name: "Shirdi", emoji: "🙏", state: "Maharashtra", country: "India" },
122
+ { name: "Kolhapur", emoji: "🏙️", state: "Maharashtra", country: "India" },
123
+ { name: "Matheran", emoji: "⛰️", state: "Maharashtra", country: "India" },
124
+ { name: "Igatpuri", emoji: "🌿", state: "Maharashtra", country: "India" },
125
+ { name: "Tadoba", emoji: "🐯", state: "Maharashtra", country: "India" },
126
+ // Gujarat
127
+ { name: "Ahmedabad", emoji: "🏙️", state: "Gujarat", country: "India" },
128
+ { name: "Surat", emoji: "💍", state: "Gujarat", country: "India" },
129
+ { name: "Rann of Kutch", emoji: "🏜️", state: "Gujarat", country: "India" },
130
+ { name: "Dwarka", emoji: "🛕", state: "Gujarat", country: "India" },
131
+ { name: "Somnath", emoji: "🛕", state: "Gujarat", country: "India" },
132
+ { name: "Gir", emoji: "🦁", state: "Gujarat", country: "India" },
133
+ { name: "Vadodara", emoji: "🏙️", state: "Gujarat", country: "India" },
134
+ { name: "Rajkot", emoji: "🏙️", state: "Gujarat", country: "India" },
135
+ { name: "Mandvi", emoji: "🏖️", state: "Gujarat", country: "India" },
136
+ { name: "Saputara", emoji: "⛰️", state: "Gujarat", country: "India" },
137
+ // Uttar Pradesh
138
+ { name: "Varanasi", emoji: "🕌", state: "Uttar Pradesh", country: "India" },
139
+ { name: "Agra", emoji: "🕌", state: "Uttar Pradesh", country: "India" },
140
+ { name: "Lucknow", emoji: "🏙️", state: "Uttar Pradesh", country: "India" },
141
+ { name: "Prayagraj", emoji: "🕉️", state: "Uttar Pradesh", country: "India" },
142
+ { name: "Mathura", emoji: "🛕", state: "Uttar Pradesh", country: "India" },
143
+ { name: "Vrindavan", emoji: "🌸", state: "Uttar Pradesh", country: "India" },
144
+ { name: "Ayodhya", emoji: "🛕", state: "Uttar Pradesh", country: "India" },
145
+ { name: "Kanpur", emoji: "🏙️", state: "Uttar Pradesh", country: "India" },
146
+ // Metro Cities
147
+ { name: "Delhi", emoji: "🏛️", state: "Delhi", country: "India" },
148
+ { name: "Kolkata", emoji: "🎭", state: "West Bengal", country: "India" },
149
+ { name: "Hyderabad", emoji: "💎", state: "Telangana", country: "India" },
150
+ { name: "Chandigarh", emoji: "🌳", state: "Chandigarh", country: "India" },
151
+ { name: "Bhopal", emoji: "🏙️", state: "Madhya Pradesh", country: "India" },
152
+ { name: "Indore", emoji: "🍲", state: "Madhya Pradesh", country: "India" },
153
+ { name: "Jaipur", emoji: "🏯", state: "Rajasthan", country: "India" },
154
+ { name: "Amritsar", emoji: "🕌", state: "Punjab", country: "India" },
155
+ { name: "Ludhiana", emoji: "🏙️", state: "Punjab", country: "India" },
156
+ { name: "Patna", emoji: "🏛️", state: "Bihar", country: "India" },
157
+ { name: "Ranchi", emoji: "🌿", state: "Jharkhand", country: "India" },
158
+ { name: "Bhubaneswar", emoji: "🛕", state: "Odisha", country: "India" },
159
+ // Beach & Coastal
160
+ { name: "Andaman Islands", emoji: "🏝️", state: "Andaman & Nicobar", country: "India" },
161
+ { name: "Havelock Island", emoji: "🏝️", state: "Andaman & Nicobar", country: "India" },
162
+ { name: "Neil Island", emoji: "🌊", state: "Andaman & Nicobar", country: "India" },
163
+ { name: "Lakshadweep", emoji: "🏝️", state: "Lakshadweep", country: "India" },
164
+ { name: "Puri", emoji: "🌊", state: "Odisha", country: "India" },
165
+ { name: "Vizag", emoji: "🌊", state: "Andhra Pradesh", country: "India" },
166
+ { name: "Pondicherry", emoji: "🌸", state: "Puducherry", country: "India" },
167
+ // Madhya Pradesh
168
+ { name: "Khajuraho", emoji: "🛕", state: "Madhya Pradesh", country: "India" },
169
+ { name: "Bhopal", emoji: "🏙️", state: "Madhya Pradesh", country: "India" },
170
+ { name: "Indore", emoji: "🍲", state: "Madhya Pradesh", country: "India" },
171
+ { name: "Ujjain", emoji: "🛕", state: "Madhya Pradesh", country: "India" },
172
+ { name: "Orchha", emoji: "🏯", state: "Madhya Pradesh", country: "India" },
173
+ { name: "Pachmarhi", emoji: "🌿", state: "Madhya Pradesh", country: "India" },
174
+ { name: "Bandhavgarh", emoji: "🐯", state: "Madhya Pradesh", country: "India" },
175
+ { name: "Kanha", emoji: "🦌", state: "Madhya Pradesh", country: "India" },
176
+ // Northeast
177
+ { name: "Kaziranga", emoji: "🦏", state: "Assam", country: "India" },
178
+ { name: "Guwahati", emoji: "🌊", state: "Assam", country: "India" },
179
+ { name: "Majuli", emoji: "🏝️", state: "Assam", country: "India" },
180
+ { name: "Imphal", emoji: "🌿", state: "Manipur", country: "India" },
181
+ { name: "Aizawl", emoji: "⛰️", state: "Mizoram", country: "India" },
182
+ { name: "Kohima", emoji: "🌿", state: "Nagaland", country: "India" },
183
+ { name: "Agartala", emoji: "🌿", state: "Tripura", country: "India" },
184
+ { name: "Itanagar", emoji: "🏔️", state: "Arunachal Pradesh", country: "India" },
185
+ ];
186
+ // Deduplicate by name
187
+ const seen = new Set();
188
+ const deduped = [];
189
+ for (const d of ALL_DESTINATIONS) {
190
+ if (!seen.has(d.name)) {
191
+ seen.add(d.name);
192
+ deduped.push(d);
193
+ }
194
+ }
195
+ // Re-assign after dedup
196
+ ALL_DESTINATIONS.length = 0;
197
+ ALL_DESTINATIONS.push(...deduped);
198
+ /** Flat array of city names — use for autocomplete suggestions */
199
+ export const INDIAN_CITIES = ALL_DESTINATIONS.map((d) => d.name);
200
+ /** { title: cityName } format — compatible with skillsOptions / Filter component */
201
+ export const INDIAN_CITIES_OPTIONS = ALL_DESTINATIONS.map((d) => ({
202
+ title: d.name,
203
+ }));
@@ -0,0 +1,21 @@
1
+ type SubmissionResult = {
2
+ success?: boolean;
3
+ error?: string;
4
+ slug?: string;
5
+ };
6
+ type HandleEntitySubmissionResultOptions = {
7
+ result: SubmissionResult;
8
+ isEditing: boolean;
9
+ editSlug?: string | null;
10
+ clearDraft: () => void;
11
+ setDone: (value: {
12
+ slug: string;
13
+ asDraft?: boolean;
14
+ }) => void;
15
+ setSubmitError: (message: string) => void;
16
+ asDraft: boolean;
17
+ defaultError: string;
18
+ };
19
+ export declare function handleEntitySubmissionResult({ result, isEditing, editSlug, clearDraft, setDone, setSubmitError, asDraft, defaultError, }: HandleEntitySubmissionResultOptions): boolean;
20
+ export {};
21
+ //# sourceMappingURL=entitySubmission.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitySubmission.d.ts","sourceRoot":"","sources":["../../src/lib/entitySubmission.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,mCAAmC,GAAG;IACzC,MAAM,EAAE,gBAAgB,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,OAAO,EACP,cAAc,EACd,OAAO,EACP,YAAY,GACb,EAAE,mCAAmC,WAUrC"}
@@ -0,0 +1,10 @@
1
+ export function handleEntitySubmissionResult({ result, isEditing, editSlug, clearDraft, setDone, setSubmitError, asDraft, defaultError, }) {
2
+ if (result.success) {
3
+ clearDraft();
4
+ const finalSlug = isEditing ? editSlug : result.slug;
5
+ setDone({ slug: finalSlug || "", asDraft });
6
+ return true;
7
+ }
8
+ setSubmitError(result.error || defaultError);
9
+ return false;
10
+ }