@pie-lib/render-ui 8.0.7-next.20261019183544 → 8.0.7-next.20261020155912

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.
@@ -9,6 +9,7 @@ declare class UiLayout extends React.Component {
9
9
  rules: PropTypes.Requireable<string>;
10
10
  }>>;
11
11
  fontSizeFactor: PropTypes.Requireable<number>;
12
+ containerRef: PropTypes.Requireable<object>;
12
13
  };
13
14
  static defaultProps: {
14
15
  extraCSSRules: {};
package/dist/ui-layout.js CHANGED
@@ -23,7 +23,8 @@ var l = a({
23
23
  names: n.arrayOf(n.string),
24
24
  rules: n.string
25
25
  }),
26
- fontSizeFactor: n.number
26
+ fontSizeFactor: n.number,
27
+ containerRef: n.oneOfType([n.func, n.object])
27
28
  };
28
29
  static defaultProps = {
29
30
  extraCSSRules: {},
@@ -38,15 +39,16 @@ var l = a({
38
39
  return a === 1 ? null : { fontSize: `${i * a}px` };
39
40
  }
40
41
  render() {
41
- let { children: e, className: t, fontSizeFactor: n, ...a } = this.props, { extraCSSRules: o, ...d } = a, f = this.computeStyle(n);
42
+ let { children: e, className: t, fontSizeFactor: n, containerRef: a, ...o } = this.props, { extraCSSRules: d, ...f } = o, p = this.computeStyle(n);
42
43
  return /* @__PURE__ */ s(r, {
43
44
  injectFirst: !0,
44
45
  children: /* @__PURE__ */ c(i, {
45
46
  theme: l,
46
- children: [o?.rules ? /* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: `.${this.scopeClass} { ${o.rules} }` } }) : null, /* @__PURE__ */ s(u, {
47
+ children: [d?.rules ? /* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: `.${this.scopeClass} { ${d.rules} }` } }) : null, /* @__PURE__ */ s(u, {
48
+ ref: a,
47
49
  className: `${t} extraCSSRules ${this.scopeClass}`,
48
- ...d,
49
- ...f && { style: f },
50
+ ...f,
51
+ ...p && { style: p },
50
52
  children: e
51
53
  })]
52
54
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/render-ui",
3
- "version": "8.0.7-next.20261019183544",
3
+ "version": "8.0.7-next.20261020155912",
4
4
  "description": "Some shared ui elements when rendering - but not worthy of their own package yet.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,13 +12,13 @@
12
12
  "@emotion/styled": "^11.14.1",
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
- "@pie-lib/icons": "5.0.2-next.20261019151920",
15
+ "@pie-lib/icons": "5.0.2-next.20261019223635",
16
16
  "@pie-element/shared-i18n": "0.1.2-next.20261019151920",
17
17
  "debug": "^4.1.1",
18
18
  "prop-types": "^15.7.2",
19
19
  "react-transition-group": "^4.4.5",
20
20
  "@pie-element/shared-math-rendering-mathjax": "0.1.8-next.20261019155156",
21
- "@pie-element/shared-lodash": "0.1.3-next.20261019151920",
21
+ "@pie-element/shared-lodash": "0.1.3-next.20261020155912",
22
22
  "@pie-element/shared-utils": "0.1.6-next.20261019151920"
23
23
  },
24
24
  "type": "module",