mozrest-sdk-react-dev 0.3.15 → 0.3.17
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/mozrest-sdk.es.js +32 -32
- package/package.json +1 -1
- package/style.css +27 -25
package/mozrest-sdk.es.js
CHANGED
|
@@ -126747,30 +126747,30 @@ function Main$1({
|
|
|
126747
126747
|
})
|
|
126748
126748
|
});
|
|
126749
126749
|
}
|
|
126750
|
-
const mainConatiner = "
|
|
126751
|
-
const header$1 = "
|
|
126752
|
-
const sectionCard = "
|
|
126753
|
-
const cardHeader = "
|
|
126754
|
-
const cardTitle = "
|
|
126755
|
-
const cardDesc = "
|
|
126756
|
-
const cardBody = "
|
|
126757
|
-
const cardFooter = "
|
|
126758
|
-
const cardFooterContent = "
|
|
126759
|
-
const sectionManagement = "
|
|
126760
|
-
const sectionFormRow = "
|
|
126761
|
-
const drawerContent = "
|
|
126762
|
-
const scrollableForm = "
|
|
126763
|
-
const fixedActions = "
|
|
126764
|
-
const specialDatesInfoText = "
|
|
126765
|
-
const deleteIcon = "
|
|
126766
|
-
const stripeConnectContainer = "
|
|
126767
|
-
const paymentGatewayContainer = "
|
|
126768
|
-
const paymentRules = "
|
|
126769
|
-
const paymentRulesContainer = "
|
|
126770
|
-
const paymentRulesDesc = "
|
|
126750
|
+
const mainConatiner = "_mainConatiner_e3rsf_64";
|
|
126751
|
+
const header$1 = "_header_e3rsf_77";
|
|
126752
|
+
const sectionCard = "_sectionCard_e3rsf_96";
|
|
126753
|
+
const cardHeader = "_cardHeader_e3rsf_100";
|
|
126754
|
+
const cardTitle = "_cardTitle_e3rsf_103";
|
|
126755
|
+
const cardDesc = "_cardDesc_e3rsf_107";
|
|
126756
|
+
const cardBody = "_cardBody_e3rsf_111";
|
|
126757
|
+
const cardFooter = "_cardFooter_e3rsf_115";
|
|
126758
|
+
const cardFooterContent = "_cardFooterContent_e3rsf_115";
|
|
126759
|
+
const sectionManagement = "_sectionManagement_e3rsf_127";
|
|
126760
|
+
const sectionFormRow = "_sectionFormRow_e3rsf_127";
|
|
126761
|
+
const drawerContent = "_drawerContent_e3rsf_134";
|
|
126762
|
+
const scrollableForm = "_scrollableForm_e3rsf_139";
|
|
126763
|
+
const fixedActions = "_fixedActions_e3rsf_145";
|
|
126764
|
+
const specialDatesInfoText = "_specialDatesInfoText_e3rsf_154";
|
|
126765
|
+
const deleteIcon = "_deleteIcon_e3rsf_168";
|
|
126766
|
+
const stripeConnectContainer = "_stripeConnectContainer_e3rsf_173";
|
|
126767
|
+
const paymentGatewayContainer = "_paymentGatewayContainer_e3rsf_181";
|
|
126768
|
+
const paymentRules = "_paymentRules_e3rsf_187";
|
|
126769
|
+
const paymentRulesContainer = "_paymentRulesContainer_e3rsf_192";
|
|
126770
|
+
const paymentRulesDesc = "_paymentRulesDesc_e3rsf_198";
|
|
126771
126771
|
const styles$6 = {
|
|
126772
|
-
"my-masonry-grid": "_my-masonry-
|
|
126773
|
-
"my-masonry-grid_column": "_my-masonry-
|
|
126772
|
+
"my-masonry-grid": "_my-masonry-grid_e3rsf_42",
|
|
126773
|
+
"my-masonry-grid_column": "_my-masonry-grid_column_e3rsf_53",
|
|
126774
126774
|
mainConatiner,
|
|
126775
126775
|
header: header$1,
|
|
126776
126776
|
sectionCard,
|
|
@@ -129607,7 +129607,7 @@ const PaymentsEditDrawer = ({
|
|
|
129607
129607
|
response_type: "code",
|
|
129608
129608
|
client_id: config$1.stripe_client_id,
|
|
129609
129609
|
scope: "read_write",
|
|
129610
|
-
redirect_uri: `${window.location.origin}
|
|
129610
|
+
redirect_uri: `${window.location.origin}#stripe-connect`
|
|
129611
129611
|
});
|
|
129612
129612
|
const width = 500;
|
|
129613
129613
|
const height = 600;
|
|
@@ -129696,7 +129696,7 @@ const PaymentsEditDrawer = ({
|
|
|
129696
129696
|
} else {
|
|
129697
129697
|
reset(defaultValue2);
|
|
129698
129698
|
}
|
|
129699
|
-
}, [shiftsData, paymentDefinitionData]);
|
|
129699
|
+
}, [shiftsData, paymentDefinitionData, paymentGatewayData]);
|
|
129700
129700
|
return /* @__PURE__ */ jsxs(Drawer, {
|
|
129701
129701
|
isOpen,
|
|
129702
129702
|
onClose: () => setIsOpen(false),
|
|
@@ -129981,7 +129981,6 @@ function Main({
|
|
|
129981
129981
|
} = useTranslation();
|
|
129982
129982
|
const [currentVenue, setCurrentVenue] = useState(null);
|
|
129983
129983
|
const [canEdit, setCanEdit] = useState(false);
|
|
129984
|
-
console.log(config$1.env, "LOL");
|
|
129985
129984
|
const {
|
|
129986
129985
|
data: data2,
|
|
129987
129986
|
reload
|
|
@@ -130001,10 +130000,11 @@ function Main({
|
|
|
130001
130000
|
useEffect(() => {
|
|
130002
130001
|
const handleStripeCallback = () => {
|
|
130003
130002
|
var _a2, _b;
|
|
130004
|
-
const
|
|
130005
|
-
const
|
|
130006
|
-
const
|
|
130007
|
-
const
|
|
130003
|
+
const hash2 = window.location.hash;
|
|
130004
|
+
const params = new URLSearchParams(hash2.substring(1));
|
|
130005
|
+
const code = params.get("code");
|
|
130006
|
+
const error22 = params.get("error");
|
|
130007
|
+
const errorDescription = params.get("error_description");
|
|
130008
130008
|
if (code) {
|
|
130009
130009
|
(_a2 = window.opener) == null ? void 0 : _a2.postMessage({
|
|
130010
130010
|
type: "STRIPE_OAUTH_RESULT",
|
|
@@ -130020,11 +130020,11 @@ function Main({
|
|
|
130020
130020
|
}, window.location.origin);
|
|
130021
130021
|
}
|
|
130022
130022
|
};
|
|
130023
|
-
if (window.location.
|
|
130023
|
+
if (window.location.hash.includes("stripe-connect") && window.location.hash.includes("code=")) {
|
|
130024
130024
|
handleStripeCallback();
|
|
130025
130025
|
}
|
|
130026
130026
|
}, []);
|
|
130027
|
-
if (window.location.
|
|
130027
|
+
if (window.location.hash.includes("stripe-connect") && window.location.hash.includes("code=")) {
|
|
130028
130028
|
return /* @__PURE__ */ jsx$1(SkeletonPage, {});
|
|
130029
130029
|
}
|
|
130030
130030
|
return /* @__PURE__ */ jsxs("div", {
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -31023,7 +31023,7 @@ hr {
|
|
|
31023
31023
|
border: 0;
|
|
31024
31024
|
border-top: 2px solid #42465a;
|
|
31025
31025
|
}
|
|
31026
|
-
._my-masonry-
|
|
31026
|
+
._my-masonry-grid_e3rsf_42 {
|
|
31027
31027
|
display: -webkit-box;
|
|
31028
31028
|
/* Not needed if autoprefixing */
|
|
31029
31029
|
display: -ms-flexbox;
|
|
@@ -31033,16 +31033,16 @@ hr {
|
|
|
31033
31033
|
/* gutter size offset */
|
|
31034
31034
|
width: auto;
|
|
31035
31035
|
}
|
|
31036
|
-
._my-masonry-
|
|
31036
|
+
._my-masonry-grid_column_e3rsf_53 {
|
|
31037
31037
|
padding-left: 40px;
|
|
31038
31038
|
/* gutter size */
|
|
31039
31039
|
background-clip: padding-box;
|
|
31040
31040
|
}
|
|
31041
|
-
._my-masonry-
|
|
31041
|
+
._my-masonry-grid_column_e3rsf_53 > div {
|
|
31042
31042
|
/* change div to reference your elements you put in <Masonry> */
|
|
31043
31043
|
margin-bottom: 40px;
|
|
31044
31044
|
}
|
|
31045
|
-
.
|
|
31045
|
+
._mainConatiner_e3rsf_64 {
|
|
31046
31046
|
color: var(--moz-text-primary);
|
|
31047
31047
|
height: 100vh;
|
|
31048
31048
|
max-height: 100vh;
|
|
@@ -31052,14 +31052,16 @@ hr {
|
|
|
31052
31052
|
background-color: var(--moz-cta-body-bg);
|
|
31053
31053
|
overflow: hidden;
|
|
31054
31054
|
overflow-y: auto;
|
|
31055
|
+
padding-left: 10px;
|
|
31056
|
+
padding-right: 10px;
|
|
31055
31057
|
}
|
|
31056
|
-
.
|
|
31058
|
+
._mainConatiner_e3rsf_64 ._header_e3rsf_77 {
|
|
31057
31059
|
display: flex;
|
|
31058
31060
|
justify-content: flex-start;
|
|
31059
31061
|
align-items: center;
|
|
31060
31062
|
padding: 1.25rem;
|
|
31061
31063
|
}
|
|
31062
|
-
.
|
|
31064
|
+
._mainConatiner_e3rsf_64 ._content_e3rsf_83 {
|
|
31063
31065
|
display: flex;
|
|
31064
31066
|
justify-content: center;
|
|
31065
31067
|
align-items: flex-start;
|
|
@@ -31067,29 +31069,29 @@ hr {
|
|
|
31067
31069
|
padding: 1.5rem;
|
|
31068
31070
|
overflow-y: auto;
|
|
31069
31071
|
}
|
|
31070
|
-
.
|
|
31072
|
+
._textSecondary_e3rsf_92 {
|
|
31071
31073
|
color: var(--moz-text-secondary);
|
|
31072
31074
|
}
|
|
31073
|
-
.
|
|
31075
|
+
._sectionCard_e3rsf_96 {
|
|
31074
31076
|
padding: 0;
|
|
31075
31077
|
background-color: var(--moz-cta-content-bg);
|
|
31076
31078
|
}
|
|
31077
|
-
.
|
|
31079
|
+
._sectionCard_e3rsf_96 ._cardHeader_e3rsf_100 {
|
|
31078
31080
|
padding: 1.5rem;
|
|
31079
31081
|
}
|
|
31080
|
-
.
|
|
31082
|
+
._sectionCard_e3rsf_96 ._cardHeader_e3rsf_100 ._cardTitle_e3rsf_103 {
|
|
31081
31083
|
font-size: 18px;
|
|
31082
31084
|
color: var(--moz-text-label);
|
|
31083
31085
|
}
|
|
31084
|
-
.
|
|
31086
|
+
._sectionCard_e3rsf_96 ._cardHeader_e3rsf_100 ._cardDesc_e3rsf_107 {
|
|
31085
31087
|
font-size: 14px;
|
|
31086
31088
|
color: var(--moz-text-secondary);
|
|
31087
31089
|
}
|
|
31088
|
-
.
|
|
31090
|
+
._sectionCard_e3rsf_96 ._cardBody_e3rsf_111 {
|
|
31089
31091
|
padding: 1.5rem;
|
|
31090
31092
|
color: var(--moz-text-label);
|
|
31091
31093
|
}
|
|
31092
|
-
.
|
|
31094
|
+
._sectionCard_e3rsf_96 ._cardFooter_e3rsf_115 ._cardFooterContent_e3rsf_115 {
|
|
31093
31095
|
padding: 0.5rem;
|
|
31094
31096
|
display: flex;
|
|
31095
31097
|
justify-content: center;
|
|
@@ -31100,25 +31102,25 @@ hr {
|
|
|
31100
31102
|
color: var(--moz-text-secondary);
|
|
31101
31103
|
cursor: pointer;
|
|
31102
31104
|
}
|
|
31103
|
-
.
|
|
31105
|
+
._sectionManagement_e3rsf_127 ._sectionFormRow_e3rsf_127 {
|
|
31104
31106
|
display: flex;
|
|
31105
31107
|
gap: 0.75rem;
|
|
31106
31108
|
padding: 1.5rem;
|
|
31107
31109
|
justify-content: center;
|
|
31108
31110
|
align-items: center;
|
|
31109
31111
|
}
|
|
31110
|
-
.
|
|
31112
|
+
._sectionManagement_e3rsf_127 ._drawerContent_e3rsf_134 {
|
|
31111
31113
|
display: flex;
|
|
31112
31114
|
flex-direction: column;
|
|
31113
31115
|
height: 100%;
|
|
31114
31116
|
}
|
|
31115
|
-
.
|
|
31117
|
+
._sectionManagement_e3rsf_127 ._scrollableForm_e3rsf_139 {
|
|
31116
31118
|
flex: 1;
|
|
31117
31119
|
overflow-y: auto;
|
|
31118
31120
|
padding-top: 0px;
|
|
31119
31121
|
padding: 20px;
|
|
31120
31122
|
}
|
|
31121
|
-
.
|
|
31123
|
+
._sectionManagement_e3rsf_127 ._fixedActions_e3rsf_145 {
|
|
31122
31124
|
display: flex;
|
|
31123
31125
|
justify-content: flex-end;
|
|
31124
31126
|
gap: 10px;
|
|
@@ -31126,46 +31128,46 @@ hr {
|
|
|
31126
31128
|
padding-bottom: 5px;
|
|
31127
31129
|
border-top: 1px solid var(--moz-text-tertiary);
|
|
31128
31130
|
}
|
|
31129
|
-
.
|
|
31131
|
+
._specialDatesInfoText_e3rsf_154 {
|
|
31130
31132
|
color: var(--moz-text-secondary);
|
|
31131
31133
|
font-size: 14px;
|
|
31132
31134
|
padding: 5px;
|
|
31133
31135
|
padding-top: 0;
|
|
31134
31136
|
padding-bottom: 0;
|
|
31135
31137
|
}
|
|
31136
|
-
.
|
|
31138
|
+
._closeIcon_e3rsf_162 {
|
|
31137
31139
|
color: var(--moz-text-primary);
|
|
31138
31140
|
cursor: "pointer";
|
|
31139
31141
|
margin-top: 20;
|
|
31140
31142
|
}
|
|
31141
|
-
.
|
|
31143
|
+
._deleteIcon_e3rsf_168 {
|
|
31142
31144
|
color: var(--moz-cta-danger);
|
|
31143
31145
|
cursor: "pointer";
|
|
31144
31146
|
}
|
|
31145
|
-
.
|
|
31147
|
+
._stripeConnectContainer_e3rsf_173 {
|
|
31146
31148
|
margin-bottom: 20px;
|
|
31147
31149
|
display: flex;
|
|
31148
31150
|
justify-content: flex-start;
|
|
31149
31151
|
align-items: center;
|
|
31150
31152
|
gap: 20px;
|
|
31151
31153
|
}
|
|
31152
|
-
.
|
|
31154
|
+
._paymentGatewayContainer_e3rsf_181 {
|
|
31153
31155
|
display: flex;
|
|
31154
31156
|
flex-direction: column;
|
|
31155
31157
|
gap: 30px;
|
|
31156
31158
|
margin-bottom: 30px;
|
|
31157
31159
|
}
|
|
31158
|
-
.
|
|
31160
|
+
._paymentGatewayContainer_e3rsf_181 ._paymentRules_e3rsf_187 {
|
|
31159
31161
|
display: flex;
|
|
31160
31162
|
flex-direction: column;
|
|
31161
31163
|
gap: 20px;
|
|
31162
31164
|
}
|
|
31163
|
-
.
|
|
31165
|
+
._paymentGatewayContainer_e3rsf_181 ._paymentRules_e3rsf_187 ._paymentRulesContainer_e3rsf_192 {
|
|
31164
31166
|
display: flex;
|
|
31165
31167
|
flex-direction: row;
|
|
31166
31168
|
gap: 10px;
|
|
31167
31169
|
}
|
|
31168
|
-
.
|
|
31170
|
+
._paymentRulesDesc_e3rsf_198 {
|
|
31169
31171
|
max-width: 600px;
|
|
31170
31172
|
color: var(--moz-text-secondary);
|
|
31171
31173
|
font-size: 14px;
|