@primer-io/primer-js 0.3.2 → 0.3.3
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 +111 -0
- package/dist/custom-elements.json +14 -5
- package/dist/primer-loader.d.ts +5 -4
- package/dist/primer-loader.js +2 -2
- package/dist/primer-react-wrappers.js +2 -2
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/src/controllers/reactive-state/README.md +210 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# @primer-io/primer-js
|
|
2
|
+
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e5ade7: Fix create vault initialization flow.
|
|
8
|
+
|
|
9
|
+
## 0.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 62180f4: Primer Container
|
|
14
|
+
|
|
15
|
+
## 0.3.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 289b589: Add DLOCAL_PIX, PAY_NL_RIVERTY and ALMA to Payment Types
|
|
20
|
+
|
|
21
|
+
## 0.3.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- 41aa5c5: PrimerJS: New Vault, Better TS, Better Esbuild, BugFixes, Disabled LegacySDK: GP disabled fix
|
|
26
|
+
|
|
27
|
+
## 0.2.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- b246f26: Expose Primer.js to merchants and add new events.
|
|
32
|
+
|
|
33
|
+
## 0.1.9
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 6681c4a: Build and bundle fixes
|
|
38
|
+
|
|
39
|
+
## 0.1.8
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- 8f7c891: Icons and Icons
|
|
44
|
+
|
|
45
|
+
## 0.1.7
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 3e732ff: Icon update
|
|
50
|
+
|
|
51
|
+
## 0.1.6
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- d7a71b2: Form Fixes, New Lit Events, TS fix for Legacy SDK
|
|
56
|
+
|
|
57
|
+
## 0.1.5
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 1fc25c3: klarna fixes - allow rendering one category
|
|
62
|
+
- c3a93b6: Redirect UI Fixes, Improve Vault UI, custom styles in JSON fix
|
|
63
|
+
|
|
64
|
+
## 0.1.4
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- 8a68850: add stripe ach components
|
|
69
|
+
|
|
70
|
+
## 0.1.3
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- 14cc455: add demo for lit components
|
|
75
|
+
- e9ef698: improve card form validation
|
|
76
|
+
|
|
77
|
+
## 0.1.2
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- 2b273d5: bundle everything in npm
|
|
82
|
+
|
|
83
|
+
## 0.1.1
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- 9f58fc0: Safari Styling Fixes
|
|
88
|
+
|
|
89
|
+
## 0.1.0
|
|
90
|
+
|
|
91
|
+
### Minor Changes
|
|
92
|
+
|
|
93
|
+
- 004c0d8: Primer.js: Vaulting, Klarna, Card Form, SDK-Web - new types, new headless class, vaulting fixes, new utils
|
|
94
|
+
- a04f14f: fix: add onPaymentMethodAction callback to Klarna and add Klarna payment method to composable checkout
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- d9e7144: fix iframe touched validation and use input meta in components
|
|
99
|
+
|
|
100
|
+
## 0.0.3
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- 317f01c: fix primer-loader.d.ts output
|
|
105
|
+
- 98073ad: css fixes for native
|
|
106
|
+
|
|
107
|
+
## 0.0.2
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- 2f5f4d7: release primer-js beta
|
|
@@ -12759,6 +12759,15 @@
|
|
|
12759
12759
|
"privacy": "private",
|
|
12760
12760
|
"default": "null"
|
|
12761
12761
|
},
|
|
12762
|
+
{
|
|
12763
|
+
"kind": "field",
|
|
12764
|
+
"name": "createVaultManagerFn",
|
|
12765
|
+
"type": {
|
|
12766
|
+
"text": "| PrimerHeadlessCheckout['createVaultManager']\n | null"
|
|
12767
|
+
},
|
|
12768
|
+
"privacy": "private",
|
|
12769
|
+
"default": "null"
|
|
12770
|
+
},
|
|
12762
12771
|
{
|
|
12763
12772
|
"kind": "method",
|
|
12764
12773
|
"name": "initializeVaultManager",
|
|
@@ -12769,11 +12778,11 @@
|
|
|
12769
12778
|
},
|
|
12770
12779
|
"parameters": [
|
|
12771
12780
|
{
|
|
12772
|
-
"name": "
|
|
12781
|
+
"name": "createVaultManagerFn",
|
|
12773
12782
|
"type": {
|
|
12774
|
-
"text": "
|
|
12783
|
+
"text": "PrimerHeadlessCheckout['createVaultManager'] | null"
|
|
12775
12784
|
},
|
|
12776
|
-
"description": "
|
|
12785
|
+
"description": "Bound function to create vault manager when needed"
|
|
12777
12786
|
},
|
|
12778
12787
|
{
|
|
12779
12788
|
"name": "options",
|
|
@@ -12781,10 +12790,10 @@
|
|
|
12781
12790
|
"type": {
|
|
12782
12791
|
"text": "VaultManagerInitOptions"
|
|
12783
12792
|
},
|
|
12784
|
-
"description": "
|
|
12793
|
+
"description": "Vault configuration options"
|
|
12785
12794
|
}
|
|
12786
12795
|
],
|
|
12787
|
-
"description": "Initialize the vault manager with
|
|
12796
|
+
"description": "Initialize the vault manager with a factory function and options"
|
|
12788
12797
|
},
|
|
12789
12798
|
{
|
|
12790
12799
|
"kind": "field",
|
package/dist/primer-loader.d.ts
CHANGED
|
@@ -1221,13 +1221,14 @@ declare class VaultManagerController extends CompositeStateController<PrimerChec
|
|
|
1221
1221
|
private itemController;
|
|
1222
1222
|
private _vaultManager;
|
|
1223
1223
|
private _options;
|
|
1224
|
+
private createVaultManagerFn;
|
|
1224
1225
|
constructor(host: PrimerCheckoutType);
|
|
1225
1226
|
/**
|
|
1226
|
-
* Initialize the vault manager with
|
|
1227
|
-
* @param
|
|
1228
|
-
* @param options -
|
|
1227
|
+
* Initialize the vault manager with a factory function and options
|
|
1228
|
+
* @param createVaultManagerFn - Bound function to create vault manager when needed
|
|
1229
|
+
* @param options - Vault configuration options
|
|
1229
1230
|
*/
|
|
1230
|
-
initializeVaultManager(
|
|
1231
|
+
initializeVaultManager(createVaultManagerFn: PrimerHeadlessCheckout["createVaultManager"] | null, options?: VaultManagerInitOptions): void;
|
|
1231
1232
|
get vaultManager(): HeadlessVaultManager | null;
|
|
1232
1233
|
set vaultManager(vaultManager: HeadlessVaultManager | null);
|
|
1233
1234
|
get options(): VaultManagerInitOptions | null;
|