@sprig-technologies/sprig-bundled 2.44.1 → 2.45.0
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.
- package/dist/{conversational-ui-CRewdjoU.cjs → conversational-ui-5FRYaGa1.cjs} +2 -2
- package/dist/{conversational-ui-COl6FnA8.js → conversational-ui-D0rSLvkp.js} +340 -344
- package/dist/{getAttributedUrl-hV9sdUhw.cjs → getAttributedUrl-DCoAixJz.cjs} +1 -1
- package/dist/{getAttributedUrl-BAasxYeK.js → getAttributedUrl-Dq1b-gQL.js} +2 -2
- package/dist/index-BH4S1tUz.js +723 -0
- package/dist/{index-BmZLh0D5.cjs → index-BzAnV7nc.cjs} +2 -2
- package/dist/{index-Rlf7G5CR.js → index-Czvv7meW.js} +3 -3
- package/dist/index-zTKRoMdd.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +22 -8
- package/dist/index.js +1 -1
- package/dist/{view-Bu60Bbor.js → view-Cu4weTLz.js} +764 -755
- package/dist/view-K_OZdlXf.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-CFqCviWk.js +0 -719
- package/dist/index-D9N16jUh.cjs +0 -1
- package/dist/view-AjjMeNkz.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./view-
|
|
1
|
+
"use strict";const e=require("./view-K_OZdlXf.cjs"),T=require("./index-BzAnV7nc.cjs"),_=t=>e.u("button",{...t,className:e.cc("ul-card-text__button",t.className),id:"ul-card-text__button"}),A=({html:t,...n})=>{const{enableCspTrustedTypes:l}=e.useConfig(i=>({enableCspTrustedTypes:i.enableCspTrustedTypes})),o=e.F(()=>T.getHtml(t,l),[l,t]);return e.u("div",{...n,dangerouslySetInnerHTML:{__html:o}})},I=()=>{const{viewDocument:t}=e.useConfig(o=>({viewDocument:o.viewDocument})),[n,l]=e.h(!1);return e.p(()=>{const o=t.querySelector(".sprig-question-body"),i=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{l(!!(o&&T.isHTMLElement(o)&&o.scrollHeight>o.offsetHeight))})});return o&&i.observe(o),()=>{o&&i.disconnect()}},[t]),n},L=({plainText:t,richText:n,id:l,className:o,isHeader:i,showAsterisk:s})=>n?e.u(A,{className:o,html:n,id:l}):t?i?e.u("h1",{className:o,id:l,children:[t,s&&"*"]}):e.u("p",{className:o,id:l,children:t}):null,M=()=>e.u("svg",{fill:"none",height:"10",viewBox:"0 0 13 10",width:"13",xmlns:"http://www.w3.org/2000/svg",children:e.u("path",{d:"M11.5 1.5L4.5 8.5L1 5",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),$=({buttonText:t="View Prototype",handleClick:n})=>e.u("button",{className:"prototype-button",onClick:n,children:t},"prototype-btn"),P=({isSelected:t,id:n,divId:l,themeColor:o,disabled:i=!1})=>e.u("div",{"aria-checked":t,"aria-disabled":i,"aria-labelledby":`label-${n}`,className:"select-checkbox",id:l,role:"checkbox",style:{...t?{backgroundColor:o,borderColor:o,boxShadow:"none"}:{},...i?{opacity:.5}:{}},tabIndex:i?-1:0,children:t&&e.u(e.SvgCheckmark,{})}),V=({promptText:t,textValue:n,onTextChange:l,useMobileStyling:o})=>{const i=e._(null);return e.p(()=>{i.current&&i.current.focus()},[]),e.u("textarea",{"aria-label":t,"aria-multiline":"true","aria-placeholder":t,className:e.cc(e.getClasses("choice-text-input",o)),"data-gramm":"false",maxLength:5e3,name:"text",onChange:s=>{s.stopPropagation(),l(s.currentTarget.value)},onClick:s=>{s.stopPropagation()},onKeyPress:s=>{s.stopPropagation()},placeholder:t,ref:i,role:"textbox",rows:1,value:n})},q="ul-select-style-element",R="ul-select-active-dynamic-style",H="ul-select-error-dynamic-style",j=(t,n,l)=>{let o=t.getElementById(q),i=!1;o||(o=t.createElement("style"),i=!0),o.tagName.toLowerCase()==="style"&&(o.id=q,l&&(o.nonce=l),o.textContent=z(n),i&&t.head.appendChild(o))},z=t=>`
|
|
2
2
|
.${R} {
|
|
3
3
|
border-color: ${t};
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as s, c as C, u as k, F as Z, h as R, p as E, _ as S, d as H,
|
|
2
|
-
import { j as J, k as X, l as Y, m as ee, E as j } from "./index-
|
|
1
|
+
import { a as s, c as C, u as k, F as Z, h as R, p as E, _ as S, d as H, y as Q, b as q, z as _, B as G } from "./view-Cu4weTLz.js";
|
|
2
|
+
import { j as J, k as X, l as Y, m as ee, E as j } from "./index-Czvv7meW.js";
|
|
3
3
|
const te = (e) => s("button", { ...e, className: C("ul-card-text__button", e.className), id: "ul-card-text__button" }), oe = ({ html: e, ...o }) => {
|
|
4
4
|
const { enableCspTrustedTypes: i } = k((n) => ({ enableCspTrustedTypes: n.enableCspTrustedTypes })), t = Z(() => J(e, i), [i, e]);
|
|
5
5
|
return s("div", { ...o, dangerouslySetInnerHTML: { __html: t } });
|