wcz-test 7.1.3 → 7.2.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 (54) hide show
  1. package/dist/DialogsContext-CGAKEKKW.js +546 -0
  2. package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
  3. package/dist/{DialogsHooks-BXfwbYWP.js → DialogsHooks-BZUdpDVJ.js} +14 -14
  4. package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -0
  5. package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
  6. package/dist/{RouterListItemButton-DrW6M53Y.js.map → RouterListItemButton-C_jUvB6C.js.map} +1 -1
  7. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  8. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  9. package/dist/components/core/Layout.d.ts +1 -1
  10. package/dist/components.js +686 -682
  11. package/dist/components.js.map +1 -1
  12. package/dist/exports/hooks.d.ts +1 -1
  13. package/dist/exports/middleware.d.ts +1 -0
  14. package/dist/exports/utils.d.ts +3 -2
  15. package/dist/hooks/UseScanDetection.d.ts +28 -0
  16. package/dist/hooks.js +603 -610
  17. package/dist/hooks.js.map +1 -1
  18. package/dist/{i18next-Bx3TmZAT.js → i18next-8reizFda.js} +71 -63
  19. package/dist/i18next-8reizFda.js.map +1 -0
  20. package/dist/{index-DchOf6FV.js → index-wOcJpekI.js} +6 -4
  21. package/dist/index-wOcJpekI.js.map +1 -0
  22. package/dist/index.js +661 -821
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/auth/msalClient.d.ts +20 -0
  25. package/dist/lib/auth/msalServer.d.ts +11 -0
  26. package/dist/lib/auth/scopes.d.ts +2 -0
  27. package/dist/lib/auth/utils.d.ts +0 -0
  28. package/dist/lib/theme.d.ts +1 -0
  29. package/dist/lib/utils.d.ts +2 -10
  30. package/dist/middleware/authMiddleware.d.ts +6 -0
  31. package/dist/middleware.js +1101 -0
  32. package/dist/middleware.js.map +1 -0
  33. package/dist/models/TokenPayload.d.ts +8 -0
  34. package/dist/models/User.d.ts +10 -13
  35. package/dist/msalClient-Cem8ZXIU.js +75 -0
  36. package/dist/msalClient-Cem8ZXIU.js.map +1 -0
  37. package/dist/providers/AuthProvider.d.ts +0 -2
  38. package/dist/queries/FileHooks.d.ts +1 -1
  39. package/dist/queries/GraphQueries.d.ts +0 -20
  40. package/dist/query.js +1 -1
  41. package/dist/utils-BXxJ2sNo.js +151 -0
  42. package/dist/utils-BXxJ2sNo.js.map +1 -0
  43. package/dist/utils.js +72 -37
  44. package/dist/utils.js.map +1 -1
  45. package/package.json +16 -11
  46. package/dist/DialogsContext-8xfQ3X-k.js +0 -285
  47. package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
  48. package/dist/DialogsHooks-BXfwbYWP.js.map +0 -1
  49. package/dist/RouterListItemButton-DrW6M53Y.js +0 -17
  50. package/dist/hooks/User.d.ts +0 -8
  51. package/dist/i18next-Bx3TmZAT.js.map +0 -1
  52. package/dist/index-DchOf6FV.js.map +0 -1
  53. package/dist/utils-Dttzp8un.js +0 -10879
  54. package/dist/utils-Dttzp8un.js.map +0 -1
@@ -3,4 +3,4 @@ export { useDialogs } from '../hooks/DialogsHooks';
3
3
  export type { DialogProps } from '../hooks/DialogsHooks';
4
4
  export { useInView } from 'react-intersection-observer';
5
5
  export { useTranslation } from 'react-i18next';
6
- export { useUser } from '../hooks/User';
6
+ export { useScanDetection } from '../hooks/UseScanDetection';
@@ -0,0 +1 @@
1
+ export { authMiddleware, serverFnAccessTokenMiddleware } from '../middleware/authMiddleware';
@@ -1,5 +1,6 @@
1
- export { uuidv7 } from 'uuidv7';
2
1
  export { createEnv } from '@t3-oss/env-core';
3
2
  export { t } from 'i18next';
3
+ export { uuidv7 } from 'uuidv7';
4
+ export { getAccessToken, getUser } from '../lib/auth/msalClient';
5
+ export { getAppToken, getTokenOnBehalfOf } from '../lib/auth/msalServer';
4
6
  export { Platform } from '../lib/utils';
5
- export { getAccessToken } from '../lib/utils';
@@ -0,0 +1,28 @@
1
+ interface Config {
2
+ /** Time to wait from last character to then trigger an evaluation of the buffer. */
3
+ timeToEvaluate?: number;
4
+ /** Average time between characters in milliseconds. Used to determine if input is from keyboard or a scanner. Defaults to 50ms.*/
5
+ averageWaitTime?: number;
6
+ /** Character that barcode scanner prefixes input with.*/
7
+ startCharacter?: Array<string>;
8
+ /** Character that barcode scanner suffixes input with. Defaults to line return.*/
9
+ endCharacter?: Array<string>;
10
+ /** Callback to use on complete scan input.*/
11
+ onComplete: (code: string) => void;
12
+ /** Callback to use on error. */
13
+ onError?: (error: string) => void;
14
+ /** Minimum length a scanned code should be. Defaults to 0.*/
15
+ minLength?: number;
16
+ /** Ignore scan input if this node is focused.*/
17
+ ignoreIfFocusOn?: Node;
18
+ /** Stop propagation on keydown event. Defaults to false.*/
19
+ stopPropagation?: boolean;
20
+ /** Prevent default on keydown event. Defaults to false.*/
21
+ preventDefault?: boolean;
22
+ /** Bind keydown event to this node. Defaults to document.*/
23
+ container?: Node;
24
+ /** Indicates if the scanning is enabled. */
25
+ enabled?: boolean;
26
+ }
27
+ export declare const useScanDetection: ({ timeToEvaluate, averageWaitTime, startCharacter, endCharacter, onComplete, onError, minLength, ignoreIfFocusOn, stopPropagation, preventDefault, container, enabled }: Config) => void;
28
+ export {};