@levo-so/react 0.1.37 → 0.1.43

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 (191) hide show
  1. package/dist/{Sonner-t6JVKA0a.js → Sonner-BzW9wsXf.js} +11 -11
  2. package/dist/Spinner-DBvVyDMF.js +119 -0
  3. package/dist/Tooltip-BeY_STLA.js +281 -0
  4. package/dist/audience/hooks/useBounce.d.ts.map +1 -1
  5. package/dist/audience/hooks/useCurrentTab.d.ts.map +1 -1
  6. package/dist/audience/hooks/useDownloadSpeed.d.ts.map +1 -1
  7. package/dist/audience/hooks/useIdentifyAudience.d.ts.map +1 -1
  8. package/dist/audience/hooks/useOpenTabs.d.ts.map +1 -1
  9. package/dist/audience/hooks/usePerformanceMetrics.d.ts.map +1 -1
  10. package/dist/audience/index.js +1 -1
  11. package/dist/audience/utils/autocapture.d.ts.map +1 -1
  12. package/dist/components/Dialog.d.ts +2 -0
  13. package/dist/components/Dialog.d.ts.map +1 -1
  14. package/dist/components/DialogWrapper.d.ts +1 -0
  15. package/dist/components/DialogWrapper.d.ts.map +1 -1
  16. package/dist/components/Sonner.d.ts.map +1 -1
  17. package/dist/components/Spinner.d.ts.map +1 -1
  18. package/dist/components/index.js +20 -20
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.ts +0 -1
  21. package/dist/index.js +124 -83
  22. package/dist/isEmptyObject-BoIi0jMB.js +21 -0
  23. package/dist/{jsx-runtime-B6kdoens.js → jsx-runtime-D0AQ1Mn7.js} +216 -217
  24. package/dist/membership/components/Button.d.ts.map +1 -1
  25. package/dist/membership/components/Container.d.ts +1 -0
  26. package/dist/membership/components/Container.d.ts.map +1 -1
  27. package/dist/membership/index.d.ts +2 -1
  28. package/dist/membership/index.d.ts.map +1 -1
  29. package/dist/membership/index.js +155 -81
  30. package/dist/membership/useLevoOAuth.d.ts +17 -0
  31. package/dist/membership/useLevoOAuth.d.ts.map +1 -0
  32. package/dist/{page-BVVduzWl.js → page-DweUjn1K.js} +21 -20
  33. package/dist/providers/index.js +1 -1
  34. package/dist/utils/byteToSize.d.ts.map +1 -1
  35. package/dist/utils/cn.d.ts.map +1 -1
  36. package/dist/utils/errorHandler.d.ts.map +1 -1
  37. package/dist/utils/index.js +10 -12
  38. package/dist/utils/isDateObject.d.ts.map +1 -1
  39. package/dist/utils/isEmptyObject.d.ts.map +1 -1
  40. package/dist/utils/isNullOrUndefined.d.ts.map +1 -1
  41. package/dist/utils/isObject.d.ts.map +1 -1
  42. package/package.json +9 -14
  43. package/dist/Checbox-sq-atGlJ.js +0 -28
  44. package/dist/CheckboxWidget-BR6g2qCr.js +0 -124
  45. package/dist/CollectionFormBuilder-KNHR7ngy.js +0 -1195
  46. package/dist/CurrencyWidget-XHAkyPjV.js +0 -60
  47. package/dist/DateTimeWidget-UaUunQAK.js +0 -80
  48. package/dist/DefaultFormVariant-C8hqkuxx.js +0 -81
  49. package/dist/DropdownWidget-DvObQQMp.js +0 -115
  50. package/dist/EmailWidget-7L0S6tat.js +0 -41
  51. package/dist/FormCaptcha-CgYoGiya.js +0 -187
  52. package/dist/GeocoderWidget-DfghAiuD.js +0 -68
  53. package/dist/Input-Vv7mKQFt.js +0 -54
  54. package/dist/MultiGeocoderWidget-CqwjH855.js +0 -49
  55. package/dist/MultiTextWidget-BMp9xdSv.js +0 -33
  56. package/dist/PhoneWidget-DFP4giY9.js +0 -48
  57. package/dist/RadioWidget-DMWMo2Mj.js +0 -109
  58. package/dist/RichTextWidget-DOCSDDib.js +0 -310
  59. package/dist/Spinner-B4CjY8aw.js +0 -411
  60. package/dist/StepsFormVariant-CUFLCpGE.js +0 -140
  61. package/dist/SwitchWidget-BjpxXOcZ.js +0 -53
  62. package/dist/TextWidget-Cgk_TFqD.js +0 -33
  63. package/dist/TextareaWidget-DGU_Xhrx.js +0 -30
  64. package/dist/ToggleCheckboxWidget-bhmeasG_.js +0 -44
  65. package/dist/Tooltip-DoWyn3Ho.js +0 -37
  66. package/dist/URLWidget-B20QysNc.js +0 -14
  67. package/dist/UploadWidget-SQ1MLpbO.js +0 -656
  68. package/dist/byteToSize-BFKZSBu1.js +0 -8
  69. package/dist/collection/components/Altcha.d.ts +0 -10
  70. package/dist/collection/components/Altcha.d.ts.map +0 -1
  71. package/dist/collection/components/CollectionFormBuilder.d.ts +0 -12
  72. package/dist/collection/components/CollectionFormBuilder.d.ts.map +0 -1
  73. package/dist/collection/components/FieldRenderer.d.ts +0 -9
  74. package/dist/collection/components/FieldRenderer.d.ts.map +0 -1
  75. package/dist/collection/components/FormCaptcha.d.ts +0 -3
  76. package/dist/collection/components/FormCaptcha.d.ts.map +0 -1
  77. package/dist/collection/components/core/AsyncSelectPaginate/AsyncSelectPaginate.d.ts +0 -5
  78. package/dist/collection/components/core/AsyncSelectPaginate/AsyncSelectPaginate.d.ts.map +0 -1
  79. package/dist/collection/components/core/Checkbox/Checbox.d.ts +0 -5
  80. package/dist/collection/components/core/Checkbox/Checbox.d.ts.map +0 -1
  81. package/dist/collection/components/core/Input/Input.d.ts +0 -11
  82. package/dist/collection/components/core/Input/Input.d.ts.map +0 -1
  83. package/dist/collection/components/core/Switch/Switch.d.ts +0 -5
  84. package/dist/collection/components/core/Switch/Switch.d.ts.map +0 -1
  85. package/dist/collection/components/renderer/RenderArrayWidget.d.ts +0 -5
  86. package/dist/collection/components/renderer/RenderArrayWidget.d.ts.map +0 -1
  87. package/dist/collection/components/renderer/RenderCommonField.d.ts +0 -5
  88. package/dist/collection/components/renderer/RenderCommonField.d.ts.map +0 -1
  89. package/dist/collection/components/renderer/RenderRecordWidget.d.ts +0 -4
  90. package/dist/collection/components/renderer/RenderRecordWidget.d.ts.map +0 -1
  91. package/dist/collection/components/widgets/ErrorMessage.d.ts +0 -6
  92. package/dist/collection/components/widgets/ErrorMessage.d.ts.map +0 -1
  93. package/dist/collection/components/widgets/FieldWrapper.d.ts +0 -14
  94. package/dist/collection/components/widgets/FieldWrapper.d.ts.map +0 -1
  95. package/dist/collection/components/widgets/FormHelperText.d.ts +0 -6
  96. package/dist/collection/components/widgets/FormHelperText.d.ts.map +0 -1
  97. package/dist/collection/components/widgets/FormLabel.d.ts +0 -8
  98. package/dist/collection/components/widgets/FormLabel.d.ts.map +0 -1
  99. package/dist/collection/components/widgets/checkboxWidget/CheckboxWidget.d.ts +0 -8
  100. package/dist/collection/components/widgets/checkboxWidget/CheckboxWidget.d.ts.map +0 -1
  101. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts +0 -7
  102. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2M.d.ts.map +0 -1
  103. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2O.d.ts +0 -7
  104. package/dist/collection/components/widgets/collectionWidget/CollectionWidgetM2O.d.ts.map +0 -1
  105. package/dist/collection/components/widgets/collectionWidget/SelectedCollectionItems.d.ts +0 -8
  106. package/dist/collection/components/widgets/collectionWidget/SelectedCollectionItems.d.ts.map +0 -1
  107. package/dist/collection/components/widgets/currencyWidget/CurrencyWidget.d.ts +0 -9
  108. package/dist/collection/components/widgets/currencyWidget/CurrencyWidget.d.ts.map +0 -1
  109. package/dist/collection/components/widgets/dateTimeWidget/DateTimeWidget.d.ts +0 -8
  110. package/dist/collection/components/widgets/dateTimeWidget/DateTimeWidget.d.ts.map +0 -1
  111. package/dist/collection/components/widgets/dropdownWidget/DropdownWidget.d.ts +0 -9
  112. package/dist/collection/components/widgets/dropdownWidget/DropdownWidget.d.ts.map +0 -1
  113. package/dist/collection/components/widgets/emailWidget/EmailWidget.d.ts +0 -8
  114. package/dist/collection/components/widgets/emailWidget/EmailWidget.d.ts.map +0 -1
  115. package/dist/collection/components/widgets/geocoderWidget/GeocoderWidget.d.ts +0 -8
  116. package/dist/collection/components/widgets/geocoderWidget/GeocoderWidget.d.ts.map +0 -1
  117. package/dist/collection/components/widgets/multiGeocoderWidget/MultiGeocoderWidget.d.ts +0 -8
  118. package/dist/collection/components/widgets/multiGeocoderWidget/MultiGeocoderWidget.d.ts.map +0 -1
  119. package/dist/collection/components/widgets/multiTextWidget/MultiTextWidget.d.ts +0 -7
  120. package/dist/collection/components/widgets/multiTextWidget/MultiTextWidget.d.ts.map +0 -1
  121. package/dist/collection/components/widgets/phoneWidget/PhoneWidget.d.ts +0 -8
  122. package/dist/collection/components/widgets/phoneWidget/PhoneWidget.d.ts.map +0 -1
  123. package/dist/collection/components/widgets/radioWidget/RadioWidget.d.ts +0 -11
  124. package/dist/collection/components/widgets/radioWidget/RadioWidget.d.ts.map +0 -1
  125. package/dist/collection/components/widgets/richTextWidget/RichTextWidget.d.ts +0 -12
  126. package/dist/collection/components/widgets/richTextWidget/RichTextWidget.d.ts.map +0 -1
  127. package/dist/collection/components/widgets/switchWidget/SwitchWidget.d.ts +0 -8
  128. package/dist/collection/components/widgets/switchWidget/SwitchWidget.d.ts.map +0 -1
  129. package/dist/collection/components/widgets/textWidget/TextWidget.d.ts +0 -9
  130. package/dist/collection/components/widgets/textWidget/TextWidget.d.ts.map +0 -1
  131. package/dist/collection/components/widgets/textareaWidget/TextareaWidget.d.ts +0 -8
  132. package/dist/collection/components/widgets/textareaWidget/TextareaWidget.d.ts.map +0 -1
  133. package/dist/collection/components/widgets/toggleCheckboxWidget/ToggleCheckboxWidget.d.ts +0 -8
  134. package/dist/collection/components/widgets/toggleCheckboxWidget/ToggleCheckboxWidget.d.ts.map +0 -1
  135. package/dist/collection/components/widgets/uploadWidget/CommonPreview.d.ts +0 -11
  136. package/dist/collection/components/widgets/uploadWidget/CommonPreview.d.ts.map +0 -1
  137. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts +0 -11
  138. package/dist/collection/components/widgets/uploadWidget/ExternalURL.d.ts.map +0 -1
  139. package/dist/collection/components/widgets/uploadWidget/FileUploadDropBox.d.ts +0 -10
  140. package/dist/collection/components/widgets/uploadWidget/FileUploadDropBox.d.ts.map +0 -1
  141. package/dist/collection/components/widgets/uploadWidget/FileUploadModal.d.ts +0 -13
  142. package/dist/collection/components/widgets/uploadWidget/FileUploadModal.d.ts.map +0 -1
  143. package/dist/collection/components/widgets/uploadWidget/ImportFromAssets.d.ts +0 -11
  144. package/dist/collection/components/widgets/uploadWidget/ImportFromAssets.d.ts.map +0 -1
  145. package/dist/collection/components/widgets/uploadWidget/UploadWidget.d.ts +0 -19
  146. package/dist/collection/components/widgets/uploadWidget/UploadWidget.d.ts.map +0 -1
  147. package/dist/collection/components/widgets/urlWidget/URLWidget.d.ts +0 -5
  148. package/dist/collection/components/widgets/urlWidget/URLWidget.d.ts.map +0 -1
  149. package/dist/collection/index.d.ts +0 -5
  150. package/dist/collection/index.d.ts.map +0 -1
  151. package/dist/collection/index.js +0 -20
  152. package/dist/collection/lib/FormBuilder.d.ts +0 -8
  153. package/dist/collection/lib/FormBuilder.d.ts.map +0 -1
  154. package/dist/collection/lib/SaveDraftValues.d.ts +0 -7
  155. package/dist/collection/lib/SaveDraftValues.d.ts.map +0 -1
  156. package/dist/collection/lib/hooks/useLevoForm.d.ts +0 -18
  157. package/dist/collection/lib/hooks/useLevoForm.d.ts.map +0 -1
  158. package/dist/collection/lib/provider/LevoFormProvider.d.ts +0 -9
  159. package/dist/collection/lib/provider/LevoFormProvider.d.ts.map +0 -1
  160. package/dist/collection/lib/variants/DefaultFormVariant.d.ts +0 -3
  161. package/dist/collection/lib/variants/DefaultFormVariant.d.ts.map +0 -1
  162. package/dist/collection/lib/variants/StepsFormVariant.d.ts +0 -4
  163. package/dist/collection/lib/variants/StepsFormVariant.d.ts.map +0 -1
  164. package/dist/collection/types/context.d.ts +0 -34
  165. package/dist/collection/types/context.d.ts.map +0 -1
  166. package/dist/collection/types/errors.d.ts +0 -7
  167. package/dist/collection/types/errors.d.ts.map +0 -1
  168. package/dist/collection/types/formVariant.d.ts +0 -18
  169. package/dist/collection/types/formVariant.d.ts.map +0 -1
  170. package/dist/collection/types/forms.d.ts +0 -31
  171. package/dist/collection/types/forms.d.ts.map +0 -1
  172. package/dist/collection/types/index.d.ts +0 -4
  173. package/dist/collection/types/index.d.ts.map +0 -1
  174. package/dist/collection/types/renderer.d.ts +0 -6
  175. package/dist/collection/types/renderer.d.ts.map +0 -1
  176. package/dist/collection/utils/formHelpers.d.ts +0 -48
  177. package/dist/collection/utils/formHelpers.d.ts.map +0 -1
  178. package/dist/collection/utils/getFieldValidations.d.ts +0 -6
  179. package/dist/collection/utils/getFieldValidations.d.ts.map +0 -1
  180. package/dist/collection/utils/index.d.ts +0 -6
  181. package/dist/collection/utils/index.d.ts.map +0 -1
  182. package/dist/collection/utils/schema.d.ts +0 -3
  183. package/dist/collection/utils/schema.d.ts.map +0 -1
  184. package/dist/collection/utils/setFormErrors.d.ts +0 -4
  185. package/dist/collection/utils/setFormErrors.d.ts.map +0 -1
  186. package/dist/collection/utils/storage.d.ts +0 -11
  187. package/dist/collection/utils/storage.d.ts.map +0 -1
  188. package/dist/errorHandler-_34Yv8wA.js +0 -9
  189. package/dist/isEmptyObject-C5s4GzLE.js +0 -8
  190. package/dist/libs.css +0 -1
  191. package/dist/libs.d.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAoBA,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CA0BA,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -12,6 +12,7 @@ export interface LevoOAuthProps {
12
12
  export interface LevoAuthContextProps {
13
13
  title?: string;
14
14
  urls: ILevoMembership.OAuthURLList | null;
15
+ isLoading: boolean;
15
16
  onSuccess: (data: Record<string, string>) => void;
16
17
  onError: (error: {
17
18
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;CACX;AAaD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwEhD,CAAC;AAEF,eAAO,MAAM,YAAY,4BAExB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/membership/components/Container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9D,IAAI,CAAC;CACX;AAcD,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6EhD,CAAC;AAEF,eAAO,MAAM,YAAY,4BAExB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -2,7 +2,8 @@ export declare class LevoOAuth {
2
2
  static Container: import('react').FC<import('./components/Container').LevoOAuthProps>;
3
3
  static Button: import('react').FC<{
4
4
  provider: import('@levo-so/core').ILevoOAuthProvider;
5
- children: import('react').ReactNode;
5
+ children: React.ReactNode;
6
6
  }>;
7
7
  }
8
+ export * from './useLevoOAuth';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/membership/index.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,sEAAa;IAE7B,MAAM,CAAC,MAAM;;;OAAU;CACxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/membership/index.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACpB,MAAM,CAAC,SAAS,sEAAa;IAE7B,MAAM,CAAC,MAAM;;kBAIqB,MAAO,SAAS;OAJ3B;CACxB;AAED,cAAc,gBAAgB,CAAC"}
@@ -1,147 +1,221 @@
1
1
  "use client";
2
- var O = Object.defineProperty;
3
- var R = (e, t, n) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var m = (e, t, n) => R(e, typeof t != "symbol" ? t + "" : t, n);
5
- import { j as p } from "../jsx-runtime-B6kdoens.js";
6
- import j, { useState as g, useEffect as x, useMemo as y, useContext as P, useRef as U, useCallback as W } from "react";
7
- import { useLevo as _ } from "../providers/index.js";
8
- const L = j.createContext({
2
+ var $ = Object.defineProperty;
3
+ var I = (o, t, n) => t in o ? $(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n;
4
+ var O = (o, t, n) => I(o, typeof t != "symbol" ? t + "" : t, n);
5
+ import { j as g } from "../jsx-runtime-D0AQ1Mn7.js";
6
+ import { S as N } from "../Spinner-DBvVyDMF.js";
7
+ import S, { useState as x, useEffect as L, useMemo as W, useContext as _, useRef as b, useCallback as P } from "react";
8
+ import { useLevo as E } from "../providers/index.js";
9
+ const U = S.createContext({
9
10
  urls: null,
10
11
  title: "",
12
+ isLoading: !1,
11
13
  onSuccess: () => {
12
14
  },
13
15
  onError: () => {
14
16
  }
15
- }), b = ({
16
- title: e,
17
+ }), A = ({
18
+ title: o,
17
19
  onSuccess: t,
18
20
  onError: n,
19
- children: s
21
+ children: c
20
22
  }) => {
21
- const c = _(), i = typeof window < "u" ? window.location.href : "", [o, r] = g(null);
22
- x(() => {
23
- var u;
24
- c.membership && ((u = c.membership) == null || u.getOAuthURL().then((a) => {
25
- r(a);
23
+ const i = E(), l = typeof window < "u" ? window.location.href : "", [s, e] = x(null), [h, f] = x(!1);
24
+ L(() => {
25
+ var r;
26
+ i.membership && (f(!0), (r = i.membership) == null || r.getOAuthURL().then((p) => {
27
+ e(p);
26
28
  }).catch(() => {
27
29
  n({
28
30
  code: "SOMETHING_WENT_WRONG",
29
31
  message: "We could not connect with our service for your sign-in."
30
32
  });
33
+ }).finally(() => {
34
+ f(!1);
31
35
  }));
32
36
  }, []);
33
- const f = y(
34
- () => ({ title: e, urls: o, onSuccess: t, onError: n }),
35
- [e, o, t, n]
37
+ const d = W(
38
+ () => ({ title: o, urls: s, isLoading: h, onSuccess: t, onError: n }),
39
+ [o, s, t, n, h]
36
40
  );
37
- return x(() => {
38
- if (o && i) {
39
- const u = {}, a = Object.keys(o);
40
- for (const h of a)
41
+ return L(() => {
42
+ if (s && l) {
43
+ const r = {}, p = Object.keys(s);
44
+ for (const m of p)
41
45
  try {
42
- const l = o[h];
43
- if (l) {
44
- const w = new URL(l), d = w.searchParams;
45
- d.set("redirect_uri", i);
46
- const C = c.pageContext;
47
- C && d.set("page_context", JSON.stringify(C)), u[h] = w.toString();
46
+ const w = s[m];
47
+ if (w) {
48
+ const v = new URL(w), y = v.searchParams;
49
+ y.set("redirect_uri", l);
50
+ const C = i.pageContext;
51
+ C && y.set("page_context", JSON.stringify(C)), r[m] = v.toString();
48
52
  }
49
53
  } catch {
50
54
  }
51
- r(u);
55
+ e(r);
52
56
  }
53
- }, [i]), /* @__PURE__ */ p.jsx(L.Provider, { value: f, children: s });
54
- }, k = () => P(L), A = ({ url: e, title: t, height: n, width: s }) => {
55
- const c = window.screenX + (window.outerWidth - s) / 2, i = window.screenY + (window.outerHeight - n) / 2.5;
57
+ }, [l]), /* @__PURE__ */ g.jsx(U.Provider, { value: d, children: c });
58
+ }, k = () => _(U), T = ({ url: o, title: t, height: n, width: c }) => {
59
+ const i = window.screenX + (window.outerWidth - c) / 2, l = window.screenY + (window.outerHeight - n) / 2.5;
56
60
  return window.open(
57
- e,
61
+ o,
58
62
  t,
59
- `width=${s},height=${n},left=${c},top=${i}`
63
+ `width=${c},height=${n},left=${i},top=${l}`
60
64
  );
61
- }, E = ({
62
- title: e = "",
65
+ }, G = ({
66
+ title: o = "",
63
67
  width: t = 500,
64
68
  height: n = 500,
65
- url: s,
66
- children: c,
67
- onCode: i,
68
- onClose: o
69
+ url: c,
70
+ children: i,
71
+ onCode: l,
72
+ onClose: s
69
73
  }) => {
70
- const [r, f] = g(), u = U(), a = () => {
71
- window.clearInterval(u.current);
72
- }, h = () => {
73
- f(
74
- A({
75
- url: s,
76
- title: e,
74
+ const [e, h] = x(), f = b(), d = () => {
75
+ window.clearInterval(f.current);
76
+ }, r = () => {
77
+ h(
78
+ T({
79
+ url: c,
80
+ title: o,
77
81
  width: t,
78
82
  height: n
79
83
  })
80
84
  );
81
85
  };
82
- return x(() => (r && (u.current = window.setInterval(() => {
86
+ return L(() => (e && (f.current = window.setInterval(() => {
83
87
  try {
84
- const l = r.location.href, w = new URL(l).searchParams, d = w.get("code");
85
- if (!d)
88
+ const p = e.location.href, m = new URL(p).searchParams, w = m.get("code");
89
+ if (!w)
86
90
  return;
87
- i(d, w), a(), r.close();
91
+ l(w, m), d(), e.close();
88
92
  } catch {
89
93
  } finally {
90
- (!r || r.closed) && (o(), a());
94
+ (!e || e.closed) && (s(), d());
91
95
  }
92
96
  }, 700)), () => {
93
- r && r.close(), o && o();
94
- }), [r]), /* @__PURE__ */ p.jsx(
97
+ e && e.close(), s && s();
98
+ }), [e]), /* @__PURE__ */ g.jsx(
95
99
  "div",
96
100
  {
97
101
  onClick: () => {
98
- h();
102
+ r();
99
103
  },
100
- children: c
104
+ children: i
101
105
  }
102
106
  );
103
- }, S = ({
104
- title: e = "Levo",
107
+ }, H = ({
108
+ title: o = "Levo",
105
109
  url: t,
106
110
  children: n,
107
- onSuccess: s,
108
- onError: c,
109
- width: i = 500,
110
- height: o = 700
111
+ onSuccess: c,
112
+ onError: i,
113
+ width: l = 500,
114
+ height: s = 700
111
115
  }) => {
112
- const r = W((f, u) => {
113
- f.toLowerCase() === "success" ? s(u) : c(u);
116
+ const e = P((h, f) => {
117
+ h.toLowerCase() === "success" ? c(f) : i(f);
114
118
  }, []);
115
- return /* @__PURE__ */ p.jsx(
116
- E,
119
+ return /* @__PURE__ */ g.jsx(
120
+ G,
117
121
  {
118
- title: e,
119
- width: i,
120
- height: o,
122
+ title: o,
123
+ width: l,
124
+ height: s,
121
125
  onClose: () => {
122
126
  },
123
127
  url: t,
124
- onCode: r,
128
+ onCode: e,
125
129
  children: n
126
130
  }
127
131
  );
128
- }, N = ({ children: e, provider: t }) => {
129
- const { title: n, urls: s, onSuccess: c, onError: i } = k(), o = s == null ? void 0 : s[t];
130
- return o ? /* @__PURE__ */ p.jsx(
131
- S,
132
+ }, M = ({ children: o, provider: t }) => {
133
+ const { title: n, urls: c, isLoading: i, onSuccess: l, onError: s } = k(), e = c == null ? void 0 : c[t];
134
+ return e ? /* @__PURE__ */ g.jsx(
135
+ H,
132
136
  {
133
137
  title: n,
134
138
  provider: t,
135
- url: o,
136
- onSuccess: c,
137
- onError: i,
138
- children: e
139
+ url: e,
140
+ onSuccess: l,
141
+ onError: s,
142
+ children: i ? /* @__PURE__ */ g.jsx("div", { className: "w-full items-center justify-center", children: /* @__PURE__ */ g.jsx(N, { className: "h-5 w-5 bg-brand" }) }) : o
139
143
  }
140
144
  ) : null;
145
+ }, B = ({ url: o, title: t, height: n, width: c }) => {
146
+ const i = window.screenX + (window.outerWidth - c) / 2, l = window.screenY + (window.outerHeight - n) / 2.5;
147
+ return window.open(
148
+ o,
149
+ t,
150
+ `width=${c},height=${n},left=${i},top=${l}`
151
+ );
152
+ }, D = ({
153
+ title: o = "Levo",
154
+ width: t = 500,
155
+ height: n = 700,
156
+ onSuccess: c
157
+ }) => {
158
+ const i = E(), [l, s] = x(!1), [e, h] = x(null), [f, d] = x(null), [r, p] = x(), m = b(), w = () => {
159
+ window.clearInterval(m.current);
160
+ }, v = P((a, u) => {
161
+ a.toLowerCase() === "success" ? (d(null), c(u)) : d(u);
162
+ }, []);
163
+ L(() => {
164
+ var a;
165
+ i.membership && (s(!0), (a = i.membership) == null || a.getOAuthURL().then((u) => {
166
+ if (u)
167
+ return h(u), u;
168
+ throw new Error();
169
+ }).catch(() => {
170
+ d({
171
+ code: "SOMETHING_WENT_WRONG",
172
+ message: "We could not connect with our service for your sign-in."
173
+ });
174
+ }).finally(() => {
175
+ s(!1);
176
+ }));
177
+ }, []), L(() => (r && (m.current = window.setInterval(() => {
178
+ try {
179
+ const a = r.location.href, u = new URL(a).searchParams, R = u.get("code");
180
+ if (!R)
181
+ return;
182
+ v(R, u), w(), r.close();
183
+ } catch {
184
+ } finally {
185
+ (!r || r.closed) && (w(), d(null));
186
+ }
187
+ }, 700)), () => {
188
+ r && r.close();
189
+ }), [r]);
190
+ const y = P(
191
+ (a) => {
192
+ if (a && e !== null) {
193
+ const u = e == null ? void 0 : e[a];
194
+ u && (r && r.close(), p(
195
+ B({
196
+ url: u,
197
+ title: o,
198
+ width: t,
199
+ height: n
200
+ })
201
+ ));
202
+ }
203
+ },
204
+ [e, r]
205
+ );
206
+ return {
207
+ providers: W(() => e !== null ? Object.keys(e).filter(
208
+ (a) => !!e[a]
209
+ ) : [], [e]),
210
+ isLoading: l,
211
+ error: f,
212
+ launchPopup: y
213
+ };
141
214
  };
142
- class v {
215
+ class j {
143
216
  }
144
- m(v, "Container", b), m(v, "Button", N);
217
+ O(j, "Container", A), O(j, "Button", M);
145
218
  export {
146
- v as LevoOAuth
219
+ j as LevoOAuth,
220
+ D as useLevoOAuth
147
221
  };
@@ -0,0 +1,17 @@
1
+ import { ILevoMembership } from '@levo-so/core';
2
+ export interface IUseLevoOAuthProps {
3
+ title?: string;
4
+ onSuccess: (data: Record<string, string>) => void;
5
+ width?: number;
6
+ height?: number;
7
+ }
8
+ export declare const useLevoOAuth: ({ title, width, height, onSuccess, }: IUseLevoOAuthProps) => {
9
+ providers: ("google" | "linkedin" | "microsoft")[];
10
+ isLoading: boolean;
11
+ error: {
12
+ code: string;
13
+ message: string;
14
+ } | null;
15
+ launchPopup: (provider: ILevoMembership.OAuthURLProvider) => void;
16
+ };
17
+ //# sourceMappingURL=useLevoOAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLevoOAuth.d.ts","sourceRoot":"","sources":["../../src/membership/useLevoOAuth.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAsBrD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,GAAI,sCAK1B,kBAAkB;;;;cAMX,MAAM;iBACH,MAAM;;4BA2EJ,eAAe,CAAC,gBAAgB;CAsC9C,CAAC"}
@@ -2,7 +2,7 @@
2
2
  var te = Object.defineProperty;
3
3
  var ne = (e, t, o) => t in e ? te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
4
4
  var U = (e, t, o) => ne(e, typeof t != "symbol" ? t + "" : t, o);
5
- import { j as oe } from "./jsx-runtime-B6kdoens.js";
5
+ import { j as oe } from "./jsx-runtime-D0AQ1Mn7.js";
6
6
  import { useEffect as f, useState as h } from "react";
7
7
  import { useInView as re } from "react-intersection-observer";
8
8
  import { useLevo as b } from "./providers/index.js";
@@ -56,9 +56,9 @@ var he = Object.prototype, be = he.toString;
56
56
  function we(e) {
57
57
  return be.call(e);
58
58
  }
59
- var ve = "[object Null]", ye = "[object Undefined]", B = _ ? _.toStringTag : void 0;
59
+ var ye = "[object Null]", ve = "[object Undefined]", B = _ ? _.toStringTag : void 0;
60
60
  function Se(e) {
61
- return e == null ? e === void 0 ? ye : ve : B && B in Object(e) ? pe(e) : we(e);
61
+ return e == null ? e === void 0 ? ve : ye : B && B in Object(e) ? pe(e) : we(e);
62
62
  }
63
63
  function ke(e) {
64
64
  return e != null && typeof e == "object";
@@ -94,7 +94,7 @@ function Re(e, t, o) {
94
94
  return n = r = void 0, u = g, i = e.apply(T, w), i;
95
95
  }
96
96
  function N(g) {
97
- return u = g, c = setTimeout(y, t), l ? p(g) : i;
97
+ return u = g, c = setTimeout(v, t), l ? p(g) : i;
98
98
  }
99
99
  function S(g) {
100
100
  var w = g - a, T = g - u, F = t - w;
@@ -104,11 +104,11 @@ function Re(e, t, o) {
104
104
  var w = g - a, T = g - u;
105
105
  return a === void 0 || w >= t || w < 0 || d && T >= s;
106
106
  }
107
- function y() {
107
+ function v() {
108
108
  var g = D();
109
109
  if (k(g))
110
110
  return I(g);
111
- c = setTimeout(y, S(g));
111
+ c = setTimeout(v, S(g));
112
112
  }
113
113
  function I(g) {
114
114
  return c = void 0, m && n ? p(g) : (n = r = void 0, i);
@@ -125,9 +125,9 @@ function Re(e, t, o) {
125
125
  if (c === void 0)
126
126
  return N(a);
127
127
  if (d)
128
- return clearTimeout(c), c = setTimeout(y, t), p(a);
128
+ return clearTimeout(c), c = setTimeout(v, t), p(a);
129
129
  }
130
- return c === void 0 && (c = setTimeout(y, t)), i;
130
+ return c === void 0 && (c = setTimeout(v, t)), i;
131
131
  }
132
132
  return R.cancel = O, R.flush = ee, R;
133
133
  }
@@ -138,7 +138,7 @@ const je = () => {
138
138
  ), S = Math.floor(N / 5) * 5;
139
139
  if (S <= o)
140
140
  return;
141
- const k = Date.now(), y = (k - i) / 1e3, O = Math.abs(d - r) / y;
141
+ const k = Date.now(), v = (k - i) / 1e3, O = Math.abs(d - r) / v;
142
142
  u(O > 300 ? "scan" : "read"), s(d), c(k), n(S), t(S);
143
143
  }, 250);
144
144
  return f(() => (window.addEventListener("scroll", l), () => window.removeEventListener("scroll", l)), []), { depth: e, speedCategory: a };
@@ -210,6 +210,7 @@ function Be(e) {
210
210
  case "string":
211
211
  t = e == null ? void 0 : e.className;
212
212
  break;
213
+ // TODO: when is this ever used?
213
214
  case "object":
214
215
  t = (e != null && e.className && "baseVal" in (e == null ? void 0 : e.className) ? (e == null ? void 0 : e.className).baseVal : null) || (e == null ? void 0 : e.getAttribute("class")) || "";
215
216
  break;
@@ -218,12 +219,12 @@ function Be(e) {
218
219
  }
219
220
  return Ue(t);
220
221
  }
221
- const v = (e, t = 255) => J(e) ? "" : x(e).split(/(\s+)/).filter((o) => P(o)).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, t), $ = (e) => {
222
+ const y = (e, t = 255) => J(e) ? "" : x(e).split(/(\s+)/).filter((o) => P(o)).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, t), $ = (e) => {
222
223
  let t = "";
223
224
  if (Ye(e) && // !isSensitiveElement(el) &&
224
225
  (e != null && e.childNodes) && (e != null && e.childNodes.length))
225
226
  for (const o of e == null ? void 0 : e.childNodes)
226
- z(o) && o.textContent && (t += v(o.textContent) ?? "");
227
+ z(o) && o.textContent && (t += y(o.textContent) ?? "");
227
228
  return x(t);
228
229
  }, He = (e) => {
229
230
  var t, o;
@@ -290,7 +291,7 @@ const qe = ["input", "textarea", "select"], Q = (e) => {
290
291
  if (P(u.value) && !ze(u.name)) {
291
292
  if (u.name === "class")
292
293
  return a;
293
- a[u.name] = typeof (u == null ? void 0 : u.value) == "string" ? v(u.value) : u.value;
294
+ a[u.name] = typeof (u == null ? void 0 : u.value) == "string" ? y(u.value) : u.value;
294
295
  }
295
296
  return a;
296
297
  },
@@ -298,13 +299,13 @@ const qe = ["input", "textarea", "select"], Q = (e) => {
298
299
  );
299
300
  if (o.attributes = n, qe.includes(t) || (e == null ? void 0 : e.getAttribute("contenteditable")) === "true") {
300
301
  let a;
301
- e.matches('input[type="checkbox"], input[type="radio"]') ? a = e.checked : e.matches("input, select, textarea") && !e.matches('input[type="password"]') && (a = e.value), a !== void 0 && (o.value = typeof a == "string" || a === null ? v(a, 1024) : a);
302
+ e.matches('input[type="checkbox"], input[type="radio"]') ? a = e.checked : e.matches("input, select, textarea") && !e.matches('input[type="password"]') && (a = e.value), a !== void 0 && (o.value = typeof a == "string" || a === null ? y(a, 1024) : a);
302
303
  let u = "";
303
- o != null && o.attributes.id && (u = v(
304
+ o != null && o.attributes.id && (u = y(
304
305
  ((i = (s = document.querySelector(`label[for="${o == null ? void 0 : o.attributes.id}"]`)) == null ? void 0 : s.textContent) == null ? void 0 : i.trim()) || ""
305
306
  ));
306
307
  const l = e.closest("label");
307
- u || (u = v(((c = l == null ? void 0 : l.textContent) == null ? void 0 : c.trim()) || "")), u && (o.label = u);
308
+ u || (u = y(((c = l == null ? void 0 : l.textContent) == null ? void 0 : c.trim()) || "")), u && (o.label = u);
308
309
  }
309
310
  return o;
310
311
  }, Ze = (e, t) => {
@@ -315,8 +316,8 @@ const qe = ["input", "textarea", "select"], Q = (e) => {
315
316
  if (o && (n || We(o, e))) {
316
317
  const s = Q(o);
317
318
  if (n) {
318
- const i = v((r = window == null ? void 0 : window.getSelection()) == null ? void 0 : r.toString()), c = (e == null ? void 0 : e.type) || "clipboard";
319
- s.copy_text = i ?? "", s.copy_type = c ?? "";
319
+ const i = y((r = window == null ? void 0 : window.getSelection()) == null ? void 0 : r.toString()), c = (e == null ? void 0 : e.type) || "clipboard";
320
+ s.copy_text = i ?? "", s.copy_type = c;
320
321
  }
321
322
  return s;
322
323
  }
@@ -450,7 +451,7 @@ const M = new nt(), ot = () => {
450
451
  if (n && (n == null ? void 0 : n.rangeCount) > 0) {
451
452
  const r = n == null ? void 0 : n.toString();
452
453
  r && (e == null || e.track("page.selection", {
453
- text: v(r)
454
+ text: y(r)
454
455
  }));
455
456
  }
456
457
  }, 1e3);
@@ -562,7 +563,7 @@ const M = new nt(), ot = () => {
562
563
  state: o
563
564
  }));
564
565
  }, [o, t == null ? void 0 : t.audience, e]);
565
- }, vt = ({ id: e, properties: t = {} }) => {
566
+ }, yt = ({ id: e, properties: t = {} }) => {
566
567
  var i;
567
568
  const o = typeof window < "u" ? window.location.href : "", n = b();
568
569
  f(() => {
@@ -622,5 +623,5 @@ const M = new nt(), ot = () => {
622
623
  export {
623
624
  bt as L,
624
625
  wt as a,
625
- vt as b
626
+ yt as b
626
627
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { j as r } from "../jsx-runtime-B6kdoens.js";
2
+ import { j as r } from "../jsx-runtime-D0AQ1Mn7.js";
3
3
  import { createContext as n, useContext as s } from "react";
4
4
  const o = n(null), v = ({ children: e, client: t }) => /* @__PURE__ */ r.jsx(o.Provider, { value: t, children: e }), x = () => {
5
5
  const e = s(o);
@@ -1 +1 @@
1
- {"version":3,"file":"byteToSize.d.ts","sourceRoot":"","sources":["../../src/utils/byteToSize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAAW,MAAM,8BAQvC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"byteToSize.d.ts","sourceRoot":"","sources":["../../src/utils/byteToSize.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,iBAAY,WAQrD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,eAAO,MAAM,EAAE,cAAe,UAAU,EAAE,WAEzC,CAAC;AAEF,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,eAAO,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,WAEzC,CAAC;AAEF,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../src/utils/errorHandler.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,UAAW,GAAG,sCAMtC,CAAC"}
1
+ {"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../src/utils/errorHandler.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,sCAQtC,CAAC"}
@@ -1,14 +1,12 @@
1
- import { b as s } from "../byteToSize-BFKZSBu1.js";
2
- import { e as t } from "../errorHandler-_34Yv8wA.js";
3
- import { c as i } from "../cn-C9QoOYNG.js";
4
- import { i as c, a as p, b as f, d as m, c as O } from "../isEmptyObject-C5s4GzLE.js";
1
+ import { b as a, e as r, i as t, a as i, c, f as b, d as o } from "../isEmptyObject-BoIi0jMB.js";
2
+ import { c as d } from "../cn-C9QoOYNG.js";
5
3
  export {
6
- s as byteToSize,
7
- i as cn,
8
- t as errorHandler,
9
- c as isDateObject,
10
- p as isEmptyObject,
11
- f as isNullOrUndefined,
12
- m as isObject,
13
- O as isObjectType
4
+ a as byteToSize,
5
+ d as cn,
6
+ r as errorHandler,
7
+ t as isDateObject,
8
+ i as isEmptyObject,
9
+ c as isNullOrUndefined,
10
+ b as isObject,
11
+ o as isObjectType
14
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"isDateObject.d.ts","sourceRoot":"","sources":["../../src/utils/isDateObject.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,KAAK,IAAI,IAChC,CAAC"}
1
+ {"version":3,"file":"isDateObject.d.ts","sourceRoot":"","sources":["../../src/utils/isDateObject.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,IAChC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isEmptyObject.d.ts","sourceRoot":"","sources":["../../src/utils/isEmptyObject.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,KAAK;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,KAAK,IAAI,WACT,CAAC"}
1
+ {"version":3,"file":"isEmptyObject.d.ts","sourceRoot":"","sources":["../../src/utils/isEmptyObject.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;KAAG,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,KAAK;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,WACT,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isNullOrUndefined.d.ts","sourceRoot":"","sources":["../../src/utils/isNullOrUndefined.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,IAAI,GAAG,SACpD,CAAC"}
1
+ {"version":3,"file":"isNullOrUndefined.d.ts","sourceRoot":"","sources":["../../src/utils/isNullOrUndefined.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,IAAI,GAAG,SACpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isObject.d.ts","sourceRoot":"","sources":["../../src/utils/isObject.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,KAAK,IAAI,MAC5B,CAAC;AAE5B,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,SAAS,OAAO,KAAG,KAAK,IAAI,CAI/C,CAAC"}
1
+ {"version":3,"file":"isObject.d.ts","sourceRoot":"","sources":["../../src/utils/isObject.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAC5B,CAAC;AAE5B,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,EAAE,OAAO,OAAO,KAAG,KAAK,IAAI,CAI/C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/react",
3
- "version": "0.1.37",
3
+ "version": "0.1.43",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo suite for React based applications",
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  "peerDependencies": {
17
17
  "react": ">=18",
18
18
  "react-dom": ">=18",
19
- "@levo-so/core": "0.1.37"
19
+ "@levo-so/core": "0.1.43"
20
20
  },
21
21
  "dependencies": {
22
22
  "@radix-ui/react-checkbox": "1.1.1",
@@ -74,11 +74,11 @@
74
74
  "@types/google-libphonenumber": "7.4.30",
75
75
  "@types/google.maps": "3.58.0",
76
76
  "@types/lodash-es": "4.17.12",
77
- "@types/react": "18.3.3",
78
- "@types/react-dom": "18.3.0",
77
+ "@types/react": "18.3.18",
78
+ "@types/react-dom": "18.3.5",
79
79
  "@types/validator": "13.12.0",
80
80
  "@types/validatorjs": "3.15.5",
81
- "@vitejs/plugin-react": "4.3.1",
81
+ "@vitejs/plugin-react": "4.3.4",
82
82
  "autoprefixer": "10.4.16",
83
83
  "clsx": "2.1.1",
84
84
  "postcss": "8.4.41",
@@ -87,19 +87,18 @@
87
87
  "tailwind-merge": "2.4.0",
88
88
  "tailwindcss": "3.4.1",
89
89
  "tailwindcss-animate": "1.0.7",
90
- "typescript": "5.5.4",
91
- "vite": "5.4.3",
90
+ "typescript": "5.8.2",
91
+ "vite": "6.0.5",
92
92
  "vite-plugin-dts": "4.1.0",
93
- "@levo/ts-config": "0.0.0",
93
+ "@levo/eslint-config": "0.0.0",
94
94
  "@levo/tw-config": "0.0.0",
95
- "@levo/eslint-config": "0.0.0"
95
+ "@levo/ts-config": "0.0.0"
96
96
  },
97
97
  "main": "./dist/index.js",
98
98
  "module": "./dist/index.js",
99
99
  "types": "./dist/index.d.ts",
100
100
  "exports": {
101
101
  "./index.css": "./dist/index.css",
102
- "./libs.css": "./dist/libs.css",
103
102
  ".": {
104
103
  "types": "./dist/index.d.ts",
105
104
  "default": "./dist/index.js"
@@ -116,10 +115,6 @@
116
115
  "types": "./dist/membership/index.d.ts",
117
116
  "default": "./dist/membership/index.js"
118
117
  },
119
- "./collection": {
120
- "types": "./dist/collection/index.d.ts",
121
- "default": "./dist/collection/index.js"
122
- },
123
118
  "./utils": {
124
119
  "types": "./dist/utils/index.d.ts",
125
120
  "default": "./dist/utils/index.js"