@e-llm-studio/citation 0.0.90 → 0.0.91

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 i=require("../../../node_modules/tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime"),e={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},card:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:500,fontSize:"14px",borderRadius:"4px",color:"#64748B",maxWidth:"100%",wordBreak:"break-word",marginBottom:"24px",width:"fit-content"},tag:{padding:"4px 12px",fontSize:"14px",fontWeight:500,color:"#3B82F6",backgroundColor:"#F3F8FF",borderRadius:"6px"},avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:"35px",width:"35px",borderRadius:"50%",backgroundColor:"#E5E7EB",color:"#4B5563",fontWeight:600,flexShrink:0,fontSize:"12px"},contributorName:{fontWeight:600,color:"#111827",marginTop:"8px",fontSize:"14px"},contributorRole:{fontSize:"12px",color:"#6B7280"},grid:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"24px",marginBottom:"24px",padding:"0 12px"},awardMeta:{fontSize:"14px",color:"#4B5563"},awardDesc:{fontSize:"14px",color:"#4B5563"},awardContainer:{display:"flex",gap:"8px"},awardInfo:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:600,fontSize:"12px",borderRadius:"4px",color:"#434C54",maxWidth:"100%",wordBreak:"break-word",width:"fit-content"},listContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",marginBottom:"24px"},awardContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px"}};exports.default=function(r){var t,s,a,l=r.data,o=l.publisher,d=l.contributors,p=l.awards,x=void 0===p?[]:p;return n.jsxs("div",{children:[n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Publishers"})),n.jsxs("div",i.__assign({style:e.card},{children:[n.jsx("span",i.__assign({style:{color:"rgb(67, 76, 85)"}},{children:o.name})),(null==o?void 0:o.tags)&&(null==o?void 0:o.tags.length)>0&&n.jsx("div",i.__assign({style:{display:"flex",gap:"8px",marginTop:"18px"}},{children:null===(t=null==o?void 0:o.tags)||void 0===t?void 0:t.map((function(r,t){return n.jsx("span",i.__assign({style:e.tag},{children:r}),t)}))}))]})),n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Contributors"})),n.jsx("div",i.__assign({style:e.listContainerWrapper},{children:null===(s=null==d?void 0:d.primary)||void 0===s?void 0:s.map((function(r,t){var s,a;return n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[n.jsx("div",i.__assign({style:e.avatar},{children:(null===(s=null==r?void 0:r.name)||void 0===s?void 0:s.split(" ").map((function(i){return i[0]})).join(""))||"N/A"})),n.jsx("span",i.__assign({style:e.contributorName},{children:null==r?void 0:r.name})),n.jsx("span",i.__assign({style:e.contributorRole},{children:null==r?void 0:r.role})),n.jsx("div",i.__assign({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:null===(a=null==r?void 0:r.tags)||void 0===a?void 0:a.map((function(r,t){return n.jsx("span",i.__assign({style:e.tag},{children:r}),t)}))}))]}),t)}))})),d.additional&&d.additional.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Additional Contributors"})),n.jsx("div",i.__assign({style:e.listContainerWrapper},{children:null===(a=null==d?void 0:d.additional)||void 0===a?void 0:a.map((function(r,t){return n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[n.jsx("div",i.__assign({style:e.avatar},{children:r.name.split(" ").map((function(i){return i[0]})).join("")})),n.jsx("span",i.__assign({style:e.contributorName},{children:null==r?void 0:r.name})),n.jsx("span",i.__assign({style:e.contributorRole},{children:null==r?void 0:r.role}))]}),t)}))}))]}),x.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Awards"})),n.jsx("div",i.__assign({style:e.awardContainerWrapper},{children:null==x?void 0:x.map((function(r,t){return n.jsx("div",i.__assign({style:e.awardInfo},{children:n.jsx("span",{children:null==r?void 0:r.title})}),t)}))}))]})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../node_modules/tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime"),e={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},card:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:500,fontSize:"14px",borderRadius:"4px",color:"#64748B",maxWidth:"100%",wordBreak:"break-word",marginBottom:"24px",width:"fit-content"},tag:{padding:"4px 12px",fontSize:"14px",fontWeight:500,color:"#3B82F6",backgroundColor:"#F3F8FF",borderRadius:"6px"},avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:"35px",width:"35px",borderRadius:"50%",backgroundColor:"#E5E7EB",color:"#4B5563",fontWeight:600,flexShrink:0,fontSize:"12px"},contributorName:{fontWeight:600,color:"#111827",marginTop:"8px",fontSize:"14px"},contributorRole:{fontSize:"12px",color:"#6B7280"},grid:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"24px",marginBottom:"24px",padding:"0 12px"},awardMeta:{fontSize:"14px",color:"#4B5563"},awardDesc:{fontSize:"14px",color:"#4B5563"},awardContainer:{display:"flex",gap:"8px"},awardInfo:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:600,fontSize:"12px",borderRadius:"4px",color:"#434C54",maxWidth:"100%",wordBreak:"break-word",width:"fit-content"},listContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",marginBottom:"24px"},awardContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px"}};exports.default=function(r){var t,a,l,s=r.data,o=s.publisher,d=s.contributors,p=s.awards,c=void 0===p?[]:p,x=function(i){var n=i.trim().split(/\s+/).map((function(i){var n;return null===(n=i[0])||void 0===n?void 0:n.toUpperCase()})).join("");return n.length>3?"".concat(n.slice(0,3)):n};return n.jsxs("div",{children:[n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Publishers"})),n.jsxs("div",i.__assign({style:e.card},{children:[n.jsx("span",i.__assign({style:{color:"rgb(67, 76, 85)"}},{children:o.name})),(null==o?void 0:o.tags)&&(null==o?void 0:o.tags.length)>0&&n.jsx("div",i.__assign({style:{display:"flex",gap:"8px",marginTop:"18px"}},{children:null===(t=null==o?void 0:o.tags)||void 0===t?void 0:t.map((function(r,t){return n.jsx("span",i.__assign({style:e.tag},{children:r}),t)}))}))]})),n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Contributors"})),n.jsx("div",i.__assign({style:e.listContainerWrapper},{children:null===(a=null==d?void 0:d.primary)||void 0===a?void 0:a.map((function(r,t){var a;return n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[n.jsx("div",i.__assign({style:e.avatar},{children:x(null==r?void 0:r.name)})),n.jsx("span",i.__assign({style:e.contributorName},{children:null==r?void 0:r.name})),n.jsx("span",i.__assign({style:e.contributorRole},{children:null==r?void 0:r.role})),n.jsx("div",i.__assign({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:null===(a=null==r?void 0:r.tags)||void 0===a?void 0:a.map((function(r,t){return n.jsx("span",i.__assign({style:e.tag},{children:r}),t)}))}))]}),t)}))})),d.additional&&d.additional.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Additional Contributors"})),n.jsx("div",i.__assign({style:e.listContainerWrapper},{children:null===(l=null==d?void 0:d.additional)||void 0===l?void 0:l.map((function(r,t){return n.jsxs("div",i.__assign({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[n.jsx("div",i.__assign({style:e.avatar},{children:x(null==r?void 0:r.name)})),n.jsx("span",i.__assign({style:e.contributorName},{children:null==r?void 0:r.name})),n.jsx("span",i.__assign({style:e.contributorRole},{children:null==r?void 0:r.role}))]}),t)}))}))]}),c.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("p",i.__assign({style:e.sectionTitle},{children:"Awards"})),n.jsx("div",i.__assign({style:e.awardContainerWrapper},{children:null==c?void 0:c.map((function(r,t){return n.jsx("div",i.__assign({style:e.awardInfo},{children:n.jsx("span",{children:null==r?void 0:r.title})}),t)}))}))]})]})};
2
2
  //# sourceMappingURL=BookPeopleAwardsCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as i}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as e,Fragment as t}from"react/jsx-runtime";var r={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},card:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:500,fontSize:"14px",borderRadius:"4px",color:"#64748B",maxWidth:"100%",wordBreak:"break-word",marginBottom:"24px",width:"fit-content"},tag:{padding:"4px 12px",fontSize:"14px",fontWeight:500,color:"#3B82F6",backgroundColor:"#F3F8FF",borderRadius:"6px"},avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:"35px",width:"35px",borderRadius:"50%",backgroundColor:"#E5E7EB",color:"#4B5563",fontWeight:600,flexShrink:0,fontSize:"12px"},contributorName:{fontWeight:600,color:"#111827",marginTop:"8px",fontSize:"14px"},contributorRole:{fontSize:"12px",color:"#6B7280"},grid:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"24px",marginBottom:"24px",padding:"0 12px"},awardMeta:{fontSize:"14px",color:"#4B5563"},awardDesc:{fontSize:"14px",color:"#4B5563"},awardContainer:{display:"flex",gap:"8px"},awardInfo:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:600,fontSize:"12px",borderRadius:"4px",color:"#434C54",maxWidth:"100%",wordBreak:"break-word",width:"fit-content"},listContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",marginBottom:"24px"},awardContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px"}},o=function(o){var l,a,d,p=o.data,s=p.publisher,c=p.contributors,u=p.awards,x=void 0===u?[]:u;return n("div",{children:[e("p",i({style:r.sectionTitle},{children:"Publishers"})),n("div",i({style:r.card},{children:[e("span",i({style:{color:"rgb(67, 76, 85)"}},{children:s.name})),(null==s?void 0:s.tags)&&(null==s?void 0:s.tags.length)>0&&e("div",i({style:{display:"flex",gap:"8px",marginTop:"18px"}},{children:null===(l=null==s?void 0:s.tags)||void 0===l?void 0:l.map((function(n,t){return e("span",i({style:r.tag},{children:n}),t)}))}))]})),e("p",i({style:r.sectionTitle},{children:"Contributors"})),e("div",i({style:r.listContainerWrapper},{children:null===(a=null==c?void 0:c.primary)||void 0===a?void 0:a.map((function(t,o){var l,a;return n("div",i({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e("div",i({style:r.avatar},{children:(null===(l=null==t?void 0:t.name)||void 0===l?void 0:l.split(" ").map((function(i){return i[0]})).join(""))||"N/A"})),e("span",i({style:r.contributorName},{children:null==t?void 0:t.name})),e("span",i({style:r.contributorRole},{children:null==t?void 0:t.role})),e("div",i({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:null===(a=null==t?void 0:t.tags)||void 0===a?void 0:a.map((function(n,t){return e("span",i({style:r.tag},{children:n}),t)}))}))]}),o)}))})),c.additional&&c.additional.length>0&&n(t,{children:[e("p",i({style:r.sectionTitle},{children:"Additional Contributors"})),e("div",i({style:r.listContainerWrapper},{children:null===(d=null==c?void 0:c.additional)||void 0===d?void 0:d.map((function(t,o){return n("div",i({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e("div",i({style:r.avatar},{children:t.name.split(" ").map((function(i){return i[0]})).join("")})),e("span",i({style:r.contributorName},{children:null==t?void 0:t.name})),e("span",i({style:r.contributorRole},{children:null==t?void 0:t.role}))]}),o)}))}))]}),x.length>0&&n(t,{children:[e("p",i({style:r.sectionTitle},{children:"Awards"})),e("div",i({style:r.awardContainerWrapper},{children:null==x?void 0:x.map((function(n,t){return e("div",i({style:r.awardInfo},{children:e("span",{children:null==n?void 0:n.title})}),t)}))}))]})]})};export{o as default};
