propro-common-components 0.2.64 → 0.2.66

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 (60) hide show
  1. package/README.md +17 -0
  2. package/dist/api/useGet.d.ts +2 -2
  3. package/dist/api/useMutate.d.ts +1 -1
  4. package/dist/api/useMutateWithKeepAlive.d.ts +2 -2
  5. package/dist/components/theme-provider.d.ts +0 -1
  6. package/dist/components/ui/dropdown-menu.d.ts +3 -3
  7. package/dist/hoc/PrivateRoute.d.ts +0 -1
  8. package/dist/hooks/useAuth.d.ts +1 -2
  9. package/dist/main.css +1 -1
  10. package/dist/plasmicComponents/AccountActivationConformation.d.ts +6 -0
  11. package/dist/plasmicComponents/ProProLandingContent.d.ts +6 -0
  12. package/dist/plasmicComponents/ProductCards.d.ts +6 -0
  13. package/dist/plasmicComponents/plasmic/antd/PlasmicStyleTokensProvider.d.ts +4 -0
  14. package/dist/plasmicComponents/plasmic/antd/plasmic.d.ts +1 -0
  15. package/dist/plasmicComponents/plasmic/antd_5_hostless/PlasmicStyleTokensProvider.d.ts +4 -0
  16. package/dist/plasmicComponents/plasmic/antd_5_hostless/plasmic.d.ts +1 -0
  17. package/dist/plasmicComponents/plasmic/loading_boundary/PlasmicStyleTokensProvider.d.ts +4 -0
  18. package/dist/plasmicComponents/plasmic/loading_boundary/plasmic.d.ts +1 -0
  19. package/dist/plasmicComponents/plasmic/lottie_react/PlasmicStyleTokensProvider.d.ts +4 -0
  20. package/dist/plasmicComponents/plasmic/lottie_react/plasmic.d.ts +1 -0
  21. package/dist/plasmicComponents/plasmic/plasmic_basic_components/PlasmicStyleTokensProvider.d.ts +4 -0
  22. package/dist/plasmicComponents/plasmic/plasmic_basic_components/plasmic.d.ts +1 -0
  23. package/dist/plasmicComponents/plasmic/plasmic_embed_css/PlasmicStyleTokensProvider.d.ts +4 -0
  24. package/dist/plasmicComponents/plasmic/plasmic_embed_css/plasmic.d.ts +1 -0
  25. package/dist/plasmicComponents/plasmic/plasmic_rich_components/PlasmicStyleTokensProvider.d.ts +4 -0
  26. package/dist/plasmicComponents/plasmic/plasmic_rich_components/plasmic.d.ts +1 -0
  27. package/dist/plasmicComponents/plasmic/plasmic_tabs/PlasmicButton.d.ts +52 -52
  28. package/dist/plasmicComponents/plasmic/plasmic_tabs/icons/PlasmicIcon__CheckMark.d.ts +7 -0
  29. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicAccountActivationConformation.d.ts +176 -0
  30. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicButtonFromProPro.d.ts +55 -55
  31. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicDescription.d.ts +16 -16
  32. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicErrorMessageContainer.d.ts +130 -0
  33. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicFooterLink.d.ts +72 -72
  34. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicGlobalVariant__Screen.d.ts +3 -0
  35. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicGlobalVariant__Theme.d.ts +3 -0
  36. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicGlobalVariant__Theme2.d.ts +3 -0
  37. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicLabel.d.ts +24 -24
  38. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicLogo.d.ts +80 -59
  39. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicNewsletterConfirmation.d.ts +14 -14
  40. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicProProLabel.d.ts +36 -36
  41. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicProProLandingContent.d.ts +117 -0
  42. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicProductCards.d.ts +97 -0
  43. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSignInSignUpForm.d.ts +554 -554
  44. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSignInSignUpFormLayout.d.ts +88 -88
  45. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSlider.d.ts +64 -64
  46. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSliderThumb.d.ts +6 -6
  47. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicStyleTokensProvider.d.ts +4 -0
  48. package/dist/plasmicComponents/plasmic/pro_pro/PlasmicTextInputFromProPro.d.ts +58 -58
  49. package/dist/plasmicComponents/plasmic/pro_pro/plasmic.d.ts +1 -0
  50. package/dist/plasmicComponents/plasmic/react_aria/PlasmicStyleTokensProvider.d.ts +4 -0
  51. package/dist/plasmicComponents/plasmic/react_aria/plasmic.d.ts +1 -0
  52. package/dist/plasmicComponents/plasmic/react_awesome_reveal/PlasmicStyleTokensProvider.d.ts +4 -0
  53. package/dist/plasmicComponents/plasmic/react_awesome_reveal/plasmic.d.ts +1 -0
  54. package/dist/propro-common-components.js +26509 -25104
  55. package/dist/utils/iconUtils.d.ts +1 -1
  56. package/package.json +13 -13
  57. package/dist/components/ui/menubar.d.ts +0 -31
  58. package/dist/plasmicComponents/plasmic/plasmic_tabs/icons/PlasmicIcon__Checksvg.d.ts +0 -7
  59. /package/dist/plasmicComponents/plasmic/pro_pro/icons/{PlasmicIcon__Filledsvg.d.ts → PlasmicIcon__FilledSvg.d.ts} +0 -0
  60. /package/dist/plasmicComponents/plasmic/pro_pro/icons/{PlasmicIcon__Searchsvg.d.ts → PlasmicIcon__SearchSvg.d.ts} +0 -0
