@invoice-sdk/widget 1.5.3 → 1.6.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.
Files changed (34) hide show
  1. package/dist/App.d.ts +4 -0
  2. package/dist/App.d.ts.map +1 -0
  3. package/dist/components/button.d.ts +10 -0
  4. package/dist/components/button.d.ts.map +1 -0
  5. package/dist/components/form/custom-checkbox.d.ts +7 -0
  6. package/dist/components/form/custom-checkbox.d.ts.map +1 -0
  7. package/dist/components/form/file-upload.d.ts +10 -0
  8. package/dist/components/form/file-upload.d.ts.map +1 -0
  9. package/dist/components/form/input-field.d.ts +7 -0
  10. package/dist/components/form/input-field.d.ts.map +1 -0
  11. package/dist/components/form/select-option.d.ts +13 -0
  12. package/dist/components/form/select-option.d.ts.map +1 -0
  13. package/dist/components/layout.d.ts +3 -0
  14. package/dist/components/layout.d.ts.map +1 -0
  15. package/dist/components/process.d.ts +3 -0
  16. package/dist/components/process.d.ts.map +1 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/main.d.ts +2 -0
  20. package/dist/main.d.ts.map +1 -0
  21. package/dist/pages/register.d.ts +33 -0
  22. package/dist/pages/register.d.ts.map +1 -0
  23. package/dist/pages/select-plan.d.ts +3 -0
  24. package/dist/pages/select-plan.d.ts.map +1 -0
  25. package/dist/pages/select-provider.d.ts +3 -0
  26. package/dist/pages/select-provider.d.ts.map +1 -0
  27. package/dist/pages/status.d.ts +3 -0
  28. package/dist/pages/status.d.ts.map +1 -0
  29. package/dist/store/process.d.ts +10 -0
  30. package/dist/store/process.d.ts.map +1 -0
  31. package/dist/store/register.d.ts +23 -0
  32. package/dist/store/register.d.ts.map +1 -0
  33. package/dist/tsconfig.tsbuildinfo +1 -0
  34. package/package.json +11 -12
