hypothesis 1.970.0 → 1.974.0
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.
- package/build/boot.js +1 -1
- package/build/manifest.json +10 -10
- package/build/scripts/annotator.bundle.js +64 -64
- package/build/scripts/annotator.bundle.js.map +1 -1
- package/build/scripts/sidebar.bundle.js +157 -158
- package/build/scripts/sidebar.bundle.js.map +1 -1
- package/build/scripts/ui-playground.bundle.js +4 -4
- package/build/scripts/ui-playground.bundle.js.map +1 -1
- package/build/styles/annotator.css +76 -3
- package/build/styles/annotator.css.map +1 -1
- package/build/styles/sidebar.css +72 -3
- package/build/styles/sidebar.css.map +1 -1
- package/package.json +3 -3
|
@@ -8,10 +8,10 @@ null!=m)for(;g<m.length;g++)if((d=m[g])&&"setAttribute"in d==!!v&&(v?d.localName
|
|
|
8
8
|
null!=m)for(g=m.length;g--;)null!=m[g]&&c(m[g]);a||("value"in f&&void 0!==(g=f.value)&&(g!==b.value||g!==i.value||"progress"===v&&!g)&&y(i,"value",g,b.value,!1),"checked"in f&&void 0!==(g=f.checked)&&g!==i.checked&&y(i,"checked",g,b.checked,!1))}return i}function z(e,l,n){try{"function"==typeof e?e(l):e.current=l}catch(e){i.__e(e,n)}}function T(e,l,n){var r,o;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||z(r,null,l)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,l)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&T(r[o],l,"function"!=typeof e.type);n||null==e.__e||c(e.__e),e.__e=e.__d=void 0}function B(e,i,l){return this.constructor(e,l)}function Z(l,n,r){var o,m,u;i.__&&i.__(l,n),m=(o="function"==typeof r)?null:r&&r.__k||n.__k,u=[],k(n,l=(!o&&r||n).__k=function(i,l,n){var r,o,t,m={};for(t in l)"key"==t?r=l[t]:"ref"==t?o=l[t]:m[t]=l[t];if(arguments.length>2&&(m.children=arguments.length>3?e.call(arguments,2):n),
|
|
9
9
|
"function"==typeof i&&null!=i.defaultProps)for(t in i.defaultProps)void 0===m[t]&&(m[t]=i.defaultProps[t]);return d(i,m,r,o,null)}(s,null,[l]),m||t,t,void 0!==n.ownerSVGElement,!o&&r?[r]:m?null:n.firstChild?e.call(n.childNodes):null,u,!o&&r?r:m?m.__e:n.firstChild,o),M(u,l)}e=m.slice,i={__e:function(e,i){for(var l,n,r;i=i.__;)if((l=i.__c)&&!l.__)try{if((n=l.constructor)&&null!=n.getDerivedStateFromError&&(l.setState(n.getDerivedStateFromError(e)),r=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e),r=l.__d),r)return l.__E=l}catch(i){e=i}throw e}},l=0,N.prototype.setState=function(e,i){var l;l=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a({},this.state),"function"==typeof e&&(e=e(a({},l),this.props)),e&&a(l,e),null!=e&&this.__v&&(i&&this.__h.push(i),f(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),f(this))},N.prototype.render=s,n=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v.__r=0;var H,A={exports:{}};H=A,
|
|
10
10
|
function(){var e={}.hasOwnProperty;function i(){for(var l=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=typeof r;if("string"===o||"number"===o)l.push(r);else if(Array.isArray(r)){if(r.length){var t=i.apply(null,r);t&&l.push(t)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var m in r)e.call(r,m)&&r[m]&&l.push(m);else l.push(r.toString())}}return l.join(" ")}H.exports?(i.default=i,H.exports=i):window.classNames=i}();var P,D,I,j=A.exports,E=0,q=[],F=i.__b,U=i.__r,V=i.diffed,$=i.__c,R=i.unmount;function O(e,l){i.__h&&i.__h(D,e,E||l),E=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function W(e){return E=1,function(e,i,l){var n=O(P++,2);return n.t=e,n.__c||(n.__=[l?l(i):ne(void 0,i),function(e){var i=n.t(n.__[0],e);n.__[0]!==i&&(n.__=[i,n.__[1]],n.__c.setState({}))}],n.__c=D),n.__}(ne,e)}function G(e,l){var n=O(P++,3);!i.__s&&le(n.__H,l)&&(n.__=e,n.__H=l,D.__H.__h.push(n))}function J(e,l){var n=O(P++,4);!i.__s&&le(n.__H,l)&&(n.__=e,n.__H=l,
|
|
11
|
-
D.__h.push(n))}function K(e){return E=5,Y((function(){return{current:e}}),[])}function Y(e,i){var l=O(P++,7);return le(l.__H,i)&&(l.__=e(),l.__H=i,l.__h=e),l.__}function Q(){
|
|
12
|
-
;
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
D.__h.push(n))}function K(e){return E=5,Y((function(){return{current:e}}),[])}function Y(e,i){var l=O(P++,7);return le(l.__H,i)&&(l.__=e(),l.__H=i,l.__h=e),l.__}function Q(){for(var e;e=q.shift();)if(e.__P)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(ie),e.__H.__h=[]}catch(l){e.__H.__h=[],i.__e(l,e.__v)}}i.__b=function(e){D=null,F&&F(e)},i.__r=function(e){U&&U(e),P=0;var i=(D=e.__c).__H;i&&(i.__h.forEach(ee),i.__h.forEach(ie),i.__h=[])},i.diffed=function(e){V&&V(e);var l=e.__c;l&&l.__H&&l.__H.__h.length&&(1!==q.push(l)&&I===i.requestAnimationFrame||((I=i.requestAnimationFrame)||function(e){var i,l=function(){clearTimeout(n),X&&cancelAnimationFrame(i),setTimeout(e)},n=setTimeout(l,100);X&&(i=requestAnimationFrame(l))})(Q)),D=null},i.__c=function(e,l){l.some((function(e){try{e.__h.forEach(ee),e.__h=e.__h.filter((function(e){return!e.__||ie(e)}))}catch(n){l.some((function(e){e.__h&&(e.__h=[])})),l=[],i.__e(n,e.__v)}})),$&&$(e,l)},i.unmount=function(e){R&&R(e);var l,n=e.__c
|
|
12
|
+
;n&&n.__H&&(n.__H.__.forEach((function(e){try{ee(e)}catch(e){l=e}})),l&&i.__e(l,n.__v))};var X="function"==typeof requestAnimationFrame;function ee(e){var i=D,l=e.__c;"function"==typeof l&&(e.__c=void 0,l()),D=i}function ie(e){var i=D;e.__c=e.__(),D=i}function le(e,i){return!e||e.length!==i.length||i.some((function(i,l){return i!==e[l]}))}function ne(e,i){return"function"==typeof i?i(e):i}var re=0;function oe(e,l,n,r,o){var t,m,u={};for(m in l)"ref"==m?t=l[m]:u[m]=l[m];var a={type:e,props:u,key:n,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--re,__source:r,__self:o};if("function"==typeof e&&(t=e.defaultProps))for(m in t)void 0===u[m]&&(u[m]=t[m]);return i.vnode&&i.vnode(a),a}const te=new Map;function me({name:e,className:i="",inline:l=!1,title:n=""}){const r=te.get(e);if(!r)throw new Error(`Icon "${e.toString()}" is not registered`);const o=K();J((()=>{const e=o.current.querySelector("svg");e&&e.setAttribute("class",i)}),[i,r]);const t={};return n&&(t.title=n),
|
|
13
|
+
oe("span",{className:j("Hyp-SvgIcon",{"Hyp-SvgIcon--inline":l}),dangerouslySetInnerHTML:{__html:r},ref:o,...t},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/SvgIcon.js",lineNumber:69,columnNumber:5})}function ue(e,i){const l="string"==typeof e?Symbol(e):e;return te.set(l,i),l}var ae="/home/runner/work/frontend-shared/frontend-shared/src/components/buttons.js";function ce({buttonRef:e,classes:i,className:l,icon:n,iconPosition:r="left",size:o="medium",variant:t="normal",expanded:m,pressed:u,type:a="button",...c}){var d;const s=null!==(d=null==c?void 0:c.role)&&void 0!==d?d:"button",N={"aria-label":c.title};return"tab"===s?N["aria-selected"]=u:(N["aria-pressed"]=u,N["aria-expanded"]=m),oe("button",{ref:e,className:j(l,`${l}--${o}`,`${l}--${t}`,{[`${l}--icon-${r}`]:n},i),type:a,...N,...c},void 0,!1,{fileName:ae,lineNumber:82,columnNumber:5})}function de({className:e="Hyp-IconButton",...i}){const{icon:l}=i;return oe(ce,{className:e,...i,children:oe(me,{name:l},void 0,!1,{
|
|
14
|
+
fileName:ae,lineNumber:109,columnNumber:7})},void 0,!1,{fileName:ae,lineNumber:108,columnNumber:5})}function se({children:e,className:i="Hyp-LabeledButton",...l}){const{icon:n,iconPosition:r="left"}=l;return oe(ce,{className:i,...l,children:[n&&"left"===r&&oe(me,{name:n},void 0,!1,{fileName:ae,lineNumber:127,columnNumber:43}),e,n&&"right"===r&&oe(me,{name:n},void 0,!1,{fileName:ae,lineNumber:129,columnNumber:44})]},void 0,!0,{fileName:ae,lineNumber:126,columnNumber:5})}function Ne(e){return oe(ce,{className:"Hyp-LinkButton",...e},void 0,!1,{fileName:ae,lineNumber:140,columnNumber:10})}
|
|
15
15
|
var he=' <svg\n width="32"\n height="32"\n viewBox="-4 -4 39 39"\n aria-hidden="true"\n focusable="false"\n >\n <rect\n class="hyp-svg-checkbox--background"\n width="35"\n height="35"\n x="-2"\n y="-2"\n stroke="currentColor"\n fill="none"\n stroke-width="3"\n rx="5"\n ry="5"\n />\n <polyline\n class="hyp-svg-checkbox--checkmark"\n points="4,14 12,23 28,5"\n stroke="transparent"\n stroke-width="5"\n fill="none"\n />\n</svg>',be="/home/runner/work/frontend-shared/frontend-shared/src/components/Checkbox.js";const fe=ue("checkbox",he);function ve({classes:e="",inputRef:i,onToggle:l,onClick:n,...r}){return oe(s,{children:[oe("input",{className:j("Hyp-Checkbox",e),ref:i,type:"checkbox",onClick:function(e){null==l||l(e.currentTarget.checked),null==n||n.call(this,e)},...r},void 0,!1,{fileName:be,lineNumber:65,columnNumber:7}),oe(me,{className:"hyp-svg-checkbox",name:fe},void 0,!1,{fileName:be,lineNumber:72,
|
|
16
16
|
columnNumber:7})]},void 0,!0)}function pe({children:e,id:i,containerClasses:l="",...n}){var r;return null!==(r=i)&&void 0!==r||(i=n.name),oe("label",{htmlFor:i,className:j("Hyp-LabeledCheckbox",l),children:[oe(ve,{id:i,...n},void 0,!1,{fileName:be,lineNumber:94,columnNumber:7}),oe("span",{"data-testid":"label-text",children:e},void 0,!1,{fileName:be,lineNumber:95,columnNumber:7})]},void 0,!0,{fileName:be,lineNumber:90,columnNumber:5})}var ge="/home/runner/work/frontend-shared/frontend-shared/src/components/containers.js";function Le({children:e,classes:i="",containerRef:l}){return oe("div",{className:j("Hyp-Frame",i),ref:l,children:e},void 0,!1,{fileName:ge,lineNumber:26,columnNumber:5})}function we({children:e,classes:i="",containerRef:l}){return oe("div",{className:j("Hyp-Card",i),ref:l,children:e},void 0,!1,{fileName:ge,lineNumber:42,columnNumber:5})}function Ce({children:e,direction:i="row",classes:l="",containerRef:n}){return oe("div",{className:j(`Hyp-Actions--${i}`,l),ref:n,children:e},void 0,!1,{
|
|
17
17
|
fileName:ge,lineNumber:72,columnNumber:5})}function ye({children:e,classes:i="",containerRef:l,withHeader:n=!1}){return oe("div",{className:j(n?"Hyp-Scrollbox--with-header":"Hyp-Scrollbox",i),ref:l,children:e},void 0,!1,{fileName:ge,lineNumber:101,columnNumber:5})}var _e='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8l3.536-3.536L8 8 4.464 4.464 8 8zm0 0l-3.536 3.536L8 8l3.536 3.536L8 8z"></path></g></svg>\n',xe="/home/runner/work/frontend-shared/frontend-shared/src/components/Dialog.js";const ke=ue("cancel",_e);let Me=0;function Se(e){const[i]=W((()=>(++Me,`${e}-${Me}`)));return i}
|