@primer-io/primer-js 0.3.0 → 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 +353 -159
- package/dist/jsx/index.d.ts +20 -0
- package/dist/primer-loader.d.ts +22 -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
|
@@ -75,6 +75,7 @@ declare const PaymentInstrumentType: {
|
|
|
75
75
|
readonly PAY_NL_DIRECT_DEBIT: "PAY_NL_DIRECT_DEBIT";
|
|
76
76
|
readonly PAY_NL_GIROPAY: "PAY_NL_GIROPAY";
|
|
77
77
|
readonly PAY_NL_PAYCONIQ: "PAY_NL_PAYCONIQ";
|
|
78
|
+
readonly PAY_NL_RIVERTY: "PAY_NL_RIVERTY";
|
|
78
79
|
readonly HOOLAH: "HOOLAH";
|
|
79
80
|
readonly ADYEN_BLIK: "ADYEN_BLIK";
|
|
80
81
|
readonly ADYEN_VIPPS: "ADYEN_VIPPS";
|
|
@@ -94,6 +95,8 @@ declare const PaymentInstrumentType: {
|
|
|
94
95
|
readonly BUCKAROO_IDEAL: "BUCKAROO_IDEAL";
|
|
95
96
|
readonly ATOME: "ATOME";
|
|
96
97
|
readonly KLARNA_CUSTOMER_TOKEN: "KLARNA_CUSTOMER_TOKEN";
|
|
98
|
+
readonly DLOCAL_PIX: "DLOCAL_PIX";
|
|
99
|
+
readonly ALMA: "ALMA";
|
|
97
100
|
};
|
|
98
101
|
export type PaymentInstrumentType = (typeof PaymentInstrumentType)[keyof typeof PaymentInstrumentType];
|
|
99
102
|
declare const PaymentMethodType: {
|
|
@@ -149,6 +152,7 @@ declare const PaymentMethodType: {
|
|
|
149
152
|
readonly PAY_NL_DIRECT_DEBIT: "PAY_NL_DIRECT_DEBIT";
|
|
150
153
|
readonly PAY_NL_GIROPAY: "PAY_NL_GIROPAY";
|
|
151
154
|
readonly PAY_NL_PAYCONIQ: "PAY_NL_PAYCONIQ";
|
|
155
|
+
readonly PAY_NL_RIVERTY: "PAY_NL_RIVERTY";
|
|
152
156
|
readonly HOOLAH: "HOOLAH";
|
|
153
157
|
readonly ADYEN_BLIK: "ADYEN_BLIK";
|
|
154
158
|
readonly ADYEN_MOBILEPAY: "ADYEN_MOBILEPAY";
|
|
@@ -168,6 +172,8 @@ declare const PaymentMethodType: {
|
|
|
168
172
|
readonly BUCKAROO_BANCONTACT: "BUCKAROO_BANCONTACT";
|
|
169
173
|
readonly BUCKAROO_IDEAL: "BUCKAROO_IDEAL";
|
|
170
174
|
readonly ATOME: "ATOME";
|
|
175
|
+
readonly DLOCAL_PIX: "DLOCAL_PIX";
|
|
176
|
+
readonly ALMA: "ALMA";
|
|
171
177
|
};
|
|
172
178
|
export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType];
|
|
173
179
|
export type APIVersionOption = "legacy" | "2.4";
|
|
@@ -2097,6 +2103,21 @@ declare global {
|
|
|
2097
2103
|
}
|
|
2098
2104
|
}
|
|
2099
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
|
+
}
|
|
2100
2121
|
export type AchField = "firstName" | "lastName" | "emailAddress";
|
|
2101
2122
|
export interface AchFormState {
|
|
2102
2123
|
value: string;
|
|
@@ -3224,6 +3245,7 @@ export {
|
|
|
3224
3245
|
InputWrapperComponent as InputWrapper,
|
|
3225
3246
|
NativePaymentComponent as NativePayment,
|
|
3226
3247
|
PaymentMethodComponent as PaymentMethod,
|
|
3248
|
+
PaymentMethodContainerComponent as PaymentMethodContainer,
|
|
3227
3249
|
PortalComponent as Portal,
|
|
3228
3250
|
PrimerCheckoutCompleteComponent as PrimerCheckoutComplete,
|
|
3229
3251
|
PrimerCheckoutErrorComponent as PrimerCheckoutFailure,
|