@primer-io/primer-js 0.3.1 → 0.3.2
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/custom-elements.json +349 -155
- package/dist/jsx/index.d.ts +20 -0
- package/dist/primer-loader.d.ts +16 -0
- package/dist/primer-loader.js +7 -7
- package/dist/primer-react-wrappers.js +6 -6
- package/dist/vscode.html-custom-data.json +18 -0
- package/dist/web-types.json +36 -1
- package/package.json +1 -1
package/dist/jsx/index.d.ts
CHANGED
|
@@ -331,6 +331,19 @@ export type PaymentMethodComponentProps = {
|
|
|
331
331
|
paymentMethods?: PaymentMethodsContextType;
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
+
export type PaymentMethodContainerComponentProps = {
|
|
335
|
+
/** */
|
|
336
|
+
include?: string | undefined;
|
|
337
|
+
/** */
|
|
338
|
+
exclude?: string | undefined;
|
|
339
|
+
/** */
|
|
340
|
+
disabled?: boolean;
|
|
341
|
+
/** */
|
|
342
|
+
paymentMethods?: PaymentMethodsContextType;
|
|
343
|
+
/** */
|
|
344
|
+
clientOptions?: ClientOptionsContextType;
|
|
345
|
+
};
|
|
346
|
+
|
|
334
347
|
export type PrimerCheckoutCompleteComponentProps = {};
|
|
335
348
|
|
|
336
349
|
export type PrimerCheckoutErrorComponentProps = {
|
|
@@ -829,6 +842,13 @@ export type CustomElements = {
|
|
|
829
842
|
*/
|
|
830
843
|
"primer-payment-method": Partial<PaymentMethodComponentProps & BaseProps & BaseEvents>;
|
|
831
844
|
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* ---
|
|
848
|
+
*
|
|
849
|
+
*/
|
|
850
|
+
"primer-payment-method-container": Partial<PaymentMethodContainerComponentProps & BaseProps & BaseEvents>;
|
|
851
|
+
|
|
832
852
|
/**
|
|
833
853
|
*
|
|
834
854
|
* ---
|
package/dist/primer-loader.d.ts
CHANGED
|
@@ -2103,6 +2103,21 @@ declare global {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
export type ClientOptionsContextType = PrimerCheckoutOptions | null;
|
|
2106
|
+
declare class PaymentMethodContainerComponent extends LitElement {
|
|
2107
|
+
static styles: import("lit").CSSResult[];
|
|
2108
|
+
include?: string;
|
|
2109
|
+
exclude?: string;
|
|
2110
|
+
disabled: boolean;
|
|
2111
|
+
paymentMethods: PaymentMethodsContextType;
|
|
2112
|
+
clientOptions: ClientOptionsContextType;
|
|
2113
|
+
private getFilteredMethods;
|
|
2114
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
2115
|
+
}
|
|
2116
|
+
declare global {
|
|
2117
|
+
interface HTMLElementTagNameMap {
|
|
2118
|
+
"primer-payment-method-container": PaymentMethodContainerComponent;
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2106
2121
|
export type AchField = "firstName" | "lastName" | "emailAddress";
|
|
2107
2122
|
export interface AchFormState {
|
|
2108
2123
|
value: string;
|
|
@@ -3230,6 +3245,7 @@ export {
|
|
|
3230
3245
|
InputWrapperComponent as InputWrapper,
|
|
3231
3246
|
NativePaymentComponent as NativePayment,
|
|
3232
3247
|
PaymentMethodComponent as PaymentMethod,
|
|
3248
|
+
PaymentMethodContainerComponent as PaymentMethodContainer,
|
|
3233
3249
|
PortalComponent as Portal,
|
|
3234
3250
|
PrimerCheckoutCompleteComponent as PrimerCheckoutComplete,
|
|
3235
3251
|
PrimerCheckoutErrorComponent as PrimerCheckoutFailure,
|