@fleetbase/registry-bridge-engine 0.0.9 → 0.0.10
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/addon/components/extension-form.hbs +2 -3
- package/addon/components/extension-monetize-form.hbs +2 -2
- package/addon/components/modals/extension-details.hbs +1 -1
- package/composer.json +2 -2
- package/extension.json +1 -1
- package/package.json +2 -2
- package/server/src/Models/RegistryExtension.php +7 -3
|
@@ -106,11 +106,10 @@
|
|
|
106
106
|
@name={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text"}}
|
|
107
107
|
@helpText={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text-help-text"}}
|
|
108
108
|
>
|
|
109
|
-
<
|
|
109
|
+
<TipTapEditor
|
|
110
110
|
@value={{@extension.promotional_text}}
|
|
111
|
+
@onChange={{fn (mut @extension.promotional_text)}}
|
|
111
112
|
placeholder={{t "registry-bridge.developers.extensions.extension-form.extension-promotional-text"}}
|
|
112
|
-
class="form-input w-full"
|
|
113
|
-
rows="3"
|
|
114
113
|
/>
|
|
115
114
|
</InputGroup>
|
|
116
115
|
<InputGroup
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
/>
|
|
9
9
|
</InputGroup>
|
|
10
10
|
{{#if @extension.payment_required}}
|
|
11
|
-
<InputGroup>
|
|
11
|
+
{{!-- <InputGroup>
|
|
12
12
|
<Toggle
|
|
13
13
|
@isToggled={{@extension.subscription_required}}
|
|
14
14
|
@onToggle={{fn (mut @extension.subscription_required)}}
|
|
15
15
|
@label={{t "registry-bridge.developers.extensions.extension-form.extension-subscription-required"}}
|
|
16
16
|
@helpText={{t "registry-bridge.developers.extensions.extension-form.extension-subscription-required-help-text"}}
|
|
17
17
|
/>
|
|
18
|
-
</InputGroup>
|
|
18
|
+
</InputGroup> --}}
|
|
19
19
|
{{#if @extension.subscription_required}}
|
|
20
20
|
<InputGroup
|
|
21
21
|
@name={{t "registry-bridge.developers.extensions.extension-form.extension-subscription-billing-period"}}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<h3 class="dark:text-white font-semibold mb-1">Overview</h3>
|
|
32
32
|
<div class="space-y-1">
|
|
33
33
|
<p class="dark:text-gray-200 text-sm">{{this.extension.description}}</p>
|
|
34
|
-
<p class="dark:text-gray-200 text-sm">{{this.extension.promotional_text}}</p>
|
|
34
|
+
<p class="dark:text-gray-200 text-sm">{{html-safe this.extension.promotional_text}}</p>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
<div>
|
package/composer.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetbase/registry-bridge",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Internal Bridge between Fleetbase API and Extensions Registry",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fleetbase-extension",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"require": {
|
|
22
22
|
"php": "^8.0",
|
|
23
|
-
"fleetbase/core-api": "^1.5.
|
|
23
|
+
"fleetbase/core-api": "^1.5.1",
|
|
24
24
|
"laravel/cashier": "^15.2.1",
|
|
25
25
|
"php-http/guzzle7-adapter": "^1.0",
|
|
26
26
|
"psr/http-factory-implementation": "*",
|
package/extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetbase/registry-bridge-engine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Internal Bridge between Fleetbase API and Extensions Registry",
|
|
5
5
|
"fleetbase": {
|
|
6
6
|
"route": "extensions"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@babel/core": "^7.23.2",
|
|
42
42
|
"@fleetbase/ember-core": "^0.2.14",
|
|
43
|
-
"@fleetbase/ember-ui": "^0.2.
|
|
43
|
+
"@fleetbase/ember-ui": "^0.2.20",
|
|
44
44
|
"@fortawesome/ember-fontawesome": "^2.0.0",
|
|
45
45
|
"@fortawesome/fontawesome-svg-core": "6.4.0",
|
|
46
46
|
"@fortawesome/free-solid-svg-icons": "6.4.0",
|
|
@@ -553,7 +553,11 @@ class RegistryExtension extends Model
|
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
// Update stripe product id
|
|
556
|
-
$this->
|
|
556
|
+
if ($this->exists) {
|
|
557
|
+
$this->update(['stripe_product_id' => $product->id]);
|
|
558
|
+
} else {
|
|
559
|
+
$this->setAttribute('stripe_product_id', $product->id);
|
|
560
|
+
}
|
|
557
561
|
|
|
558
562
|
return $product;
|
|
559
563
|
}
|
|
@@ -576,8 +580,8 @@ class RegistryExtension extends Model
|
|
|
576
580
|
$this->getStripeProduct();
|
|
577
581
|
}
|
|
578
582
|
|
|
579
|
-
$stripe
|
|
580
|
-
$price
|
|
583
|
+
$stripe = Utils::getStripeClient();
|
|
584
|
+
$price = null;
|
|
581
585
|
if ($stripe) {
|
|
582
586
|
$prices = $stripe->prices->all(['product' => $this->stripe_product_id, 'limit' => 1, 'active' => true]);
|
|
583
587
|
$price = is_array($prices->data) && count($prices->data) ? $prices->data[0] : null;
|