@hartl-services/medusa-free-shipping 0.3.0 → 0.4.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.
@@ -6,11 +6,16 @@ exports.freeShippingPluginFeatures = (0, medusa_base_1.definePluginFeatures)({
6
6
  plugin_key: "free_shipping",
7
7
  label: "Versandkostenfrei",
8
8
  description: "Schaltet die beiden automatischen Versandkosten-Aktionen aktiv bzw. inaktiv. Die Schwellenwerte bleiben auch ausgeschaltet bearbeitbar; der Aktionskontext im Warenkorb läuft weiter.",
9
+ summary: "Die beiden automatischen Versandkosten-Aktionen mit ihren Schwellenwerten.",
10
+ icon: "TruckFast",
11
+ disable_hint: "Aus: beide Aktionen sind inaktiv. Die Schwellenwerte bleiben bearbeitbar.",
12
+ disable_confirm: "Die beiden automatischen Versandkosten-Aktionen werden dann inaktiv. Die Schwellenwerte bleiben auch ausgeschaltet bearbeitbar, und der Aktionskontext im Warenkorb läuft weiter.",
9
13
  features: [],
10
14
  settings: [
11
15
  {
12
16
  key: "default_threshold",
13
17
  label: "Kostenlose Lieferung ab (€)",
18
+ width: "half",
14
19
  type: "number",
15
20
  min: 0,
16
21
  default: 50,
@@ -18,6 +23,7 @@ exports.freeShippingPluginFeatures = (0, medusa_base_1.definePluginFeatures)({
18
23
  {
19
24
  key: "affiliate_threshold",
20
25
  label: "Für Affiliates ab (€)",
26
+ width: "half",
21
27
  type: "number",
22
28
  min: 0,
23
29
  default: 100,
@@ -30,10 +36,10 @@ exports.freeShippingPluginFeatures = (0, medusa_base_1.definePluginFeatures)({
30
36
  },
31
37
  {
32
38
  key: "affiliate_applies_to_referred_customers",
33
- label: "Gilt, wenn der Warenkorb über einen Affiliate-Link/-Code zugeordnet wurde",
39
+ label: "Gilt, wenn der Warenkorb über einen Affiliate-Link oder -Code zugeordnet wurde",
34
40
  type: "boolean",
35
41
  default: false,
36
42
  },
37
43
  ],
38
44
  });
39
- //# sourceMappingURL=data:application/json;base64,eyJ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NBQVM7WUFDZixPQUFPLEVBQUUsS0FBSztTQUNmO0tBQ0Y7Q0FDRixDQUFDLENBQUEifQ==
package/README.md CHANGED
@@ -45,7 +45,7 @@ ever saving the page. The plugin has no medusa-config options.
45
45
  | `default_threshold` | number ≥ 0 | 50 | Kostenlose Lieferung ab (€) | `item_total` threshold of `AUTO-FREE-SHIPPING-STANDARD` |
46
46
  | `affiliate_threshold` | number ≥ 0 | 100 | Für Affiliates ab (€) | `item_total` threshold of `AUTO-FREE-SHIPPING-AFFILIATE` |
47
47
  | `affiliate_applies_to_account_holders` | boolean | on | Gilt, wenn der Kunde selbst Affiliate ist | the cart's customer is an affiliate → affiliate threshold |
48
- | `affiliate_applies_to_referred_customers` | boolean | off | Gilt, wenn der Warenkorb über einen Affiliate-Link/-Code zugeordnet wurde | the cart is assigned to an affiliate referral → affiliate threshold |
48
+ | `affiliate_applies_to_referred_customers` | boolean | off | Gilt, wenn der Warenkorb über einen Affiliate-Link oder -Code zugeordnet wurde | the cart is assigned to an affiliate referral → affiliate threshold |
49
49
 
50
50
  The base validates the values (a negative threshold is rejected with 400).
51
51
  Server code reads them with `resolveFreeShippingSettings(container)`
@@ -81,7 +81,7 @@ The plugin emits no events.
81
81
  pnpm add @hartl-services/medusa-free-shipping @hartl-services/medusa-base @hartl-services/medusa-food-supplements-contracts
82
82
  ```
83
83
 
84
- `@hartl-services/medusa-base` (>= 1.0.0) is a required peer: it stores the
84
+ `@hartl-services/medusa-base` (>= 2.7.0) is a required peer: it stores the
85
85
  switch and the settings, renders the Admin page and emits the change events,
86
86
  and must be registered as a plugin as well.
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hartl-services/medusa-free-shipping",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Configurable free-shipping threshold plugin for Medusa.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -32,10 +32,10 @@
32
32
  "peerDependencies": {
33
33
  "@medusajs/framework": "^2.19.0",
34
34
  "@medusajs/medusa": "^2.19.0",
35
- "@hartl-services/medusa-base": "^2.6.0"
35
+ "@hartl-services/medusa-base": "^2.7.0"
36
36
  },
37
37
  "dependencies": {
38
- "@hartl-services/medusa-food-supplements-contracts": "^0.26.0"
38
+ "@hartl-services/medusa-food-supplements-contracts": "^0.27.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@medusajs/cli": "2.19.0",
@@ -48,7 +48,7 @@
48
48
  "jest": "^29.7.0",
49
49
  "typescript": "^5.6.2",
50
50
  "yalc": "^1.0.0-pre.53",
51
- "@hartl-services/medusa-base": "2.6.0"
51
+ "@hartl-services/medusa-base": "2.7.0"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=20"