package/dist/App.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import './App.css';
2
+ declare function InvoiceRegisterWidget(): import("react/jsx-runtime").JSX.Element;
3
+ export default InvoiceRegisterWidget;
4
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAOnB,iBAAS,qBAAqB,4CA6B7B;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ title: string;
3
+ isDisabled?: boolean;
4
+ handleClick?: () => void;
5
+ type?: 'submit' | 'button';
6
+ className?: string;
7
+ };
8
+ declare const Button: (props: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export default Button;
10
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AACA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,MAAM,GAAI,OAAO,KAAK,4CAW3B,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ checked: boolean;
3
+ setChecked: (checked: boolean) => void;
4
+ };
5
+ declare const CustomCheckbox: ({ checked, setChecked }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default CustomCheckbox;
7
+ //# sourceMappingURL=custom-checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/form/custom-checkbox.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC,CAAA;AACD,QAAA,MAAM,cAAc,GAAI,yBAAyB,KAAK,4CAarD,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,10 @@
1
+ type FileUploadProps = {
2
+ label: string;
3
+ required?: boolean;
4
+ file: File | null;
5
+ onFileChange: (file: File) => void;
6
+ error?: string;
7
+ };
8
+ declare const FileUpload: React.FC<FileUploadProps>;
9
+ export default FileUpload;
10
+ //# sourceMappingURL=file-upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/components/form/file-upload.tsx"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgIzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ declare const InputField: import("react").ForwardRefExoticComponent<{
2
+ label: string;
3
+ required?: boolean;
4
+ error?: string;
5
+ } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
6
+ export default InputField;
7
+ //# sourceMappingURL=input-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-field.d.ts","sourceRoot":"","sources":["../../../src/components/form/input-field.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,UAAU;WALP,MAAM;eACF,OAAO;YACV,MAAM;4GA0Bf,CAAC;AAGF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ type Option = {
3
+ value: string;
4
+ label: string;
5
+ };
6
+ type SubscriptionSelectorProps = {
7
+ options: Option[];
8
+ value: string;
9
+ onChange: (value: string) => void;
10
+ };
11
+ declare const SubscriptionSelector: React.FC<SubscriptionSelectorProps>;
12
+ export default SubscriptionSelector;
13
+ //# sourceMappingURL=select-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-option.d.ts","sourceRoot":"","sources":["../../../src/components/form/select-option.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA0D7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const MainLayout: () => import("react/jsx-runtime").JSX.Element;
2
+ export default MainLayout;
3
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/components/layout.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,+CAOf,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const Process: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Process;
3
+ //# sourceMappingURL=process.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/components/process.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO,+CAaZ,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,3 @@
1
+ import InvoiceRegisterWidget from './App';
2
+ export default InvoiceRegisterWidget;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,OAAO,CAAA;AACzC,eAAe,qBAAqB,CAAC"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAA"}
@@ -0,0 +1,33 @@
1
+ import z from "zod";
2
+ declare const formSchema: z.ZodObject<{
3
+ taxCode: z.ZodString;
4
+ representative: z.ZodString;
5
+ email: z.ZodString;
6
+ address: z.ZodString;
7
+ companyName: z.ZodString;
8
+ position: z.ZodOptional<z.ZodString>;
9
+ phone: z.ZodOptional<z.ZodString>;
10
+ license: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ email: string;
13
+ taxCode: string;
14
+ companyName: string;
15
+ representative: string;
16
+ address: string;
17
+ position?: string | undefined;
18
+ license?: File | undefined;
19
+ phone?: string | undefined;
20
+ }, {
21
+ email: string;
22
+ taxCode: string;
23
+ companyName: string;
24
+ representative: string;
25
+ address: string;
26
+ position?: string | undefined;
27
+ license?: File | undefined;
28
+ phone?: string | undefined;
29
+ }>;
30
+ export type FormValues = z.infer<typeof formSchema>;
31
+ declare const RegistrationForm: () => import("react/jsx-runtime").JSX.Element;
32
+ export default RegistrationForm;
33
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/pages/register.tsx"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBd,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAGpD,QAAA,MAAM,gBAAgB,+CAsLrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const SelectPlan: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SelectPlan;
3
+ //# sourceMappingURL=select-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-plan.d.ts","sourceRoot":"","sources":["../../src/pages/select-plan.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,UAAU,+CA6Bf,CAAA;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const SelectProvider: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SelectProvider;
3
+ //# sourceMappingURL=select-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-provider.d.ts","sourceRoot":"","sources":["../../src/pages/select-provider.tsx"],"names":[],"mappings":"AAuCA,QAAA,MAAM,cAAc,+CAgCnB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const Status: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Status;
3
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/pages/status.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,+CAIX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ type State = {
2
+ step: number;
3
+ };
4
+ type Actions = {
5
+ nextStep: () => void;
6
+ prevStep: () => void;
7
+ };
8
+ export declare const useProcessStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
9
+ export {};
10
+ //# sourceMappingURL=process.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/store/process.ts"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;CAEd,CAAA;AAED,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,8EAKzB,CAAC"}
@@ -0,0 +1,23 @@
1
+ type State = {
2
+ selectedProvider: string | null;
3
+ form: {
4
+ taxCode: string;
5
+ companyName: string;
6
+ representative: string;
7
+ position: string;
8
+ email: string;
9
+ phoneNumber: string | null;
10
+ address: string;
11
+ license: File | null;
12
+ };
13
+ selectedPlan: string | null;
14
+ };
15
+ type Actions = {
16
+ setSelectedProvider: (provider: string | null) => void;
17
+ setForm: (form: Partial<State['form']>) => void;
18
+ setSelectedPlan: (plan: string | null) => void;
19
+ reset: () => void;
20
+ };
21
+ export declare const useRegisterStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
22
+ export {};
23
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/store/register.ts"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAE;QACjB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAA;AAED,KAAK,OAAO,GAAG;IACb,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,IAAI,CAAC;IAChD,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAA;AACD,eAAO,MAAM,gBAAgB,8EAoC1B,CAAC"}
@@ -0,0 +1 @@
1
+ {"root":["../src/app.tsx","../src/index.ts","../src/main.tsx","../src/vite-env.d.ts","../src/components/button.tsx","../src/components/layout.tsx","../src/components/process.tsx","../src/components/form/custom-checkbox.tsx","../src/components/form/file-upload.tsx","../src/components/form/input-field.tsx","../src/components/form/select-option.tsx","../src/pages/register.tsx","../src/pages/select-plan.tsx","../src/pages/select-provider.tsx","../src/pages/status.tsx","../src/store/process.ts","../src/store/register.ts"],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,11 +1,5 @@
1
1
  {
2
- "dependencies": {
3
- "@invoice-sdk/api": "workspace:*",
4
- "react-hook-form": "^7.56.4",
5
- "react-router-dom": "6.30.1",
6
- "zod": "^3.25.42",
7
- "zustand": "^5.0.5"
8
- },
2
+ "dependencies": {},
9
3
  "devDependencies": {
10
4
  "@eslint/js": "^9.25.0",
11
5
  "@hookform/resolvers": "^5.0.1",
@@ -26,7 +20,7 @@
26
20
  },
27
21
  "exports": {
28
22
  ".": {
29
- "import": "./dist/index.esm.js",
23
+ "import": "./dist/index.es.js",
30
24
  "require": "./dist/index.cjs.js"
31
25
  }
32
26
  },
@@ -34,22 +28,27 @@
34
28
  "dist"
35
29
  ],
36
30
  "main": "dist/index.cjs.js",
37
- "module": "dist/index.esm.js",
31
+ "module": "dist/index.es.js",
38
32
  "name": "@invoice-sdk/widget",
39
33
  "peerDependencies": {
34
+ "@invoice-sdk/api": "workspace:*",
40
35
  "react": "^19.1.0",
41
- "react-dom": "^19.1.0"
36
+ "react-dom": "^19.1.0",
37
+ "react-hook-form": "^7.56.4",
38
+ "react-router-dom": "6.30.1",
39
+ "zod": "^3.25.42",
40
+ "zustand": "^5.0.5"
42
41
  },
43
42
  "publishConfig": {
44
43
  "access": "public"
45
44
  },
46
45
  "scripts": {
47
- "build": "tsc -b && vite build",
46
+ "build": "vite build && tsc -b",
48
47
  "dev": "vite",
49
48
  "lint": "eslint .",
50
49
  "preview": "vite preview"
51
50
  },
52
51
  "type": "module",
53
52
  "types": "dist/index.d.ts",
54
- "version": "1.5.3"
53
+ "version": "1.6.6"
55
54
  }