package/README.md CHANGED
@@ -28,3 +28,20 @@ export default {
28
28
  - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
29
  - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
30
  - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
31
+
32
+ ## Contribution Guide
33
+
34
+ Follow these steps to contribute to the project:
35
+
36
+ 1. **Pull latest changes**: Before making any changes, make sure you have the latest version of the code by pulling from the branch.
37
+
38
+ 2. **Plasmic Sync**: If you've made changes in Plasmic, run the following command to sync them with the project before publishing.
39
+ ```bash
40
+ plasmic sync
41
+ ```
42
+
43
+ 3. **Publishing**: To publish a new version, run the following -
44
+ ```bash
45
+ yarn publish
46
+ ```
47
+ When prompted for a new version, increment the last digit of the current version by 1 (e.g., if the current version is `1.0.0`, the new version should be `1.0.1`).
@@ -1,4 +1,4 @@
1
- import { DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
1
+ import { DefaultError, DefinedInitialDataOptions, DefinedUseQueryResult, QueryKey, UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
 
3
- declare const useGet: <TQueryFnData = unknown, TError = Error, TData = TQueryFnData, TQueryKey extends readonly unknown[] = readonly unknown[]>(key: TQueryKey, endpoint: string, options?: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>) => UseQueryResult<TData, TError> | DefinedUseQueryResult<TData, TError> | UseQueryResult<TData, TError>;
3
+ declare const useGet: <TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(key: TQueryKey, endpoint: string, options?: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>) => UseQueryResult<TData, TError> | DefinedUseQueryResult<TData, TError> | UseQueryResult<TData, TError>;
4
4
  export default useGet;
@@ -22,5 +22,5 @@ export interface UseMutateParams<TData, TError, TVariables, _TContext> {
22
22
  shouldCheckAccessToken?: boolean;
23
23
  isFormData?: boolean;
24
24
  }
25
- declare const useMutate: <TData = unknown, TError = AxiosError<unknown, any>, TVariables = unknown, TContext = unknown>(params: UseMutateParams<TData, TError, TVariables, TContext>, options?: Omit<UseMutationOptions<TData, TError, TVariables, TContext>, 'mutationFn' | 'onSuccess' | 'onError'>) => UseMutationResult<TData, TError, TVariables, TContext>;
25
+ declare const useMutate: <TData = object | unknown | undefined, TError = AxiosError, TVariables = object | unknown | undefined, TContext = unknown>(params: UseMutateParams<TData, TError, TVariables, TContext>, options?: Omit<UseMutationOptions<TData, TError, TVariables, TContext>, "mutationFn" | "onSuccess" | "onError">) => UseMutationResult<TData, TError, TVariables, TContext>;
26
26
  export default useMutate;
@@ -4,8 +4,8 @@ import { ToastOptions } from 'react-toastify';
4
4
 
5
5
  declare const useMutateWithKeepAlive: ({ url, method, headers, invalidateAllQueries, successLog, errorLog, logURL, toastMessage, onSuccess, onError, }: {
6
6
  url: string;
7
- method: 'POST' | 'PUT' | 'DELETE' | 'PATCH';
8
- headers?: AxiosRequestConfig['headers'];
7
+ method: "POST" | "PUT" | "DELETE" | "PATCH";
8
+ headers?: AxiosRequestConfig["headers"];
9
9
  invalidateAllQueries?: boolean;
10
10
  successLog?: string;
11
11
  errorLog?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Theme = "dark" | "light" | "system";
3
2
  type ThemeProviderProps = {
4
3
  children: React.ReactNode;
@@ -7,17 +7,17 @@ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPor
7
7
  declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
8
  declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
- inset?: boolean | undefined;
10
+ inset?: boolean;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
14
  declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- inset?: boolean | undefined;
15
+ inset?: boolean;
16
16
  } & React.RefAttributes<HTMLDivElement>>;
17
17
  declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
18
  declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
19
  declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
- inset?: boolean | undefined;
20
+ inset?: boolean;
21
21
  } & React.RefAttributes<HTMLDivElement>>;
22
22
  declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
23
  declare const DropdownMenuShortcut: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default function PrivateRoute({ children, }: {
3
2
  children: React.ReactNode;
4
3
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export default function useAuth(): {
3
2
  account: import('../interfaces/account.interface').AccountInterface | null;
4
3
  setAccount: import('react').Dispatch<import('react').SetStateAction<import('../interfaces/account.interface').AccountInterface | null>>;
5
- handleSetAccount: (account?: import('../interfaces/account.interface').AccountInterface | undefined) => void;
4
+ handleSetAccount: (account?: import('../interfaces/account.interface').AccountInterface) => void;
6
5
  };