@plasmicpkgs/plasmic-rich-components 1.0.153 → 1.0.154

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.
@@ -10,7 +10,7 @@ import { useNormalizedData, deriveFieldConfigs } from '@plasmicapp/data-sources'
10
10
  import { tinycolor } from '@ctrl/tinycolor';
11
11
  import { LogoutOutlined, PlusOutlined, EllipsisOutlined } from '@ant-design/icons';
12
12
  import { ProLayout, ProConfigProvider, ProTable } from '@ant-design/pro-components';
13
- import { useDataEnv, usePlasmicLink } from '@plasmicapp/host';
13
+ import { usePlasmicLink } from '@plasmicapp/host';
14
14
  import { createObjectCsvStringifier } from 'csv-writer-browser';
15
15
  import fastStringify from 'fast-stringify';
16
16
  import classNames from 'classnames';
@@ -1023,7 +1023,6 @@ function RichLayout(_a) {
1023
1023
  "logoElement"
1024
1024
  ]);
1025
1025
  var _a2, _b2, _c, _d, _e;
1026
- const $ctx = useDataEnv();
1027
1026
  const isClient = useIsClient();
1028
1027
  const [pathname, setPathname] = useState(void 0);
1029
1028
  useEffect(() => {
@@ -1031,7 +1030,7 @@ function RichLayout(_a) {
1031
1030
  setPathname(location.pathname);
1032
1031
  }
1033
1032
  }, []);
1034
- const PlasmicLink = (_b2 = (_a2 = usePlasmicLink) == null ? void 0 : _a2()) != null ? _b2 : AnchorLink;
1033
+ const Link = (_b2 = (_a2 = usePlasmicLink) == null ? void 0 : _a2()) != null ? _b2 : AnchorLink;
1035
1034
  const { token } = theme.useToken();
1036
1035
  const origTextColor = token.colorTextBase;
1037
1036
  function getNavBgColor() {
@@ -1150,10 +1149,9 @@ function RichLayout(_a) {
1150
1149
  return footerChildren;
1151
1150
  },
1152
1151
  onMenuHeaderClick: (e) => console.log(e),
1153
- selectedKeys: [$ctx == null ? void 0 : $ctx.pagePath],
1154
- menuItemRender: (item, dom) => /* @__PURE__ */ React.createElement(PlasmicLink, { href: item.path }, dom),
1155
- headerTitleRender: (logoEl, title, _) => {
1156
- return /* @__PURE__ */ React.createElement(PlasmicLink, { href: rootUrl }, logoEl, title);
1152
+ menuItemRender: (item, dom) => /* @__PURE__ */ React.createElement(Link, { href: item.path }, dom),
1153
+ headerTitleRender: (logo2, title, _) => {
1154
+ return /* @__PURE__ */ React.createElement(Link, { href: rootUrl }, logo2, title);
1157
1155
  }
1158
1156
  }),
1159
1157
  children