@plasmicapp/react-web 0.2.281 → 0.2.283
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/dist/react-web.esm.js
CHANGED
|
@@ -167,6 +167,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
167
167
|
|
|
168
168
|
// https://stackoverflow.com/a/2117523
|
|
169
169
|
function uuidv4() {
|
|
170
|
+
// eslint-disable-next-line
|
|
170
171
|
// @ts-ignore
|
|
171
172
|
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function (c) {
|
|
172
173
|
return (c ^
|
|
@@ -212,6 +213,7 @@ function triggerLogin(appId, authorizeEndpoint, redirectUri) {
|
|
|
212
213
|
params.set("response_type", "code");
|
|
213
214
|
params.set("code_challenge", code_challenge);
|
|
214
215
|
params.set("code_challenge_method", "S256");
|
|
216
|
+
params.set("origin_host", window.location.host);
|
|
215
217
|
if (redirectUri) {
|
|
216
218
|
params.set("redirect_uri", redirectUri);
|
|
217
219
|
}
|
|
@@ -703,7 +705,8 @@ function wrapFlexContainerChildren(children, hasGap) {
|
|
|
703
705
|
}
|
|
704
706
|
}
|
|
705
707
|
function createPlasmicElement(override, defaultRoot, defaultProps, wrapChildrenInFlex) {
|
|
706
|
-
if (!override ||
|
|
708
|
+
if (!override ||
|
|
709
|
+
(typeof override === "object" && Object.keys(override).length === 0)) {
|
|
707
710
|
return createElementWithChildren(defaultRoot, defaultProps, defaultProps.children);
|
|
708
711
|
}
|
|
709
712
|
var override2 = deriveOverride(override);
|