@one-payments/web-components 1.2.2 → 1.3.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.
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +617 -517
- package/dist/index.js.map +1 -1
- package/dist/one-payment.d.ts +2 -0
- package/dist/one-payment.d.ts.map +1 -1
- package/dist/one-payment.js +102 -4
- package/dist/one-payment.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,4 +5,19 @@
|
|
|
5
5
|
export { OnePayment } from './one-payment.js';
|
|
6
6
|
export { OnePayment as OnePaymentElement } from './one-payment.js';
|
|
7
7
|
export type { SDKConfig, PaymentSucceededPayload, PaymentFailedPayload, StateChangedPayload, State, } from '@one-payments/core';
|
|
8
|
+
/**
|
|
9
|
+
* Define the <one-payment> custom element.
|
|
10
|
+
*
|
|
11
|
+
* Note: With Lit, the custom element is automatically registered when the module is imported.
|
|
12
|
+
* This function is provided for compatibility with frameworks that expect a defineCustomElements pattern.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import { defineCustomElements } from '@one-payments/web-components';
|
|
17
|
+
*
|
|
18
|
+
* // Optional - element is already registered on import
|
|
19
|
+
* defineCustomElements();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function defineCustomElements(): void;
|
|
8
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGnE,YAAY,EACV,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACN,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGnE,YAAY,EACV,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACN,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAW3C"}
|