sidekick-client 0.1.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 (264) hide show
  1. package/README.md +129 -0
  2. package/dist/index.cjs.js +2 -0
  3. package/dist/index.cjs.js.map +1 -0
  4. package/dist/index.css +1 -0
  5. package/dist/index.esm.js +2 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/temp.js.map +1 -0
  8. package/dist/types/App.d.ts +9 -0
  9. package/dist/types/App.d.ts.map +1 -0
  10. package/dist/types/app/Routes.d.ts +8 -0
  11. package/dist/types/app/Routes.d.ts.map +1 -0
  12. package/dist/types/app/UserAccount.d.ts +7 -0
  13. package/dist/types/app/UserAccount.d.ts.map +1 -0
  14. package/dist/types/app/index.d.ts +2 -0
  15. package/dist/types/app/index.d.ts.map +1 -0
  16. package/dist/types/app/routes/Dashboard/Dashboard.d.ts +2 -0
  17. package/dist/types/app/routes/Dashboard/Dashboard.d.ts.map +1 -0
  18. package/dist/types/app/routes/Dashboard/components/AppBreadcrumb.d.ts +3 -0
  19. package/dist/types/app/routes/Dashboard/components/AppBreadcrumb.d.ts.map +1 -0
  20. package/dist/types/app/routes/Dashboard/components/Settings/Components/ThemeCmb.d.ts +3 -0
  21. package/dist/types/app/routes/Dashboard/components/Settings/Components/ThemeCmb.d.ts.map +1 -0
  22. package/dist/types/app/routes/Dashboard/components/Settings/GeneralSettingsPg.d.ts +3 -0
  23. package/dist/types/app/routes/Dashboard/components/Settings/GeneralSettingsPg.d.ts.map +1 -0
  24. package/dist/types/app/routes/NotFound.d.ts +5 -0
  25. package/dist/types/app/routes/NotFound.d.ts.map +1 -0
  26. package/dist/types/app/routes/OrgSetup/CreateOrg.d.ts +3 -0
  27. package/dist/types/app/routes/OrgSetup/CreateOrg.d.ts.map +1 -0
  28. package/dist/types/app/routes/OrgSetup/JoinOrg.d.ts +3 -0
  29. package/dist/types/app/routes/OrgSetup/JoinOrg.d.ts.map +1 -0
  30. package/dist/types/app/routes/OrgSetup/ManageOrgs.d.ts +3 -0
  31. package/dist/types/app/routes/OrgSetup/ManageOrgs.d.ts.map +1 -0
  32. package/dist/types/app/routes/OrgSetup/OrgSetup.d.ts +3 -0
  33. package/dist/types/app/routes/OrgSetup/OrgSetup.d.ts.map +1 -0
  34. package/dist/types/app/routes/OrgSetup/components/IncludedUsers.d.ts +9 -0
  35. package/dist/types/app/routes/OrgSetup/components/IncludedUsers.d.ts.map +1 -0
  36. package/dist/types/app/routes/OrgSetup/components/OrgRootLayout.d.ts +3 -0
  37. package/dist/types/app/routes/OrgSetup/components/OrgRootLayout.d.ts.map +1 -0
  38. package/dist/types/app/routes/OrgSetup/components/RolesCmb.d.ts +8 -0
  39. package/dist/types/app/routes/OrgSetup/components/RolesCmb.d.ts.map +1 -0
  40. package/dist/types/app/routes/OrgSetup/hooks/useOrgHelper.d.ts +8 -0
  41. package/dist/types/app/routes/OrgSetup/hooks/useOrgHelper.d.ts.map +1 -0
  42. package/dist/types/app/routes/Subscriptions/Checkout.d.ts +3 -0
  43. package/dist/types/app/routes/Subscriptions/Checkout.d.ts.map +1 -0
  44. package/dist/types/app/routes/Subscriptions/PaymentHistory.d.ts +3 -0
  45. package/dist/types/app/routes/Subscriptions/PaymentHistory.d.ts.map +1 -0
  46. package/dist/types/app/routes/Subscriptions/PricingPg.d.ts +2 -0
  47. package/dist/types/app/routes/Subscriptions/PricingPg.d.ts.map +1 -0
  48. package/dist/types/app/routes/Subscriptions/SubscriptionMgmt.d.ts +3 -0
  49. package/dist/types/app/routes/Subscriptions/SubscriptionMgmt.d.ts.map +1 -0
  50. package/dist/types/app/routes/Subscriptions/components/AddMoreUsersDialog.d.ts +8 -0
  51. package/dist/types/app/routes/Subscriptions/components/AddMoreUsersDialog.d.ts.map +1 -0
  52. package/dist/types/app/routes/Subscriptions/components/PremiumIcon.d.ts +7 -0
  53. package/dist/types/app/routes/Subscriptions/components/PremiumIcon.d.ts.map +1 -0
  54. package/dist/types/app/routes/Subscriptions/components/UpcomingPlans.d.ts +12 -0
  55. package/dist/types/app/routes/Subscriptions/components/UpcomingPlans.d.ts.map +1 -0
  56. package/dist/types/app/routes/Subscriptions/components/UpgradeToPro.d.ts +3 -0
  57. package/dist/types/app/routes/Subscriptions/components/UpgradeToPro.d.ts.map +1 -0
  58. package/dist/types/app/routes/Subscriptions/hooks/usePurchasedPlans.d.ts +7 -0
  59. package/dist/types/app/routes/Subscriptions/hooks/usePurchasedPlans.d.ts.map +1 -0
  60. package/dist/types/app/routes/Subscriptions/utils/subscription-utils.d.ts +6 -0
  61. package/dist/types/app/routes/Subscriptions/utils/subscription-utils.d.ts.map +1 -0
  62. package/dist/types/app/routes/auth/ForgotPasswordForm.d.ts +2 -0
  63. package/dist/types/app/routes/auth/ForgotPasswordForm.d.ts.map +1 -0
  64. package/dist/types/app/routes/auth/LoginForm.d.ts +2 -0
  65. package/dist/types/app/routes/auth/LoginForm.d.ts.map +1 -0
  66. package/dist/types/app/routes/auth/RegistrationForm.d.ts +2 -0
  67. package/dist/types/app/routes/auth/RegistrationForm.d.ts.map +1 -0
  68. package/dist/types/app/routes/auth/components/Auth.d.ts +2 -0
  69. package/dist/types/app/routes/auth/components/Auth.d.ts.map +1 -0
  70. package/dist/types/app/routes/auth/components/InputOTPField.d.ts +11 -0
  71. package/dist/types/app/routes/auth/components/InputOTPField.d.ts.map +1 -0
  72. package/dist/types/app/routes/auth/components/PasswordPolicyIBtn.d.ts +3 -0
  73. package/dist/types/app/routes/auth/components/PasswordPolicyIBtn.d.ts.map +1 -0
  74. package/dist/types/app/routes/auth/components/SendOTP.d.ts +13 -0
  75. package/dist/types/app/routes/auth/components/SendOTP.d.ts.map +1 -0
  76. package/dist/types/app/routes/auth/utils/auth-lib.d.ts +5 -0
  77. package/dist/types/app/routes/auth/utils/auth-lib.d.ts.map +1 -0
  78. package/dist/types/app/routes/components/RequireAuth.d.ts +7 -0
  79. package/dist/types/app/routes/components/RequireAuth.d.ts.map +1 -0
  80. package/dist/types/components/billingsdk/cancel-subscription-dialog.d.ts +23 -0
  81. package/dist/types/components/billingsdk/cancel-subscription-dialog.d.ts.map +1 -0
  82. package/dist/types/components/billingsdk/invoice-history.d.ts +19 -0
  83. package/dist/types/components/billingsdk/invoice-history.d.ts.map +1 -0
  84. package/dist/types/components/billingsdk/payment-success-dialog.d.ts +20 -0
  85. package/dist/types/components/billingsdk/payment-success-dialog.d.ts.map +1 -0
  86. package/dist/types/components/billingsdk/pricing-table-four.d.ts +22 -0
  87. package/dist/types/components/billingsdk/pricing-table-four.d.ts.map +1 -0
  88. package/dist/types/components/billingsdk/subscription-management.d.ts +21 -0
  89. package/dist/types/components/billingsdk/subscription-management.d.ts.map +1 -0
  90. package/dist/types/components/billingsdk/update-plan-dialog.d.ts +11 -0
  91. package/dist/types/components/billingsdk/update-plan-dialog.d.ts.map +1 -0
  92. package/dist/types/components/custom/AccordionWrapper.d.ts +8 -0
  93. package/dist/types/components/custom/AccordionWrapper.d.ts.map +1 -0
  94. package/dist/types/components/custom/AlertDialog.d.ts +13 -0
  95. package/dist/types/components/custom/AlertDialog.d.ts.map +1 -0
  96. package/dist/types/components/custom/BigSquare.d.ts +9 -0
  97. package/dist/types/components/custom/BigSquare.d.ts.map +1 -0
  98. package/dist/types/components/custom/CopyTextField.d.ts +5 -0
  99. package/dist/types/components/custom/CopyTextField.d.ts.map +1 -0
  100. package/dist/types/components/custom/DataTable/DataTable.d.ts +29 -0
  101. package/dist/types/components/custom/DataTable/DataTable.d.ts.map +1 -0
  102. package/dist/types/components/custom/DataTable/DataTablePagination.d.ts +12 -0
  103. package/dist/types/components/custom/DataTable/DataTablePagination.d.ts.map +1 -0
  104. package/dist/types/components/custom/DataTable/DataTableToolbar.d.ts +22 -0
  105. package/dist/types/components/custom/DataTable/DataTableToolbar.d.ts.map +1 -0
  106. package/dist/types/components/custom/DataTable/InlineEditor.d.ts +9 -0
  107. package/dist/types/components/custom/DataTable/InlineEditor.d.ts.map +1 -0
  108. package/dist/types/components/custom/DialogWrapper.d.ts +13 -0
  109. package/dist/types/components/custom/DialogWrapper.d.ts.map +1 -0
  110. package/dist/types/components/custom/DropdownBtn.d.ts +15 -0
  111. package/dist/types/components/custom/DropdownBtn.d.ts.map +1 -0
  112. package/dist/types/components/custom/DropdownLbl.d.ts +13 -0
  113. package/dist/types/components/custom/DropdownLbl.d.ts.map +1 -0
  114. package/dist/types/components/custom/FullPageLoading.d.ts +3 -0
  115. package/dist/types/components/custom/FullPageLoading.d.ts.map +1 -0
  116. package/dist/types/components/custom/HeaderText.d.ts +7 -0
  117. package/dist/types/components/custom/HeaderText.d.ts.map +1 -0
  118. package/dist/types/components/custom/InfoButton.d.ts +8 -0
  119. package/dist/types/components/custom/InfoButton.d.ts.map +1 -0
  120. package/dist/types/components/custom/Layouts/CenterAndMiddle.d.ts +6 -0
  121. package/dist/types/components/custom/Layouts/CenterAndMiddle.d.ts.map +1 -0
  122. package/dist/types/components/custom/Layouts/FlexColsLayout.d.ts +11 -0
  123. package/dist/types/components/custom/Layouts/FlexColsLayout.d.ts.map +1 -0
  124. package/dist/types/components/custom/Layouts/TabularLayout.d.ts +11 -0
  125. package/dist/types/components/custom/Layouts/TabularLayout.d.ts.map +1 -0
  126. package/dist/types/components/custom/LinkWrapper.d.ts +9 -0
  127. package/dist/types/components/custom/LinkWrapper.d.ts.map +1 -0
  128. package/dist/types/components/custom/ListPanel.d.ts +11 -0
  129. package/dist/types/components/custom/ListPanel.d.ts.map +1 -0
  130. package/dist/types/components/custom/LoadingCmp.d.ts +3 -0
  131. package/dist/types/components/custom/LoadingCmp.d.ts.map +1 -0
  132. package/dist/types/components/custom/LoadingMask.d.ts +3 -0
  133. package/dist/types/components/custom/LoadingMask.d.ts.map +1 -0
  134. package/dist/types/components/custom/PaginationWrapper.d.ts +9 -0
  135. package/dist/types/components/custom/PaginationWrapper.d.ts.map +1 -0
  136. package/dist/types/components/custom/PremiumHighlighter.d.ts +6 -0
  137. package/dist/types/components/custom/PremiumHighlighter.d.ts.map +1 -0
  138. package/dist/types/components/custom/RichTextEditor.d.ts +17 -0
  139. package/dist/types/components/custom/RichTextEditor.d.ts.map +1 -0
  140. package/dist/types/components/custom/SelectListWrapper.d.ts +13 -0
  141. package/dist/types/components/custom/SelectListWrapper.d.ts.map +1 -0
  142. package/dist/types/components/custom/TabsWrapper.d.ts +12 -0
  143. package/dist/types/components/custom/TabsWrapper.d.ts.map +1 -0
  144. package/dist/types/components/custom/Toolbar.d.ts +11 -0
  145. package/dist/types/components/custom/Toolbar.d.ts.map +1 -0
  146. package/dist/types/components/custom/TooltipWrapper.d.ts +14 -0
  147. package/dist/types/components/custom/TooltipWrapper.d.ts.map +1 -0
  148. package/dist/types/components/custom/Typography/TypographyHeading.d.ts +7 -0
  149. package/dist/types/components/custom/Typography/TypographyHeading.d.ts.map +1 -0
  150. package/dist/types/components/custom/Typography/TypographyP.d.ts +4 -0
  151. package/dist/types/components/custom/Typography/TypographyP.d.ts.map +1 -0
  152. package/dist/types/components/custom/UrlChangesGuard.d.ts +6 -0
  153. package/dist/types/components/custom/UrlChangesGuard.d.ts.map +1 -0
  154. package/dist/types/components/custom/index.d.ts +30 -0
  155. package/dist/types/components/custom/index.d.ts.map +1 -0
  156. package/dist/types/components/side-bar/app-header.d.ts +2 -0
  157. package/dist/types/components/side-bar/app-header.d.ts.map +1 -0
  158. package/dist/types/components/side-bar/app-sidebar.d.ts +4 -0
  159. package/dist/types/components/side-bar/app-sidebar.d.ts.map +1 -0
  160. package/dist/types/components/side-bar/nav-main.d.ts +7 -0
  161. package/dist/types/components/side-bar/nav-main.d.ts.map +1 -0
  162. package/dist/types/components/side-bar/nav-user.d.ts +7 -0
  163. package/dist/types/components/side-bar/nav-user.d.ts.map +1 -0
  164. package/dist/types/components/side-bar/org-switcher.d.ts +2 -0
  165. package/dist/types/components/side-bar/org-switcher.d.ts.map +1 -0
  166. package/dist/types/components/ui/accordion.d.ts +8 -0
  167. package/dist/types/components/ui/accordion.d.ts.map +1 -0
  168. package/dist/types/components/ui/alert.d.ts +10 -0
  169. package/dist/types/components/ui/alert.d.ts.map +1 -0
  170. package/dist/types/components/ui/avatar.d.ts +7 -0
  171. package/dist/types/components/ui/avatar.d.ts.map +1 -0
  172. package/dist/types/components/ui/badge.d.ts +10 -0
  173. package/dist/types/components/ui/badge.d.ts.map +1 -0
  174. package/dist/types/components/ui/breadcrumb.d.ts +12 -0
  175. package/dist/types/components/ui/breadcrumb.d.ts.map +1 -0
  176. package/dist/types/components/ui/button-group.d.ts +12 -0
  177. package/dist/types/components/ui/button-group.d.ts.map +1 -0
  178. package/dist/types/components/ui/button.d.ts +14 -0
  179. package/dist/types/components/ui/button.d.ts.map +1 -0
  180. package/dist/types/components/ui/card.d.ts +10 -0
  181. package/dist/types/components/ui/card.d.ts.map +1 -0
  182. package/dist/types/components/ui/checkbox.d.ts +5 -0
  183. package/dist/types/components/ui/checkbox.d.ts.map +1 -0
  184. package/dist/types/components/ui/collapsible.d.ts +10 -0
  185. package/dist/types/components/ui/collapsible.d.ts.map +1 -0
  186. package/dist/types/components/ui/dialog.d.ts +16 -0
  187. package/dist/types/components/ui/dialog.d.ts.map +1 -0
  188. package/dist/types/components/ui/dropdown-menu.d.ts +26 -0
  189. package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -0
  190. package/dist/types/components/ui/index.d.ts +16 -0
  191. package/dist/types/components/ui/index.d.ts.map +1 -0
  192. package/dist/types/components/ui/input-otp.d.ts +12 -0
  193. package/dist/types/components/ui/input-otp.d.ts.map +1 -0
  194. package/dist/types/components/ui/input.d.ts +4 -0
  195. package/dist/types/components/ui/input.d.ts.map +1 -0
  196. package/dist/types/components/ui/label.d.ts +5 -0
  197. package/dist/types/components/ui/label.d.ts.map +1 -0
  198. package/dist/types/components/ui/pagination.d.ts +14 -0
  199. package/dist/types/components/ui/pagination.d.ts.map +1 -0
  200. package/dist/types/components/ui/radio-group.d.ts +6 -0
  201. package/dist/types/components/ui/radio-group.d.ts.map +1 -0
  202. package/dist/types/components/ui/select.d.ts +16 -0
  203. package/dist/types/components/ui/select.d.ts.map +1 -0
  204. package/dist/types/components/ui/separator.d.ts +5 -0
  205. package/dist/types/components/ui/separator.d.ts.map +1 -0
  206. package/dist/types/components/ui/sheet.d.ts +14 -0
  207. package/dist/types/components/ui/sheet.d.ts.map +1 -0
  208. package/dist/types/components/ui/sidebar.d.ts +70 -0
  209. package/dist/types/components/ui/sidebar.d.ts.map +1 -0
  210. package/dist/types/components/ui/skeleton.d.ts +3 -0
  211. package/dist/types/components/ui/skeleton.d.ts.map +1 -0
  212. package/dist/types/components/ui/sonner.d.ts +4 -0
  213. package/dist/types/components/ui/sonner.d.ts.map +1 -0
  214. package/dist/types/components/ui/switch.d.ts +5 -0
  215. package/dist/types/components/ui/switch.d.ts.map +1 -0
  216. package/dist/types/components/ui/table.d.ts +11 -0
  217. package/dist/types/components/ui/table.d.ts.map +1 -0
  218. package/dist/types/components/ui/tabs.d.ts +12 -0
  219. package/dist/types/components/ui/tabs.d.ts.map +1 -0
  220. package/dist/types/components/ui/textarea.d.ts +4 -0
  221. package/dist/types/components/ui/textarea.d.ts.map +1 -0
  222. package/dist/types/components/ui/toggle.d.ts +10 -0
  223. package/dist/types/components/ui/toggle.d.ts.map +1 -0
  224. package/dist/types/components/ui/tooltip.d.ts +8 -0
  225. package/dist/types/components/ui/tooltip.d.ts.map +1 -0
  226. package/dist/types/config/app-config.d.ts +24 -0
  227. package/dist/types/config/app-config.d.ts.map +1 -0
  228. package/dist/types/hooks/index.d.ts +4 -0
  229. package/dist/types/hooks/index.d.ts.map +1 -0
  230. package/dist/types/hooks/useAlertDialog.d.ts +13 -0
  231. package/dist/types/hooks/useAlertDialog.d.ts.map +1 -0
  232. package/dist/types/hooks/useCountDown.d.ts +2 -0
  233. package/dist/types/hooks/useCountDown.d.ts.map +1 -0
  234. package/dist/types/hooks/useCountries.d.ts +4 -0
  235. package/dist/types/hooks/useCountries.d.ts.map +1 -0
  236. package/dist/types/hooks/useFetchData.d.ts +6 -0
  237. package/dist/types/hooks/useFetchData.d.ts.map +1 -0
  238. package/dist/types/hooks/useIsMobile.d.ts +2 -0
  239. package/dist/types/hooks/useIsMobile.d.ts.map +1 -0
  240. package/dist/types/hooks/useSelectedNavItem.d.ts +3 -0
  241. package/dist/types/hooks/useSelectedNavItem.d.ts.map +1 -0
  242. package/dist/types/hooks/useTheme.d.ts +6 -0
  243. package/dist/types/hooks/useTheme.d.ts.map +1 -0
  244. package/dist/types/index.d.ts +8 -0
  245. package/dist/types/index.d.ts.map +1 -0
  246. package/dist/types/lib/axios-utils.d.ts +4 -0
  247. package/dist/types/lib/axios-utils.d.ts.map +1 -0
  248. package/dist/types/lib/billingsdk-config.d.ts +49 -0
  249. package/dist/types/lib/billingsdk-config.d.ts.map +1 -0
  250. package/dist/types/lib/enums.d.ts +16 -0
  251. package/dist/types/lib/enums.d.ts.map +1 -0
  252. package/dist/types/lib/index.d.ts +9 -0
  253. package/dist/types/lib/index.d.ts.map +1 -0
  254. package/dist/types/lib/nav-menu.d.ts +12 -0
  255. package/dist/types/lib/nav-menu.d.ts.map +1 -0
  256. package/dist/types/lib/toast-helper.d.ts +10 -0
  257. package/dist/types/lib/toast-helper.d.ts.map +1 -0
  258. package/dist/types/lib/types.d.ts +163 -0
  259. package/dist/types/lib/types.d.ts.map +1 -0
  260. package/dist/types/lib/utils.d.ts +56 -0
  261. package/dist/types/lib/utils.d.ts.map +1 -0
  262. package/dist/types/store/AppContext.d.ts +24 -0
  263. package/dist/types/store/AppContext.d.ts.map +1 -0
  264. package/package.json +91 -0
