@e-llm-studio/requirement-ai 0.0.104 → 0.0.105

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("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js"),o=new Map;exports.collapseAllCitations=function(){o.clear()},exports.collapseCitationsByIds=function(t){t.forEach(function(t){return o.delete(t)})},exports.default=function(a){var s=a.inLineCitation,r=a.citationTitle,l=a.citationId,c=a.citationIcon,u=a.chevronUpComponent,d=a.chevronDownComponent,p=a.additionalCallbackForPillButton,f=a.citationComponent,v=a.styles,x=void 0===v?{}:v,C=a.isOpen,_=a.onToggle,g=a.defaultExpanded,h=void 0!==g&&g,m=void 0!==C,j=l||r,y=n.useState(function(){return j&&o.has(j)?o.get(j):h}),q=y[0],B=y[1],b=m?C:q;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),p&&p(),_?_():m||B(function(t){var e=!t;return j&&o.set(j,e),e})}(t)},className:i.default.pillButton,style:x.pillButton},{children:[c,e.jsx("span",t.__assign({style:x.citationTitle},{children:r})),s&&(b?u:d)]})),s&&b&&e.jsx("div",t.__assign({className:i.default.citationWrapper,style:x.citationWrapper},{children:e.jsx("div",t.__assign({className:i.default.citationContent,style:x.citationContent},{children:f}))}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),i=require("./CitationRenderer.module.css.js"),o=new Map;exports.collapseAllCitations=function(){o.clear()},exports.collapseCitationsByIds=function(t){t.forEach(function(t){return o.delete(t)})},exports.default=function(a){var r=a.inLineCitation,s=a.citationTitle,l=a.citationId,c=a.citationIcon,u=a.chevronUpComponent,p=a.chevronDownComponent,d=a.additionalCallbackForPillButton,f=a.citationComponent,v=a.styles,C=void 0===v?{}:v,x=a.isOpen,g=a.onToggle,_=a.defaultExpanded,h=void 0!==_&&_,m=void 0!==x,j=l||s,y=n.useState(function(){return j&&o.has(j)?o.get(j):h}),q=y[0],B=y[1],P=m?x:q;return e.jsxs(e.Fragment,{children:[e.jsxs("span",t.__assign({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),d&&d(),g?g():m||B(function(t){var e=!t;return j&&o.set(j,e),e})}(t)},className:i.default.pillButton,style:C.pillButton},{children:[c,e.jsx("span",t.__assign({style:C.citationTitle},{children:s})),r&&(P?u:p)]})),r&&P&&e.jsx("div",t.__assign({className:i.default.citationWrapper,style:C.citationWrapper},{children:e.jsx("div",t.__assign({className:i.default.citationContent,style:C.citationContent,onClick:function(t){return t.stopPropagation()}},{children:f}))}))]})};
2
2
  //# sourceMappingURL=CitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=new Map,c=function(){a.clear()},l=function(t){t.forEach(function(t){return a.delete(t)})},s=function(c){var l=c.inLineCitation,s=c.citationTitle,p=c.citationId,u=c.citationIcon,d=c.chevronUpComponent,f=c.chevronDownComponent,m=c.additionalCallbackForPillButton,v=c.citationComponent,h=c.styles,C=void 0===h?{}:h,y=c.isOpen,g=c.onToggle,x=c.defaultExpanded,B=void 0!==x&&x,N=void 0!==y,T=p||s,b=e(function(){return T&&a.has(T)?a.get(T):B}),j=b[0],k=b[1],w=N?y:j;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),m&&m(),g?g():N||k(function(t){var n=!t;return T&&a.set(T,n),n})}(t)},className:r.pillButton,style:C.pillButton},{children:[u,o("span",t({style:C.citationTitle},{children:s})),l&&(w?d:f)]})),l&&w&&o("div",t({className:r.citationWrapper,style:C.citationWrapper},{children:o("div",t({className:r.citationContent,style:C.citationContent},{children:v}))}))]})};export{c as collapseAllCitations,l as collapseCitationsByIds,s as default};
1
+ import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=new Map,c=function(){a.clear()},l=function(t){t.forEach(function(t){return a.delete(t)})},p=function(c){var l=c.inLineCitation,p=c.citationTitle,s=c.citationId,u=c.citationIcon,d=c.chevronUpComponent,f=c.chevronDownComponent,m=c.additionalCallbackForPillButton,v=c.citationComponent,C=c.styles,h=void 0===C?{}:C,g=c.isOpen,y=c.onToggle,k=c.defaultExpanded,x=void 0!==k&&k,B=void 0!==g,N=s||p,P=e(function(){return N&&a.has(N)?a.get(N):x}),T=P[0],b=P[1],j=B?g:T;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),m&&m(),y?y():B||b(function(t){var n=!t;return N&&a.set(N,n),n})}(t)},className:r.pillButton,style:h.pillButton},{children:[u,o("span",t({style:h.citationTitle},{children:p})),l&&(j?d:f)]})),l&&j&&o("div",t({className:r.citationWrapper,style:h.citationWrapper},{children:o("div",t({className:r.citationContent,style:h.citationContent,onClick:function(t){return t.stopPropagation()}},{children:v}))}))]})};export{c as collapseAllCitations,l as collapseCitationsByIds,p 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,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAKD;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAS,MAAM,EAAE,SAEnD,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6ErD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
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,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAKD;;GAEG;AACH,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAS,MAAM,EAAE,SAEnD,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8ErD,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.104",
3
+ "version": "0.0.105",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",