@timardex/cluemart-shared 2.2.40 → 2.3.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 (38) hide show
  1. package/dist/{chunk-BCMBTEGJ.mjs → chunk-DV3K3JDE.mjs} +26 -33
  2. package/dist/{chunk-BCMBTEGJ.mjs.map → chunk-DV3K3JDE.mjs.map} +1 -1
  3. package/dist/{chunk-T5ZOYS3L.mjs → chunk-HKTBJOB7.mjs} +40 -11
  4. package/dist/chunk-HKTBJOB7.mjs.map +1 -0
  5. package/dist/{chunk-NMJ2CR2F.mjs → chunk-KMS64DE2.mjs} +2 -2
  6. package/dist/{chunk-VL275KFW.mjs → chunk-PBW5K54C.mjs} +2 -2
  7. package/dist/{chunk-MKHXXZWF.mjs → chunk-YTRRTC2S.mjs} +11 -6
  8. package/dist/chunk-YTRRTC2S.mjs.map +1 -0
  9. package/dist/formFields/index.cjs +10 -0
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.mjs +3 -3
  12. package/dist/graphql/index.cjs +10 -5
  13. package/dist/graphql/index.cjs.map +1 -1
  14. package/dist/graphql/index.d.mts +3 -1
  15. package/dist/graphql/index.d.ts +3 -1
  16. package/dist/graphql/index.mjs +1 -1
  17. package/dist/hooks/index.cjs +8 -2
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.mjs +5 -5
  20. package/dist/index.cjs +76 -47
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +33 -5
  23. package/dist/index.d.ts +33 -5
  24. package/dist/index.mjs +72 -45
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/sharing/index.cjs +6 -0
  27. package/dist/sharing/index.cjs.map +1 -1
  28. package/dist/sharing/index.mjs +2 -2
  29. package/dist/utils/index.cjs +66 -42
  30. package/dist/utils/index.cjs.map +1 -1
  31. package/dist/utils/index.d.mts +30 -4
  32. package/dist/utils/index.d.ts +30 -4
  33. package/dist/utils/index.mjs +10 -6
  34. package/package.json +1 -1
  35. package/dist/chunk-MKHXXZWF.mjs.map +0 -1
  36. package/dist/chunk-T5ZOYS3L.mjs.map +0 -1
  37. /package/dist/{chunk-NMJ2CR2F.mjs.map → chunk-KMS64DE2.mjs.map} +0 -0
  38. /package/dist/{chunk-VL275KFW.mjs.map → chunk-PBW5K54C.mjs.map} +0 -0
@@ -556,7 +556,9 @@ declare const useDeleteRelation: () => {
556
556
  loading: boolean;
557
557
  };
558
558
 
559
- declare const useGetRelation: (_id?: string) => {
559
+ declare const useGetRelation: (_id?: string, options?: {
560
+ futureOnly?: boolean;
561
+ }) => {
560
562
  error: _apollo_client.ApolloError | undefined;
561
563
  loading: boolean;
562
564
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
@@ -556,7 +556,9 @@ declare const useDeleteRelation: () => {
556
556
  loading: boolean;
557
557
  };
558
558
 
559
- declare const useGetRelation: (_id?: string) => {
559
+ declare const useGetRelation: (_id?: string, options?: {
560
+ futureOnly?: boolean;
561
+ }) => {
560
562
  error: _apollo_client.ApolloError | undefined;
561
563
  loading: boolean;
562
564
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
@@ -162,7 +162,7 @@ import {
162
162
  useUpdateUser,
163
163
  useUpdateVendor,
164
164
  useUpdateVendorInfo
165
- } from "../chunk-MKHXXZWF.mjs";
165
+ } from "../chunk-YTRRTC2S.mjs";
166
166
  import {
167
167
  GET_EVENT,
168
168
  GET_EVENTS,
@@ -439,6 +439,12 @@ import_dayjs2.default.extend(import_customParseFormat2.default);
439
439
  import_dayjs2.default.extend(import_utc.default);
440
440
  import_dayjs2.default.extend(import_timezone.default);
441
441
  import_dayjs2.default.extend(import_isSameOrAfter.default);
442
+ var SLOT_FORMATS = [
443
+ `${dateFormat} ${timeFormat}`,
444
+ `${dateFormat} H:mm`,
445
+ `${dateFormat} ${timeFormat}:ss`,
446
+ `${dateFormat} H:mm:ss`
447
+ ];
442
448
  var futureTimePeriods = FUTURE_EVENT_DATE_STATUSES.filter(
443
449
  (status) => status !== "Starting_Soon" /* STARTING_SOON */
444
450
  ).map((status) => ({
@@ -4088,8 +4094,8 @@ var RELATION_FIELDS_FRAGMENT = import_client11.gql`
4088
4094
  ${RELATION_DATES_FRAGMENT}
4089
4095
  `;
4090
4096
  var GET_RELATION = import_client11.gql`
4091
- query getRelation($_id: ID!) {
4092
- relation(_id: $_id) {
4097
+ query getRelation($_id: ID!, $futureOnly: Boolean = false) {
4098
+ relation(_id: $_id, futureOnly: $futureOnly) {
4093
4099
  ...RelationFields
4094
4100
  }
4095
4101
  }