@blocklet/payment-react 1.13.195 → 1.13.196

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.
@@ -151,7 +151,11 @@ export default function MiniInvoiceList() {
151
151
  target: "_blank",
152
152
  variant: "contained",
153
153
  sx: { color: "#fff!important", width: subscription.service_actions?.length ? "auto" : "100%" },
154
- href: joinURL(window.location.origin, getPrefix(), `/customer/subscription/${subscription.id}`),
154
+ href: joinURL(
155
+ window.location.origin,
156
+ getPrefix(),
157
+ `/customer/subscription/${subscription.id}?source=embed`
158
+ ),
155
159
  children: t("payment.customer.subscriptions.view")
156
160
  }
157
161
  )
@@ -228,7 +228,7 @@ function MiniInvoiceList() {
228
228
  color: "#fff!important",
229
229
  width: subscription.service_actions?.length ? "auto" : "100%"
230
230
  },
231
- href: (0, _ufo.joinURL)(window.location.origin, (0, _util.getPrefix)(), `/customer/subscription/${subscription.id}`),
231
+ href: (0, _ufo.joinURL)(window.location.origin, (0, _util.getPrefix)(), `/customer/subscription/${subscription.id}?source=embed`),
232
232
  children: t("payment.customer.subscriptions.view")
233
233
  })]
234
234
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-react",
3
- "version": "1.13.195",
3
+ "version": "1.13.196",
4
4
  "description": "Reusable react components for payment kit v2",
5
5
  "keywords": [
6
6
  "react",
@@ -90,7 +90,7 @@
90
90
  "@babel/core": "^7.23.9",
91
91
  "@babel/preset-env": "^7.23.9",
92
92
  "@babel/preset-react": "^7.23.3",
93
- "@blocklet/payment-types": "1.13.195",
93
+ "@blocklet/payment-types": "1.13.196",
94
94
  "@storybook/addon-essentials": "^7.6.13",
95
95
  "@storybook/addon-interactions": "^7.6.13",
96
96
  "@storybook/addon-links": "^7.6.13",
@@ -119,5 +119,5 @@
119
119
  "vite-plugin-babel": "^1.2.0",
120
120
  "vite-plugin-node-polyfills": "^0.19.0"
121
121
  },
122
- "gitHead": "e8615414419a8dd76fb46b3dcdbb4ff53a8f049c"
122
+ "gitHead": "04bc825071dc91673a67b995f446ad7e4300e4bf"
123
123
  }
@@ -191,7 +191,11 @@ export default function MiniInvoiceList() {
191
191
  target="_blank"
192
192
  variant="contained"
193
193
  sx={{ color: '#fff!important', width: subscription.service_actions?.length ? 'auto' : '100%' }}
194
- href={joinURL(window.location.origin, getPrefix(), `/customer/subscription/${subscription.id}`)}>
194
+ href={joinURL(
195
+ window.location.origin,
196
+ getPrefix(),
197
+ `/customer/subscription/${subscription.id}?source=embed`
198
+ )}>
195
199
  {t('payment.customer.subscriptions.view')}
196
200
  </Button>
197
201
  </Stack>