@e-llm-studio/requirement-ai 0.0.272 → 0.0.273

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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),n=require("./CitationRenderer.module.css.js");const i=new Map;exports.collapseAllCitations=()=>{i.clear()},exports.collapseCitationsByIds=t=>{t.forEach(t=>i.delete(t))},exports.default=({inLineCitation:o,citationTitle:a,citationId:s,citationIcon:l,chevronUpComponent:r,chevronDownComponent:c,additionalCallbackForPillButton:p,citationComponent:d,styles:u={},isOpen:C,onToggle:x,defaultExpanded:h=!1})=>{const m=void 0!==C,f=s||a,[j,v]=e.useState(()=>f&&i.has(f)?i.get(f):h),y=m?C:j;return t.jsxs(t.Fragment,{children:[t.jsxs("span",{onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),p&&p(),x?x():m||v(t=>{const e=!t;return f&&i.set(f,e),e})})(t),className:n.default.pillButton,style:u.pillButton,children:[l,t.jsx("span",{style:u.citationTitle,children:a}),o&&(y?r:c)]}),o&&y&&t.jsx("div",{className:n.default.citationWrapper,style:u.citationWrapper,children:t.jsx("div",{className:n.default.citationContent,style:u.citationContent,onClick:t=>t.stopPropagation(),children:d})})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),n=require("./CitationRenderer.module.css.js");const o=new Map;exports.collapseAllCitations=()=>{o.clear()},exports.collapseCitationsByIds=t=>{t.forEach(t=>o.delete(t))},exports.default=({inLineCitation:i,citationTitle:a,citationId:l,citationIcon:s,chevronUpComponent:r,chevronDownComponent:c,additionalCallbackForPillButton:p,citationComponent:d,styles:u={},isOpen:C,onToggle:x,defaultExpanded:h=!1})=>{const m=void 0!==C,f=l||a,[g,j]=e.useState(()=>f&&o.has(f)?o.get(f):h),v=m?C:g;return t.jsxs(t.Fragment,{children:[t.jsxs("span",{onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),p&&!g&&(console.log("Calling additionalCallbackForPillButton"),p()),x?x():m||j(t=>{const e=!t;return f&&o.set(f,e),e})})(t),className:n.default.pillButton,style:u.pillButton,children:[s,t.jsx("span",{style:u.citationTitle,children:a}),i&&(v?r:c)]}),i&&v&&t.jsx("div",{className:n.default.citationWrapper,style:u.citationWrapper,children:t.jsx("div",{className:n.default.citationContent,style:u.citationContent,onClick:t=>t.stopPropagation(),children:d})})]})};
2
2
  //# sourceMappingURL=CitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as t,Fragment as n,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import i from"./CitationRenderer.module.css.js";const a=new Map,l=()=>{a.clear()},r=t=>{t.forEach(t=>a.delete(t))},c=({inLineCitation:l,citationTitle:r,citationId:c,citationIcon:s,chevronUpComponent:p,chevronDownComponent:d,additionalCallbackForPillButton:m,citationComponent:u,styles:C={},isOpen:h,onToggle:f,defaultExpanded:v=!1})=>{const g=void 0!==h,y=c||r,[k,x]=e(()=>y&&a.has(y)?a.get(y):v),B=g?h:k;return t(n,{children:[t("span",{onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),m&&m(),f?f():g||x(t=>{const n=!t;return y&&a.set(y,n),n})})(t),className:i.pillButton,style:C.pillButton,children:[s,o("span",{style:C.citationTitle,children:r}),l&&(B?p:d)]}),l&&B&&o("div",{className:i.citationWrapper,style:C.citationWrapper,children:o("div",{className:i.citationContent,style:C.citationContent,onClick:t=>t.stopPropagation(),children:u})})]})};export{l as collapseAllCitations,r as collapseCitationsByIds,c as default};
1
+ import{jsxs as t,Fragment as n,jsx as o}from"react/jsx-runtime";import{useState as i}from"react";import e from"./CitationRenderer.module.css.js";const a=new Map,l=()=>{a.clear()},r=t=>{t.forEach(t=>a.delete(t))},c=({inLineCitation:l,citationTitle:r,citationId:c,citationIcon:s,chevronUpComponent:p,chevronDownComponent:d,additionalCallbackForPillButton:m,citationComponent:C,styles:u={},isOpen:h,onToggle:f,defaultExpanded:g=!1})=>{const v=void 0!==h,y=c||r,[k,B]=i(()=>y&&a.has(y)?a.get(y):g),P=v?h:k;return t(n,{children:[t("span",{onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),m&&!k&&(console.log("Calling additionalCallbackForPillButton"),m()),f?f():v||B(t=>{const n=!t;return y&&a.set(y,n),n})})(t),className:e.pillButton,style:u.pillButton,children:[s,o("span",{style:u.citationTitle,children:r}),l&&(P?p:d)]}),l&&P&&o("div",{className:e.citationWrapper,style:u.citationWrapper,children:o("div",{className:e.citationContent,style:u.citationContent,onClick:t=>t.stopPropagation(),children:C})})]})};export{l as collapseAllCitations,r as collapseCitationsByIds,c as default};
2
2
  //# sourceMappingURL=CitationRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,+BAA+B,CAAC,EAAE,GAAG,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ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C;AAEF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+ErD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.272",
3
+ "version": "0.0.273",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",