@primer-io/primer-js 1.8.0 → 1.9.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.
- package/CHANGELOG.md +27 -0
- package/dist/chunks/ar.E4O36EC6.js +1 -0
- package/dist/chunks/bg.PK6JKEHS.js +1 -0
- package/dist/chunks/ca.OTUBI37X.js +1 -0
- package/dist/chunks/chunk.MBXVVM2T.js +2 -0
- package/dist/chunks/cs.THPV6MYZ.js +1 -0
- package/dist/chunks/da.T6YM33IA.js +1 -0
- package/dist/chunks/de.5OGX2NED.js +1 -0
- package/dist/chunks/el.YRAV7ELP.js +1 -0
- package/dist/chunks/en-GB.6IEVRFTK.js +1 -0
- package/dist/chunks/en.OBBZZ45H.js +1 -0
- package/dist/chunks/es-AR.KUNVD6SX.js +1 -0
- package/dist/chunks/es-MX.YIGVIDM6.js +1 -0
- package/dist/chunks/es.CJZT56YE.js +1 -0
- package/dist/chunks/et-EE.HWMKJWNX.js +1 -0
- package/dist/chunks/fi-FI.7NJH7P3A.js +1 -0
- package/dist/chunks/fr.KRF4Y57O.js +1 -0
- package/dist/chunks/he.XI3WARES.js +1 -0
- package/dist/chunks/hr.XYKILVHU.js +1 -0
- package/dist/chunks/hu.UDGJJAFE.js +1 -0
- package/dist/chunks/id.7ZN2WKC2.js +1 -0
- package/dist/chunks/it.VOYA3KT5.js +1 -0
- package/dist/chunks/ja.POQ2E2L3.js +1 -0
- package/dist/chunks/ko.MSGGDR35.js +1 -0
- package/dist/chunks/lt-LT.QPDWC7EL.js +1 -0
- package/dist/chunks/lt.PGXRTZVX.js +1 -0
- package/dist/chunks/lv-LV.MPIETXH7.js +1 -0
- package/dist/chunks/lv.K76XV5XK.js +1 -0
- package/dist/chunks/ms.TLDQ5MRG.js +1 -0
- package/dist/chunks/nb.5C4GCSHD.js +1 -0
- package/dist/chunks/nl.MPB5NUZQ.js +1 -0
- package/dist/chunks/nl_NL.MEGWQA4L.js +1 -0
- package/dist/chunks/pl.G5NUFTFJ.js +3 -0
- package/dist/chunks/pt-BR.YUAN3GE5.js +1 -0
- package/dist/chunks/pt.U7KK23LM.js +1 -0
- package/dist/chunks/ro.V5C7DKLQ.js +1 -0
- package/dist/chunks/ru.L7XTNV7J.js +1 -0
- package/dist/chunks/sk.B5NKJNWF.js +1 -0
- package/dist/chunks/sl.PO5G6BSL.js +1 -0
- package/dist/chunks/sr-RS.5T2KJ2PK.js +1 -0
- package/dist/chunks/sv.XXKSWUSH.js +1 -0
- package/dist/chunks/th.7HQVVBDC.js +1 -0
- package/dist/chunks/tr.XK3UIRBK.js +1 -0
- package/dist/chunks/uk-UA.PJMQMEKE.js +1 -0
- package/dist/chunks/vi.KQNTEEX5.js +1 -0
- package/dist/chunks/zh-CN.5YAD67HK.js +1 -0
- package/dist/chunks/zh-HK.I5LZOTED.js +1 -0
- package/dist/chunks/zh-TW.UWEXAFT4.js +1 -0
- package/dist/custom-elements.json +185 -188
- package/dist/primer-loader.d.ts +19 -8
- package/dist/primer-loader.js +14 -14
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
- package/dist/chunks/ar.BIHRX5RF.js +0 -1
- package/dist/chunks/bg.FGU6YCAF.js +0 -1
- package/dist/chunks/ca.IKG75KNP.js +0 -1
- package/dist/chunks/chunk.B7X364D6.js +0 -2
- package/dist/chunks/cs.MILBDWY6.js +0 -1
- package/dist/chunks/da.JTASZFYV.js +0 -1
- package/dist/chunks/de.DXQD6OEP.js +0 -1
- package/dist/chunks/el.EFHFPB3R.js +0 -1
- package/dist/chunks/en-GB.SXPN4WN6.js +0 -1
- package/dist/chunks/en.NNAZENAS.js +0 -1
- package/dist/chunks/es-AR.PGD5Q57R.js +0 -1
- package/dist/chunks/es-MX.PTII2RTJ.js +0 -1
- package/dist/chunks/es.AKW6WGRC.js +0 -1
- package/dist/chunks/et-EE.LHI2XOXI.js +0 -1
- package/dist/chunks/fi-FI.IPGRD7WF.js +0 -1
- package/dist/chunks/fr.PDUWBPKF.js +0 -1
- package/dist/chunks/he.5SDFV353.js +0 -1
- package/dist/chunks/hr.LXFZTJMG.js +0 -1
- package/dist/chunks/hu.VXISLOF3.js +0 -1
- package/dist/chunks/id.UCNPGRJA.js +0 -1
- package/dist/chunks/it.F7GBFWC2.js +0 -1
- package/dist/chunks/ja.BHTV4F5V.js +0 -1
- package/dist/chunks/ko.L4TUG67I.js +0 -1
- package/dist/chunks/lt-LT.ULLOOI4H.js +0 -1
- package/dist/chunks/lt.WAZLYIAI.js +0 -1
- package/dist/chunks/lv-LV.TEXPN3ZR.js +0 -1
- package/dist/chunks/lv.TQJGMNOY.js +0 -1
- package/dist/chunks/ms.Q2C5ZFHD.js +0 -1
- package/dist/chunks/nb.KCZ6D34T.js +0 -1
- package/dist/chunks/nl.2CTHY5J7.js +0 -1
- package/dist/chunks/nl_NL.SYW24NKO.js +0 -1
- package/dist/chunks/pl.AI5CECVT.js +0 -3
- package/dist/chunks/pt-BR.OWKVFNRL.js +0 -1
- package/dist/chunks/pt.LVBHJFXR.js +0 -1
- package/dist/chunks/ro.SJYNCSI5.js +0 -1
- package/dist/chunks/ru.3HE2B7ZT.js +0 -1
- package/dist/chunks/sk.YAEVPIZD.js +0 -1
- package/dist/chunks/sl.BA3GBVRO.js +0 -1
- package/dist/chunks/sr-RS.3C6VVYBB.js +0 -1
- package/dist/chunks/sv.2VDFAELX.js +0 -1
- package/dist/chunks/th.J7ZUQIZS.js +0 -1
- package/dist/chunks/tr.E2CHOIPA.js +0 -1
- package/dist/chunks/uk-UA.QYJJIGTW.js +0 -1
- package/dist/chunks/vi.YGBNA3NJ.js +0 -1
- package/dist/chunks/zh-CN.SRN7TXMD.js +0 -1
- package/dist/chunks/zh-HK.3JAKYZ5N.js +0 -1
- package/dist/chunks/zh-TW.WTNQLAHV.js +0 -1
package/dist/primer-loader.d.ts
CHANGED
|
@@ -661,8 +661,6 @@ export interface TelemetryClient {
|
|
|
661
661
|
sdkVersion: string;
|
|
662
662
|
clientSessionToken?: string;
|
|
663
663
|
userAgent: string;
|
|
664
|
-
/** Timestamp (ms) when the first backend call (/configuration) started */
|
|
665
|
-
sdkInitStartTime?: number;
|
|
666
664
|
};
|
|
667
665
|
readonly analytics: {
|
|
668
666
|
sendEvent(event: {
|
|
@@ -675,8 +673,13 @@ export interface TelemetryClient {
|
|
|
675
673
|
metadata?: Record<string, unknown>;
|
|
676
674
|
status?: "error" | "warn" | "info";
|
|
677
675
|
}): void;
|
|
678
|
-
checkoutInitialized(initDurationMs?: number): void;
|
|
679
676
|
};
|
|
677
|
+
/**
|
|
678
|
+
* Merge checkout-flow context into every subsequent remote log's metadata
|
|
679
|
+
* (e.g. `selected_payment_method`, `payment_id`). Setting a key to `undefined`
|
|
680
|
+
* removes it.
|
|
681
|
+
*/
|
|
682
|
+
setLogContext(patch: Record<string, unknown>): void;
|
|
680
683
|
/**
|
|
681
684
|
* Console error + Datadog report for unexpected technical errors, exactly
|
|
682
685
|
* once per error. Do NOT use for expected operational errors (payment
|
|
@@ -686,8 +689,6 @@ export interface TelemetryClient {
|
|
|
686
689
|
reportSdkError(error: unknown, options?: {
|
|
687
690
|
message?: string;
|
|
688
691
|
}): void;
|
|
689
|
-
setSdkInitStartTime(timestamp: number): void;
|
|
690
|
-
getSdkInitStartTime(): number | undefined;
|
|
691
692
|
dispose(): void;
|
|
692
693
|
}
|
|
693
694
|
declare enum HeadlessManagerType {
|
|
@@ -1480,6 +1481,16 @@ export interface CreateHeadlessOptions {
|
|
|
1480
1481
|
*/
|
|
1481
1482
|
resumePaymentOnPopupClosure?: boolean;
|
|
1482
1483
|
};
|
|
1484
|
+
/**
|
|
1485
|
+
* Vault options
|
|
1486
|
+
*/
|
|
1487
|
+
vault?: {
|
|
1488
|
+
/**
|
|
1489
|
+
* Restricts the payment method types returned.
|
|
1490
|
+
* Vaulted payment methods of any other type are filtered out.
|
|
1491
|
+
*/
|
|
1492
|
+
enabledPaymentMethods?: PaymentMethodType[];
|
|
1493
|
+
};
|
|
1483
1494
|
/**
|
|
1484
1495
|
* Fires once at SDK init with the initial set of available payment methods.
|
|
1485
1496
|
*/
|
|
@@ -1720,7 +1731,7 @@ export interface PrimerCheckoutOptions extends Omit<CreateHeadlessOptions, "dial
|
|
|
1720
1731
|
* ```
|
|
1721
1732
|
*/
|
|
1722
1733
|
headless?: boolean;
|
|
1723
|
-
};
|
|
1734
|
+
} & CreateHeadlessOptions["vault"];
|
|
1724
1735
|
/**
|
|
1725
1736
|
* Globally disables all payment method interactions in drop-in mode.
|
|
1726
1737
|
*
|
|
@@ -4061,6 +4072,7 @@ declare class VaultPaymentMethodItemComponent extends LitElement {
|
|
|
4061
4072
|
* Dispatch delete event
|
|
4062
4073
|
*/
|
|
4063
4074
|
private handleDeleteClick;
|
|
4075
|
+
private handleCvvRowClick;
|
|
4064
4076
|
/**
|
|
4065
4077
|
* Render method
|
|
4066
4078
|
*/
|
|
@@ -4240,8 +4252,6 @@ declare class VaultCvvInputComponent extends LitElement {
|
|
|
4240
4252
|
primerContext?: ContextType;
|
|
4241
4253
|
paymentMethod: CardVaultedPaymentMethodSummary | null;
|
|
4242
4254
|
private cvvError;
|
|
4243
|
-
private cvvInputIsDirty;
|
|
4244
|
-
private cvvInputIsBlurred;
|
|
4245
4255
|
private cvvInput;
|
|
4246
4256
|
private isFocused;
|
|
4247
4257
|
/**
|
|
@@ -4398,6 +4408,7 @@ declare class CardFormComponent extends LitElement {
|
|
|
4398
4408
|
* Task to set up the card form with hosted inputs
|
|
4399
4409
|
*/
|
|
4400
4410
|
private readonly setupCardFormTask;
|
|
4411
|
+
private clearStaleVaultSelection;
|
|
4401
4412
|
/**
|
|
4402
4413
|
* Sends PAYMENT_METHOD_SELECTION analytics event when user first interacts with card form
|
|
4403
4414
|
* @private
|