@webority/ui-react 0.12.2 → 0.12.3

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.
@@ -29,10 +29,11 @@ import "@webority/ui-elements";
29
29
  * @param {string} [props.functionalDescription] What the functional category covers.
30
30
  * @param {string} [props.marketingDescription] What the marketing category covers.
31
31
  * @param {"bottom-left"|"bottom-right"} [props.position='bottom-left'] Which corner it pins to.
32
+ * @param {boolean} [props.standalone=false] Render sealed in a shadow root with bundled styles, for a page that does not load `@webority/theme`.
32
33
  * @param {string} [props.className] Extra classes on the element.
33
34
  * @param {import('react').CSSProperties} [props.style] Inline style; lands on the element with `className`.
34
35
  */
35
- export default function AppConsentBanner({ heading, description, policyHref, policyLabel, analyticsDescription, functionalDescription, marketingDescription, position, className, style, ...rest }: {
36
+ export default function AppConsentBanner({ heading, description, policyHref, policyLabel, analyticsDescription, functionalDescription, marketingDescription, position, standalone, className, style, ...rest }: {
36
37
  heading?: string;
37
38
  description?: string;
38
39
  policyHref?: string;
@@ -41,6 +42,7 @@ export default function AppConsentBanner({ heading, description, policyHref, pol
41
42
  functionalDescription?: string;
42
43
  marketingDescription?: string;
43
44
  position?: "bottom-left" | "bottom-right";
45
+ standalone?: boolean;
44
46
  className?: string;
45
47
  style?: import('react').CSSProperties;
46
48
  }): import("react").JSX.Element;
package/dist/ui-react.js CHANGED
@@ -2167,18 +2167,18 @@ function At({ open: e, title: t, message: n, confirmLabel: r = "Confirm", cancel
2167
2167
  //#endregion
2168
2168
  //#region src/components/AppConsentBanner.jsx
2169
2169
  var jt = ["bottom-left", "bottom-right"];
2170
- function Mt({ heading: e, description: t, policyHref: n, policyLabel: r, analyticsDescription: i, functionalDescription: a, marketingDescription: s, position: c = "bottom-left", className: l = "", style: u, ...d }) {
2171
- U("AppConsentBanner", d), W("AppConsentBanner", "position", c, jt);
2172
- let { setRef: f, innerRef: p } = Q({ on: { "wui-consent-save": (e) => {
2173
- R(e.detail), p.current && (p.current.preferences = L());
2170
+ function Mt({ heading: e, description: t, policyHref: n, policyLabel: r, analyticsDescription: i, functionalDescription: a, marketingDescription: s, position: c = "bottom-left", standalone: l = !1, className: u = "", style: d, ...f }) {
2171
+ U("AppConsentBanner", f), W("AppConsentBanner", "position", c, jt);
2172
+ let { setRef: p, innerRef: m } = Q({ on: { "wui-consent-save": (e) => {
2173
+ R(e.detail), m.current && (m.current.preferences = L());
2174
2174
  } } });
2175
2175
  return o(() => {
2176
- let e = p.current;
2176
+ let e = m.current;
2177
2177
  if (!e) return;
2178
2178
  let t = L();
2179
2179
  e.preferences = t, t.decided || e.open();
2180
- }, [p]), /* @__PURE__ */ E("wui-consent-banner", {
2181
- ref: f,
2180
+ }, [m]), /* @__PURE__ */ E("wui-consent-banner", {
2181
+ ref: p,
2182
2182
  position: c,
2183
2183
  heading: e || void 0,
2184
2184
  description: t || void 0,
@@ -2187,9 +2187,10 @@ function Mt({ heading: e, description: t, policyHref: n, policyLabel: r, analyti
2187
2187
  "analytics-description": i || void 0,
2188
2188
  "functional-description": a || void 0,
2189
2189
  "marketing-description": s || void 0,
2190
- class: l || void 0,
2191
- style: u,
2192
- ...d
2190
+ standalone: l || void 0,
2191
+ class: u || void 0,
2192
+ style: d,
2193
+ ...f
2193
2194
  });
2194
2195
  }
2195
2196
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@webority/theme": "0.12.2",
32
- "@webority/ui-elements": "0.12.2"
31
+ "@webority/theme": "0.12.3",
32
+ "@webority/ui-elements": "0.12.3"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@webority/analytics": "^0.5.2",