@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/index.cjs.js
CHANGED
|
@@ -185,6 +185,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
185
185
|
|
|
186
186
|
// https://stackoverflow.com/a/2117523
|
|
187
187
|
function uuidv4() {
|
|
188
|
+
// eslint-disable-next-line
|
|
188
189
|
// @ts-ignore
|
|
189
190
|
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function (c) {
|
|
190
191
|
return (c ^
|
|
@@ -230,6 +231,7 @@ function triggerLogin(appId, authorizeEndpoint, redirectUri) {
|
|
|
230
231
|
params.set("response_type", "code");
|
|
231
232
|
params.set("code_challenge", code_challenge);
|
|
232
233
|
params.set("code_challenge_method", "S256");
|
|
234
|
+
params.set("origin_host", window.location.host);
|
|
233
235
|
if (redirectUri) {
|
|
234
236
|
params.set("redirect_uri", redirectUri);
|
|
235
237
|
}
|
|
@@ -721,7 +723,8 @@ function wrapFlexContainerChildren(children, hasGap) {
|
|
|
721
723
|
}
|
|
722
724
|
}
|
|
723
725
|
function createPlasmicElement(override, defaultRoot, defaultProps, wrapChildrenInFlex) {
|
|
724
|
-
if (!override ||
|
|
726
|
+
if (!override ||
|
|
727
|
+
(typeof override === "object" && Object.keys(override).length === 0)) {
|
|
725
728
|
return createElementWithChildren(defaultRoot, defaultProps, defaultProps.children);
|
|
726
729
|
}
|
|
727
730
|
var override2 = deriveOverride(override);
|