@telia-ace/knowledge-widget-ui 1.1.5 → 1.1.6

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.
Files changed (3) hide show
  1. package/index.js +35 -35
  2. package/index.mjs +152 -148
  3. package/package.json +4 -4
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("@telia-ace/widget-ui"),v=require("@telia-ace/widget-utilities"),d=require("@emotion/styled"),u=require("react"),y=require("@emotion/react"),P=({title:e="",className:t,id:a,parent:o,connection:i,type:r,target:l,href:h,children:c,connectionKey:m})=>{const p={},{name:f,params:g}=s.useRouteData();switch(r){case"default":case"guide":const{id:w,title:b}=o;let $=m||i;w!==a&&!m&&($=void 0),p.routeName=f,p.params=v.createParams({...g,guide:a,connection:$,uriName:a===w?v.formatUrl(b):v.formatUrl(e)});break;case"link":p.href=h,p.target=l;break}return n.jsx(s.Link,{className:v.appendClassNames(t,"humany-dialog-link"),...p,children:c||n.jsxs(n.Fragment,{children:[r==="link"&&n.jsx(s.Icon,{faIcon:"link"}),n.jsx("span",{children:e})]})})},ue=u.forwardRef(({className:e,dialog:t,...a},o)=>t.length?n.jsx(fe,{className:v.appendClassNames(e,"humany-dialog"),items:t,renderItem:i=>n.jsx("li",{"data-dialog":i.connection,children:n.jsx(P,{...i})},i.connection),...a,ref:o}):null),fe=d(s.List)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("@telia-ace/widget-ui"),v=require("@telia-ace/widget-utilities"),d=require("@emotion/styled"),u=require("react"),y=require("@emotion/react"),P=({title:e="",className:t,id:a,parent:i,connection:o,type:r,target:l,href:h,children:c,connectionKey:m})=>{const p={},{name:f,params:g}=s.useRouteData();switch(r){case"default":case"guide":const{id:w,title:b}=i;let $=m||o;w!==a&&!m&&($=void 0),p.routeName=f,p.params=v.createParams({...g,guide:a,connection:$,uriName:a===w?v.formatUrl(b):v.formatUrl(e)});break;case"link":p.href=h,p.target=l;break}return n.jsx(s.Link,{className:v.appendClassNames(t,"humany-dialog-link"),...p,children:c||n.jsxs(n.Fragment,{children:[r==="link"&&n.jsx(s.Icon,{faIcon:"link"}),n.jsx("span",{children:e})]})})},ge=u.forwardRef(({className:e,dialog:t,...a},i)=>t.length?n.jsx(pe,{className:v.appendClassNames(e,"humany-dialog"),items:t,renderItem:o=>n.jsx("li",{"data-dialog":o.connection,children:n.jsx(P,{...o})},o.connection),...a,ref:i}):null),pe=d(s.List)`
2
2
  ${s.list}
3
3
  a {
4
4
  min-width: 150px;
@@ -11,7 +11,7 @@
11
11
  i {
12
12
  margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
13
13
  }
14
- `,ge=({trigger:e,header:t,className:a,animation:o,fullScreen:i,onToggle:r,children:l,ref:h,closeButtonAriaLabel:c,...m})=>n.jsx(s.Drawer,{className:v.appendClassNames(a,"humany-drawer-list"),trigger:e,header:t,animation:o,fullScreen:i,onToggle:r,closeButtonAriaLabel:c,children:n.jsx(pe,{...m,children:l})}),pe=d(s.ItemList)`
14
+ `,xe=({trigger:e,header:t,className:a,animation:i,fullScreen:o,onToggle:r,children:l,ref:h,closeButtonAriaLabel:c,...m})=>n.jsx(s.Drawer,{className:v.appendClassNames(a,"humany-drawer-list"),trigger:e,header:t,animation:i,fullScreen:o,onToggle:r,closeButtonAriaLabel:c,children:n.jsx(ye,{...m,children:l})}),ye=d(s.ItemList)`
15
15
  ${s.itemList}
16
16
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
17
17
  padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
@@ -20,13 +20,13 @@
20
20
  font-weight: 300;
21
21
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
22
22
  }
23
- `,xe=({items:e,renderItem:t,trigger:a,header:o,children:i})=>n.jsx(s.Dropdown,{className:"humany-dropdown-actions",trigger:a,children:n.jsxs(ye,{children:[!!o&&n.jsx(ve,{children:o}),e&&t&&n.jsx($e,{items:e,renderItem:t}),i]})}),ye=d.div`
23
+ `,ve=({items:e,renderItem:t,trigger:a,header:i,children:o})=>n.jsx(s.Dropdown,{className:"humany-dropdown-actions",trigger:a,children:n.jsxs($e,{children:[!!i&&n.jsx(be,{children:i}),e&&t&&n.jsx(we,{items:e,renderItem:t}),o]})}),$e=d.div`
24
24
  background: #fff;
25
25
  border: #ccc 1px solid;
26
26
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
27
27
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
28
28
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
29
- `,ve=d.div`
29
+ `,be=d.div`
30
30
  padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
31
31
  padding-bottom: 0;
32
32
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
@@ -50,7 +50,7 @@
50
50
  i {
51
51
  margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
52
52
  }
53
- `,$e=d(s.List)`
53
+ `,we=d(s.List)`
54
54
  list-style: none;
55
55
  padding: 0;
56
56
  margin: 0;
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
  }
76
- `,be=({trigger:e,className:t,children:a,closeButtonAriaLabel:o,...i})=>n.jsx(s.Dropdown,{className:v.appendClassNames(t,"humany-dropdown-list"),closeButtonAriaLabel:o,trigger:e,children:n.jsx(we,{...i,children:a})}),we=d(s.ItemList)`
76
+ `,je=({trigger:e,className:t,children:a,closeButtonAriaLabel:i,...o})=>n.jsx(s.Dropdown,{className:v.appendClassNames(t,"humany-dropdown-list"),closeButtonAriaLabel:i,trigger:e,children:n.jsx(ke,{...o,children:a})}),ke=d(s.ItemList)`
77
77
  ${s.itemList}
78
78
  font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
79
79
  > div {
@@ -107,12 +107,12 @@
107
107
  .humany-loader {
108
108
  opacity: ${e["data-loading"]?"1":"0"};
109
109
  }
110
- `,je=d(s.Icon)`
110
+ `,Se=d(s.Icon)`
111
111
  && {
112
112
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
113
113
  }
114
114
  width: 1.2em;
115
- `,ke=d(s.Text)`
115
+ `,ze=d(s.Text)`
116
116
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.medium}};
117
117
  font-weight: normal;
118
118
  line-height: 1.2em;
@@ -142,7 +142,7 @@
142
142
  flex: 1;
143
143
  font-weight: 300;
144
144
  }
145
- `,_=({addFavoriteTooltip:e,removeFavoriteCancelLabel:t,removeFavoriteConfirmLabel:a,removeFavoriteHeader:o,removeFavoriteLabel:i,removeFavoriteTooltip:r,id:l,isFavorite:h,guideTitle:c,buttonLabel:m="",actions:{addFavorite:p,removeFavorite:f}})=>{const g=u.useCallback(()=>{f(l)},[l,f]),w=u.useCallback(()=>{p(l)},[l,p]),b=`${h?r:e}${c?`: "${c}"`:""}`;return h?n.jsx(s.Confirm,{trigger:n.jsxs(M,{className:"humany-favorite-button",title:b,"aria-label":b,"data-favorite":"true","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]}),onConfirm:g,cancelLabel:t,confirmLabel:a,header:o,text:i}):n.jsxs(M,{className:"humany-favorite-button",title:b,"aria-label":b,onClick:w,"data-favorite":"false","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]})},M=d(Y)`
145
+ `,_=({addFavoriteTooltip:e,removeFavoriteCancelLabel:t,removeFavoriteConfirmLabel:a,removeFavoriteHeader:i,removeFavoriteLabel:o,removeFavoriteTooltip:r,id:l,isFavorite:h,guideTitle:c,buttonLabel:m="",actions:{addFavorite:p,removeFavorite:f}})=>{const g=u.useCallback(()=>{f(l)},[l,f]),w=u.useCallback(()=>{p(l)},[l,p]),b=`${h?r:e}${c?`: "${c}"`:""}`;return h?n.jsx(s.Confirm,{trigger:n.jsxs(M,{className:"humany-favorite-button",title:b,"aria-label":b,"data-favorite":"true","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]}),onConfirm:g,cancelLabel:t,confirmLabel:a,header:i,text:o}):n.jsxs(M,{className:"humany-favorite-button",title:b,"aria-label":b,onClick:w,"data-favorite":"false","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]})},M=d(Y)`
146
146
  grid-area: favorite;
147
147
 
148
148
  &:focus-visible {
@@ -163,16 +163,16 @@
163
163
  }
164
164
  }
165
165
 
166
- ${e=>{var t,a,o,i,r,l,h;return((t=e.theme.colors)==null?void 0:t.text)&&y.css`
166
+ ${e=>{var t,a,i,o,r,l,h;return((t=e.theme.colors)==null?void 0:t.text)&&y.css`
167
167
  svg {
168
168
  stroke: ${(a=e.theme.colors)==null?void 0:a.text};
169
169
 
170
170
  path {
171
- stroke: ${(o=e.theme.colors)==null?void 0:o.text};
171
+ stroke: ${(i=e.theme.colors)==null?void 0:i.text};
172
172
  }
173
173
 
174
174
  ${e["data-favorite"]==="true"&&`
175
- fill: ${(i=e.theme.colors)==null?void 0:i.text};
175
+ fill: ${(o=e.theme.colors)==null?void 0:o.text};
176
176
 
177
177
  path {
178
178
  fill: ${(r=e.theme.colors)==null?void 0:r.text};
@@ -198,7 +198,7 @@
198
198
  }
199
199
  }
200
200
  `}}
201
- `,Se=u.forwardRef(({onFeedback:e=()=>{},direction:t="horizontal",className:a,header:o,positive:i,negative:r,selected:l,...h},c)=>n.jsxs(Le,{className:v.appendClassNames(a,"humany-feedback"),"data-direction":t,...s.convertToStringAttributes(h),ref:c,children:[!!o&&n.jsx(ze,{children:o}),n.jsxs(O,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="positive","data-direction":t,onClick:()=>e("positive"),children:[n.jsx(s.Icon,{faIcon:"smile-o"}),n.jsx("span",{children:i})]}),n.jsxs(O,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="negative","data-direction":t,onClick:()=>e("negative"),children:[n.jsx(s.Icon,{faIcon:"frown-o"}),n.jsx("span",{children:r})]})]})),ze=d(s.StyledText)`
201
+ `,Le=u.forwardRef(({onFeedback:e=()=>{},direction:t="horizontal",className:a,header:i,positive:o,negative:r,selected:l,...h},c)=>n.jsxs(Ce,{className:v.appendClassNames(a,"humany-feedback"),"data-direction":t,...s.convertToStringAttributes(h),ref:c,children:[!!i&&n.jsx(Ne,{children:i}),n.jsxs(O,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="positive","data-direction":t,onClick:()=>e("positive"),children:[n.jsx(s.Icon,{faIcon:"smile-o"}),n.jsx("span",{children:o})]}),n.jsxs(O,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="negative","data-direction":t,onClick:()=>e("negative"),children:[n.jsx(s.Icon,{faIcon:"frown-o"}),n.jsx("span",{children:r})]})]})),Ne=d(s.StyledText)`
202
202
  font-weight: normal;
203
203
  margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
204
204
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
@@ -225,7 +225,7 @@
225
225
  i {
226
226
  margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
227
227
  }
228
- `,Le=d.div`
228
+ `,Ce=d.div`
229
229
  ${e=>{var t;return e["data-direction"]==="vertical"&&y.css`
