@meaple-com/react-headless-components 2.0.0 → 2.0.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/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import * as _meaple_com_types from '@meaple-com/types';
|
|
3
|
-
import { TicketProps, GroupProps, CouponProps, GetOrderResponseProps as GetOrderResponseProps$1, CategoryProps, GetEventProductProps, FindEventProps, FindEventsParams, GetEventTicketProps, GetEventTicketGroupProps,
|
|
3
|
+
import { TicketProps, GroupProps, CouponProps, GetOrderResponseProps as GetOrderResponseProps$1, CategoryProps, GetEventProductProps, FindEventProps, FindEventsParams, GetEventTicketProps, GetEventTicketGroupProps, GetUserEventProps, UserTicketProps, GetUserOrderProps } from '@meaple-com/types';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { useCheckCoupon, useOrder, useCategories, useEventProducts, useEvents, useEventTickets, useUserEvents, useUserEventTickets, useUserOrders } from '@meaple-com/react-query';
|
|
6
6
|
|
|
@@ -157,7 +157,7 @@ declare const ListEventTickets: ({ children, eventId, privateToken, predecessorI
|
|
|
157
157
|
type SectionType = 'coming_soon' | 'past' | 'awards';
|
|
158
158
|
type ListUserEventsProps = {
|
|
159
159
|
children: (props: {
|
|
160
|
-
events:
|
|
160
|
+
events: GetUserEventProps[];
|
|
161
161
|
isPending: boolean;
|
|
162
162
|
error: Error | null;
|
|
163
163
|
}) => ReactNode;
|
|
@@ -180,7 +180,7 @@ declare const ListUserEventTickets: ({ children, eventId, options, }: ListUserEv
|
|
|
180
180
|
type SectionStatus = 'PAID' | 'REFUNDED';
|
|
181
181
|
type ListUserOrdersProps = {
|
|
182
182
|
children: (props: {
|
|
183
|
-
orders:
|
|
183
|
+
orders: GetUserOrderProps[];
|
|
184
184
|
isPending: boolean;
|
|
185
185
|
error: Error | null;
|
|
186
186
|
}) => ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import * as _meaple_com_types from '@meaple-com/types';
|
|
3
|
-
import { TicketProps, GroupProps, CouponProps, GetOrderResponseProps as GetOrderResponseProps$1, CategoryProps, GetEventProductProps, FindEventProps, FindEventsParams, GetEventTicketProps, GetEventTicketGroupProps,
|
|
3
|
+
import { TicketProps, GroupProps, CouponProps, GetOrderResponseProps as GetOrderResponseProps$1, CategoryProps, GetEventProductProps, FindEventProps, FindEventsParams, GetEventTicketProps, GetEventTicketGroupProps, GetUserEventProps, UserTicketProps, GetUserOrderProps } from '@meaple-com/types';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { useCheckCoupon, useOrder, useCategories, useEventProducts, useEvents, useEventTickets, useUserEvents, useUserEventTickets, useUserOrders } from '@meaple-com/react-query';
|
|
6
6
|
|
|
@@ -157,7 +157,7 @@ declare const ListEventTickets: ({ children, eventId, privateToken, predecessorI
|
|
|
157
157
|
type SectionType = 'coming_soon' | 'past' | 'awards';
|
|
158
158
|
type ListUserEventsProps = {
|
|
159
159
|
children: (props: {
|
|
160
|
-
events:
|
|
160
|
+
events: GetUserEventProps[];
|
|
161
161
|
isPending: boolean;
|
|
162
162
|
error: Error | null;
|
|
163
163
|
}) => ReactNode;
|
|
@@ -180,7 +180,7 @@ declare const ListUserEventTickets: ({ children, eventId, options, }: ListUserEv
|
|
|
180
180
|
type SectionStatus = 'PAID' | 'REFUNDED';
|
|
181
181
|
type ListUserOrdersProps = {
|
|
182
182
|
children: (props: {
|
|
183
|
-
orders:
|
|
183
|
+
orders: GetUserOrderProps[];
|
|
184
184
|
isPending: boolean;
|
|
185
185
|
error: Error | null;
|
|
186
186
|
}) => ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meaple-com/react-headless-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Headless React components for Meaple SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"clean": "rimraf dist"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@meaple-com/types": "^
|
|
31
|
+
"@meaple-com/types": "^4.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@eslint/js": "^9.36.0",
|
|
35
|
-
"@meaple-com/react-query": "^1.1.
|
|
35
|
+
"@meaple-com/react-query": "^1.1.1",
|
|
36
36
|
"@types/react": "^19.0.0",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
38
38
|
"@typescript-eslint/parser": "^7.18.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"rimraf": "^5.0.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@meaple-com/react-query": "^1.1.
|
|
48
|
-
"react": "^19.
|
|
47
|
+
"@meaple-com/react-query": "^1.1.1",
|
|
48
|
+
"react": "^19.2.4"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"dist"
|