@easypayment/medusa-paypal 0.5.9 → 0.6.1
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/.medusa/server/src/admin/index.js +15 -15
- package/.medusa/server/src/admin/index.mjs +15 -15
- package/package.json +73 -75
- package/src/admin/routes/settings/paypal/additional-settings/page.tsx +200 -200
- package/src/admin/routes/settings/paypal/advanced-card-payments/page.tsx +183 -183
- package/src/admin/routes/settings/paypal/connection/page.tsx +6 -6
- package/src/admin/routes/settings/paypal/paypal-settings/page.tsx +376 -376
|
@@ -154,7 +154,7 @@ function AdditionalSettingsTab() {
|
|
|
154
154
|
title: "Additional Settings",
|
|
155
155
|
description: "These settings control checkout behavior and PayPal experience.",
|
|
156
156
|
right: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
157
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "rounded-md bg-ui-button-neutral
|
|
157
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5", children: saving ? "Saving..." : "Save settings" }),
|
|
158
158
|
loading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-ui-fg-subtle", children: "Loading..." }) : null
|
|
159
159
|
] }),
|
|
160
160
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "divide-y divide-ui-border-base", children: [
|
|
@@ -304,7 +304,7 @@ function AdvancedCardPaymentsTab() {
|
|
|
304
304
|
title: "Advanced Card Payments",
|
|
305
305
|
description: "Control card checkout settings and 3D Secure behavior.",
|
|
306
306
|
right: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
307
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "rounded-md bg-ui-button-neutral
|
|
307
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5", children: saving ? "Saving..." : "Save settings" }),
|
|
308
308
|
loading ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-ui-fg-subtle", children: "Loading..." }) : null
|
|
309
309
|
] }),
|
|
310
310
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "divide-y divide-ui-border-base", children: [
|
|
@@ -325,6 +325,9 @@ function AdvancedCardPaymentsTab() {
|
|
|
325
325
|
function PayPalApplePayPage() {
|
|
326
326
|
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
327
327
|
}
|
|
328
|
+
function PayPalGooglePayPage() {
|
|
329
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
330
|
+
}
|
|
328
331
|
const config = adminSdk.defineRouteConfig({
|
|
329
332
|
label: "PayPal Connection",
|
|
330
333
|
hide: true
|
|
@@ -683,7 +686,7 @@ function PayPalConnectionPage() {
|
|
|
683
686
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
684
687
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-semibold", children: "PayPal Gateway By Easy Payment" }),
|
|
685
688
|
/* @__PURE__ */ jsxRuntime.jsx(PayPalTabs, {}),
|
|
686
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-
|
|
689
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-xl border border-ui-border-base bg-ui-bg-base shadow-sm", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-y-6 p-4 md:grid-cols-[260px_1fr] md:items-start", children: [
|
|
687
690
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium pt-2", children: "Environment" }),
|
|
688
691
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
689
692
|
"select",
|
|
@@ -727,7 +730,7 @@ function PayPalConnectionPage() {
|
|
|
727
730
|
type: "button",
|
|
728
731
|
onClick: handleDisconnect,
|
|
729
732
|
disabled: onboardingInProgress,
|
|
730
|
-
className: "rounded-md
|
|
733
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
731
734
|
children: "Disconnect"
|
|
732
735
|
}
|
|
733
736
|
) })
|
|
@@ -757,7 +760,7 @@ function PayPalConnectionPage() {
|
|
|
757
760
|
href: finalUrl || "#",
|
|
758
761
|
"data-paypal-onboard-complete": "onboardingCallback",
|
|
759
762
|
onClick: handleConnectClick,
|
|
760
|
-
className: "inline-flex items-center justify-center rounded-md bg-ui-button-neutral
|
|
763
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none no-underline shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
761
764
|
style: {
|
|
762
765
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
763
766
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
@@ -880,7 +883,7 @@ function PayPalConnectionPage() {
|
|
|
880
883
|
"button",
|
|
881
884
|
{
|
|
882
885
|
type: "button",
|
|
883
|
-
className: "rounded-md
|
|
886
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
884
887
|
onClick: () => setShowManual(false),
|
|
885
888
|
disabled: onboardingInProgress,
|
|
886
889
|
children: "Cancel"
|
|
@@ -890,7 +893,7 @@ function PayPalConnectionPage() {
|
|
|
890
893
|
"button",
|
|
891
894
|
{
|
|
892
895
|
type: "button",
|
|
893
|
-
className: "rounded-md
|
|
896
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
894
897
|
disabled: !canSaveManual || onboardingInProgress,
|
|
895
898
|
onClick: handleSaveManual,
|
|
896
899
|
children: "Save credentials"
|
|
@@ -919,9 +922,6 @@ function PayPalConnectionPage() {
|
|
|
919
922
|
` })
|
|
920
923
|
] });
|
|
921
924
|
}
|
|
922
|
-
function PayPalGooglePayPage() {
|
|
923
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
924
|
-
}
|
|
925
925
|
function PayPalPayLaterMessagingPage() {
|
|
926
926
|
return /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
927
927
|
}
|
|
@@ -1108,7 +1108,7 @@ function PayPalSettingsTab() {
|
|
|
1108
1108
|
type: "button",
|
|
1109
1109
|
onClick: onSave,
|
|
1110
1110
|
disabled: saving || loading,
|
|
1111
|
-
className: "rounded-md bg-ui-button-neutral
|
|
1111
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
1112
1112
|
children: saving ? "Saving..." : "Save settings"
|
|
1113
1113
|
}
|
|
1114
1114
|
),
|
|
@@ -1217,14 +1217,14 @@ const routeModule = {
|
|
|
1217
1217
|
Component: PayPalApplePayPage,
|
|
1218
1218
|
path: "/settings/paypal/apple-pay"
|
|
1219
1219
|
},
|
|
1220
|
-
{
|
|
1221
|
-
Component: PayPalConnectionPage,
|
|
1222
|
-
path: "/settings/paypal/connection"
|
|
1223
|
-
},
|
|
1224
1220
|
{
|
|
1225
1221
|
Component: PayPalGooglePayPage,
|
|
1226
1222
|
path: "/settings/paypal/google-pay"
|
|
1227
1223
|
},
|
|
1224
|
+
{
|
|
1225
|
+
Component: PayPalConnectionPage,
|
|
1226
|
+
path: "/settings/paypal/connection"
|
|
1227
|
+
},
|
|
1228
1228
|
{
|
|
1229
1229
|
Component: PayPalPayLaterMessagingPage,
|
|
1230
1230
|
path: "/settings/paypal/pay-later-messaging"
|
|
@@ -153,7 +153,7 @@ function AdditionalSettingsTab() {
|
|
|
153
153
|
title: "Additional Settings",
|
|
154
154
|
description: "These settings control checkout behavior and PayPal experience.",
|
|
155
155
|
right: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
156
|
-
/* @__PURE__ */ jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "rounded-md bg-ui-button-neutral
|
|
156
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5", children: saving ? "Saving..." : "Save settings" }),
|
|
157
157
|
loading ? /* @__PURE__ */ jsx("span", { className: "text-sm text-ui-fg-subtle", children: "Loading..." }) : null
|
|
158
158
|
] }),
|
|
159
159
|
children: /* @__PURE__ */ jsxs("div", { className: "divide-y divide-ui-border-base", children: [
|
|
@@ -303,7 +303,7 @@ function AdvancedCardPaymentsTab() {
|
|
|
303
303
|
title: "Advanced Card Payments",
|
|
304
304
|
description: "Control card checkout settings and 3D Secure behavior.",
|
|
305
305
|
right: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
306
|
-
/* @__PURE__ */ jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "rounded-md bg-ui-button-neutral
|
|
306
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: onSave, disabled: saving || loading, className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5", children: saving ? "Saving..." : "Save settings" }),
|
|
307
307
|
loading ? /* @__PURE__ */ jsx("span", { className: "text-sm text-ui-fg-subtle", children: "Loading..." }) : null
|
|
308
308
|
] }),
|
|
309
309
|
children: /* @__PURE__ */ jsxs("div", { className: "divide-y divide-ui-border-base", children: [
|
|
@@ -324,6 +324,9 @@ function AdvancedCardPaymentsTab() {
|
|
|
324
324
|
function PayPalApplePayPage() {
|
|
325
325
|
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
326
326
|
}
|
|
327
|
+
function PayPalGooglePayPage() {
|
|
328
|
+
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
329
|
+
}
|
|
327
330
|
const config = defineRouteConfig({
|
|
328
331
|
label: "PayPal Connection",
|
|
329
332
|
hide: true
|
|
@@ -682,7 +685,7 @@ function PayPalConnectionPage() {
|
|
|
682
685
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
683
686
|
/* @__PURE__ */ jsx("h1", { className: "text-xl font-semibold", children: "PayPal Gateway By Easy Payment" }),
|
|
684
687
|
/* @__PURE__ */ jsx(PayPalTabs, {}),
|
|
685
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-
|
|
688
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-xl border border-ui-border-base bg-ui-bg-base shadow-sm", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-y-6 p-4 md:grid-cols-[260px_1fr] md:items-start", children: [
|
|
686
689
|
/* @__PURE__ */ jsx("div", { className: "text-sm font-medium pt-2", children: "Environment" }),
|
|
687
690
|
/* @__PURE__ */ jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsxs(
|
|
688
691
|
"select",
|
|
@@ -726,7 +729,7 @@ function PayPalConnectionPage() {
|
|
|
726
729
|
type: "button",
|
|
727
730
|
onClick: handleDisconnect,
|
|
728
731
|
disabled: onboardingInProgress,
|
|
729
|
-
className: "rounded-md
|
|
732
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
730
733
|
children: "Disconnect"
|
|
731
734
|
}
|
|
732
735
|
) })
|
|
@@ -756,7 +759,7 @@ function PayPalConnectionPage() {
|
|
|
756
759
|
href: finalUrl || "#",
|
|
757
760
|
"data-paypal-onboard-complete": "onboardingCallback",
|
|
758
761
|
onClick: handleConnectClick,
|
|
759
|
-
className: "inline-flex items-center justify-center rounded-md bg-ui-button-neutral
|
|
762
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none no-underline shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
760
763
|
style: {
|
|
761
764
|
cursor: onboardingInProgress ? "not-allowed" : "pointer",
|
|
762
765
|
opacity: onboardingInProgress ? 0.6 : 1,
|
|
@@ -879,7 +882,7 @@ function PayPalConnectionPage() {
|
|
|
879
882
|
"button",
|
|
880
883
|
{
|
|
881
884
|
type: "button",
|
|
882
|
-
className: "rounded-md
|
|
885
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
883
886
|
onClick: () => setShowManual(false),
|
|
884
887
|
disabled: onboardingInProgress,
|
|
885
888
|
children: "Cancel"
|
|
@@ -889,7 +892,7 @@ function PayPalConnectionPage() {
|
|
|
889
892
|
"button",
|
|
890
893
|
{
|
|
891
894
|
type: "button",
|
|
892
|
-
className: "rounded-md
|
|
895
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
893
896
|
disabled: !canSaveManual || onboardingInProgress,
|
|
894
897
|
onClick: handleSaveManual,
|
|
895
898
|
children: "Save credentials"
|
|
@@ -918,9 +921,6 @@ function PayPalConnectionPage() {
|
|
|
918
921
|
` })
|
|
919
922
|
] });
|
|
920
923
|
}
|
|
921
|
-
function PayPalGooglePayPage() {
|
|
922
|
-
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
923
|
-
}
|
|
924
924
|
function PayPalPayLaterMessagingPage() {
|
|
925
925
|
return /* @__PURE__ */ jsx(Navigate, { to: "/settings/paypal/connection", replace: true });
|
|
926
926
|
}
|
|
@@ -1107,7 +1107,7 @@ function PayPalSettingsTab() {
|
|
|
1107
1107
|
type: "button",
|
|
1108
1108
|
onClick: onSave,
|
|
1109
1109
|
disabled: saving || loading,
|
|
1110
|
-
className: "rounded-md bg-ui-button-neutral
|
|
1110
|
+
className: "transition-fg relative inline-flex w-fit items-center justify-center overflow-hidden rounded-md outline-none shadow-buttons-neutral text-ui-fg-base bg-ui-button-neutral after:transition-fg after:absolute after:inset-0 after:content-[''] after:button-neutral-gradient hover:bg-ui-button-neutral-hover hover:after:button-neutral-hover-gradient active:bg-ui-button-neutral-pressed active:after:button-neutral-pressed-gradient focus-visible:shadow-buttons-neutral-focus disabled:bg-ui-bg-disabled disabled:border-ui-border-base disabled:text-ui-fg-disabled disabled:shadow-buttons-neutral disabled:after:hidden txt-compact-small-plus px-3 py-1.5",
|
|
1111
1111
|
children: saving ? "Saving..." : "Save settings"
|
|
1112
1112
|
}
|
|
1113
1113
|
),
|
|
@@ -1216,14 +1216,14 @@ const routeModule = {
|
|
|
1216
1216
|
Component: PayPalApplePayPage,
|
|
1217
1217
|
path: "/settings/paypal/apple-pay"
|
|
1218
1218
|
},
|
|
1219
|
-
{
|
|
1220
|
-
Component: PayPalConnectionPage,
|
|
1221
|
-
path: "/settings/paypal/connection"
|
|
1222
|
-
},
|
|
1223
1219
|
{
|
|
1224
1220
|
Component: PayPalGooglePayPage,
|
|
1225
1221
|
path: "/settings/paypal/google-pay"
|
|
1226
1222
|
},
|
|
1223
|
+
{
|
|
1224
|
+
Component: PayPalConnectionPage,
|
|
1225
|
+
path: "/settings/paypal/connection"
|
|
1226
|
+
},
|
|
1227
1227
|
{
|
|
1228
1228
|
Component: PayPalPayLaterMessagingPage,
|
|
1229
1229
|
path: "/settings/paypal/pay-later-messaging"
|
package/package.json
CHANGED
|
@@ -1,75 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@easypayment/medusa-paypal",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Industry-standard PayPal integration for Medusa v2",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "./.medusa/server/src/index.js",
|
|
7
|
-
"types": "./.medusa/server/src/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
".medusa/server",
|
|
10
|
-
"src",
|
|
11
|
-
"scripts",
|
|
12
|
-
"package.json",
|
|
13
|
-
"README.md",
|
|
14
|
-
"LICENSE",
|
|
15
|
-
"tsconfig.json"
|
|
16
|
-
],
|
|
17
|
-
"exports": {
|
|
18
|
-
"./package.json": "./package.json",
|
|
19
|
-
"./admin": "./.medusa/server/src/admin/index.mjs",
|
|
20
|
-
"./workflows": "./.medusa/server/src/workflows/index.js",
|
|
21
|
-
"./providers/paypal": "./.medusa/server/src/providers/paypal/index.js",
|
|
22
|
-
"./providers/paypal_card": "./.medusa/server/src/providers/paypal_card/index.js",
|
|
23
|
-
"./modules/paypal": "./.medusa/server/src/modules/paypal/index.js",
|
|
24
|
-
".": "./.medusa/server/src/index.js",
|
|
25
|
-
"./.medusa/server/src/modules/*": "./.medusa/server/src/modules/*/index.js",
|
|
26
|
-
"./.medusa/server/src/modules/paypal": "./.medusa/server/src/modules/paypal/index.js",
|
|
27
|
-
"./.medusa/server/src/providers/*": "./.medusa/server/src/providers/*/index.js",
|
|
28
|
-
"./.medusa/server/src/providers/paypal": "./.medusa/server/src/providers/paypal/index.js",
|
|
29
|
-
"./.medusa/server/src/providers/paypal_card": "./.medusa/server/src/providers/paypal_card/index.js",
|
|
30
|
-
"./.medusa/server/src/admin": "./.medusa/server/src/admin/index.mjs",
|
|
31
|
-
"./.medusa/server/src/workflows": "./.medusa/server/src/workflows/index.js",
|
|
32
|
-
"./.medusa/server/src/*": "./.medusa/server/src/*.js",
|
|
33
|
-
"./.medusa/*": "./.medusa/*"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "medusa plugin:build",
|
|
37
|
-
"develop": "medusa plugin:develop",
|
|
38
|
-
"prepublishOnly": "npm run build"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@medusajs/admin-sdk": "2.12.5",
|
|
42
|
-
"@medusajs/cli": "2.12.5",
|
|
43
|
-
"@medusajs/framework": "2.12.5",
|
|
44
|
-
"@medusajs/medusa": "2.12.5",
|
|
45
|
-
"@medusajs/test-utils": "2.12.5",
|
|
46
|
-
"@medusajs/ui": "^4.0.0",
|
|
47
|
-
"@medusajs/icons": "2.12.5",
|
|
48
|
-
"@swc/core": "^1.5.7",
|
|
49
|
-
"typescript": "^5.6.2"
|
|
50
|
-
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"@medusajs/admin-sdk": "^2.12.0",
|
|
53
|
-
"@medusajs/framework": "^2.12.0",
|
|
54
|
-
"@medusajs/medusa": "^2.12.0",
|
|
55
|
-
"@medusajs/ui": "^4.0.0",
|
|
56
|
-
"@medusajs/icons": "^2.12.0"
|
|
57
|
-
},
|
|
58
|
-
"publishConfig": {
|
|
59
|
-
"access": "public"
|
|
60
|
-
},
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=20"
|
|
63
|
-
},
|
|
64
|
-
"repository": {
|
|
65
|
-
"type": "git",
|
|
66
|
-
"url": "https://github.com/easypayment/medusa-paypal.git"
|
|
67
|
-
},
|
|
68
|
-
"keywords": [
|
|
69
|
-
"medusa",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
]
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@easypayment/medusa-paypal",
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Industry-standard PayPal integration for Medusa v2",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "./.medusa/server/src/index.js",
|
|
7
|
+
"types": "./.medusa/server/src/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
".medusa/server",
|
|
10
|
+
"src",
|
|
11
|
+
"scripts",
|
|
12
|
+
"package.json",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"tsconfig.json"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./admin": "./.medusa/server/src/admin/index.mjs",
|
|
20
|
+
"./workflows": "./.medusa/server/src/workflows/index.js",
|
|
21
|
+
"./providers/paypal": "./.medusa/server/src/providers/paypal/index.js",
|
|
22
|
+
"./providers/paypal_card": "./.medusa/server/src/providers/paypal_card/index.js",
|
|
23
|
+
"./modules/paypal": "./.medusa/server/src/modules/paypal/index.js",
|
|
24
|
+
".": "./.medusa/server/src/index.js",
|
|
25
|
+
"./.medusa/server/src/modules/*": "./.medusa/server/src/modules/*/index.js",
|
|
26
|
+
"./.medusa/server/src/modules/paypal": "./.medusa/server/src/modules/paypal/index.js",
|
|
27
|
+
"./.medusa/server/src/providers/*": "./.medusa/server/src/providers/*/index.js",
|
|
28
|
+
"./.medusa/server/src/providers/paypal": "./.medusa/server/src/providers/paypal/index.js",
|
|
29
|
+
"./.medusa/server/src/providers/paypal_card": "./.medusa/server/src/providers/paypal_card/index.js",
|
|
30
|
+
"./.medusa/server/src/admin": "./.medusa/server/src/admin/index.mjs",
|
|
31
|
+
"./.medusa/server/src/workflows": "./.medusa/server/src/workflows/index.js",
|
|
32
|
+
"./.medusa/server/src/*": "./.medusa/server/src/*.js",
|
|
33
|
+
"./.medusa/*": "./.medusa/*"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "medusa plugin:build",
|
|
37
|
+
"develop": "medusa plugin:develop",
|
|
38
|
+
"prepublishOnly": "npm run build"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@medusajs/admin-sdk": "2.12.5",
|
|
42
|
+
"@medusajs/cli": "2.12.5",
|
|
43
|
+
"@medusajs/framework": "2.12.5",
|
|
44
|
+
"@medusajs/medusa": "2.12.5",
|
|
45
|
+
"@medusajs/test-utils": "2.12.5",
|
|
46
|
+
"@medusajs/ui": "^4.0.0",
|
|
47
|
+
"@medusajs/icons": "2.12.5",
|
|
48
|
+
"@swc/core": "^1.5.7",
|
|
49
|
+
"typescript": "^5.6.2"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@medusajs/admin-sdk": "^2.12.0",
|
|
53
|
+
"@medusajs/framework": "^2.12.0",
|
|
54
|
+
"@medusajs/medusa": "^2.12.0",
|
|
55
|
+
"@medusajs/ui": "^4.0.0",
|
|
56
|
+
"@medusajs/icons": "^2.12.0"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=20"
|
|
63
|
+
},
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "https://github.com/easypayment/medusa-paypal.git"
|
|
67
|
+
},
|
|
68
|
+
"keywords": [
|
|
69
|
+
"medusa-plugin-integration",
|
|
70
|
+
"medusa-v2",
|
|
71
|
+
"medusa-plugin-payment"
|
|
72
|
+
]
|
|
73
|
+
}
|