@primer-io/primer-js 0.9.0 → 0.10.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/CHANGELOG.md +6 -0
- package/dist/custom-elements.json +913 -872
- package/dist/jsx/index.d.ts +8 -8
- package/dist/primer-loader.js +10 -10
- package/dist/vscode.html-custom-data.json +6 -7
- package/dist/web-types.json +9 -13
- package/package.json +1 -1
package/dist/jsx/index.d.ts
CHANGED
|
@@ -66,8 +66,6 @@ export type PrimerCheckoutComponentProps = {
|
|
|
66
66
|
/** */
|
|
67
67
|
"client-token"?: string;
|
|
68
68
|
/** */
|
|
69
|
-
options?: PrimerCheckoutOptions;
|
|
70
|
-
/** */
|
|
71
69
|
"loader-disabled"?: boolean;
|
|
72
70
|
/** Whether the component has completed initialization and loading
|
|
73
71
|
This is used to control the CSS-only loader visibility */
|
|
@@ -77,6 +75,8 @@ This is used to control the CSS-only loader visibility */
|
|
|
77
75
|
/** */
|
|
78
76
|
primerJS?: PrimerJS | undefined;
|
|
79
77
|
/** */
|
|
78
|
+
options?: PrimerCheckoutOptions;
|
|
79
|
+
/** */
|
|
80
80
|
defaultSlot?: HTMLSlotElement;
|
|
81
81
|
/** */
|
|
82
82
|
locale?: LocaleCode | undefined;
|
|
@@ -657,6 +657,8 @@ export type VaultDeleteConfirmationComponentProps = {
|
|
|
657
657
|
vaultManager?: VaultManagerContextType;
|
|
658
658
|
};
|
|
659
659
|
|
|
660
|
+
export type VaultEmptyStateComponentProps = {};
|
|
661
|
+
|
|
660
662
|
export type VaultErrorMessageComponentProps = {
|
|
661
663
|
/** The error message to display */
|
|
662
664
|
errorMessage?: string;
|
|
@@ -674,8 +676,6 @@ export type VaultErrorMessageComponentProps = {
|
|
|
674
676
|
) => void;
|
|
675
677
|
};
|
|
676
678
|
|
|
677
|
-
export type VaultEmptyStateComponentProps = {};
|
|
678
|
-
|
|
679
679
|
export type VaultManagerHeaderComponentProps = {
|
|
680
680
|
/** Whether we're in edit mode */
|
|
681
681
|
isEditMode?: boolean;
|
|
@@ -1236,18 +1236,18 @@ export type CustomElements = {
|
|
|
1236
1236
|
"primer-vault-delete-confirmation": Partial<VaultDeleteConfirmationComponentProps & BaseProps & BaseEvents>;
|
|
1237
1237
|
|
|
1238
1238
|
/**
|
|
1239
|
-
*
|
|
1239
|
+
* VaultEmptyStateComponent - displays when no payment methods are available
|
|
1240
1240
|
* ---
|
|
1241
1241
|
*
|
|
1242
1242
|
*/
|
|
1243
|
-
"primer-vault-
|
|
1243
|
+
"primer-vault-empty-state": Partial<VaultEmptyStateComponentProps & BaseProps & BaseEvents>;
|
|
1244
1244
|
|
|
1245
1245
|
/**
|
|
1246
|
-
*
|
|
1246
|
+
* VaultErrorMessageComponent - displays error messages with improved visuals
|
|
1247
1247
|
* ---
|
|
1248
1248
|
*
|
|
1249
1249
|
*/
|
|
1250
|
-
"primer-vault-
|
|
1250
|
+
"primer-vault-error-message": Partial<VaultErrorMessageComponentProps & BaseProps & BaseEvents>;
|
|
1251
1251
|
|
|
1252
1252
|
/**
|
|
1253
1253
|
* VaultManagerHeaderComponent - displays the header for the vault manager
|