@@ -0,0 +1,4 @@
1
+ export { default as useFetchData } from './useFetchData';
2
+ export { useIsMobile } from './useIsMobile';
3
+ export { default as useAlertDialog } from './useAlertDialog';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type JSX } from 'react';
2
+ export interface AlertConfigs {
3
+ text: JSX.Element | string;
4
+ onClose?: (result: 'CONFIRM' | 'CANCEL') => void;
5
+ type: 'ALERT' | 'CONFIRM';
6
+ }
7
+ declare const useAlertDialog: () => {
8
+ showAlertBox: (newOptions: AlertConfigs) => void;
9
+ closeAlertBox: () => void;
10
+ showAlertDlgPromise: (newOptions: AlertConfigs) => Promise<unknown>;
11
+ };
12
+ export default useAlertDialog;
13
+ //# sourceMappingURL=useAlertDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAlertDialog.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAlertDialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,KAAK,IAAI,CAAC;IACjD,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,cAAc;+BAGgB,YAAY;;sCAcC,YAAY;CAoB5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useCountdown(initialSeconds?: number): number;
2
+ //# sourceMappingURL=useCountDown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCountDown.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCountDown.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,cAAc,SAAK,UAW/C"}
@@ -0,0 +1,4 @@
1
+ import type { ICountry } from '@/lib/types';
2
+ declare const useCountries: () => ICountry[];
3
+ export default useCountries;
4
+ //# sourceMappingURL=useCountries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCountries.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCountries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIxD,QAAA,MAAM,YAAY,QAAO,QAAQ,EA+BhC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useFetchData: <T>(url: string) => {
2
+ loading: boolean;
3
+ response: T | null;
4
+ };
5
+ export default useFetchData;
6
+ //# sourceMappingURL=useFetchData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFetchData.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchData.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY,GAAI,CAAC,EAAE,KAAK,MAAM;;;CAoBnC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useIsMobile(): boolean;
2
+ //# sourceMappingURL=useIsMobile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAc1B"}
@@ -0,0 +1,3 @@
1
+ declare const useSelectedNavItem: () => import("../lib/types").NavItem;
2
+ export default useSelectedNavItem;
3
+ //# sourceMappingURL=useSelectedNavItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSelectedNavItem.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSelectedNavItem.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB,sCAoBvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const useTheme: (defaultTheme?: string) => {
2
+ theme: string;
3
+ setTheme: import("react").Dispatch<import("react").SetStateAction<string>>;
4
+ };
5
+ export default useTheme;
6
+ //# sourceMappingURL=useTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,QAAQ,GAAI,qBAAwC;;;CAqBzD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { default as SideKickClient } from './App';
2
+ export { default as SideKickContext } from './store/AppContext';
3
+ export * from './lib';
4
+ export * from './app/index';
5
+ export * from './components/ui';
6
+ export * from './components/custom';
7
+ export * from './hooks';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChE,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type AxiosInstance } from 'axios';
2
+ declare const getAxiosInstance: () => AxiosInstance;
3
+ export { getAxiosInstance };
4
+ //# sourceMappingURL=axios-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/axios-utils.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAiBlD,QAAA,MAAM,gBAAgB,QAAO,aA4C5B,CAAC;AAkEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { CurrencyCode } from 'react-razorpay/dist/constants/currency';
2
+ import type { purchasedPlansInf } from './types';
3
+ export interface Plan {
4
+ id: string;
5
+ title: string;
6
+ description: string;
7
+ highlight?: boolean;
8
+ type?: 'monthly' | 'yearly';
9
+ currency?: string;
10
+ monthlyPrice: string;
11
+ yearlyPrice: string;
12
+ buttonText: string;
13
+ badge?: string;
14
+ planDisplayCost?: {
15
+ monthly: string;
16
+ yearly: string;
17
+ };
18
+ minUserRequired: number;
19
+ maxUserRequired: number;
20
+ features: {
21
+ name: string;
22
+ icon: string;
23
+ iconColor?: string;
24
+ }[];
25
+ }
26
+ export interface CurrentPlan {
27
+ plan: Plan;
28
+ type: 'monthly' | 'yearly' | 'custom';
29
+ price?: string;
30
+ startDate: string;
31
+ expiryDate: string;
32
+ activePlanFor: number;
33
+ paidAmount: string;
34
+ transactionId?: string;
35
+ paymentMethod: string;
36
+ status: 'active' | 'inactive' | 'past_due' | 'cancelled';
37
+ }
38
+ export interface ISubscriptionConfig {
39
+ plans: Plan[];
40
+ freePurchasedPlan: purchasedPlansInf;
41
+ CURRENCY_SYMBOL: string;
42
+ CURRENCY: CurrencyCode;
43
+ faqs: FAQItem[];
44
+ }
45
+ export interface FAQItem {
46
+ question: string;
47
+ answer: string;
48
+ }
49
+ //# sourceMappingURL=billingsdk-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billingsdk-config.d.ts","sourceRoot":"","sources":["../../../src/lib/billingsdk-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;CAC1D;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,16 @@
1
+ export declare const ROLES: {
2
+ READ: number;
3
+ ADMIN: number;
4
+ WRITE: number;
5
+ Is_ADMIN: (roleId: number) => boolean;
6
+ CAN_WRITE: (roleId: number) => boolean;
7
+ CAN_READ: (roleId: number) => boolean;
8
+ DISPLAY_TEXT: (roleId: number) => string;
9
+ IS_VALID_ROLE_ID: (roleId: number) => boolean;
10
+ GET_LIST: () => {
11
+ id: string;
12
+ text: string;
13
+ }[];
14
+ };
15
+ export declare const updateRolesEnum: (newRoles: any) => void;
16
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/lib/enums.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;uBAIY,MAAM;wBAGL,MAAM;uBAGP,MAAM;2BAIF,MAAM;+BAUF,MAAM;;;;;CAW3C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU,GAAG,SAE5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { setAppInfo, setAccountType } from '../config/app-config';
2
+ export type { Plan, CurrentPlan } from './billingsdk-config';
3
+ export type { NavGroup, IVirtualChildOf } from './types';
4
+ export { setNavigationItems } from './nav-menu';
5
+ export { updateRolesEnum } from './enums';
6
+ export * from './utils';
7
+ export { getAxiosInstance } from './axios-utils';
8
+ export * from './toast-helper';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { IVirtualChildOf, NavGroup } from './types';
2
+ export declare const navigationItems: {
3
+ orgs: Array<{
4
+ name: string;
5
+ description: string;
6
+ }>;
7
+ navMain: NavGroup[];
8
+ virtualChildOf: IVirtualChildOf[];
9
+ };
10
+ export declare const getFlatNavigationItems: () => any[];
11
+ export declare const setNavigationItems: (navItems: NavGroup[], virtualChildOf: IVirtualChildOf[]) => void;
12
+ //# sourceMappingURL=nav-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-menu.d.ts","sourceRoot":"","sources":["../../../src/lib/nav-menu.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,eAAe,EAAE;IAC5B,IAAI,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,cAAc,EAAE,eAAe,EAAE,CAAC;CA8DnC,CAAC;AAYF,eAAO,MAAM,sBAAsB,aAOlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,EAAE,EAAE,gBAAgB,eAAe,EAAE,SAGzF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { JSX } from 'react';
2
+ interface ToastParams {
3
+ header?: string;
4
+ description: string | JSX.Element;
5
+ }
6
+ export declare const showSuccessToast: ({ header, description }: ToastParams) => void;
7
+ export declare const showErrorToast: ({ header, description }: ToastParams) => void;
8
+ export declare const showWarningToast: ({ header, description }: ToastParams) => void;
9
+ export {};
10
+ //# sourceMappingURL=toast-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-helper.d.ts","sourceRoot":"","sources":["../../../src/lib/toast-helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,GAAI,yBAAqC,WAAW,SAKhF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,yBAAmC,WAAW,SAK5E,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,yBAAqC,WAAW,SAKhF,CAAC"}
@@ -0,0 +1,163 @@
1
+ import type { LucideIcon } from 'lucide-react';
2
+ export interface NavGroup {
3
+ title: string;
4
+ items: NavItem[];
5
+ }
6
+ export interface NavItemSub {
7
+ title: string;
8
+ url: string;
9
+ }
10
+ export interface NavItem {
11
+ title: string;
12
+ url?: string;
13
+ icon?: LucideIcon;
14
+ isExpanded?: boolean;
15
+ items?: NavItemSub[];
16
+ parent?: NavItem;
17
+ }
18
+ export interface IVirtualChildOf {
19
+ parentId: string;
20
+ id: string;
21
+ }
22
+ export interface LoginCmd {
23
+ api: string;
24
+ }
25
+ export interface OrganizationType {
26
+ org_id: number;
27
+ org_name: string;
28
+ org_address: string;
29
+ org_state: string;
30
+ org_country: string;
31
+ org_external_id: string;
32
+ org_is_deleted: boolean;
33
+ role_id: number;
34
+ org_created_by: number;
35
+ created_at: string;
36
+ updated_at: string;
37
+ logo?: LucideIcon;
38
+ active_purchased_plan?: purchasedPlansInf;
39
+ }
40
+ export interface OrganizationTypeResponse {
41
+ orgs: OrganizationType[];
42
+ }
43
+ export interface loggedInUserInf {
44
+ email: string;
45
+ id: number;
46
+ fname?: string;
47
+ lname?: string;
48
+ mobNo?: string;
49
+ }
50
+ export interface purchasedPlansInfResponse {
51
+ purchasedPlans: purchasedPlansInf[];
52
+ activePlan: purchasedPlansInf;
53
+ }
54
+ export interface purchasedPlansInf {
55
+ plan_id: string;
56
+ purchased_at: string;
57
+ for_months: number;
58
+ for_no_users: number;
59
+ status: string;
60
+ amount: number;
61
+ transaction_id: string;
62
+ old_purchased_for_no_users: number;
63
+ z_currency: string;
64
+ z_order_id: string;
65
+ z_payment_method: string;
66
+ z_payment_id: string;
67
+ purchased_id: number;
68
+ updatedRecords?: IUpdatedPurchasedPlan[];
69
+ startAt: Date;
70
+ endAt: Date;
71
+ old_purchased_amount?: number;
72
+ }
73
+ export interface IUpdatedPurchasedPlan {
74
+ purchased_id: number;
75
+ updated_at: string;
76
+ for_no_users: string;
77
+ status: string;
78
+ amount: number;
79
+ z_order_id: string;
80
+ z_payment_method: string;
81
+ z_payment_at: string;
82
+ z_currency: string;
83
+ z_payment_id: string;
84
+ }
85
+ export interface SessionInfoResponse {
86
+ sessionInfo: loggedInUserInf;
87
+ user: responseTeamMembersInf;
88
+ }
89
+ export interface EmailProcessingResult {
90
+ validEmails: string[];
91
+ invalidEmails: string[];
92
+ totalProcessed: number;
93
+ }
94
+ type userOpinionType = 0 | 1 | 2 | 3 | 4 | number;
95
+ export interface TeamMembersDetails {
96
+ email: string;
97
+ role_id: number;
98
+ id: string;
99
+ user_opinion: userOpinionType;
100
+ fname?: string;
101
+ lname?: string;
102
+ invited_users_id?: number;
103
+ }
104
+ export interface responseTeamMembersInf {
105
+ user_email: string;
106
+ user_id: string;
107
+ role_id: number;
108
+ is_active: 0 | 1;
109
+ user_fname: string;
110
+ user_lname: string;
111
+ user_opinion: userOpinionType;
112
+ email?: string;
113
+ user_mobile_no?: number;
114
+ joined_on: string;
115
+ invited_users_id?: string;
116
+ }
117
+ export interface IEachInvitation {
118
+ org_name: string;
119
+ org_id: string;
120
+ org_user_is_admin: string;
121
+ org_user_is_active: 0 | 1;
122
+ sent_at: string;
123
+ user_opinion?: number;
124
+ }
125
+ export interface IInvitationsResponse {
126
+ invites: IEachInvitation[];
127
+ }
128
+ export interface ICountry {
129
+ countryCode: string;
130
+ countryName: string;
131
+ }
132
+ export interface ICountries {
133
+ countries: ICountry[];
134
+ }
135
+ export interface ICreateOrderResponse {
136
+ orderId: string;
137
+ message: string;
138
+ insertRecordId: number;
139
+ }
140
+ export interface IVerifyPaymentResponse {
141
+ success: boolean;
142
+ message: string;
143
+ }
144
+ export type IFeatureFlagsResponse = {
145
+ featureFlags: Record<string, boolean>;
146
+ };
147
+ export interface IRazorPayPrefill {
148
+ name: string;
149
+ email: string;
150
+ contact: string;
151
+ }
152
+ export interface IUserData {
153
+ user_id: number;
154
+ user_email: string;
155
+ user_mobile_no: string;
156
+ user_fname: string;
157
+ user_lname: string;
158
+ user_is_active: boolean;
159
+ created_at: string;
160
+ updated_at: string;
161
+ }
162
+ export {};
163
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WA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,CAAC;CACpB"}
@@ -0,0 +1,56 @@
1
+ import { type ClassValue } from 'clsx';
2
+ import type { EmailProcessingResult, NavItem } from './types';
3
+ import type { AlertDialogOptionsProps } from '@/components/custom/AlertDialog';
4
+ export declare function cn(...inputs: ClassValue[]): string;
5
+ export declare const getFormDataByFormEl: (formEl: HTMLFormElement) => {
6
+ [k: string]: FormDataEntryValue;
7
+ };
8
+ export declare const setLocalStorage: (key: string, value: string) => void;
9
+ export declare const getLocalStorage: (key: string) => string | null;
10
+ export declare const isSameNavItem: (activeUrl: string, urlPath: string) => boolean;
11
+ export declare const findNavMenu: <K extends keyof NavItem>(moduleName: NavItem[K]) => NavItem | undefined;
12
+ export declare const createIndexedArray: (n: number) => number[];
13
+ export declare const defaultAlertConfig: AlertDialogOptionsProps;
14
+ export declare const validatePassword: (password: string) => {
15
+ valid: boolean;
16
+ message: string;
17
+ };
18
+ export declare const errorLogger: (error: unknown) => void;
19
+ /**
20
+ * Check weather the email is valid or not.
21
+ *
22
+ * @param email - An email id
23
+ * @returns Boolean
24
+ */
25
+ export declare const isEmailValid: (email: string) => boolean;
26
+ export declare const processEmailsWithValidation: (textareaValue: string) => EmailProcessingResult;
27
+ export declare const waitTill: (millSecs?: number) => Promise<unknown>;
28
+ export declare const convertServerDateToJS: (serverDateStr: string) => Date;
29
+ export declare const formatISODateWithTime24H: (isoString: string | Date, use12hr?: boolean) => string;
30
+ export declare const formatElapsedTime: (date: Date) => string;
31
+ export declare const generatePublicId: (privateId: number) => number;
32
+ export declare const undoPublicId: (publicId: number) => number;
33
+ export declare const mapIncrementBy2: <T, R>(arr: T[], callback: (firstEl: T, secondEl: T | undefined, i: number) => R) => R[];
34
+ export declare const generateRandom4Digits: () => string;
35
+ export declare const isFunction: (value: unknown) => value is Function;
36
+ export declare const isTruthyValue: (value: 1 | "1" | boolean | 0 | "0") => value is true | 1 | "1";
37
+ export declare const INVITATION_ENUMS: Readonly<{
38
+ NOT_SAVED: 10;
39
+ INVITED: 0;
40
+ ACCEPTED: 1;
41
+ REJECTED: 2;
42
+ LEFT: 3;
43
+ text: {
44
+ 10: string;
45
+ 0: string;
46
+ 1: string;
47
+ 2: string;
48
+ 3: string;
49
+ };
50
+ getDisplay(statusCode: number): string;
51
+ }>;
52
+ export declare const isObjectEmpty: (obj: Record<string, unknown>) => boolean;
53
+ export declare const isValidId: (id: string | number) => boolean;
54
+ export declare const getModuleNameFromUrl: (pathName: string) => string;
55
+ export declare function debounce<T extends (...args: unknown[]) => void>(func: T, delay: number): (this: ThisParameterType<T>, ...args: Parameters<T>) => void;
56
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,eAAO,MAAM,mBAAmB,GAAI,QAAQ,eAAe;;CAG1D,CAAC;AAIF,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,SAEzD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,kBAE1C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,EAAE,SAAS,MAAM,YAS/D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,OAAO,EAAE,YAAY,OAAO,CAAC,CAAC,CAAC,KAAG,OAAO,GAAG,SAavF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,GAAG,MAAM,aAE3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAIhC,CAAC;AAEF,eAAO,MAAM,g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,MAAM,GAAG,MAAM,YAG5C,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,WAGpD,CAAC;AAEF,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,IAGpE,MAAM,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,UAAU,CAAC,CAAC,CAAC,UAMpE"}
@@ -0,0 +1,24 @@
1
+ import type { AlertDialogOptionsProps } from '@/components/custom/AlertDialog';
2
+ import type { ISubscriptionConfig } from '@/lib/billingsdk-config';
3
+ import type { loggedInUserInf, OrganizationType, purchasedPlansInf } from '@/lib/types';
4
+ interface AppContextType {
5
+ setAlertDlgOptions: (options: AlertDialogOptionsProps) => void;
6
+ alertDlgOptions: AlertDialogOptionsProps;
7
+ orgs: OrganizationType[];
8
+ setOrgs: (orgs: OrganizationType[]) => void;
9
+ loggedInUser: loggedInUserInf;
10
+ setLoggedInUser: (loggedInUser: loggedInUserInf) => void;
11
+ activeOrg: OrganizationType | undefined;
12
+ setActiveOrg: (org: OrganizationType) => void;
13
+ purchasePlans: purchasedPlansInf[];
14
+ setPurchasePlans: (purchasePlans: purchasedPlansInf[]) => void;
15
+ activePlan: purchasedPlansInf | undefined;
16
+ setActivePlan: (plan: purchasedPlansInf) => void;
17
+ subscriptionConfig: ISubscriptionConfig;
18
+ setSubscriptionConfig: (subscriptionConfig: ISubscriptionConfig) => void;
19
+ featureFlags: Record<string, boolean>;
20
+ setFeatureFlags: (flags: Record<string, boolean>) => void;
21
+ }
22
+ declare const AppContext: import("react").Context<AppContextType>;
23
+ export default AppContext;
24
+ //# sourceMappingURL=AppContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppContext.d.ts","sourceRoot":"","sources":["../../../src/store/AppContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,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"main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "README.md"
11
+ ],
12
+ "scripts": {
13
+ "dev": "npm run build:css && rollup -c -w",
14
+ "build": "npm run build:lib",
15
+ "build:css": "node scripts/build-css.mjs",
16
+ "build:lib": "npm run build:css && rollup -c",
17
+ "lint": "eslint .",
18
+ "prepare": "npm run build"
19
+ },
20
+ "dependencies": {},
21
+ "peerDependencies": {
22
+ "@marsidev/react-turnstile": "^1.3.1",
23
+ "@radix-ui/react-accordion": "^1.2.12",
24
+ "@radix-ui/react-avatar": "^1.1.10",
25
+ "@radix-ui/react-checkbox": "^1.3.2",
26
+ "@radix-ui/react-collapsible": "^1.1.11",
27
+ "@radix-ui/react-dialog": "^1.1.15",
28
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
29
+ "@radix-ui/react-label": "^2.1.8",
30
+ "@radix-ui/react-radio-group": "^1.3.8",
31
+ "@radix-ui/react-select": "^2.2.5",
32
+ "@radix-ui/react-separator": "^1.1.8",
33
+ "@radix-ui/react-slot": "^1.2.4",
34
+ "@radix-ui/react-switch": "^1.2.5",
35
+ "@radix-ui/react-toggle": "^1.1.10",
36
+ "@radix-ui/react-tooltip": "^1.2.8",
37
+ "@radix-ui/react-tabs": "^1.1.13",
38
+ "@tailwindcss/vite": "^4.0.0",
39
+ "@tanstack/match-sorter-utils": "^8.19.4",
40
+ "@tanstack/react-table": "^8.21.3",
41
+ "@tiptap/extension-bubble-menu": "^2.27.1",
42
+ "@tiptap/extension-floating-menu": "^2.27.1",
43
+ "@tiptap/extension-link": "2.27.1",
44
+ "@tiptap/extension-placeholder": "^2.27.1",
45
+ "@tiptap/extension-underline": "^2.27.1",
46
+ "@tiptap/pm": "^2.27.1",
47
+ "@tiptap/react": "^2.27.1",
48
+ "@tiptap/starter-kit": "^2.27.1",
49
+ "axios": "^1.10.0",
50
+ "class-variance-authority": "^0.7.1",
51
+ "clsx": "^2.1.1",
52
+ "input-otp": "^1.4.2",
53
+ "lucide-react": "^0.525.0",
54
+ "motion": "^12.23.24",
55
+ "next-themes": "^0.4.6",
56
+ "react": "^18.0.0 || ^19.0.0",
57
+ "react-dom": "^18.0.0 || ^19.0.0",
58
+ "react-razorpay": "^3.0.1",
59
+ "react-router": "^7.6.3",
60
+ "sonner": "^2.0.5",
61
+ "tailwind-merge": "^3.4.0",
62
+ "tailwindcss": "^4.0.0"
63
+ },
64
+ "devDependencies": {
65
+ "@eslint/js": "^9.29.0",
66
+ "@rollup/plugin-commonjs": "^29.0.0",
67
+ "@rollup/plugin-json": "^6.1.0",
68
+ "@rollup/plugin-node-resolve": "^16.0.3",
69
+ "@rollup/plugin-terser": "^0.4.4",
70
+ "@rollup/plugin-typescript": "^12.3.0",
71
+ "@tailwindcss/postcss": "^4.1.17",
72
+ "@types/node": "^24.0.7",
73
+ "@types/react": "^19.1.8",
74
+ "@types/react-dom": "^19.1.6",
75
+ "@vitejs/plugin-react": "^4.5.2",
76
+ "eslint": "^9.29.0",
77
+ "eslint-plugin-react-hooks": "^5.2.0",
78
+ "eslint-plugin-react-refresh": "^0.4.20",
79
+ "globals": "^16.2.0",
80
+ "react": "^19.2.3",
81
+ "react-dom": "^19.1.0",
82
+ "rollup": "^4.53.3",
83
+ "rollup-plugin-esbuild": "^6.2.1",
84
+ "rollup-plugin-peer-deps-external": "^2.2.4",
85
+ "rollup-plugin-postcss": "^4.0.2",
86
+ "tw-animate-css": "^1.3.4",
87
+ "typescript": "~5.8.3",
88
+ "typescript-eslint": "^8.34.1",
89
+ "vite": "^7.0.0"
90
+ }
91
+ }