@huloglobal/vendure-plugin-geo-block 0.2.1 → 0.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huloglobal/vendure-plugin-geo-block",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Geo-restrict your Vendure storefront by country, UK region or curated region presets (EU, EEA, British Isles, Europe, North America, Oceania, Worldwide-with-denylist). Per-channel settings exposed as Channel custom fields plus a dedicated admin page with a live preview of the resolved allow-list.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Wayne Garrison <wayne@garrison.me.uk>",
|
|
@@ -11,13 +11,19 @@
|
|
|
11
11
|
},
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
|
-
"files": [
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"ui",
|
|
17
|
+
"README.md",
|
|
18
|
+
"CHANGELOG.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
15
21
|
"scripts": {
|
|
16
22
|
"build": "tsc -p tsconfig.json",
|
|
17
23
|
"prepublishOnly": "yarn build"
|
|
18
24
|
},
|
|
19
25
|
"dependencies": {
|
|
20
|
-
"@huloglobal/vendure-licence-sdk": "^0.
|
|
26
|
+
"@huloglobal/vendure-licence-sdk": "^0.2.0"
|
|
21
27
|
},
|
|
22
28
|
"peerDependencies": {
|
|
23
29
|
"@vendure/core": ">=3.0.0",
|
|
@@ -25,7 +31,7 @@
|
|
|
25
31
|
"typeorm": ">=0.3.0"
|
|
26
32
|
},
|
|
27
33
|
"devDependencies": {
|
|
28
|
-
"@huloglobal/vendure-licence-sdk": "^0.
|
|
34
|
+
"@huloglobal/vendure-licence-sdk": "^0.2.0",
|
|
29
35
|
"@nestjs/common": "^10.0.0",
|
|
30
36
|
"@vendure/core": "^3.6.0",
|
|
31
37
|
"typeorm": "^0.3.0",
|
|
@@ -38,4 +44,4 @@
|
|
|
38
44
|
"geo-restriction",
|
|
39
45
|
"geoip"
|
|
40
46
|
]
|
|
41
|
-
}
|
|
47
|
+
}
|
|
@@ -545,6 +545,35 @@ interface PresetMeta { key: string; label: string; kind: string; description: st
|
|
|
545
545
|
.update-banner strong { font-weight: 700; }
|
|
546
546
|
.update-banner .major-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 8px; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
|
|
547
547
|
.update-banner .actions { display: flex; gap: 8px; align-items: center; }
|
|
548
|
+
|
|
549
|
+
/* Mobile-friendly layout under 768px */
|
|
550
|
+
@media (max-width: 767px) {
|
|
551
|
+
.chan-row { flex-direction: column; align-items: stretch; gap: 10px; }
|
|
552
|
+
.chan-row .form-select { width: 100%; min-width: 0; }
|
|
553
|
+
.tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; white-space: nowrap; }
|
|
554
|
+
.tabs::-webkit-scrollbar { height: 4px; }
|
|
555
|
+
.tab { flex-shrink: 0; padding: 10px 14px; min-height: 44px; }
|
|
556
|
+
.mode-grid { grid-template-columns: 1fr; }
|
|
557
|
+
.preset-grid { grid-template-columns: 1fr; }
|
|
558
|
+
.picker { flex-direction: column; align-items: stretch; }
|
|
559
|
+
.picker .form-input { width: 100%; min-width: 0; }
|
|
560
|
+
.picker .btn { width: 100%; }
|
|
561
|
+
.sim-grid { grid-template-columns: 1fr; max-width: 100%; }
|
|
562
|
+
.stats-grid { grid-template-columns: 1fr 1fr; }
|
|
563
|
+
.filter-input { max-width: 100%; }
|
|
564
|
+
textarea.form-input { max-width: 100%; }
|
|
565
|
+
.save-bar { flex-direction: column; align-items: stretch; gap: 8px; }
|
|
566
|
+
.save-bar button { width: 100%; min-height: 44px; }
|
|
567
|
+
table { font-size: 12px; }
|
|
568
|
+
.update-banner { flex-direction: column; align-items: flex-start; }
|
|
569
|
+
.update-banner .actions { width: 100%; justify-content: flex-end; }
|
|
570
|
+
.form-row label { font-size: 14px; }
|
|
571
|
+
}
|
|
572
|
+
@media (max-width: 360px) {
|
|
573
|
+
.stats-grid { grid-template-columns: 1fr; }
|
|
574
|
+
.uk-row { flex-direction: column; }
|
|
575
|
+
.uk-pill { width: 100%; justify-content: center; }
|
|
576
|
+
}
|
|
548
577
|
`],
|
|
549
578
|
})
|
|
550
579
|
export class GeoBlockComponent implements OnInit {
|