@plasmicapp/react-web 0.2.113 → 0.2.115
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/all.d.ts +5 -1
- package/dist/react-web.cjs.development.js +4 -1
- package/dist/react-web.cjs.development.js.map +1 -1
- package/dist/react-web.cjs.production.min.js +1 -1
- package/dist/react-web.cjs.production.min.js.map +1 -1
- package/dist/react-web.esm.js +4 -1
- package/dist/react-web.esm.js.map +1 -1
- package/dist/states/helpers.d.ts +2 -0
- package/package.json +2 -2
- package/skinny/dist/index.js +1 -1
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/states/helpers.d.ts +2 -0
package/dist/react-web.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import classNames$1 from 'classnames';
|
|
2
2
|
import _get from 'dlv';
|
|
3
|
+
export { default as get } from 'dlv';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import React__default, { forwardRef, createElement, Fragment, isValidElement, useContext, createContext, useState, useRef, useMemo, useImperativeHandle, useCallback, cloneElement } from 'react';
|
|
5
6
|
import ReactDOM__default, { createPortal } from 'react-dom';
|
|
@@ -1276,7 +1277,9 @@ var PlasmicLink = /*#__PURE__*/React__default.forwardRef(function PlasmicLink(pr
|
|
|
1276
1277
|
// then we just render the default anchor element
|
|
1277
1278
|
if (props.platform === "nextjs" && props.href) {
|
|
1278
1279
|
var nextjsProps = ["href", "replace", "scroll", "shallow", "passHref", "prefetch", "locale"];
|
|
1279
|
-
return React__default.createElement(props.component,
|
|
1280
|
+
return React__default.createElement(props.component, _extends({}, pick.apply(void 0, [props].concat(nextjsProps)), {
|
|
1281
|
+
legacyBehavior: true
|
|
1282
|
+
}), React__default.createElement("a", Object.assign({}, omit.apply(void 0, [props, "component", "platform"].concat(nextjsProps)), {
|
|
1280
1283
|
ref: ref
|
|
1281
1284
|
})));
|
|
1282
1285
|
}
|