@npmtapi/embed 1.0.0 → 1.0.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/README.md +21 -21
  2. package/package.json +42 -43
package/README.md CHANGED
@@ -83,17 +83,17 @@ export function PagoPage({ clienteId }: { clienteId: string }) {
83
83
 
84
84
  ### Props
85
85
 
86
- | Prop | Tipo | Requerido | Descripción |
87
- |------|------|-----------|-------------|
88
- | `organization` | `string` | Sí | Alias de la organización en TapiPay |
89
- | `identifier` | `string` | Sí | Identificador del cliente |
90
- | `externalRequestId` | `string` | No | ID de deuda a preseleccionar |
91
- | `selectionStrategy` | `"oldestCreated"` | No | Selecciona automáticamente la deuda pendiente más antigua |
92
- | `environment` | `'production' \| 'homo'` | No | Entorno del SDK. Por defecto `'production'` |
93
- | `onPending` | `(data) => void` | No | Callback cuando Yuno redirige al callback (pago en proceso) |
94
- | `onCancelled` | `() => void` | No | Callback cuando el usuario cierra el popup sin completar el pago |
95
- | `className` | `string` | No | Clases CSS del contenedor |
96
- | `style` | `CSSProperties` | No | Estilos inline del contenedor |
86
+ | Prop | Tipo | Requerido | Por defecto | Descripción |
87
+ |------|------|-----------|-------------|-------------|
88
+ | `organization` | `string` | Sí | — | Alias de la organización en TapiPay |
89
+ | `identifier` | `string` | Sí | — | Identificador del cliente |
90
+ | `externalRequestId` | `string` | No | — | ID de deuda a preseleccionar. Tiene precedencia sobre `selectionStrategy` |
91
+ | `selectionStrategy` | `"oldestCreated"` | No | más reciente | Estrategia de selección automática de deuda pendiente. `"oldestCreated"`: la más antigua. Por defecto (omitido): la más reciente |
92
+ | `environment` | `'production' \| 'homo'` | No | `'production'` | Entorno del SDK |
93
+ | `onPending` | `(data) => void` | No | — | Callback cuando Yuno redirige al callback (pago en proceso) |
94
+ | `onCancelled` | `() => void` | No | — | Callback cuando el usuario cierra el popup sin completar el pago |
95
+ | `className` | `string` | No | — | Clases CSS del contenedor |
96
+ | `style` | `CSSProperties` | No | — | Estilos inline del contenedor |
97
97
 
98
98
  ### Next.js App Router
99
99
 
@@ -187,19 +187,19 @@ export class TapipayWidgetComponent implements OnInit, OnDestroy {
187
187
 
188
188
  ### `loadTapipay(options?)`
189
189
 
190
- | Parámetro | Tipo | Requerido | Descripción |
191
- |-----------|------|-----------|-------------|
192
- | `environment` | `'production' \| 'homo'` | No | Entorno del SDK a cargar. Por defecto `'production'`. |
190
+ | Parámetro | Tipo | Requerido | Por defecto | Descripción |
191
+ |-----------|------|-----------|-------------|-------------|
192
+ | `environment` | `'production' \| 'homo'` | No | `'production'` | Entorno del SDK a cargar |
193
193
 
194
194
  ### `initialize(options)`
195
195
 
196
- | Parámetro | Tipo | Requerido | Descripción |
197
- |-----------|------|-----------|-------------|
198
- | `container` | `string \| HTMLElement` | Sí | Selector CSS o referencia DOM. Solo para `initialize()`. |
199
- | `organization` | `string` | Sí | Alias de la organización en TapiPay. |
200
- | `identifier` | `string` | Sí | Identificador del cliente (DNI, número de cuenta, etc.). |
201
- | `externalRequestId` | `string` | No | ID externo de una deuda específica a preseleccionar. |
202
- | `selectionStrategy` | `"oldestCreated"` | No | Selección automática: `"oldestCreated"` elige la deuda pendiente más antigua. |
196
+ | Parámetro | Tipo | Requerido | Por defecto | Descripción |
197
+ |-----------|------|-----------|-------------|-------------|
198
+ | `container` | `string \| HTMLElement` | Sí | — | Selector CSS o referencia DOM |
199
+ | `organization` | `string` | Sí | — | Alias de la organización en TapiPay |
200
+ | `identifier` | `string` | Sí | — | Identificador del cliente (DNI, número de cuenta, etc.) |
201
+ | `externalRequestId` | `string` | No | — | ID externo de una deuda específica a preseleccionar. Tiene precedencia sobre `selectionStrategy` |
202
+ | `selectionStrategy` | `"oldestCreated"` | No | más reciente | Estrategia de selección automática de deuda pendiente. `"oldestCreated"`: la más antigua. Por defecto (omitido): la más reciente |
203
203
 
204
204
  ---
205
205
 
package/package.json CHANGED
@@ -1,44 +1,43 @@
1
1
  {
2
- "name": "@npmtapi/embed",
3
- "version": "1.0.0",
4
- "description": "TapiPay Embed SDK — carga y controla el widget de pago embebido",
5
- "type": "module",
6
- "exports": {
7
- ".": {
8
- "types": "./dist/index.d.ts",
9
- "import": "./dist/index.js",
10
- "require": "./dist/index.cjs"
11
- },
12
- "./react": {
13
- "types": "./dist/react.d.ts",
14
- "import": "./dist/react.js",
15
- "require": "./dist/react.cjs"
16
- }
17
- },
18
- "files": [
19
- "dist"
20
- ],
21
- "scripts": {
22
- "build": "tsup",
23
- "dev": "tsup --watch",
24
- "prepublishOnly": "pnpm build"
25
- },
26
- "author": "tapipay",
27
- "publishConfig": {
28
- "access": "public"
29
- },
30
- "peerDependencies": {
31
- "react": ">=18"
32
- },
33
- "peerDependenciesMeta": {
34
- "react": {
35
- "optional": true
36
- }
37
- },
38
- "devDependencies": {
39
- "@types/react": "^18.0.0",
40
- "react": "^18.0.0",
41
- "tsup": "^8.0.0",
42
- "typescript": "^5.0.0"
43
- }
44
- }
2
+ "name": "@npmtapi/embed",
3
+ "version": "1.0.1",
4
+ "description": "TapiPay Embed SDK — carga y controla el widget de pago embebido",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js",
10
+ "require": "./dist/index.cjs"
11
+ },
12
+ "./react": {
13
+ "types": "./dist/react.d.ts",
14
+ "import": "./dist/react.js",
15
+ "require": "./dist/react.cjs"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "author": "tapipay",
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "peerDependencies": {
26
+ "react": ">=18"
27
+ },
28
+ "peerDependenciesMeta": {
29
+ "react": {
30
+ "optional": true
31
+ }
32
+ },
33
+ "devDependencies": {
34
+ "@types/react": "^18.0.0",
35
+ "react": "^18.0.0",
36
+ "tsup": "^8.0.0",
37
+ "typescript": "^5.0.0"
38
+ },
39
+ "scripts": {
40
+ "build": "tsup",
41
+ "dev": "tsup --watch"
42
+ }
43
+ }