230
230
  > button {
231
231
  width: 100%;
@@ -234,7 +234,7 @@
234
234
  }
235
235
  }
236
236
  `}}
237
- `,Ne=()=>{const[e,t]=u.useState(null),a=s.useKeyPress("ArrowLeft"),o=s.useKeyPress("ArrowRight"),i=s.useKeyPress("ArrowUp"),r=s.useKeyPress("ArrowDown"),l=()=>{t(a?"left":o?"right":i?"up":r?"down":null)};return u.useEffect(l,[a,o,i,r]),e},Ce=(e,t)=>{const[a,o]=u.useState(e),i=u.useCallback(()=>setTimeout(()=>{o(e)},t),[t,o,e]);return u.useEffect(()=>{const r=i();return()=>{clearTimeout(r)}},[i]),a},K=()=>{const e=s.useContainer(),[t,a]=u.useState([]),o=e.get("favorites");u.useEffect(()=>{if(o){a(o.get());const{events:c}=e.get("$widget");return c.subscribe("widget:favorites-updated",(p,{updated:f})=>{a([...f])})}},[]);const i=c=>o?o.add(c):Promise.resolve([]),r=c=>o?o.remove(c):Promise.resolve([]),l=()=>o?o.clear():Promise.resolve([]),h=u.useCallback(c=>t.indexOf(c)>-1?r(c):i(c),[t]);return[t,u.useMemo(()=>({addFavorite:i,removeFavorite:r,clearFavorites:l,toggleFavorite:h}),[t])]},Te=()=>{const[e,t]=u.useState(!1),a=u.useRef(),o=u.useCallback(()=>t(!0),[t]),i=u.useCallback(()=>t(!1),[t]);return s.useEventListener("mouseenter",o,a.current),s.useEventListener("mouseleave",i,a.current),[e,a]},U=({format:e=s.DateFormats.YYYY_MM_DD_HH_MM,className:t="",byLabel:a="",modifiedLabel:o="",publishedLabel:i="",modifiedBy:r="",publishedBy:l="",showModified:h=!1,showPublished:c=!1,modified:m,published:p})=>{const f=c&&p?n.jsx(H,{format:e,timestamp:p}):null,g=h&&m?n.jsx(H,{format:e,timestamp:m}):null;return!f&&!g?null:n.jsxs(F,{className:v.appendClassNames(t,"humany-metadata"),children:[f&&n.jsxs(F,{className:"humany-published",children:[i,f,a&&l&&` ${a.replace("{{editor}}",l)}`]}),g&&n.jsxs(F,{className:"humany-modified",children:[f&&", ",o,g,a&&r&&` ${a.replace("{{editor}}",r)}`]})]})},H=d(s.Timestamp)`
237
+ `,Te=()=>{const[e,t]=u.useState(null),a=s.useKeyPress("ArrowLeft"),i=s.useKeyPress("ArrowRight"),o=s.useKeyPress("ArrowUp"),r=s.useKeyPress("ArrowDown"),l=()=>{t(a?"left":i?"right":o?"up":r?"down":null)};return u.useEffect(l,[a,i,o,r]),e},Ie=(e,t)=>{const[a,i]=u.useState(e),o=u.useCallback(()=>setTimeout(()=>{i(e)},t),[t,i,e]);return u.useEffect(()=>{const r=o();return()=>{clearTimeout(r)}},[o]),a},K=()=>{const e=s.useContainer(),[t,a]=u.useState([]),i=e.get("favorites");u.useEffect(()=>{if(i){a(i.get());const{events:c}=e.get("$widget");return c.subscribe("widget:favorites-updated",(p,{updated:f})=>{a([...f])})}},[]);const o=c=>i?i.add(c):Promise.resolve([]),r=c=>i?i.remove(c):Promise.resolve([]),l=()=>i?i.clear():Promise.resolve([]),h=u.useCallback(c=>t.indexOf(c)>-1?r(c):o(c),[t]);return[t,u.useMemo(()=>({addFavorite:o,removeFavorite:r,clearFavorites:l,toggleFavorite:h}),[t])]},De=()=>{const[e,t]=u.useState(!1),a=u.useRef(),i=u.useCallback(()=>t(!0),[t]),o=u.useCallback(()=>t(!1),[t]);return s.useEventListener("mouseenter",i,a.current),s.useEventListener("mouseleave",o,a.current),[e,a]},U=({format:e=s.DateFormats.YYYY_MM_DD_HH_MM,className:t="",byLabel:a="",modifiedLabel:i="",publishedLabel:o="",modifiedBy:r="",publishedBy:l="",showModified:h=!1,showPublished:c=!1,modified:m,published:p})=>{const f=c&&p?n.jsx(H,{format:e,timestamp:p}):null,g=h&&m?n.jsx(H,{format:e,timestamp:m}):null;return!f&&!g?null:n.jsxs(F,{className:v.appendClassNames(t,"humany-metadata"),children:[f&&n.jsxs(F,{className:"humany-published",children:[o,f,a&&l&&` ${a.replace("{{editor}}",l)}`]}),g&&n.jsxs(F,{className:"humany-modified",children:[f&&", ",i,g,a&&r&&` ${a.replace("{{editor}}",r)}`]})]})},H=d(s.Timestamp)`
238
238
  &:not(:first-child) {
239
239
  margin-left: 4px;
240
240
  }
@@ -243,7 +243,7 @@
243
243
  }
244
244
  `,F=d(s.Text)`
245
245
  font-style: italic;
246
- `,Ie=({tags:e})=>e.filter(t=>t.symbol).length?n.jsx(Ae,{className:"humany-guide-list-tags",items:e,renderItem:({id:t,symbol:a,title:o})=>a&&n.jsx("li",{"data-tag":t,children:n.jsx(Re,{size:18,symbol:a,title:o})},t)}):null,De=u.forwardRef(({title:e,id:t,route:a,symbolSize:o,collapseUri:i,children:r},l)=>{const{params:h}=s.useRouteData();return n.jsxs(Be,{ref:l,"data-guide":t,children:[n.jsx(s.TextLink,{title:e,"aria-label":e,routeName:a,params:v.createParams({...h,uriName:i||void 0,id:void 0,guide:void 0,accordion:void 0}),text:e,children:n.jsx(s.SymbolBadge,{size:o,symbol:{type:"Svg",content:"caret-up"}})}),r]})}),Be=d.li`
246
+ `,Be=({tags:e})=>e.filter(t=>t.symbol).length?n.jsx(Ee,{className:"humany-guide-list-tags",items:e,renderItem:({id:t,symbol:a,title:i})=>a&&n.jsx("li",{"data-tag":t,children:n.jsx(Me,{size:18,symbol:a,title:i})},t)}):null,Fe=u.forwardRef(({title:e,id:t,route:a,symbolSize:i,collapseUri:o,children:r},l)=>{const{params:h}=s.useRouteData();return n.jsxs(Pe,{ref:l,"data-guide":t,children:[n.jsx(s.TextLink,{title:e,"aria-label":e,routeName:a,params:v.createParams({...h,uriName:o||void 0,id:void 0,guide:void 0,accordion:void 0}),text:e,children:n.jsx(s.SymbolBadge,{size:i,symbol:{type:"Svg",content:"caret-up"}})}),r]})}),Pe=d.li`
247
247
  > a {
248
248
  grid-column: 1/-1;
249
249
  font-weight: bold;
@@ -253,7 +253,7 @@
253
253
  > div {
254
254
  grid-column: 1/-1;
255
255
  }
256
- `,Fe=u.forwardRef(({expandable:e=!1,routing:t={},paramMappers:a={},symbolSize:o=11,pageRole:i="link",pageCaret:r="down",showTags:l=!1,showFavoriteToggle:h=!1,localPaging:c=!1,onItemClick:m=()=>{},dispatch:p=()=>{},metadata:f={},pageLabel:g,className:w,children:b,items:$,renderItem:S,addFavoriteTooltip:J,removeFavoriteCancelLabel:Q,removeFavoriteConfirmLabel:X,removeFavoriteHeader:Z,removeFavoriteLabel:ee,removeFavoriteTooltip:te,searchResultsEmptyLabel:se,...A},ae)=>{const R=s.useIsTabbing(),L=u.useRef(),N=s.usePrevious($),{guide:ne="guide",page:oe="index"}=t,{guide:ie=({id:x})=>v.createParams({guide:x}),page:E=()=>v.createParams()}=a,[re,le]=K();u.useImperativeHandle(ae,()=>L.current);const D=x=>{const{id:k,title:j,tags:z,published:T,modified:C,publishedBy:I,modifiedBy:B}=x;return n.jsxs("li",{"data-guide":k,"has-metadata":(!!(f!=null&&f.showPublished)&&!!T||!!(f!=null&&f.showModified)&&!!C).toString(),children:[n.jsx(s.TextLink,{className:"humany-guide-link",title:j,"aria-label":j,routeName:ne,onClick:he=>m(he,x),params:ie(x),text:j,children:n.jsx(s.SymbolBadge,{size:o,symbol:{type:"Svg",content:e?"caret-down":"caret-right"}})}),h&&n.jsx(_,{guideTitle:j,addFavoriteTooltip:J,removeFavoriteCancelLabel:Q,removeFavoriteConfirmLabel:X,removeFavoriteHeader:Z,removeFavoriteLabel:ee,removeFavoriteTooltip:te,isFavorite:re.indexOf(k)>-1,actions:le,id:k}),l&&n.jsx(Ie,{tags:z}),n.jsx(Ee,{...f,indent:e?void 0:o,modified:C,published:T,publishedBy:I,modifiedBy:B})]},k)},ce=u.useCallback((x,k,j)=>S?S(x,k,j,D):D(x),[S,D]),de=u.useCallback(x=>{c&&(x.preventDefault(),p("page",E()))},[p,c]);u.useEffect(()=>{if(N&&N.length<$.length&&L.current){const x=L.current.querySelectorAll(".humany-guide-list > ul > li"),k=x[N.length];if(x.length===$.length&&N.length){const j=x[N.length];if(j){const z=j.querySelector(".humany-guide-link");z&&z.focus()}}else k&&new MutationObserver((z,T)=>{z.forEach(C=>{if(C.addedNodes){const I=Array.from(C.addedNodes).find(B=>B.tagName==="A");I&&v.htmlParentContains(L.current,document.activeElement)&&(R&&I.focus(),T.disconnect())}})}).observe(k,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})}});const me=!!Object.keys(f).filter(x=>typeof f[x]<"u").length;return n.jsxs(Pe,{className:v.appendClassNames(w,"humany-guide-list"),"data-item-count":$.length,items:$,renderItem:ce,isTabbing:R,expandable:e?"true":"false","grid-items":l||h||me?"true":"false",...s.convertToStringAttributes(A),ref:L,children:[g?n.jsx(s.TextLink,{text:g,title:g,"aria-label":g,routeName:oe,role:i,params:E(),onClick:de,children:n.jsx(s.SymbolBadge,{size:o,symbol:{type:"Svg",content:`caret-${r}`}})}):null,b,!A["data-loading"]&&$.length===0&&n.jsx("p",{children:se})]})}),Pe=d(s.ItemList)`
256
+ `,Ae=u.forwardRef(({expandable:e=!1,routing:t={},paramMappers:a={},symbolSize:i=11,pageRole:o="link",pageCaret:r="down",showTags:l=!1,showFavoriteToggle:h=!1,localPaging:c=!1,onItemClick:m=()=>{},dispatch:p=()=>{},metadata:f={},pageLabel:g,className:w,children:b,items:$,renderItem:S,addFavoriteTooltip:J,removeFavoriteCancelLabel:Q,removeFavoriteConfirmLabel:X,removeFavoriteHeader:Z,removeFavoriteLabel:ee,removeFavoriteTooltip:te,searchResultsEmptyLabel:se,...A},ae)=>{const R=s.useIsTabbing(),L=u.useRef(),N=s.usePrevious($),{guide:ne="guide",page:ie="index"}=t,{guide:oe=({id:x})=>v.createParams({guide:x}),page:E=()=>v.createParams()}=a,[re,le]=K(),ce=s.useContainer(),{events:de}=ce.get("$widget");u.useImperativeHandle(ae,()=>L.current);const D=x=>{const{id:k,title:j,tags:z,published:T,modified:C,publishedBy:I,modifiedBy:B}=x;return n.jsxs("li",{"data-guide":k,"has-metadata":(!!(f!=null&&f.showPublished)&&!!T||!!(f!=null&&f.showModified)&&!!C).toString(),children:[n.jsx(s.TextLink,{className:"humany-guide-link",title:j,"aria-label":j,routeName:ne,onClick:fe=>{m(fe,x),de.dispatch("tracking:guide-list-item-clicked",{guide:x})},params:oe(x),text:j,children:n.jsx(s.SymbolBadge,{size:i,symbol:{type:"Svg",content:e?"caret-down":"caret-right"}})}),h&&n.jsx(_,{guideTitle:j,addFavoriteTooltip:J,removeFavoriteCancelLabel:Q,removeFavoriteConfirmLabel:X,removeFavoriteHeader:Z,removeFavoriteLabel:ee,removeFavoriteTooltip:te,isFavorite:re.indexOf(k)>-1,actions:le,id:k}),l&&n.jsx(Be,{tags:z}),n.jsx(Oe,{...f,indent:e?void 0:i,modified:C,published:T,publishedBy:I,modifiedBy:B})]},k)},me=u.useCallback((x,k,j)=>S?S(x,k,j,D):D(x),[S,D]),he=u.useCallback(x=>{c&&(x.preventDefault(),p("page",E()))},[p,c]);u.useEffect(()=>{if(N&&N.length<$.length&&L.current){const x=L.current.querySelectorAll(".humany-guide-list > ul > li"),k=x[N.length];if(x.length===$.length&&N.length){const j=x[N.length];if(j){const z=j.querySelector(".humany-guide-link");z&&z.focus()}}else k&&new MutationObserver((z,T)=>{z.forEach(C=>{if(C.addedNodes){const I=Array.from(C.addedNodes).find(B=>B.tagName==="A");I&&v.htmlParentContains(L.current,document.activeElement)&&(R&&I.focus(),T.disconnect())}})}).observe(k,{attributes:!1,characterData:!1,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})}});const ue=!!Object.keys(f).filter(x=>typeof f[x]<"u").length;return n.jsxs(Re,{className:v.appendClassNames(w,"humany-guide-list"),"data-item-count":$.length,items:$,renderItem:me,isTabbing:R,expandable:e?"true":"false","grid-items":l||h||ue?"true":"false",...s.convertToStringAttributes(A),ref:L,children:[g?n.jsx(s.TextLink,{text:g,title:g,"aria-label":g,routeName:ie,role:o,params:E(),onClick:he,children:n.jsx(s.SymbolBadge,{size:i,symbol:{type:"Svg",content:`caret-${r}`}})}):null,b,!A["data-loading"]&&$.length===0&&n.jsx("p",{children:se})]})}),Re=d(s.ItemList)`
257
257
  ${s.itemList}
258
258
  padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
259
259
  overflow: auto;
@@ -371,7 +371,7 @@
371
371
  text-decoration: underline;
372
372
  }
373
373
  }
374
- `,Ae=d(s.List)`
374
+ `,Ee=d(s.List)`
375
375
  ${s.list}
376
376
  display: flex;
377
377
  margin: 0 0 0 auto;
@@ -384,7 +384,7 @@
384
384
  align-items: center;
385
385
  justify-content: space-between;
386
386
  }
387
- `,Re=d(s.SymbolBadge)`
387
+ `,Me=d(s.SymbolBadge)`
388
388
  display: block;
389
389
  color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
390
390
  ${e=>{if(e.symbol.type==="Uri")return`
