@caseparts-org/casecore 0.0.5 → 0.0.6

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.
@@ -1,8 +1,8 @@
1
- type MicroFlexFieldSelectors = {
1
+ export type MicroFlexFieldSelectors = {
2
2
  number: string;
3
3
  securityCode: string;
4
4
  };
5
- type MicroFlexOptions = {
5
+ export type MicroFlexOptions = {
6
6
  initializeForm: boolean;
7
7
  apiURL: string;
8
8
  fetchFn: (_url: string, _options?: RequestInit) => Promise<Response>;
@@ -12,7 +12,7 @@ type MicroFlexOptions = {
12
12
  setupInterval?: number;
13
13
  onError?: (_error: unknown) => void;
14
14
  };
15
- type MicroFlexReturn = {
15
+ export type MicroFlexReturn = {
16
16
  validate: () => Promise<string | undefined>;
17
17
  cardToken: string | null;
18
18
  cardError: string | null;
@@ -25,4 +25,3 @@ declare global {
25
25
  }
26
26
  }
27
27
  export default function useMicroFlex({ initializeForm, apiURL, fetchFn, fieldSelectors, styles, scriptUrl, setupInterval, onError, }: MicroFlexOptions): MicroFlexReturn;
28
- export {};
@@ -4,3 +4,5 @@ export type { EmployeeResponse, CustomerResponse, InviteType, Invite, EmployeeCl
4
4
  export { default as useLocalStorage } from './hooks/useLocalStorage';
5
5
  export { getSessionId } from './utils/SessionUtils';
6
6
  export { buildClaimsFromPayload } from './utils/ClaimsUtils';
7
+ export type { MicroFlexFieldSelectors, MicroFlexOptions, MicroFlexReturn } from './hooks/useMicroFlex';
8
+ export { default as useMicroFlex } from './hooks/useMicroFlex';
@@ -4,3 +4,4 @@ export { default as AuthProvider, useAuthContext } from './authentication/AuthCo
4
4
  export { default as useLocalStorage } from './hooks/useLocalStorage';
5
5
  export { getSessionId } from './utils/SessionUtils';
6
6
  export { buildClaimsFromPayload } from './utils/ClaimsUtils';
7
+ export { default as useMicroFlex } from './hooks/useMicroFlex';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/casecore",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",