@timardex/cluemart-shared 1.5.586 → 1.5.589
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/{chunk-IMTMBZI7.mjs → chunk-2NQUR2AV.mjs} +2 -2
- package/dist/chunk-36TVNR7V.mjs +204 -0
- package/dist/chunk-36TVNR7V.mjs.map +1 -0
- package/dist/{chunk-YGKLLYKV.mjs → chunk-P52HS2NB.mjs} +15 -2
- package/dist/chunk-P52HS2NB.mjs.map +1 -0
- package/dist/{chunk-L74HNX7U.mjs → chunk-YV2JDG4R.mjs} +4 -4
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +14 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +9 -1
- package/dist/graphql/index.d.ts +9 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +39 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +13 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +240 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +126 -2
- package/dist/index.d.ts +126 -2
- package/dist/index.mjs +215 -1
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +254 -0
- package/dist/sharing/index.cjs.map +1 -0
- package/dist/sharing/index.d.mts +117 -0
- package/dist/sharing/index.d.ts +117 -0
- package/dist/sharing/index.mjs +55 -0
- package/dist/sharing/index.mjs.map +1 -0
- package/dist/utils/index.mjs +2 -2
- package/package.json +6 -1
- package/dist/chunk-YGKLLYKV.mjs.map +0 -1
- /package/dist/{chunk-IMTMBZI7.mjs.map → chunk-2NQUR2AV.mjs.map} +0 -0
- /package/dist/{chunk-L74HNX7U.mjs.map → chunk-YV2JDG4R.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -212,7 +212,15 @@ declare const useCreateEvent: () => {
|
|
|
212
212
|
declare const useUpdateEvent: () => {
|
|
213
213
|
error: _apollo_client.ApolloError | undefined;
|
|
214
214
|
loading: boolean;
|
|
215
|
-
updateEvent: (options?: _apollo_client.MutationFunctionOptions<
|
|
215
|
+
updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
|
|
216
|
+
updateEvent: {
|
|
217
|
+
_id: string;
|
|
218
|
+
};
|
|
219
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
220
|
+
updateEvent: {
|
|
221
|
+
_id: string;
|
|
222
|
+
};
|
|
223
|
+
}>>;
|
|
216
224
|
};
|
|
217
225
|
declare const useDeleteEvent: () => {
|
|
218
226
|
deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -212,7 +212,15 @@ declare const useCreateEvent: () => {
|
|
|
212
212
|
declare const useUpdateEvent: () => {
|
|
213
213
|
error: _apollo_client.ApolloError | undefined;
|
|
214
214
|
loading: boolean;
|
|
215
|
-
updateEvent: (options?: _apollo_client.MutationFunctionOptions<
|
|
215
|
+
updateEvent: (options?: _apollo_client.MutationFunctionOptions<{
|
|
216
|
+
updateEvent: {
|
|
217
|
+
_id: string;
|
|
218
|
+
};
|
|
219
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
220
|
+
updateEvent: {
|
|
221
|
+
_id: string;
|
|
222
|
+
};
|
|
223
|
+
}>>;
|
|
216
224
|
};
|
|
217
225
|
declare const useDeleteEvent: () => {
|
|
218
226
|
deleteEvent: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -4763,6 +4763,45 @@ var otherImages = Object.fromEntries(
|
|
|
4763
4763
|
Object.entries(otherImagesFiles).map(([key, file]) => [key, `${PKG}/images/${file}`])
|
|
4764
4764
|
);
|
|
4765
4765
|
|
|
4766
|
+
// src/sharing/relationShareTypes.ts
|
|
4767
|
+
var RELATION_SHARE_INVITATION = "invitation";
|
|
4768
|
+
var RELATION_SHARE_APPLICATION = "application";
|
|
4769
|
+
|
|
4770
|
+
// src/sharing/constants.ts
|
|
4771
|
+
var SHARE_SITE_URL = "https://cluemart.co.nz";
|
|
4772
|
+
var DEFAULT_SHARE_OG_IMAGE = `${SHARE_SITE_URL}/assets/logo.webp`;
|
|
4773
|
+
var RESOURCE_SHARE_TYPES = [
|
|
4774
|
+
"market",
|
|
4775
|
+
"stallholder",
|
|
4776
|
+
"partner"
|
|
4777
|
+
];
|
|
4778
|
+
var POST_SHARE_RESOURCE_TYPES = [
|
|
4779
|
+
"daily_meets",
|
|
4780
|
+
"daily_tips",
|
|
4781
|
+
"daily_games"
|
|
4782
|
+
];
|
|
4783
|
+
var SHARE_RESOURCE_LABEL = {
|
|
4784
|
+
[RELATION_SHARE_APPLICATION]: "Application",
|
|
4785
|
+
[RELATION_SHARE_INVITATION]: "Invitation",
|
|
4786
|
+
daily_games: "Daily Game",
|
|
4787
|
+
daily_meets: "Daily Meet",
|
|
4788
|
+
daily_tips: "Daily Tip",
|
|
4789
|
+
market: "Market",
|
|
4790
|
+
partner: "Partner",
|
|
4791
|
+
stallholder: "Stallholder"
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
// src/sharing/buildShareUrl.ts
|
|
4795
|
+
var PUBLIC_SHARE_PATH_TYPES = [
|
|
4796
|
+
...RESOURCE_SHARE_TYPES,
|
|
4797
|
+
...POST_SHARE_RESOURCE_TYPES
|
|
4798
|
+
];
|
|
4799
|
+
var SHARE_TYPE_PATH_REGEX = [
|
|
4800
|
+
...PUBLIC_SHARE_PATH_TYPES,
|
|
4801
|
+
RELATION_SHARE_APPLICATION,
|
|
4802
|
+
RELATION_SHARE_INVITATION
|
|
4803
|
+
].join("|");
|
|
4804
|
+
|
|
4766
4805
|
// src/types/post.ts
|
|
4767
4806
|
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
4768
4807
|
EnumPostType2["DAILY_MEETS"] = "daily_meets";
|