@@ -393,17 +393,17 @@
393
393
  `;if(e.symbol.type==="FontAwesome")return`
394
394
  font-size: ${e.size}px;
395
395
  `}}
396
- `,Ee=d(U)`
396
+ `,Oe=d(U)`
397
397
  grid-area: metadata;
398
398
  text-overflow: ellipsis;
399
399
  overflow: hidden;
400
400
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
401
401
  ${e=>{var t;return typeof e.indent=="number"&&`text-indent: calc(${(t=e.theme.sizes)==null?void 0:t.small} * 2 + ${e.indent}px);`}}
402
- `,Me=y.keyframes`
402
+ `,He=y.keyframes`
403
403
  100% {
404
404
  transform: rotate(360deg);
405
405
  }
406
- `,Oe=y.keyframes`
406
+ `,We=y.keyframes`
407
407
  0% {
408
408
  stroke-dasharray: 1, 200;
409
409
  stroke-dashoffset: 0;
@@ -416,8 +416,8 @@
416
416
  stroke-dasharray: 89, 200;
417
417
  stroke-dashoffset: -124px;
418
418
  }
419
- `,He=d.svg`
420
- animation: ${Me} 2s linear infinite;
419
+ `,qe=d.svg`
420
+ animation: ${He} 2s linear infinite;
421
421
  height: 100%;
422
422
  transform-origin: center center;
423
423
  width: 100%;
@@ -447,7 +447,7 @@
447
447
  .humany-spinner-svg {
448
448
  opacity: ${e=>e["data-loading"]?"1":"0"};
449
449
  }
450
- `,We=d.div`
450
+ `,Ye=d.div`
451
451
  position: relative;
452
452
  margin: 0 auto;
453
453
  width: 100px;
@@ -456,14 +456,14 @@
456
456
  display: block;
457
457
  padding-top: 100%;
458
458
  }
459
- `,qe=d.circle`
459
+ `,_e=d.circle`
460
460
  stroke-dasharray: 1, 200;
461
461
  stroke-dashoffset: 0;
462
- animation: ${Oe} 1.5s ease-in-out infinite;
462
+ animation: ${We} 1.5s ease-in-out infinite;
463
463
  stroke-linecap: round;
464
464
  stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
465
465
  stroke-width: 2px;
466
- `,G=({loading:e=!1})=>n.jsx(V,{className:"humany-loader","data-loading":e,children:n.jsx(We,{className:"humany-spinner",children:n.jsx(He,{className:"humany-spinner-svg",viewBox:"25 25 50 50",children:n.jsx(qe,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Ye=({className:e,showHeader:t,notificationList:a,loading:o,...i})=>{const[r,l]=u.useState(null),{id:h,title:c,symbol:m,notifications:p=[],defaultHeaderOptions:f={visible:!0}}=a||{};return!p.length&&!o?null:n.jsx(Ke,{...i,"data-loading":o,"data-show-header":typeof t=="boolean"?t:f.visible,className:v.appendClassNames(e,"humany-notification-list"),"data-notification-category":h,header:c,symbol:m,items:p,renderItem:({id:g,title:w,body:b,modified:$,expandable:S})=>n.jsx(Ue,{"data-notification":g,"data-expanded":S?r===g:!0,children:S?n.jsxs(n.Fragment,{children:[n.jsxs(_e,{title:w,"aria-label":w,"aria-expanded":r===g,onClick:()=>l(r===g?null:g),children:[n.jsx("span",{children:w}),n.jsx(Ve,{size:11,symbol:{type:"Svg",content:`caret-${r===g?"up":"down"}`}})]}),n.jsx(W,{html:b}),$&&n.jsx(Ge,{format:s.DateFormats.YYYY_MM_DD,timestamp:$})]}):n.jsx(W,{html:b})},g),children:n.jsx(G,{loading:o})})},_e=d(s.Button)`
466
+ `,G=({loading:e=!1})=>n.jsx(V,{className:"humany-loader","data-loading":e,children:n.jsx(Ye,{className:"humany-spinner",children:n.jsx(qe,{className:"humany-spinner-svg",viewBox:"25 25 50 50",children:n.jsx(_e,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Ke=({className:e,showHeader:t,notificationList:a,loading:i,...o})=>{const[r,l]=u.useState(null),{id:h,title:c,symbol:m,notifications:p=[],defaultHeaderOptions:f={visible:!0}}=a||{};return!p.length&&!i?null:n.jsx(Ve,{...o,"data-loading":i,"data-show-header":typeof t=="boolean"?t:f.visible,className:v.appendClassNames(e,"humany-notification-list"),"data-notification-category":h,header:c,symbol:m,items:p,renderItem:({id:g,title:w,body:b,modified:$,expandable:S})=>n.jsx(Ge,{"data-notification":g,"data-expanded":S?r===g:!0,children:S?n.jsxs(n.Fragment,{children:[n.jsxs(Ue,{title:w,"aria-label":w,"aria-expanded":r===g,onClick:()=>l(r===g?null:g),children:[n.jsx("span",{children:w}),n.jsx(Je,{size:11,symbol:{type:"Svg",content:`caret-${r===g?"up":"down"}`}})]}),n.jsx(W,{html:b}),$&&n.jsx(Qe,{format:s.DateFormats.YYYY_MM_DD,timestamp:$})]}):n.jsx(W,{html:b})},g),children:n.jsx(G,{loading:i})})},Ue=d(s.Button)`
467
467
  display: flex;
468
468
  justify-content: space-between;
469
469
  align-items: center;
@@ -488,7 +488,7 @@
488
488
  text-decoration: underline;
489
489
  }
490
490
  }
491
- `,Ke=d(s.ItemList)`
491
+ `,Ve=d(s.ItemList)`
492
492
  ${q}
493
493
  ${s.itemList}
494
494
  overflow: hidden;
@@ -514,12 +514,12 @@
514
514
  p {
515
515
  white-space: normal;
516
516
  }
517
- `,Ue=d.li`
517
+ `,Ge=d.li`
518
518
  .humany-paragraph {
519
519
  display: none;
520
520
  &:not(:only-child) {
521
- ${e=>{var t,a,o;return((t=e.theme.sizes)==null?void 0:t.cardinal)&&((a=e.theme.sizes)==null?void 0:a.normal)&&y.css`
522
- margin: ${(o=e.theme.sizes)==null?void 0:o.normal} 0;
521
+ ${e=>{var t,a,i;return((t=e.theme.sizes)==null?void 0:t.cardinal)&&((a=e.theme.sizes)==null?void 0:a.normal)&&y.css`
522
+ margin: ${(i=e.theme.sizes)==null?void 0:i.normal} 0;
523
523
  `}}
524
524
  }
525
525
  }
@@ -535,12 +535,12 @@
535
535
  font-weight: 300;
536
536
  color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.accent}};
537
537
  }
538
- `,Ve=d(s.SymbolBadge)`
538
+ `,Je=d(s.SymbolBadge)`
539
539
  margin: 0 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
540
540
  line {
541
541
  stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
542
542
  }
543
- `,Ge=d(s.Timestamp)`
543
+ `,Qe=d(s.Timestamp)`
544
544
  font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
545
545
  font-weight: 300;
546
- `,Je=e=>new RegExp("^#","i").test(e),Qe=e=>({children:t,...a})=>{const{implementation:o,name:i}=e.get("$widget"),{href:r=""}=a;if(Je(r))return n.jsx(s.AnchorLink,{smooth:!0,to:r,children:t});const l=o.bindings.map(m=>m.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(r);if(c&&c.length>=4){const m=c[4];if(o.widgets.get(m)&&!m.startsWith("blob?")&&!m.startsWith(i))return n.jsx(s.WidgetLink,{widgetName:m,children:t})}return n.jsx("a",{...a,children:t})},Xe=(e,t=[])=>({transform:{a:a=>{const{children:o,...i}=a,r=i["data-target"];if(r&&t.length){const h=t.find(({connection:c})=>c===r);if(h)return n.jsx(P,{...h,children:o})}return Qe(e)(a)}}});exports.AccordionListItem=De;exports.DialogLink=P;exports.DialogList=ue;exports.DrawerList=ge;exports.DropdownActions=xe;exports.DropdownList=be;exports.FavoriteButton=_;exports.Feedback=Se;exports.GuideList=Fe;exports.Loader=G;exports.LoaderWrapper=V;exports.Metadata=U;exports.NotificationList=Ye;exports.SmallCaret=je;exports.StyledHeaderText=ke;exports.StyledListButton=Y;exports.guideRenderInstructions=Xe;exports.loadingOpacity=q;exports.useArrowKeys=Ne;exports.useDebounce=Ce;exports.useFavorites=K;exports.useHover=Te;Object.keys(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[e]})});
546
+ `,Xe=e=>new RegExp("^#","i").test(e),Ze=e=>({children:t,...a})=>{const{implementation:i,name:o}=e.get("$widget"),{href:r=""}=a;if(Xe(r))return n.jsx(s.AnchorLink,{smooth:!0,to:r,children:t});const l=i.bindings.map(m=>m.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(r);if(c&&c.length>=4){const m=c[4];if(i.widgets.get(m)&&!m.startsWith("blob?")&&!m.startsWith(o))return n.jsx(s.WidgetLink,{widgetName:m,children:t})}return n.jsx("a",{...a,children:t})},et=(e,t=[])=>({transform:{a:a=>{const{children:i,...o}=a,r=o["data-target"];if(r&&t.length){const h=t.find(({connection:c})=>c===r);if(h)return n.jsx(P,{...h,children:i})}return Ze(e)(a)}}});exports.AccordionListItem=Fe;exports.DialogLink=P;exports.DialogList=ge;exports.DrawerList=xe;exports.DropdownActions=ve;exports.DropdownList=je;exports.FavoriteButton=_;exports.Feedback=Le;exports.GuideList=Ae;exports.Loader=G;exports.LoaderWrapper=V;exports.Metadata=U;exports.NotificationList=Ke;exports.SmallCaret=Se;exports.StyledHeaderText=ze;exports.StyledListButton=Y;exports.guideRenderInstructions=et;exports.loadingOpacity=q;exports.useArrowKeys=Te;exports.useDebounce=Ie;exports.useFavorites=K;exports.useHover=De;Object.keys(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[e]})});
package/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as o, jsxs as p, Fragment as se } from "react/jsx-runtime";
2
- import { useRouteData as re, Link as Pe, Icon as P, List as G, list as le, invertedHoverButton as ce, ItemList as j, itemList as R, Drawer as Be, Dropdown as de, headingElement as K, Text as me, Button as U, paddedBorderTabStyle as Z, Confirm as je, SymbolBadge as S, StyledText as _, convertToStringAttributes as he, useKeyPress as M, useContainer as Re, useEventListener as ee, Timestamp as fe, DateFormats as ue, TextLink as V, useIsTabbing as We, usePrevious as Ee, borderTabStyle as q, Paragraph as He, genericHtml as Oe, AnchorLink as Ye, WidgetLink as _e } from "@telia-ace/widget-ui";
2
+ import { useRouteData as re, Link as Re, Icon as P, List as G, list as le, invertedHoverButton as ce, ItemList as j, itemList as R, Drawer as We, Dropdown as de, headingElement as K, Text as me, Button as U, paddedBorderTabStyle as Z, Confirm as Ee, SymbolBadge as S, StyledText as _, convertToStringAttributes as he, useKeyPress as M, useContainer as fe, useEventListener as ee, Timestamp as ue, DateFormats as ge, TextLink as V, useIsTabbing as He, usePrevious as Oe, borderTabStyle as q, Paragraph as Ye, genericHtml as _e, AnchorLink as Ve, WidgetLink as qe } from "@telia-ace/widget-ui";
3
3
  export * from "@telia-ace/widget-ui";
4
- import { createParams as B, formatUrl as te, appendClassNames as z, htmlParentContains as Ve } from "@telia-ace/widget-utilities";
4
+ import { createParams as B, formatUrl as te, appendClassNames as z, htmlParentContains as Ge } from "@telia-ace/widget-utilities";
5
5
  import c from "@emotion/styled";
6
- import { forwardRef as W, useCallback as k, useState as F, useEffect as E, useMemo as qe, useRef as ge, useImperativeHandle as Ge } from "react";
7
- import { css as y, keyframes as pe } from "@emotion/react";
8
- const ye = ({
6
+ import { forwardRef as W, useCallback as k, useState as F, useEffect as E, useMemo as Ke, useRef as pe, useImperativeHandle as Ue } from "react";
7
+ import { css as y, keyframes as ye } from "@emotion/react";
8
+ const $e = ({
9
9
  title: t = "",
10
10
  className: e,
11
11
  id: n,
@@ -35,7 +35,7 @@ const ye = ({
35
35
  break;
36
36
  }
37
37
  return /* @__PURE__ */ o(
38
- Pe,
38
+ Re,
39
39
  {
40
40
  className: z(e, "humany-dialog-link"),
41
41
  ...u,
@@ -45,18 +45,18 @@ const ye = ({
45
45
  ] })
46
46
  }
47
47
  );
48
- }, At = W(
48
+ }, Pt = W(
49
49
  ({ className: t, dialog: e, ...n }, a) => e.length ? /* @__PURE__ */ o(
50
- Ke,
50
+ Je,
51
51
  {
52
52
  className: z(t, "humany-dialog"),
53
53
  items: e,
54
- renderItem: (i) => /* @__PURE__ */ o("li", { "data-dialog": i.connection, children: /* @__PURE__ */ o(ye, { ...i }) }, i.connection),
54
+ renderItem: (i) => /* @__PURE__ */ o("li", { "data-dialog": i.connection, children: /* @__PURE__ */ o($e, { ...i }) }, i.connection),
55
55
  ...n,
56
56
  ref: a
57
57
  }
58
58
  ) : null
59
- ), Ke = c(G)`
59
+ ), Je = c(G)`
60
60
  ${le}
61
61
  a {
62
62
  min-width: 150px;
@@ -79,7 +79,7 @@ const ye = ({
79
79
  return (e = t.theme.sizes) == null ? void 0 : e.small;
80
80
  }} 0 0;
81
81
  }
82
- `, Mt = ({
82
+ `, Bt = ({
83
83
  trigger: t,
84
84
  header: e,
85
85
  className: n,
@@ -91,7 +91,7 @@ const ye = ({
91
91
  closeButtonAriaLabel: l,
92
92
  ...d
93
93
  }) => /* @__PURE__ */ o(
94
- Be,
94
+ We,
95
95
  {
96
96
  className: z(n, "humany-drawer-list"),
97
97
  trigger: t,
@@ -100,9 +100,9 @@ const ye = ({
100
100
  fullScreen: i,
101
101
  onToggle: s,
102
102
  closeButtonAriaLabel: l,
103
- children: /* @__PURE__ */ o(Ue, { ...d, children: r })
103
+ children: /* @__PURE__ */ o(Qe, { ...d, children: r })
104
104
  }
105
- ), Ue = c(j)`
105
+ ), Qe = c(j)`
106
106
  ${R}
107
107
  font-family: ${(t) => {
108
108
  var e;
@@ -120,17 +120,17 @@ const ye = ({
120
120
  return (e = t.theme.fonts) == null ? void 0 : e.normal;
121
121
  }};
122
122
  }
123
- `, Pt = ({
123
+ `, jt = ({
124
124
  items: t,
125
125
  renderItem: e,
126
126
  trigger: n,
127
127
  header: a,
128
128
  children: i
129
- }) => /* @__PURE__ */ o(de, { className: "humany-dropdown-actions", trigger: n, children: /* @__PURE__ */ p(Je, { children: [
130
- !!a && /* @__PURE__ */ o(Qe, { children: a }),
131
- t && e && /* @__PURE__ */ o(Xe, { items: t, renderItem: e }),
129
+ }) => /* @__PURE__ */ o(de, { className: "humany-dropdown-actions", trigger: n, children: /* @__PURE__ */ p(Xe, { children: [
130
+ !!a && /* @__PURE__ */ o(Ze, { children: a }),
131
+ t && e && /* @__PURE__ */ o(et, { items: t, renderItem: e }),
132
132
  i
133
- ] }) }), Je = c.div`
133
+ ] }) }), Xe = c.div`
134
134
  background: #fff;
135
135
  border: #ccc 1px solid;
136
136
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
@@ -142,7 +142,7 @@ const ye = ({
142
142
  var e;
143
143
  return (e = t.theme.fonts) == null ? void 0 : e.normal;
144
144
  }};
145
- `, Qe = c.div`
145
+ `, Ze = c.div`
146
146
  padding: ${(t) => {
147
147
  var e;
148
148
  return (e = t.theme.sizes) == null ? void 0 : e.normal;
@@ -175,7 +175,7 @@ const ye = ({
175
175
  return (e = t.theme.sizes) == null ? void 0 : e.small;
176
176
  }};
177
177
  }
178
- `, Xe = c(G)`
178
+ `, et = c(G)`
179
179
  list-style: none;
180
180
  padding: 0;
181
181
  margin: 0;
@@ -210,7 +210,7 @@ const ye = ({
210
210
  }
211
211
  }
212
212
  }
213
- `, Bt = ({
213
+ `, Rt = ({
214
214
  trigger: t,
215
215
  className: e,
216
216
  children: n,
@@ -222,9 +222,9 @@ const ye = ({
222
222
  className: z(e, "humany-dropdown-list"),
223
223
  closeButtonAriaLabel: a,
224
224
  trigger: t,
225
- children: /* @__PURE__ */ o(Ze, { ...i, children: n })
225
+ children: /* @__PURE__ */ o(tt, { ...i, children: n })
226
226
  }
227
- ), Ze = c(j)`
227
+ ), tt = c(j)`
228
228
  ${R}
229
229
  font-family: ${(t) => {
230
230
  var e;
@@ -260,7 +260,7 @@ const ye = ({
260
260
  }
261
261
  }
262
262
  }
263
- `, et = (t) => y`
263
+ `, nt = (t) => y`
264
264
  ${t["data-loading"] && "position: relative;"};
265
265
  ${t["data-loading"] && "min-height: 150px;"}
266
266
  > * {
@@ -270,7 +270,7 @@ const ye = ({
270
270
  .humany-loader {
271
271
  opacity: ${t["data-loading"] ? "1" : "0"};
272
272
  }
273
- `, jt = c(P)`
273
+ `, Wt = c(P)`
274
274
  && {
275
275
  font-size: ${(t) => {
276
276
  var e;
@@ -278,7 +278,7 @@ const ye = ({
278
278
  }};
279
279
  }
280
280
  width: 1.2em;
281
- `, Rt = c(me)`
281
+ `, Et = c(me)`
282
282
  font-size: ${(t) => {
283
283
  var e;
284
284
  return (e = t.theme.fonts) == null ? void 0 : e.medium;
@@ -289,7 +289,7 @@ const ye = ({
289
289
  var e;
290
290
  return (e = t.theme.colors) == null ? void 0 : e.text;
291
291
  }};
292
- `, tt = c(U)`
292
+ `, at = c(U)`
293
293
  display: flex;
294
294
  align-items: center;
295
295
 
@@ -317,7 +317,7 @@ const ye = ({
317
317
  flex: 1;
318
318
  font-weight: 300;
319
319
  }
320
- `, nt = ({
320
+ `, ot = ({
321
321
  addFavoriteTooltip: t,
322
322
  removeFavoriteCancelLabel: e,
323
323
  removeFavoriteConfirmLabel: n,
@@ -336,7 +336,7 @@ const ye = ({
336
336
  u(r);
337
337
  }, [r, u]), v = `${m ? s : t}${l ? `: "${l}"` : ""}`;
338
338
  return m ? /* @__PURE__ */ o(
339
- je,
339
+ Ee,
340
340
  {
341
341
  trigger: /* @__PURE__ */ p(
342
342
  ne,
@@ -381,7 +381,7 @@ const ye = ({
381
381
  ]
382
382
  }
383
383
  );
384
- }, ne = c(tt)`
384
+ }, ne = c(at)`
385
385
  grid-area: favorite;
386
386
 
387
387
  &:focus-visible {
@@ -443,7 +443,7 @@ const ye = ({
443
443
  }
444
444
  `;
445
445
  }}
446
- `, Wt = W(
446
+ `, Ht = W(
447
447
  ({
448
448
  onFeedback: t = () => {
449
449
  },
@@ -455,14 +455,14 @@ const ye = ({
455
455
  selected: r,
456
456
  ...m
457
457
  }, l) => /* @__PURE__ */ p(
458
- ot,
458
+ st,
459
459
  {
460
460
  className: z(n, "humany-feedback"),
461
461
  "data-direction": e,
462
462
  ...he(m),
463
463
  ref: l,
464
464
  children: [
465
- !!a && /* @__PURE__ */ o(at, { children: a }),
465
+ !!a && /* @__PURE__ */ o(it, { children: a }),
466
466
  /* @__PURE__ */ p(
467
467
  ae,
468
468
  {
@@ -494,7 +494,7 @@ const ye = ({
494
494
  ]
495
495
  }
496
496
  )
497
- ), at = c(_)`
497
+ ), it = c(_)`
498
498
  font-weight: normal;
499
499
  margin: 0 0 ${(t) => {
500
500
  var e;
@@ -547,7 +547,7 @@ const ye = ({
547
547
  return (e = t.theme.sizes) == null ? void 0 : e.small;
548
548
  }} 0 0;
549
549
  }
550
- `, ot = c.div`
550
+ `, st = c.div`
551
551
  ${(t) => {
552
552
  var e;
553
553
  return t["data-direction"] === "vertical" && y`
@@ -559,12 +559,12 @@ const ye = ({
559
559
  }
560
560
  `;
561
561
  }}
562
- `, Et = () => {
562
+ `, Ot = () => {
563
563
  const [t, e] = F(null), n = M("ArrowLeft"), a = M("ArrowRight"), i = M("ArrowUp"), s = M("ArrowDown");
564
564
  return E(() => {
565
565
  e(n ? "left" : a ? "right" : i ? "up" : s ? "down" : null);
566
566
  }, [n, a, i, s]), t;
567
- }, Ht = (t, e) => {
567
+ }, Yt = (t, e) => {
568
568
  const [n, a] = F(t), i = k(() => setTimeout(() => {
569
569
  a(t);
570
570
  }, e), [e, a, t]);
@@ -578,8 +578,8 @@ const ye = ({
578
578
  [i]
579
579
  // Only re-call effect if value or delay changes
580
580
  ), n;
581
- }, it = () => {
582
- const t = Re(), [e, n] = F([]), a = t.get("favorites");
581
+ }, rt = () => {
582
+ const t = fe(), [e, n] = F([]), a = t.get("favorites");
583
583
  E(() => {
584
584
  if (a) {
585
585
  n(a.get());
@@ -599,7 +599,7 @@ const ye = ({
599
599
  );
600
600
  return [
601
601
  e,
602
- qe(
602
+ Ke(
603
603
  () => ({
604
604
  addFavorite: i,
605
605
  removeFavorite: s,
@@ -610,11 +610,11 @@ const ye = ({
610
610
  [e]
611
611
  )
612
612
  ];
613
- }, Ot = () => {
614
- const [t, e] = F(!1), n = ge(), a = k(() => e(!0), [e]), i = k(() => e(!1), [e]);
613
+ }, _t = () => {
614
+ const [t, e] = F(!1), n = pe(), a = k(() => e(!0), [e]), i = k(() => e(!1), [e]);
615
615
  return ee("mouseenter", a, n.current), ee("mouseleave", i, n.current), [t, n];
616
- }, st = ({
617
- format: t = ue.YYYY_MM_DD_HH_MM,
616
+ }, lt = ({
617
+ format: t = ge.YYYY_MM_DD_HH_MM,
618
618
  className: e = "",
619
619
  byLabel: n = "",
620
620
  modifiedLabel: a = "",
@@ -640,7 +640,7 @@ const ye = ({
640
640
  n && s && ` ${n.replace("{{editor}}", s)}`
641
641
  ] })
642
642
  ] });
643
- }, oe = c(fe)`
643
+ }, oe = c(ue)`
644
644
  &:not(:first-child) {
645
645
  margin-left: 4px;
646
646
  }
@@ -649,16 +649,16 @@ const ye = ({
649
649
  }
650
650
  `, Y = c(me)`
651
651
  font-style: italic;
652
- `, rt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ o(
653
- dt,
652
+ `, ct = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ o(
653
+ ht,
654
654
  {
655
655
  className: "humany-guide-list-tags",
656
656
  items: t,
657
- renderItem: ({ id: e, symbol: n, title: a }) => n && /* @__PURE__ */ o("li", { "data-tag": e, children: /* @__PURE__ */ o(mt, { size: 18, symbol: n, title: a }) }, e)
657
+ renderItem: ({ id: e, symbol: n, title: a }) => n && /* @__PURE__ */ o("li", { "data-tag": e, children: /* @__PURE__ */ o(ft, { size: 18, symbol: n, title: a }) }, e)
658
658
  }
659
- ) : null, Yt = W(({ title: t, id: e, route: n, symbolSize: a, collapseUri: i, children: s }, r) => {
659
+ ) : null, Vt = W(({ title: t, id: e, route: n, symbolSize: a, collapseUri: i, children: s }, r) => {
660
660
  const { params: m } = re();
661
- return /* @__PURE__ */ p(lt, { ref: r, "data-guide": e, children: [
661
+ return /* @__PURE__ */ p(dt, { ref: r, "data-guide": e, children: [
662
662
  /* @__PURE__ */ o(
663
663
  V,
664
664
  {
@@ -684,7 +684,7 @@ const ye = ({
684
684
  ),
685
685
  s
686
686
  ] });
687
- }), lt = c.li`
687
+ }), dt = c.li`
688
688
  > a {
689
689
  grid-column: 1/-1;
690
690
  font-weight: bold;
@@ -697,7 +697,7 @@ const ye = ({
697
697
  > div {
698
698
  grid-column: 1/-1;
699
699
  }
700
- `, _t = W(
700
+ `, qt = W(
701
701
  ({
702
702
  expandable: t = !1,
703
703
  routing: e = {},
@@ -718,20 +718,20 @@ const ye = ({
718
718
  children: v,
719
719
  items: $,
720
720
  renderItem: N,
721
- addFavoriteTooltip: $e,
722
- removeFavoriteCancelLabel: ve,
723
- removeFavoriteConfirmLabel: xe,
724
- removeFavoriteHeader: be,
725
- removeFavoriteLabel: we,
726
- removeFavoriteTooltip: ke,
727
- searchResultsEmptyLabel: ze,
721
+ addFavoriteTooltip: ve,
722
+ removeFavoriteCancelLabel: xe,
723
+ removeFavoriteConfirmLabel: be,
724
+ removeFavoriteHeader: we,
725
+ removeFavoriteLabel: ke,
726
+ removeFavoriteTooltip: ze,
727
+ searchResultsEmptyLabel: Se,
728
728
  ...J
729
- }, Se) => {
730
- const Q = We(), I = ge(), T = Ee($), { guide: Ne = "guide", page: Le = "index" } = e, {
731
- guide: Ie = ({ id: g }) => B({ guide: g }),
729
+ }, Ne) => {
730
+ const Q = He(), I = pe(), T = Oe($), { guide: Le = "guide", page: Ie = "index" } = e, {
731
+ guide: Te = ({ id: g }) => B({ guide: g }),
732
732
  page: X = () => B()
733
- } = n, [Te, De] = it();
734
- Ge(Se, () => I.current);
733
+ } = n, [De, Fe] = rt(), Ce = fe(), { events: Ae } = Ce.get("$widget");
734
+ Ue(Ne, () => I.current);
735
735
  const H = (g) => {
736
736
  const { id: w, title: b, tags: L, published: C, modified: D, publishedBy: A, modifiedBy: O } = g;
737
737
  return /* @__PURE__ */ p(
@@ -746,9 +746,13 @@ const ye = ({
746
746
  className: "humany-guide-link",
747
747
  title: b,
748
748
  "aria-label": b,
749
- routeName: Ne,
750
- onClick: (Me) => d(Me, g),
751
- params: Ie(g),
749
+ routeName: Le,
750
+ onClick: (je) => {
751
+ d(je, g), Ae.dispatch("tracking:guide-list-item-clicked", {
752
+ guide: g
753
+ });
754
+ },
755
+ params: Te(g),
752
756
  text: b,
753
757
  children: /* @__PURE__ */ o(
754
758
  S,
@@ -763,23 +767,23 @@ const ye = ({
763
767
  }
764
768
  ),
765
769
  m && /* @__PURE__ */ o(
766
- nt,
770
+ ot,
767
771
  {
768
772
  guideTitle: b,
769
- addFavoriteTooltip: $e,
770
- removeFavoriteCancelLabel: ve,
771
- removeFavoriteConfirmLabel: xe,
772
- removeFavoriteHeader: be,
773
- removeFavoriteLabel: we,
774
- removeFavoriteTooltip: ke,
775
- isFavorite: Te.indexOf(w) > -1,
776
- actions: De,
773
+ addFavoriteTooltip: ve,
774
+ removeFavoriteCancelLabel: xe,
775
+ removeFavoriteConfirmLabel: be,
776
+ removeFavoriteHeader: we,
777
+ removeFavoriteLabel: ke,
778
+ removeFavoriteTooltip: ze,
779
+ isFavorite: De.indexOf(w) > -1,
780
+ actions: Fe,
777
781
  id: w
778
782
  }
779
783
  ),
780
- r && /* @__PURE__ */ o(rt, { tags: L }),
784
+ r && /* @__PURE__ */ o(ct, { tags: L }),
781
785
  /* @__PURE__ */ o(
782
- ht,
786
+ ut,
783
787
  {
784
788
  ...h,
785
789
  indent: t ? void 0 : a,
@@ -793,10 +797,10 @@ const ye = ({
793
797
  },
794
798
  w
795
799
  );
796
- }, Fe = k(
800
+ }, Me = k(
797
801
  (g, w, b) => N ? N(g, w, b, H) : H(g),
798
802
  [N, H]
799
- ), Ce = k(
803
+ ), Pe = k(
800
804
  (g) => {
801
805
  l && (g.preventDefault(), u("page", X()));
802
806
  },
@@ -822,7 +826,7 @@ const ye = ({
822
826
  const A = Array.from(
823
827
  D.addedNodes
824
828
  ).find((O) => O.tagName === "A");
825
- A && Ve(I.current, document.activeElement) && (Q && A.focus(), C.disconnect());
829
+ A && Ge(I.current, document.activeElement) && (Q && A.focus(), C.disconnect());
826
830
  }
827
831
  });
828
832
  }).observe(w, {
@@ -835,19 +839,19 @@ const ye = ({
835
839
  });
836
840
  }
837
841
  });
838
- const Ae = !!Object.keys(h).filter(
842
+ const Be = !!Object.keys(h).filter(
839
843
  (g) => typeof h[g] < "u"
840
844
  ).length;
841
845
  return /* @__PURE__ */ p(
842
- ct,
846
+ mt,
843
847
  {
844
848
  className: z(x, "humany-guide-list"),
845
849
  "data-item-count": $.length,
846
850
  items: $,
847
- renderItem: Fe,
851
+ renderItem: Me,
848
852
  isTabbing: Q,
849
853
  expandable: t ? "true" : "false",
850
- "grid-items": r || m || Ae ? "true" : "false",
854
+ "grid-items": r || m || Be ? "true" : "false",
851
855
  ...he(J),
852
856
  ref: I,
853
857
  children: [
@@ -857,10 +861,10 @@ const ye = ({
857
861
  text: f,
858
862
  title: f,
859
863
  "aria-label": f,
860
- routeName: Le,
864
+ routeName: Ie,
861
865
  role: i,
862
866
  params: X(),
863
- onClick: Ce,
867
+ onClick: Pe,
864
868
  children: /* @__PURE__ */ o(
865
869
  S,
866
870
  {
@@ -871,12 +875,12 @@ const ye = ({
871
875
  }
872
876
  ) : null,
873
877
  v,
874
- !J["data-loading"] && $.length === 0 && /* @__PURE__ */ o("p", { children: ze })
878
+ !J["data-loading"] && $.length === 0 && /* @__PURE__ */ o("p", { children: Se })
875
879
  ]
876
880
  }
877
881
  );
878
882
  }
879
- ), ct = c(j)`
883
+ ), mt = c(j)`
880
884
  ${R}
881
885
  padding: ${(t) => {
882
886
  var e;
@@ -1027,7 +1031,7 @@ const ye = ({
1027
1031
  text-decoration: underline;
1028
1032
  }
1029
1033
  }
1030
- `, dt = c(G)`
1034
+ `, ht = c(G)`
1031
1035
  ${le}
1032
1036
  display: flex;
1033
1037
  margin: 0 0 0 auto;
@@ -1043,7 +1047,7 @@ const ye = ({
1043
1047
  align-items: center;
1044
1048
  justify-content: space-between;
1045
1049
  }
1046
- `, mt = c(S)`
1050
+ `, ft = c(S)`
1047
1051
  display: block;
1048
1052
  color: ${(t) => {
1049
1053
  var e;
@@ -1060,7 +1064,7 @@ const ye = ({
1060
1064
  font-size: ${t.size}px;
1061
1065
  `;
1062
1066
  }}
1063
- `, ht = c(st)`
1067
+ `, ut = c(lt)`
1064
1068
  grid-area: metadata;
1065
1069
  text-overflow: ellipsis;
1066
1070
  overflow: hidden;
@@ -1072,11 +1076,11 @@ const ye = ({
1072
1076
  var e;
1073
1077
  return typeof t.indent == "number" && `text-indent: calc(${(e = t.theme.sizes) == null ? void 0 : e.small} * 2 + ${t.indent}px);`;
1074
1078
  }}
1075
- `, ft = pe`
1079
+ `, gt = ye`
1076
1080
  100% {
1077
1081
  transform: rotate(360deg);
1078
1082
  }
1079
- `, ut = pe`
1083
+ `, pt = ye`
1080
1084
  0% {
1081
1085
  stroke-dasharray: 1, 200;
1082
1086
  stroke-dashoffset: 0;
@@ -1089,8 +1093,8 @@ const ye = ({
1089
1093
  stroke-dasharray: 89, 200;
1090
1094
  stroke-dashoffset: -124px;
1091
1095
  }
1092
- `, gt = c.svg`
1093
- animation: ${ft} 2s linear infinite;
1096
+ `, yt = c.svg`
1097
+ animation: ${gt} 2s linear infinite;
1094
1098
  height: 100%;
1095
1099
  transform-origin: center center;
1096
1100
  width: 100%;
@@ -1101,7 +1105,7 @@ const ye = ({
1101
1105
  right: 0;
1102
1106
  margin: auto;
1103
1107
  transition: 200ms ease-out opacity;
1104
- `, pt = c.div`
1108
+ `, $t = c.div`
1105
1109
  position: absolute;
1106
1110
  top: 0;
1107
1111
  bottom: 0;
@@ -1120,7 +1124,7 @@ const ye = ({
1120
1124
  .humany-spinner-svg {
1121
1125
  opacity: ${(t) => t["data-loading"] ? "1" : "0"};
1122
1126
  }
1123
- `, yt = c.div`
1127
+ `, vt = c.div`
1124
1128
  position: relative;
1125
1129
  margin: 0 auto;
1126
1130
  width: 100px;
@@ -1129,18 +1133,18 @@ const ye = ({
1129
1133
  display: block;
1130
1134
  padding-top: 100%;
1131
1135
  }
1132
- `, $t = c.circle`
1136
+ `, xt = c.circle`
1133
1137
  stroke-dasharray: 1, 200;
1134
1138
  stroke-dashoffset: 0;
1135
- animation: ${ut} 1.5s ease-in-out infinite;
1139
+ animation: ${pt} 1.5s ease-in-out infinite;
1136
1140
  stroke-linecap: round;
1137
1141
  stroke: ${(t) => {
1138
1142
  var e;
1139
1143
  return (e = t.theme.colors) == null ? void 0 : e.primary;
1140
1144
  }};
1141
1145
  stroke-width: 2px;
1142
- `, vt = ({ loading: t = !1 }) => /* @__PURE__ */ o(pt, { className: "humany-loader", "data-loading": t, children: /* @__PURE__ */ o(yt, { className: "humany-spinner", children: /* @__PURE__ */ o(gt, { className: "humany-spinner-svg", viewBox: "25 25 50 50", children: /* @__PURE__ */ o(
1143
- $t,
1146
+ `, bt = ({ loading: t = !1 }) => /* @__PURE__ */ o($t, { className: "humany-loader", "data-loading": t, children: /* @__PURE__ */ o(vt, { className: "humany-spinner", children: /* @__PURE__ */ o(yt, { className: "humany-spinner-svg", viewBox: "25 25 50 50", children: /* @__PURE__ */ o(
1147
+ xt,
1144
1148
  {
1145
1149
  cx: "50",
1146
1150
  cy: "50",
@@ -1149,7 +1153,7 @@ const ye = ({
1149
1153
  "stroke-width": "2",
1150
1154
  "stroke-miterlimit": "10"
1151
1155
  }
1152
- ) }) }) }), Vt = ({
1156
+ ) }) }) }), Gt = ({
1153
1157
  className: t,
1154
1158
  showHeader: e,
1155
1159
  notificationList: n,
@@ -1164,7 +1168,7 @@ const ye = ({
1164
1168
  defaultHeaderOptions: h = { visible: !0 }
1165
1169
  } = n || {};
1166
1170
  return !u.length && !a ? null : /* @__PURE__ */ o(
1167
- bt,
1171
+ kt,
1168
1172
  {
1169
1173
  ...i,
1170
1174
  "data-loading": a,
@@ -1175,13 +1179,13 @@ const ye = ({
1175
1179
  symbol: d,
1176
1180
  items: u,
1177
1181
  renderItem: ({ id: f, title: x, body: v, modified: $, expandable: N }) => /* @__PURE__ */ o(
1178
- wt,
1182
+ zt,
1179
1183
  {
1180
1184
  "data-notification": f,
1181
1185
  "data-expanded": N ? s === f : !0,
1182
1186
  children: N ? /* @__PURE__ */ p(se, { children: [
1183
1187
  /* @__PURE__ */ p(
1184
- xt,
1188
+ wt,
1185
1189
  {
1186
1190
  title: x,
1187
1191
  "aria-label": x,
@@ -1190,7 +1194,7 @@ const ye = ({
1190
1194
  children: [
1191
1195
  /* @__PURE__ */ o("span", { children: x }),
1192
1196
  /* @__PURE__ */ o(
1193
- kt,
1197
+ St,
1194
1198
  {
1195
1199
  size: 11,
1196
1200
  symbol: {
@@ -1204,9 +1208,9 @@ const ye = ({
1204
1208
  ),
1205
1209
  /* @__PURE__ */ o(ie, { html: v }),
1206
1210
  $ && /* @__PURE__ */ o(
1207
- zt,
1211
+ Nt,
1208
1212
  {
1209
- format: ue.YYYY_MM_DD,
1213
+ format: ge.YYYY_MM_DD,
1210
1214
  timestamp: $
1211
1215
  }
1212
1216
  )
@@ -1214,10 +1218,10 @@ const ye = ({
1214
1218
  },
1215
1219
  f
1216
1220
  ),
1217
- children: /* @__PURE__ */ o(vt, { loading: a })
1221
+ children: /* @__PURE__ */ o(bt, { loading: a })
1218
1222
  }
1219
1223
  );
1220
- }, xt = c(U)`
1224
+ }, wt = c(U)`
1221
1225
  display: flex;
1222
1226
  justify-content: space-between;
1223
1227
  align-items: center;
@@ -1254,8 +1258,8 @@ const ye = ({
1254
1258
  text-decoration: underline;
1255
1259
  }
1256
1260
  }
1257
- `, bt = c(j)`
1258
- ${et}
1261
+ `, kt = c(j)`
1262
+ ${nt}
1259
1263
  ${R}
1260
1264
  overflow: hidden;
1261
1265
  justify-content: flex-start;
@@ -1279,14 +1283,14 @@ const ye = ({
1279
1283
  text-decoration: underline;
1280
1284
  }
1281
1285
  }
1282
- `, ie = c(He)`
1283
- ${Oe}
1286
+ `, ie = c(Ye)`
1287
+ ${_e}
1284
1288
  font-weight: 300;
1285
1289
 
1286
1290
  p {
1287
1291
  white-space: normal;
1288
1292
  }
1289
- `, wt = c.li`
1293
+ `, zt = c.li`
1290
1294
  .humany-paragraph {
1291
1295
  display: none;
1292
1296
  &:not(:only-child) {
@@ -1313,7 +1317,7 @@ const ye = ({
1313
1317
  return (e = t.theme.colors) == null ? void 0 : e.accent;
1314
1318
  }};
1315
1319
  }
1316
- `, kt = c(S)`
1320
+ `, St = c(S)`
1317
1321
  margin: 0 0 0 ${(t) => {
1318
1322
  var e;
1319
1323
  return (e = t.theme.sizes) == null ? void 0 : e.small;
@@ -1324,29 +1328,29 @@ const ye = ({
1324
1328
  return (e = t.theme.colors) == null ? void 0 : e.primary;
1325
1329
  }};
1326
1330
  }
1327
- `, zt = c(fe)`
1331
+ `, Nt = c(ue)`
1328
1332
  font-size: ${(t) => {
1329
1333
  var e;
1330
1334
  return (e = t.theme.fonts) == null ? void 0 : e.small;
1331
1335
  }};
1332
1336
  font-weight: 300;
1333
- `, St = (t) => new RegExp("^#", "i").test(t), Nt = (t) => ({ children: e, ...n }) => {
1337
+ `, Lt = (t) => new RegExp("^#", "i").test(t), It = (t) => ({ children: e, ...n }) => {
1334
1338
  const {
1335
1339
  implementation: a,
1336
1340
  name: i
1337
1341
  } = t.get("$widget"), { href: s = "" } = n;
1338
- if (St(s))
1339
- return /* @__PURE__ */ o(Ye, { smooth: !0, to: s, children: e });
1342
+ if (Lt(s))
1343
+ return /* @__PURE__ */ o(Ve, { smooth: !0, to: s, children: e });
1340
1344
  const r = a.bindings.map((d) => d.replace(/\./g, "\\.")).join("|"), l = new RegExp(
1341
1345
  `^((http[s]?:)?//)?(${r})/([^\\s]+)`
1342
1346
  ).exec(s);
1343
1347
  if (l && l.length >= 4) {
1344
1348
  const d = l[4];
1345
1349
  if (a.widgets.get(d) && !d.startsWith("blob?") && !d.startsWith(i))
1346
- return /* @__PURE__ */ o(_e, { widgetName: d, children: e });
1350
+ return /* @__PURE__ */ o(qe, { widgetName: d, children: e });
1347
1351
  }
1348
1352
  return /* @__PURE__ */ o("a", { ...n, children: e });
1349
- }, qt = (t, e = []) => ({
1353
+ }, Kt = (t, e = []) => ({
1350
1354
  transform: {
1351
1355
  a: (n) => {
1352
1356
  const { children: a, ...i } = n, s = i["data-target"];
@@ -1355,33 +1359,33 @@ const ye = ({
1355
1359
  ({ connection: l }) => l === s
1356
1360
  );
1357
1361
  if (m)
1358
- return /* @__PURE__ */ o(ye, { ...m, children: a });
1362
+ return /* @__PURE__ */ o($e, { ...m, children: a });
1359
1363
  }
1360
- return Nt(t)(n);
1364
+ return It(t)(n);
1361
1365
  }
1362
1366
  }
1363
1367
  });
1364
1368
  export {
1365
- Yt as AccordionListItem,
1366
- ye as DialogLink,
1367
- At as DialogList,
1368
- Mt as DrawerList,
1369
- Pt as DropdownActions,
1370
- Bt as DropdownList,
1371
- nt as FavoriteButton,
1372
- Wt as Feedback,
1373
- _t as GuideList,
1374
- vt as Loader,
1375
- pt as LoaderWrapper,
1376
- st as Metadata,
1377
- Vt as NotificationList,
1378
- jt as SmallCaret,
1379
- Rt as StyledHeaderText,
1380
- tt as StyledListButton,
1381
- qt as guideRenderInstructions,
1382
- et as loadingOpacity,
1383
- Et as useArrowKeys,
1384
- Ht as useDebounce,
1385
- it as useFavorites,
1386
- Ot as useHover
1369
+ Vt as AccordionListItem,
1370
+ $e as DialogLink,
1371
+ Pt as DialogList,
1372
+ Bt as DrawerList,
1373
+ jt as DropdownActions,
1374
+ Rt as DropdownList,
1375
+ ot as FavoriteButton,
1376
+ Ht as Feedback,
1377
+ qt as GuideList,
1378
+ bt as Loader,
1379
+ $t as LoaderWrapper,
1380
+ lt as Metadata,
1381
+ Gt as NotificationList,
1382
+ Wt as SmallCaret,
1383
+ Et as StyledHeaderText,
1384
+ at as StyledListButton,
1385
+ Kt as guideRenderInstructions,
1386
+ nt as loadingOpacity,
1387
+ Ot as useArrowKeys,
1388
+ Yt as useDebounce,
1389
+ rt as useFavorites,
1390
+ _t as useHover
1387
1391
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-ui",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -10,9 +10,9 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@telia-ace/knowledge-widget-core": "^1.1.5",
14
- "@telia-ace/widget-ui": "^1.1.5",
15
- "@telia-ace/widget-utilities": "^1.1.5",
13
+ "@telia-ace/knowledge-widget-core": "^1.1.6",
14
+ "@telia-ace/widget-ui": "^1.1.6",
15
+ "@telia-ace/widget-utilities": "^1.1.6",
16
16
  "@webprovisions/platform": "^1.1.4"
17
17
  },
18
18
  "peerDependencies": {