@bikdotai/bik-component-library 0.0.530-beta0.456667 → 0.0.530-beta0.rt

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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../constants/Theme.js"),r=require("../constants/regexPatterns.js");exports.renderVariableUIForPreview=function(t,a){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.COLORS.content.brand;const o=(null==a?void 0:a.length)?a.map((e=>e.updatedValue)):t.match(r.variablePatternGlobal);if(!o)return t;r.variablePatternGlobal.lastIndex=0;return t.split(r.variablePattern).map(((e,r)=>{const t=o[r];return t?`${e}<span id="connectors_variable_${r+1}" style="color: ${n}; text-decoration: underline; word-break: break-word;">${t}</span>`:e})).join("")};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../constants/Theme.js"),r=require("../constants/regexPatterns.js");exports.renderVariableUIForPreview=function(t,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.COLORS.content.brand;if(!n||!n.length)return t;const l=n.reduce(((e,r)=>{let{variableName:t,updatedValue:n,index:a}=r;return void 0!==a?e[a]=n:e[t]=n,e}),{});r.variablePatternGlobal.lastIndex=0;const o=[...t.matchAll(r.variablePatternGlobal)];let i="",s=0;return o.forEach(((e,r)=>{var n,o;const d=e[0].slice(2,-2),c=null!==(o=null!==(n=l[r])&&void 0!==n?n:l[d])&&void 0!==o?o:e[0];i+=t.slice(s,e.index)+`<span id="connectors_variable_${r}" style="color: ${a}; text-decoration: underline; word-break: break-word;">${c}</span>`,s=e.index+e[0].length})),i+=t.slice(s),i};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const Menus: ({
2
3
  displayName: string;
3
4
  key: number;
@@ -1 +1 @@
1
- import{COLORS as t}from"../../../constants/Theme.js";import{variablePatternGlobal as n,variablePattern as e}from"../constants/regexPatterns.js";const o=function(o,r){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.content.brand;const s=(null==r?void 0:r.length)?r.map((t=>t.updatedValue)):o.match(n);if(!s)return o;n.lastIndex=0;return o.split(e).map(((t,n)=>{const e=s[n];return e?`${t}<span id="connectors_variable_${n+1}" style="color: ${a}; text-decoration: underline; word-break: break-word;">${e}</span>`:t})).join("")};export{o as renderVariableUIForPreview};
1
+ import{COLORS as e}from"../../../constants/Theme.js";import{variablePatternGlobal as n}from"../constants/regexPatterns.js";const t=function(t,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.content.brand;if(!r||!r.length)return t;const l=r.reduce(((e,n)=>{let{variableName:t,updatedValue:r,index:o}=n;return void 0!==o?e[o]=r:e[t]=r,e}),{});n.lastIndex=0;const a=[...t.matchAll(n)];let i="",s=0;return a.forEach(((e,n)=>{var r,a;const c=e[0].slice(2,-2),d=null!==(a=null!==(r=l[n])&&void 0!==r?r:l[c])&&void 0!==a?a:e[0];i+=t.slice(s,e.index)+`<span id="connectors_variable_${n}" style="color: ${o}; text-decoration: underline; word-break: break-word;">${d}</span>`,s=e.index+e[0].length})),i+=t.slice(s),i};export{t as renderVariableUIForPreview};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.530-beta0.456667",
3
+ "version": "0.0.530-beta0.rt",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",