@graphysdk/react-renderer 1.8.1-beta.1787133579967 → 1.8.1-beta.1787147748310

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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./typography-CsG_IWDd.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...c(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=a=>a===void 0?void 0:n.find(i=>i.id===a)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},c=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(d.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){f(r,o);continue}n[r]=t}else n[r]=o;return n},f=(e,n)=>{process.env.NODE_ENV!=="production"&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./dev.utils-BgbO6kNj.cjs");let s=require("@graphysdk/viz-engine/graph-config");var v=(e,n)=>{const r=e.appearance?.textStyle;return{...f(e.themeOverrides),...n&&r?l(r,n):void 0}},l=(e,n)=>{const r=i=>i===void 0?void 0:n.find(d=>d.id===i)?.fontFamily,o=r(e.body?.fontId),t=r(e.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},f=e=>{if(e===void 0)return;const n={};for(const[r,o]of Object.entries(e))if(a.isMeasuredFontTokenKey(r)&&typeof o=="string"){const t=(0,s.parseFontShorthand)(o);if(t===null){c(r,o);continue}n[r]=t}else n[r]=o;return n},c=(e,n)=>{a.IS_DEV&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=v;
@@ -1,32 +1,32 @@
1
- import { l as d } from "./typography-DUFp65Tx.js";
2
- import { parseFontShorthand as s } from "@graphysdk/viz-engine/graph-config";
3
- var p = (e, n) => {
1
+ import { t as d, u as s } from "./dev.utils-D48tAvQu.js";
2
+ import { parseFontShorthand as v } from "@graphysdk/viz-engine/graph-config";
3
+ var y = (e, n) => {
4
4
  const r = e.appearance?.textStyle;
5
5
  return {
6
- ...f(e.themeOverrides),
7
- ...n && r ? v(r, n) : void 0
6
+ ...l(e.themeOverrides),
7
+ ...n && r ? f(r, n) : void 0
8
8
  };
9
- }, v = (e, n) => {
9
+ }, f = (e, n) => {
10
10
  const r = (a) => a === void 0 ? void 0 : n.find((i) => i.id === a)?.fontFamily, o = r(e.body?.fontId), t = r(e.heading?.fontId);
11
11
  return {
12
12
  ...o ? { fontFamilyDefault: o } : void 0,
13
13
  ...t ? { fontFamilyHeading: t } : void 0
14
14
  };
15
- }, f = (e) => {
15
+ }, l = (e) => {
16
16
  if (e === void 0) return;
17
17
  const n = {};
18
- for (const [r, o] of Object.entries(e)) if (d(r) && typeof o == "string") {
19
- const t = s(o);
18
+ for (const [r, o] of Object.entries(e)) if (s(r) && typeof o == "string") {
19
+ const t = v(o);
20
20
  if (t === null) {
21
- l(r, o);
21
+ m(r, o);
22
22
  continue;
23
23
  }
24
24
  n[r] = t;
25
25
  } else n[r] = o;
26
26
  return n;
27
- }, l = (e, n) => {
28
- process.env.NODE_ENV !== "production" && console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`);
27
+ }, m = (e, n) => {
28
+ d && console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${e}": "${n}" is not a measurable font shorthand (needs a px/em size and a family).`);
29
29
  };
30
30
  export {
31
- p as convertGraphConfigTheme
31
+ y as convertGraphConfigTheme
32
32
  };