@fiscalisto/react 0.1.0 → 0.1.1

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 (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/package.json +10 -1
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface FiscalistoEmbedProps {
31
31
  /** The link with ?embed=1; only autofactura and data request links are shown. */
32
32
  export declare function embedUrl(url: string): URL;
33
33
  /** The page inside yours, as tall as its content. */
34
- export declare function FiscalistoEmbed({ url, onComplete, onReady, initialHeight, title, className, style, }: FiscalistoEmbedProps): import("react/jsx-runtime").JSX.Element;
34
+ export declare function FiscalistoEmbed({ url, onComplete, onReady, initialHeight, title, className, style, }: FiscalistoEmbedProps): import("react").JSX.Element;
35
35
  export interface FiscalistoDialogProps extends Omit<FiscalistoEmbedProps, "className" | "style"> {
36
36
  open: boolean;
37
37
  /** The ×, Esc or a click outside. */
@@ -43,12 +43,12 @@ export interface FiscalistoDialogProps extends Omit<FiscalistoEmbedProps, "class
43
43
  * The page on top of yours. Controlled: `open` and `onClose`. Closes nothing by itself when the
44
44
  * buyer finishes, so they can download their PDF and XML; close it from `onComplete` if you want.
45
45
  */
46
- export declare function FiscalistoDialog({ open, onClose, heading, title, ...embed }: FiscalistoDialogProps): import("react/jsx-runtime").JSX.Element | null;
46
+ export declare function FiscalistoDialog({ open, onClose, heading, title, ...embed }: FiscalistoDialogProps): import("react").JSX.Element | null;
47
47
  /** `const { open, dialog } = useFiscalistoDialog()`: `open(url)` from a button, `{dialog}` in your tree. */
48
48
  export declare function useFiscalistoDialog(options?: Omit<FiscalistoDialogProps, "open" | "onClose" | "url"> & {
49
49
  onClose?: () => void;
50
50
  }): {
51
51
  open: (url: string) => void;
52
52
  close: () => void;
53
- dialog: import("react/jsx-runtime").JSX.Element | null;
53
+ dialog: import("react").JSX.Element | null;
54
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiscalisto/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Componentes de React para mostrar en su página la autofactura de Fiscalisto y la liga de datos fiscales de un cliente.",
5
5
  "keywords": [
6
6
  "cfdi",
@@ -12,6 +12,10 @@
12
12
  "fiscalisto"
13
13
  ],
14
14
  "homepage": "https://fiscalisto.com/docs/api/autofactura",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/fiscalisto/fiscalisto-react.git"
18
+ },
15
19
  "license": "MIT",
16
20
  "type": "module",
17
21
  "sideEffects": false,
@@ -34,5 +38,10 @@
34
38
  "scripts": {
35
39
  "build": "rm -rf dist && tsc -p tsconfig.json",
36
40
  "prepublishOnly": "npm run build"
41
+ },
42
+ "devDependencies": {
43
+ "@types/react": "^19.2.14",
44
+ "react": "^19.2.6",
45
+ "typescript": "^6.0.2"
37
46
  }
38
47
  }