@feature.ninja/widget
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -1,2 +0,2 @@ | ||
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,t)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,__spreadValues=(e,n)=>{for(var t in n||(n={}))__hasOwnProp.call(n,t)&&__defNormalProp(e,t,n[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(n))__propIsEnum.call(n,t)&&__defNormalProp(e,t,n[t]);return e},__spreadProps=(e,n)=>__defProps(e,__getOwnPropDescs(n)),__async=(e,n,t)=>new Promise(((_,r)=>{var o=e=>{try{s(t.next(e))}catch(n){r(n)}},l=e=>{try{s(t.throw(e))}catch(n){r(n)}},s=e=>e.done?_(e.value):Promise.resolve(e.value).then(o,l);s((t=t.apply(e,n)).next())})),FeatureNinjaWidget=function(){"use strict";var e,n,t,_,r,o,l={},s=[],i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a(e,n){for(var t in n)e[t]=n[t];return e}function u(e){var n=e.parentNode;n&&n.removeChild(e)}function f(n,t,_){var r,o,l,s={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):_),"function"==typeof n&&null!=n.defaultProps)for(l in n.defaultProps)void 0===s[l]&&(s[l]=n.defaultProps[l]);return c(n,s,r,o,null)}function c(e,_,r,o,l){var s={type:e,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null!=n.vnode&&n.vnode(s),s}function p(e){return e.children}function d(e,n){this.props=e,this.context=n}function h(e,n){if(null==n)return e.__?h(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?h(e):null}function m(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return m(e)}}function v(e){(!e.__d&&(e.__d=!0)&&_.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||r)(y)}function y(){for(var e;y.__r=_.length;)e=_.sort((function(e,n){return e.__v.__b-n.__v.__b})),_=[],e.some((function(e){var n,t,_,r,o,l;e.__d&&(o=(r=(n=e).__v).__e,(l=n.__P)&&(t=[],(_=a({},r)).__v=r.__v+1,P(l,r,_,n.__n,void 0!==l.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?h(r):o,r.__h),S(t,r),r.__e!=o&&m(r)))}))}function g(e,n,t,_,r,o,i,a,u,f){var d,m,v,y,g,w,k,E=_&&_.__k||s,N=E.length;for(t.__k=[],d=0;d<n.length;d++)if(null!=(y=t.__k[d]=null==(y=n[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?c(null,y,null,null,y):Array.isArray(y)?c(p,{children:y},null,null,null):y.__b>0?c(y.type,y.props,y.key,null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(v=E[d])||v&&y.key==v.key&&y.type===v.type)E[d]=void 0;else for(m=0;m<N;m++){if((v=E[m])&&y.key==v.key&&y.type===v.type){E[m]=void 0;break}v=null}P(e,y,v=v||l,r,o,i,a,u,f),g=y.__e,(m=y.ref)&&v.ref!=m&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(m,y.__c||g,y)),null!=g?(null==w&&(w=g),"function"==typeof y.type&&null!=y.__k&&y.__k===v.__k?y.__d=u=b(y,u,e):u=x(e,y,v,E,g,u),f||"option"!==t.type?"function"==typeof t.type&&(t.__d=u):e.value=""):u&&v.__e==u&&u.parentNode!=e&&(u=h(v))}for(t.__e=w,d=N;d--;)null!=E[d]&&("function"==typeof t.type&&null!=E[d].__e&&E[d].__e==t.__d&&(t.__d=h(_,d+1)),D(E[d],E[d]));if(k)for(d=0;d<k.length;d++)O(k[d],k[++d],k[++d])}function b(e,n,t){var _,r;for(_=0;_<e.__k.length;_++)(r=e.__k[_])&&(r.__=e,n="function"==typeof r.type?b(r,n,t):x(t,r,r,e.__k,r.__e,n));return n}function x(e,n,t,_,r,o){var l,s,i;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),l=null;else{for(s=o,i=0;(s=s.nextSibling)&&i<_.length;i+=2)if(s==r)break e;e.insertBefore(r,o),l=o}return void 0!==l?l:r.nextSibling}function w(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||i.test(n)?t:t+"px"}function k(e,n,t,_,r){var o;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||w(e.style,n,"");if(t)for(n in t)_&&t[n]===_[n]||w(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_||e.addEventListener(n,o?N:E,o):e.removeEventListener(n,o?N:E,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(l){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function N(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(t,_,r,o,s,i,f,c,m){var v,y,b,x,w,E,N,P,S,O,D,T=_.type;if(void 0!==_.constructor)return null;null!=r.__h&&(m=r.__h,c=_.__e=r.__e,_.__h=null,i=[c]),(v=n.__b)&&v(_);try{e:if("function"==typeof T){if(P=_.props,S=(v=T.contextType)&&o[v.__c],O=v?S?S.props.value:v.__:o,r.__c?N=(y=_.__c=r.__c).__=y.__E:("prototype"in T&&T.prototype.render?_.__c=y=new T(P,O):(_.__c=y=new d(P,O),y.constructor=T,y.render=R),S&&S.sub(y),y.props=P,y.state||(y.state={}),y.context=O,y.__n=o,b=y.__d=!0,y.__h=[]),null==y.__s&&(y.__s=y.state),null!=T.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=a({},y.__s)),a(y.__s,T.getDerivedStateFromProps(P,y.__s))),x=y.props,w=y.state,b)null==T.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(null==T.getDerivedStateFromProps&&P!==x&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(P,O),!y.__e&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(P,y.__s,O)||_.__v===r.__v){y.props=P,y.state=y.__s,_.__v!==r.__v&&(y.__d=!1),y.__v=_,_.__e=r.__e,_.__k=r.__k,_.__k.forEach((function(e){e&&(e.__=_)})),y.__h.length&&f.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(P,y.__s,O),null!=y.componentDidUpdate&&y.__h.push((function(){y.componentDidUpdate(x,w,E)}))}y.context=O,y.props=P,y.state=y.__s,(v=n.__r)&&v(_),y.__d=!1,y.__v=_,y.__P=t,v=y.render(y.props,y.state,y.context),y.state=y.__s,null!=y.getChildContext&&(o=a(a({},o),y.getChildContext())),b||null==y.getSnapshotBeforeUpdate||(E=y.getSnapshotBeforeUpdate(x,w)),D=null!=v&&v.type===p&&null==v.key?v.props.children:v,g(t,Array.isArray(D)?D:[D],_,r,o,s,i,f,c,m),y.base=_.__e,_.__h=null,y.__h.length&&f.push(y),N&&(y.__E=y.__=null),y.__e=!1}else null==i&&_.__v===r.__v?(_.__k=r.__k,_.__e=r.__e):_.__e=function(n,t,_,r,o,s,i,a){var f,c,p,d=_.props,m=t.props,v=t.type,y=0;if("svg"===v&&(o=!0),null!=s)for(;y<s.length;y++)if((f=s[y])&&(f===n||(v?f.localName==v:3==f.nodeType))){n=f,s[y]=null;break}if(null==n){if(null===v)return document.createTextNode(m);n=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,m.is&&m),s=null,a=!1}if(null===v)d===m||a&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),c=(d=_.props||l).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!a){if(null!=s)for(d={},y=0;y<n.attributes.length;y++)d[n.attributes[y].name]=n.attributes[y].value;(p||c)&&(p&&(c&&p.__html==c.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(e,n,t,_,r){var o;for(o in t)"children"===o||"key"===o||o in n||k(e,o,null,t[o],_);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||k(e,o,n[o],t[o],_)}(n,m,d,o,a),p)t.__k=[];else if(y=t.props.children,g(n,Array.isArray(y)?y:[y],t,_,r,o&&"foreignObject"!==v,s,i,s?s[0]:_.__k&&h(_,0),a),null!=s)for(y=s.length;y--;)null!=s[y]&&u(s[y]);a||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===v&&!y)&&k(n,"value",y,d.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&k(n,"checked",y,d.checked,!1))}return n}(r.__e,_,r,o,s,i,f,m);(v=n.diffed)&&v(_)}catch(A){_.__v=null,(m||null!=i)&&(_.__e=c,_.__h=!!m,i[i.indexOf(c)]=null),n.__e(A,_,r)}}function S(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(_){n.__e(_,t.__v)}}))}function O(e,t,_){try{"function"==typeof e?e(t):e.current=t}catch(r){n.__e(r,_)}}function D(e,t,_){var r,o;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||O(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(l){n.__e(l,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&D(r[o],t,"function"!=typeof e.type);_||null==e.__e||u(e.__e),e.__e=e.__d=void 0}function R(e,n,t){return this.constructor(e,t)}e=s.slice,n={__e:function(e,n){for(var t,_,r;n=n.__;)if((t=n.__c)&&!t.__)try{if((_=t.constructor)&&null!=_.getDerivedStateFromError&&(t.setState(_.getDerivedStateFromError(e)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),r=t.__d),r)return t.__E=t}catch(o){e=o}throw e}},t=0,d.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a({},this.state),"function"==typeof e&&(e=e(a({},t),this.props)),e&&a(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),v(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v(this))},d.prototype.render=p,_=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,y.__r=0;var T,A,H,L=0,U=[],j=n.__b,C=n.__r,F=n.diffed,M=n.__c,V=n.unmount;function I(e,t){n.__h&&n.__h(A,e,L||t),L=0;var _=A.__H||(A.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function W(){U.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Q),e.__H.__h.forEach(z),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}})),U=[]}n.__b=function(e){A=null,j&&j(e)},n.__r=function(e){C&&C(e),T=0;var n=(A=e.__c).__H;n&&(n.__h.forEach(Q),n.__h.forEach(z),n.__h=[])},n.diffed=function(e){F&&F(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==U.push(t)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),$&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);$&&(n=requestAnimationFrame(t))})(W)),A=void 0},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Q),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(_){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(_,e.__v)}})),M&&M(e,t)},n.unmount=function(e){V&&V(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Q)}catch(_){n.__e(_,t.__v)}};var q,B,$="function"==typeof requestAnimationFrame;function Q(e){var n=A;"function"==typeof e.__c&&e.__c(),A=n}function z(e){var n=A;e.__c=e.__(),A=n}function G(e,n){return"function"==typeof n?n(e):n}(B=q||(q={})).UPVOTE="UPVOTE",B.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",B.HANDLE_ERROR="HANDLE_ERROR";const J={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},K=(e,n)=>{switch(console.log(n),n.type){case q.UPVOTE:return __spreadProps(__spreadValues({},e),{data:__spreadProps(__spreadValues({},e.data),{[n.id]:__spreadProps(__spreadValues({},e.data[n.id]),{votes:e.data[n.id].votes_count+1})})});case q.FEATURE_REQUESTS_LOADED:return __spreadProps(__spreadValues({},e),{data:n.response.data,meta:n.response.meta,links:n.response.links});case q.HANDLE_ERROR:return __spreadProps(__spreadValues({},e),{error:n.error});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};function X(e){const{featureRequest:n}=e;return f("div",{className:"flex py-6 px-4 sm:px-6 gap-4"},f("div",{className:"flex flex-col w-10 items-center"},f("button",{type:"button",className:"flex flex-col items-center rounded-full text-gray-400 hover:text-green-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-400 text-sm"},f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-12 w-12 -m-2","aria-hidden":"true"},f("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))),f("div",{className:"text-gray-500"})),f("div",{className:"flex flex-col flex-grow justify-between truncate"},f("div",{className:"text-md text-gray-700 font-semibold truncate"},n.title),f("div",{className:"text-sm text-gray-700 truncate"},n.description),f("div",{className:"flex justify-between mt-2"},f("div",{className:"flex gap-2"},f("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800 "},"boombox")),f("div",{className:"flex text-gray-500 text-sm"},n.votes_count,f("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"w-5 h-5"},f("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))))))}function Y(e){const{options:{workspace:t,projects:_}}=e,[r,o]=(l=K,s=J,(a=I(T++,2)).t=l,a.__c||(a.__=[i?i(s):G(void 0,s),function(e){var n=a.t(a.__[0],e);a.__[0]!==n&&(a.__=[n,a.__[1]],a.__c.setState({}))}],a.__c=A),a.__);var l,s,i,a;const{error:u,data:c,meta:p,links:d}=r;return function(e,t){var _,r,o=I(T++,3);!n.__s&&(_=o.__H,r=t,!_||_.length!==r.length||r.some((function(e,n){return e!==_[n]})))&&(o.__=e,o.__H=t,A.__H.__h.push(o))}((()=>{(()=>{__async(this,null,(function*(){const e=yield fetch(`https://api.feature.ninja/workspaces/${t}/feature-requests${_?`?projects=${_.join(",")}`:""}`),n=yield e.json();if(e.ok)o({type:q.FEATURE_REQUESTS_LOADED,response:n});else{const n=yield e.text();console.error("Error loading feature requests, response was:",n),o({type:q.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}}))})()}),[t,_]),f("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},u&&f("div",{className:"fn-bg-red-400"},u.message),f("div",{className:"fn-py-4 fn-px-4"},f("span",{className:"fn-sr-only"},"Search..."),f("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),f("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(c).map((e=>f(X,{key:e.id,featureRequest:e})))),f("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},f("div",{className:"fn-hidden fn-sm:block"},f("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",f("span",{className:"fn-font-medium"},p.from)," to"," ",f("span",{className:"fn-font-medium"},p.to)," of"," ",f("span",{className:"fn-font-medium"},p.total)," results")),f("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},f("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.prev},"Previous"),f("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.next},"Next"))))}const Z=document.currentScript;function ee(t){window.addEventListener("DOMContentLoaded",(()=>{var _;const r=__spreadValues(__spreadValues({},{elementId:"feature-ninja-widget"}),t);let o=document.getElementById(r.elementId);var s,i,a,u,c,d;o||(o=document.createElement("div"),o.id=r.elementId,Z?null==(_=Z.parentElement)||_.insertBefore(o,Z):document.body.appendChild(o)),s=f(Y,{options:r}),i=o,n.__&&n.__(s,i),c=(u="function"==typeof a)?null:a&&a.__k||i.__k,d=[],P(i,s=(!u&&a||i).__k=f(p,null,[s]),c||l,l,void 0!==i.ownerSVGElement,!u&&a?[a]:c?null:i.firstChild?e.call(i.childNodes):null,d,!u&&a?a:c?c.__e:i.firstChild,u),S(d,s)}))}return window.featureNinja=ee,(function () { function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`@import url('https://rsms.me/inter/inter.css'); | ||
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,t)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,__spreadValues=(e,n)=>{for(var t in n||(n={}))__hasOwnProp.call(n,t)&&__defNormalProp(e,t,n[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(n))__propIsEnum.call(n,t)&&__defNormalProp(e,t,n[t]);return e},__spreadProps=(e,n)=>__defProps(e,__getOwnPropDescs(n)),__async=(e,n,t)=>new Promise(((_,r)=>{var o=e=>{try{s(t.next(e))}catch(n){r(n)}},l=e=>{try{s(t.throw(e))}catch(n){r(n)}},s=e=>e.done?_(e.value):Promise.resolve(e.value).then(o,l);s((t=t.apply(e,n)).next())})),FeatureNinjaWidget=function(){"use strict";var e,n,t,_,r,o,l={},s=[],i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function u(n,t,_){var r,o,l,s={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):_),"function"==typeof n&&null!=n.defaultProps)for(l in n.defaultProps)void 0===s[l]&&(s[l]=n.defaultProps[l]);return c(n,s,r,o,null)}function c(e,_,r,o,l){var s={type:e,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null!=n.vnode&&n.vnode(s),s}function p(e){return e.children}function d(e,n){this.props=e,this.context=n}function h(e,n){if(null==n)return e.__?h(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?h(e):null}function m(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return m(e)}}function v(e){(!e.__d&&(e.__d=!0)&&_.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||r)(y)}function y(){for(var e;y.__r=_.length;)e=_.sort((function(e,n){return e.__v.__b-n.__v.__b})),_=[],e.some((function(e){var n,t,_,r,o,l;e.__d&&(o=(r=(n=e).__v).__e,(l=n.__P)&&(t=[],(_=f({},r)).__v=r.__v+1,P(l,r,_,n.__n,void 0!==l.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?h(r):o,r.__h),S(t,r),r.__e!=o&&m(r)))}))}function g(e,n,t,_,r,o,i,f,a,u){var d,m,v,y,g,w,k,E=_&&_.__k||s,N=E.length;for(t.__k=[],d=0;d<n.length;d++)if(null!=(y=t.__k[d]=null==(y=n[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?c(null,y,null,null,y):Array.isArray(y)?c(p,{children:y},null,null,null):y.__b>0?c(y.type,y.props,y.key,null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(v=E[d])||v&&y.key==v.key&&y.type===v.type)E[d]=void 0;else for(m=0;m<N;m++){if((v=E[m])&&y.key==v.key&&y.type===v.type){E[m]=void 0;break}v=null}P(e,y,v=v||l,r,o,i,f,a,u),g=y.__e,(m=y.ref)&&v.ref!=m&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(m,y.__c||g,y)),null!=g?(null==w&&(w=g),"function"==typeof y.type&&null!=y.__k&&y.__k===v.__k?y.__d=a=b(y,a,e):a=x(e,y,v,E,g,a),u||"option"!==t.type?"function"==typeof t.type&&(t.__d=a):e.value=""):a&&v.__e==a&&a.parentNode!=e&&(a=h(v))}for(t.__e=w,d=N;d--;)null!=E[d]&&("function"==typeof t.type&&null!=E[d].__e&&E[d].__e==t.__d&&(t.__d=h(_,d+1)),D(E[d],E[d]));if(k)for(d=0;d<k.length;d++)O(k[d],k[++d],k[++d])}function b(e,n,t){var _,r;for(_=0;_<e.__k.length;_++)(r=e.__k[_])&&(r.__=e,n="function"==typeof r.type?b(r,n,t):x(t,r,r,e.__k,r.__e,n));return n}function x(e,n,t,_,r,o){var l,s,i;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),l=null;else{for(s=o,i=0;(s=s.nextSibling)&&i<_.length;i+=2)if(s==r)break e;e.insertBefore(r,o),l=o}return void 0!==l?l:r.nextSibling}function w(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||i.test(n)?t:t+"px"}function k(e,n,t,_,r){var o;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||w(e.style,n,"");if(t)for(n in t)_&&t[n]===_[n]||w(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_||e.addEventListener(n,o?N:E,o):e.removeEventListener(n,o?N:E,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(l){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function N(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(t,_,r,o,s,i,u,c,m){var v,y,b,x,w,E,N,P,S,O,D,T=_.type;if(void 0!==_.constructor)return null;null!=r.__h&&(m=r.__h,c=_.__e=r.__e,_.__h=null,i=[c]),(v=n.__b)&&v(_);try{e:if("function"==typeof T){if(P=_.props,S=(v=T.contextType)&&o[v.__c],O=v?S?S.props.value:v.__:o,r.__c?N=(y=_.__c=r.__c).__=y.__E:("prototype"in T&&T.prototype.render?_.__c=y=new T(P,O):(_.__c=y=new d(P,O),y.constructor=T,y.render=R),S&&S.sub(y),y.props=P,y.state||(y.state={}),y.context=O,y.__n=o,b=y.__d=!0,y.__h=[]),null==y.__s&&(y.__s=y.state),null!=T.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=f({},y.__s)),f(y.__s,T.getDerivedStateFromProps(P,y.__s))),x=y.props,w=y.state,b)null==T.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(null==T.getDerivedStateFromProps&&P!==x&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(P,O),!y.__e&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(P,y.__s,O)||_.__v===r.__v){y.props=P,y.state=y.__s,_.__v!==r.__v&&(y.__d=!1),y.__v=_,_.__e=r.__e,_.__k=r.__k,_.__k.forEach((function(e){e&&(e.__=_)})),y.__h.length&&u.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(P,y.__s,O),null!=y.componentDidUpdate&&y.__h.push((function(){y.componentDidUpdate(x,w,E)}))}y.context=O,y.props=P,y.state=y.__s,(v=n.__r)&&v(_),y.__d=!1,y.__v=_,y.__P=t,v=y.render(y.props,y.state,y.context),y.state=y.__s,null!=y.getChildContext&&(o=f(f({},o),y.getChildContext())),b||null==y.getSnapshotBeforeUpdate||(E=y.getSnapshotBeforeUpdate(x,w)),D=null!=v&&v.type===p&&null==v.key?v.props.children:v,g(t,Array.isArray(D)?D:[D],_,r,o,s,i,u,c,m),y.base=_.__e,_.__h=null,y.__h.length&&u.push(y),N&&(y.__E=y.__=null),y.__e=!1}else null==i&&_.__v===r.__v?(_.__k=r.__k,_.__e=r.__e):_.__e=function(n,t,_,r,o,s,i,f){var u,c,p,d=_.props,m=t.props,v=t.type,y=0;if("svg"===v&&(o=!0),null!=s)for(;y<s.length;y++)if((u=s[y])&&(u===n||(v?u.localName==v:3==u.nodeType))){n=u,s[y]=null;break}if(null==n){if(null===v)return document.createTextNode(m);n=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,m.is&&m),s=null,f=!1}if(null===v)d===m||f&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),c=(d=_.props||l).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!f){if(null!=s)for(d={},y=0;y<n.attributes.length;y++)d[n.attributes[y].name]=n.attributes[y].value;(p||c)&&(p&&(c&&p.__html==c.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(e,n,t,_,r){var o;for(o in t)"children"===o||"key"===o||o in n||k(e,o,null,t[o],_);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||k(e,o,n[o],t[o],_)}(n,m,d,o,f),p)t.__k=[];else if(y=t.props.children,g(n,Array.isArray(y)?y:[y],t,_,r,o&&"foreignObject"!==v,s,i,s?s[0]:_.__k&&h(_,0),f),null!=s)for(y=s.length;y--;)null!=s[y]&&a(s[y]);f||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===v&&!y)&&k(n,"value",y,d.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&k(n,"checked",y,d.checked,!1))}return n}(r.__e,_,r,o,s,i,u,m);(v=n.diffed)&&v(_)}catch(A){_.__v=null,(m||null!=i)&&(_.__e=c,_.__h=!!m,i[i.indexOf(c)]=null),n.__e(A,_,r)}}function S(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(_){n.__e(_,t.__v)}}))}function O(e,t,_){try{"function"==typeof e?e(t):e.current=t}catch(r){n.__e(r,_)}}function D(e,t,_){var r,o;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||O(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(l){n.__e(l,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&D(r[o],t,"function"!=typeof e.type);_||null==e.__e||a(e.__e),e.__e=e.__d=void 0}function R(e,n,t){return this.constructor(e,t)}e=s.slice,n={__e:function(e,n){for(var t,_,r;n=n.__;)if((t=n.__c)&&!t.__)try{if((_=t.constructor)&&null!=_.getDerivedStateFromError&&(t.setState(_.getDerivedStateFromError(e)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),r=t.__d),r)return t.__E=t}catch(o){e=o}throw e}},t=0,d.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},t),this.props)),e&&f(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),v(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v(this))},d.prototype.render=p,_=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,y.__r=0;var T,A,H,j=0,L=[],U=n.__b,C=n.__r,F=n.diffed,M=n.__c,V=n.unmount;function I(e,t){n.__h&&n.__h(A,e,j||t),j=0;var _=A.__H||(A.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function q(){L.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Q),e.__H.__h.forEach(z),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}})),L=[]}n.__b=function(e){A=null,U&&U(e)},n.__r=function(e){C&&C(e),T=0;var n=(A=e.__c).__H;n&&(n.__h.forEach(Q),n.__h.forEach(z),n.__h=[])},n.diffed=function(e){F&&F(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==L.push(t)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),$&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);$&&(n=requestAnimationFrame(t))})(q)),A=void 0},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Q),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(_){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(_,e.__v)}})),M&&M(e,t)},n.unmount=function(e){V&&V(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Q)}catch(_){n.__e(_,t.__v)}};var W,B,$="function"==typeof requestAnimationFrame;function Q(e){var n=A;"function"==typeof e.__c&&e.__c(),A=n}function z(e){var n=A;e.__c=e.__(),A=n}function G(e,n){return"function"==typeof n?n(e):n}(B=W||(W={})).UPVOTE="UPVOTE",B.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",B.HANDLE_ERROR="HANDLE_ERROR";const J={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},K=(e,n)=>{switch(console.log(n),n.type){case W.UPVOTE:return __spreadProps(__spreadValues({},e),{data:__spreadProps(__spreadValues({},e.data),{[n.id]:__spreadProps(__spreadValues({},e.data[n.id]),{votes:e.data[n.id].votes_count+1})})});case W.FEATURE_REQUESTS_LOADED:return __spreadProps(__spreadValues({},e),{data:n.response.data,meta:n.response.meta,links:n.response.links});case W.HANDLE_ERROR:return __spreadProps(__spreadValues({},e),{error:n.error});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};function X(e){const{featureRequest:n}=e;return u("div",{className:"fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4"},u("div",{className:"fn-flex fn-flex-col fn-w-10 fn-items-center"},u("button",{type:"button",className:"fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm"},u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"fn-h-12 fn-w-12 fn--m-2","aria-hidden":"true"},u("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))),u("div",{className:"fn-text-gray-500"})),u("div",{className:"fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate"},u("div",{className:"fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate"},n.title),u("div",{className:"fn-text-sm fn-text-gray-700 fn-truncate"},n.description),u("div",{className:"fn-flex fn-justify-between fn-mt-2"},u("div",{className:"fn-flex fn-gap-2"},u("span",{className:"fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 "},"boombox")),u("div",{className:"fn-flex fn-text-gray-500 fn-text-sm"},n.votes_count,u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"fn-w-5 fn-h-5"},u("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))))))}function Y(e){const{options:{workspace:t,projects:_}}=e,[r,o]=(l=K,s=J,(f=I(T++,2)).t=l,f.__c||(f.__=[i?i(s):G(void 0,s),function(e){var n=f.t(f.__[0],e);f.__[0]!==n&&(f.__=[n,f.__[1]],f.__c.setState({}))}],f.__c=A),f.__);var l,s,i,f;const{error:a,data:c,meta:p,links:d}=r;return function(e,t){var _,r,o=I(T++,3);!n.__s&&(_=o.__H,r=t,!_||_.length!==r.length||r.some((function(e,n){return e!==_[n]})))&&(o.__=e,o.__H=t,A.__H.__h.push(o))}((()=>{(()=>{__async(this,null,(function*(){const e=yield fetch(`https://api.feature.ninja/workspaces/${t}/feature-requests${_?`?projects=${_.join(",")}`:""}`),n=yield e.json();if(e.ok)o({type:W.FEATURE_REQUESTS_LOADED,response:n});else{const n=yield e.text();console.error("Error loading feature requests, response was:",n),o({type:W.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}}))})()}),[t,_]),u("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},a&&u("div",{className:"fn-bg-red-400"},a.message),u("div",{className:"fn-py-4 fn-px-4"},u("span",{className:"fn-sr-only"},"Search..."),u("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),u("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(c).map((e=>u(X,{key:e.id,featureRequest:e})))),u("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},u("div",{className:"fn-hidden fn-sm:block"},u("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",u("span",{className:"fn-font-medium"},p.from)," to"," ",u("span",{className:"fn-font-medium"},p.to)," of"," ",u("span",{className:"fn-font-medium"},p.total)," results")),u("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},u("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.prev},"Previous"),u("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.next},"Next"))))}const Z=document.currentScript;function ee(t){if(!t.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",(()=>{var _;const r=__spreadValues(__spreadValues({},{elementId:"feature-ninja-widget"}),t);let o=document.getElementById(r.elementId);var s,i,f,a,c,d;o||(o=document.createElement("div"),o.id=r.elementId,Z?null==(_=Z.parentElement)||_.insertBefore(o,Z):document.body.appendChild(o)),s=u(Y,{options:r}),i=o,n.__&&n.__(s,i),c=(a="function"==typeof f)?null:f&&f.__k||i.__k,d=[],P(i,s=(!a&&f||i).__k=u(p,null,[s]),c||l,l,void 0!==i.ownerSVGElement,!a&&f?[f]:c?null:i.firstChild?e.call(i.childNodes):null,d,!a&&f?f:c?c.__e:i.firstChild,a),S(d,s)}))}return window.featureNinja=ee,(function () { function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`@import url('https://rsms.me/inter/inter.css'); | ||
@@ -553,2 +553,6 @@ /*! tailwindcss v2.2.16 | MIT License | https://tailwindcss.com */ | ||
.fn--m-2{ | ||
margin: -0.5rem; | ||
} | ||
.fn-mx-auto{ | ||
@@ -559,2 +563,6 @@ margin-left: auto; | ||
.fn-mt-2{ | ||
margin-top: 0.5rem; | ||
} | ||
.fn-mt-4{ | ||
@@ -584,2 +592,22 @@ margin-top: 1rem; | ||
.fn-h-5{ | ||
height: 1.25rem; | ||
} | ||
.fn-h-12{ | ||
height: 3rem; | ||
} | ||
.fn-w-5{ | ||
width: 1.25rem; | ||
} | ||
.fn-w-10{ | ||
width: 2.5rem; | ||
} | ||
.fn-w-12{ | ||
width: 3rem; | ||
} | ||
.fn-w-full{ | ||
@@ -593,2 +621,6 @@ width: 100%; | ||
.fn-flex-grow{ | ||
flex-grow: 1; | ||
} | ||
@-webkit-keyframes fn-spin{ | ||
@@ -660,2 +692,6 @@ to{ | ||
.fn-flex-col{ | ||
flex-direction: column; | ||
} | ||
.fn-items-center{ | ||
@@ -669,2 +705,10 @@ align-items: center; | ||
.fn-gap-2{ | ||
gap: 0.5rem; | ||
} | ||
.fn-gap-4{ | ||
gap: 1rem; | ||
} | ||
.fn-divide-y > :not([hidden]) ~ :not([hidden]){ | ||
@@ -681,2 +725,12 @@ --tw-divide-y-reverse: 0; | ||
.fn-truncate{ | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
.fn-rounded{ | ||
border-radius: 0.25rem; | ||
} | ||
.fn-rounded-md{ | ||
@@ -686,2 +740,6 @@ border-radius: 0.375rem; | ||
.fn-rounded-full{ | ||
border-radius: 9999px; | ||
} | ||
.fn-border{ | ||
@@ -715,2 +773,7 @@ border-width: 1px; | ||
.fn-bg-yellow-100{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(254, 243, 199, var(--tw-bg-opacity)); | ||
} | ||
.fn-p-4{ | ||
@@ -720,2 +783,7 @@ padding: 1rem; | ||
.fn-px-2{ | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
} | ||
.fn-px-4{ | ||
@@ -726,2 +794,7 @@ padding-left: 1rem; | ||
.fn-py-0{ | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
} | ||
.fn-py-2{ | ||
@@ -742,2 +815,17 @@ padding-top: 0.5rem; | ||
.fn-py-6{ | ||
padding-top: 1.5rem; | ||
padding-bottom: 1.5rem; | ||
} | ||
.fn-py-0\.5{ | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
} | ||
.fn-text-xs{ | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
} | ||
.fn-text-sm{ | ||
@@ -752,2 +840,16 @@ font-size: 0.875rem; | ||
.fn-font-semibold{ | ||
font-weight: 600; | ||
} | ||
.fn-text-gray-400{ | ||
--tw-text-opacity: 1; | ||
color: rgba(156, 163, 175, var(--tw-text-opacity)); | ||
} | ||
.fn-text-gray-500{ | ||
--tw-text-opacity: 1; | ||
color: rgba(107, 114, 128, var(--tw-text-opacity)); | ||
} | ||
.fn-text-gray-700{ | ||
@@ -758,2 +860,7 @@ --tw-text-opacity: 1; | ||
.fn-text-yellow-800{ | ||
--tw-text-opacity: 1; | ||
color: rgba(146, 64, 14, var(--tw-text-opacity)); | ||
} | ||
*, ::before, ::after{ | ||
@@ -760,0 +867,0 @@ --tw-shadow: 0 0 #0000; |
{ | ||
"name": "@feature.ninja/widget", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Feature Ninja Widget", | ||
@@ -5,0 +5,0 @@ "main": "./dist/widget.umd.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33969
785
1