kempo-commerce 0.1.1 → 0.1.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.
|
@@ -48,7 +48,12 @@ export default class AdminSettings extends ShadowComponent {
|
|
|
48
48
|
|
|
49
49
|
connectedCallback(){
|
|
50
50
|
super.connectedCallback();
|
|
51
|
-
|
|
51
|
+
const pane = this.closest('k-tab-content');
|
|
52
|
+
// Loads when its tab is first opened, so a tab nobody opens makes no requests.
|
|
53
|
+
if(!pane || pane.active) this.load();
|
|
54
|
+
else this.closest('k-tabs')?.addEventListener('tabfirstshown', ({ detail }) => {
|
|
55
|
+
if(detail.tab === pane.name) this.load();
|
|
56
|
+
});
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
load = async () => {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kempo-commerce",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Carts, orders and checkout for kempo: sells what kempo-products lists, takes payment through kempo-payments, and applies tax, store credit and credits when they are installed",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"author": "Dustin Poissant",
|
|
6
|
+
"author": "Dustin Poissant <dustinpoissant@gmail.com>",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "sdk.js",
|
|
9
9
|
"scripts": {
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"drizzle-orm": "^0.45.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"kempo": ">=4.
|
|
41
|
+
"kempo": ">=4.9.6",
|
|
42
42
|
"kempo-credits": ">=0.3.0",
|
|
43
43
|
"kempo-payments": ">=0.4.0",
|
|
44
44
|
"kempo-products": ">=0.3.0",
|
|
45
45
|
"kempo-server": ">=3.3.0",
|
|
46
46
|
"kempo-store-credit": ">=0.1.0",
|
|
47
47
|
"kempo-tax": ">=0.3.0",
|
|
48
|
-
"kempo-ui": ">=0.6.
|
|
48
|
+
"kempo-ui": ">=0.6.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"kempo-credits": {
|