1
+ import{__assign as i}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as e,Fragment as r}from"react/jsx-runtime";var t={sectionTitle:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"12px"},card:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:500,fontSize:"14px",borderRadius:"4px",color:"#64748B",maxWidth:"100%",wordBreak:"break-word",marginBottom:"24px",width:"fit-content"},tag:{padding:"4px 12px",fontSize:"14px",fontWeight:500,color:"#3B82F6",backgroundColor:"#F3F8FF",borderRadius:"6px"},avatar:{display:"flex",alignItems:"center",justifyContent:"center",height:"35px",width:"35px",borderRadius:"50%",backgroundColor:"#E5E7EB",color:"#4B5563",fontWeight:600,flexShrink:0,fontSize:"12px"},contributorName:{fontWeight:600,color:"#111827",marginTop:"8px",fontSize:"14px"},contributorRole:{fontSize:"12px",color:"#6B7280"},grid:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:"24px",marginBottom:"24px",padding:"0 12px"},awardMeta:{fontSize:"14px",color:"#4B5563"},awardDesc:{fontSize:"14px",color:"#4B5563"},awardContainer:{display:"flex",gap:"8px"},awardInfo:{backgroundColor:"#ECEEF1",padding:"8px 12px",fontWeight:600,fontSize:"12px",borderRadius:"4px",color:"#434C54",maxWidth:"100%",wordBreak:"break-word",width:"fit-content"},listContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"30px",marginBottom:"24px"},awardContainerWrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"16px"}},o=function(o){var l,a,d,p=o.data,s=p.publisher,c=p.contributors,u=p.awards,x=void 0===u?[]:u,f=function(i){var n=i.trim().split(/\s+/).map((function(i){var n;return null===(n=i[0])||void 0===n?void 0:n.toUpperCase()})).join("");return n.length>3?"".concat(n.slice(0,3)):n};return n("div",{children:[e("p",i({style:t.sectionTitle},{children:"Publishers"})),n("div",i({style:t.card},{children:[e("span",i({style:{color:"rgb(67, 76, 85)"}},{children:s.name})),(null==s?void 0:s.tags)&&(null==s?void 0:s.tags.length)>0&&e("div",i({style:{display:"flex",gap:"8px",marginTop:"18px"}},{children:null===(l=null==s?void 0:s.tags)||void 0===l?void 0:l.map((function(n,r){return e("span",i({style:t.tag},{children:n}),r)}))}))]})),e("p",i({style:t.sectionTitle},{children:"Contributors"})),e("div",i({style:t.listContainerWrapper},{children:null===(a=null==c?void 0:c.primary)||void 0===a?void 0:a.map((function(r,o){var l;return n("div",i({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e("div",i({style:t.avatar},{children:f(null==r?void 0:r.name)})),e("span",i({style:t.contributorName},{children:null==r?void 0:r.name})),e("span",i({style:t.contributorRole},{children:null==r?void 0:r.role})),e("div",i({style:{display:"flex",gap:"8px",marginTop:"8px"}},{children:null===(l=null==r?void 0:r.tags)||void 0===l?void 0:l.map((function(n,r){return e("span",i({style:t.tag},{children:n}),r)}))}))]}),o)}))})),c.additional&&c.additional.length>0&&n(r,{children:[e("p",i({style:t.sectionTitle},{children:"Additional Contributors"})),e("div",i({style:t.listContainerWrapper},{children:null===(d=null==c?void 0:c.additional)||void 0===d?void 0:d.map((function(r,o){return n("div",i({style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},{children:[e("div",i({style:t.avatar},{children:f(null==r?void 0:r.name)})),e("span",i({style:t.contributorName},{children:null==r?void 0:r.name})),e("span",i({style:t.contributorRole},{children:null==r?void 0:r.role}))]}),o)}))}))]}),x.length>0&&n(r,{children:[e("p",i({style:t.sectionTitle},{children:"Awards"})),e("div",i({style:t.awardContainerWrapper},{children:null==x?void 0:x.map((function(n,r){return e("div",i({style:t.awardInfo},{children:e("span",{children:null==n?void 0:n.title})}),r)}))}))]})]})};export{o as default};
2
2
  //# sourceMappingURL=BookPeopleAwardsCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BookPeopleAwardsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.tsx"],"names":[],"mappings":"AAwGA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAG,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,UAAU,CAAC;IACtB,YAAY,EAAE;QACZ,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED,QAAA,MAAM,oBAAoB,aAAc,yBAAyB,4CAmGhE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"BookPeopleAwardsCard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.tsx"],"names":[],"mappings":"AAwGA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAG,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,UAAU,CAAC;IACtB,YAAY,EAAE;QACZ,OAAO,EAAE,YAAY,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;KAC7B,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED,QAAA,MAAM,oBAAoB,aAAc,yBAAyB,4CAyGhE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",