@one-payments/web-components 1.2.1 → 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 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
@@ -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"}