@machinerd/js-module 0.4.0 → 0.5.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/README.md +36 -4
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +2 -3
- package/dist/hooks/index.d.mts +2 -3
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks-DBo6LQrH.mjs +1 -0
- package/dist/hooks-DqgWx1Fa.cjs +1 -0
- package/dist/{index-CWgr7lXX.d.cts → index-ByfkW7VU.d.mts} +186 -192
- package/dist/{index-CfKO4Lbp.d.mts → index-ComhjQ-q.d.cts} +186 -192
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/providers/index.cjs +1 -0
- package/dist/providers/index.d.cts +14 -0
- package/dist/providers/index.d.mts +14 -0
- package/dist/providers/index.mjs +1 -0
- package/dist/providers-5JCPezAS.mjs +1 -0
- package/dist/providers-BNK8Fisc.cjs +1 -0
- package/dist/{skeleton-BNKvM7GW.mjs → skeleton-S6S1ZnCy.mjs} +1 -1
- package/dist/{skeleton-D80eauT0.cjs → skeleton-g6yXh6D9.cjs} +1 -1
- package/dist/src-C_FmOyer.mjs +1 -0
- package/dist/src-CjpmdVyv.cjs +1 -0
- package/dist/styles/index.css +75 -0
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.d.cts +16 -16
- package/dist/ui/index.d.mts +16 -16
- package/dist/ui/index.mjs +1 -1
- package/dist/ui-client/index.cjs +1 -1
- package/dist/ui-client/index.d.cts +37 -23
- package/dist/ui-client/index.d.mts +38 -24
- package/dist/ui-client/index.mjs +1 -1
- package/dist/util/index.cjs +1 -1
- package/dist/util/index.d.cts +3 -2
- package/dist/util/index.d.mts +3 -2
- package/dist/util/index.mjs +1 -1
- package/dist/util-o7fjt7iK.cjs +1 -0
- package/dist/util-zXJA6Gnc.mjs +1 -0
- package/package.json +15 -13
- package/dist/hooks-B6OJ8mCP.cjs +0 -1
- package/dist/hooks-Dr3L4nS9.mjs +0 -1
- package/dist/util-BMnQ9hLK.cjs +0 -1
- package/dist/util-BNSPNLzy.mjs +0 -1
- /package/dist/{index-DiZ4xS_f.d.mts → index-CH1uVFqx.d.cts} +0 -0
- /package/dist/{index-OjfbEYpE.d.cts → index-D6Jzsxc-.d.mts} +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
React용 공용 UI·훅·유틸·API 클라이언트 패키지입니다.
|
|
4
4
|
|
|
5
|
-
**현재 버전:** `0.
|
|
5
|
+
**현재 버전:** `0.5` (`package.json`의 `version` 필드와 동일합니다. 배포 전에는 해당 값을 확인하세요.)
|
|
6
6
|
|
|
7
7
|
**Peer dependency:** `react`, `react-dom` — `^18.3.1` 또는 `^19.0.0`
|
|
8
8
|
|
|
@@ -41,7 +41,37 @@ await client.login(/* ... */);
|
|
|
41
41
|
client.cdnMedia('path/to/key');
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
로그인·CDN URL 빌드 등에는 위처럼 직접 인스턴스를 만들어 쓸 수 있습니다.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Providers
|
|
49
|
+
|
|
50
|
+
Export 경로: `@machinerd/js-module/providers`
|
|
51
|
+
|
|
52
|
+
**`Image`·`useSubsetImage` 등 CDN 경로를 다루는 UI·훅**은 내부에서 `useApiClient()`로 **`ApiClient` 인스턴스**에 접근합니다. 사용하는 쪽에서 매번 `ApiClient`를 만들어 props로 넘기지 않도록, **앱(또는 라우트 트리) 최상단**을 `ApiClientProvider`로 감싸고 `config`만 넘기면 됩니다.
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
import { ApiClientProvider } from '@machinerd/js-module/providers';
|
|
56
|
+
|
|
57
|
+
export function App({ children }: { children: React.ReactNode }) {
|
|
58
|
+
return (
|
|
59
|
+
<ApiClientProvider
|
|
60
|
+
config={{
|
|
61
|
+
apiEndpoint: 'https://api.example.com',
|
|
62
|
+
cdnEndpoint: 'https://cdn.example.com',
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
{children}
|
|
66
|
+
</ApiClientProvider>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- Next.js App Router라면 `app/layout.tsx` 등 **루트 레이아웃**에 두는 것을 권장합니다.
|
|
72
|
+
- Provider 밖에서 `Image` / `useSubsetImage`를 쓰면 런타임에 `ApiClient not found` 오류가 납니다.
|
|
73
|
+
|
|
74
|
+
`useApiClient`는 같은 패키지의 `./providers`에서 export 됩니다.
|
|
45
75
|
|
|
46
76
|
---
|
|
47
77
|
|
|
@@ -73,7 +103,7 @@ import { Carousel, CarouselItem, Image, Tooltip /* … */ } from '@machinerd/js-
|
|
|
73
103
|
import '@machinerd/js-module/styles/index.css';
|
|
74
104
|
```
|
|
75
105
|
|
|
76
|
-
|
|
106
|
+
**`Image`를 쓰려면** 위 [Providers](#providers)의 **`ApiClientProvider`를 최상위에 두는 것**이 필요합니다. CDN·API 엔드포인트는 `config`로 한 번만 넘기면 되며, `Image`에 `ApiClient`를 props로 넘길 필요는 없습니다. props·Storybook 문서는 타입 정의와 Storybook을 참고하세요.
|
|
77
107
|
|
|
78
108
|
> **참고:** export 경로는 `ui/client`가 아니라 **`ui-client`** 입니다 (`package.json`의 `exports`와 일치).
|
|
79
109
|
|
|
@@ -87,6 +117,8 @@ import { useOutsideClick, useWindowSize } from '@machinerd/js-module/hooks';
|
|
|
87
117
|
|
|
88
118
|
`useOutsideClick`은 타입 `UseOutsideClickProps`도 함께 export 합니다.
|
|
89
119
|
|
|
120
|
+
`useSubsetImage`는 **`ApiClientProvider` 안**에서만 사용할 수 있습니다 ([Providers](#providers)).
|
|
121
|
+
|
|
90
122
|
---
|
|
91
123
|
|
|
92
124
|
## 유틸 (`@machinerd/js-module/util`)
|
|
@@ -119,7 +151,7 @@ pnpm build
|
|
|
119
151
|
pnpm pack
|
|
120
152
|
```
|
|
121
153
|
|
|
122
|
-
현재 버전 기준으로 예: `machinerd-js-module-0.
|
|
154
|
+
현재 버전 기준으로 예: `machinerd-js-module-0.5.0.tgz` 형태의 파일이 상위 디렉터리(또는 현재 디렉터리)에 생성됩니다. 정확한 파일명은 명령 출력을 따르세요.
|
|
123
155
|
|
|
124
156
|
소비하는 프로젝트에서:
|
|
125
157
|
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../util-
|
|
1
|
+
require(`../src-CjpmdVyv.cjs`),require(`../util-o7fjt7iK.cjs`);const e=require(`../hooks-DqgWx1Fa.cjs`);require(`../providers-BNK8Fisc.cjs`),exports.SUBSETS=e.n,exports.useDelayUnmount=e.c,exports.useDragScroll=e.s,exports.useOutsideClick=e.o,exports.useScrollLock=e.a,exports.useScrollTop=e.i,exports.useSubsetImage=e.r,exports.useWindowSize=e.t;
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { a as UseSubsetImageProps, c as
|
|
2
|
-
|
|
3
|
-
export { BaseProps, Folder, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, UseSubsetImagePropsWithoutApiClient, useDelayUnmount, useDragScroll, useOutsideClick, useScrollLock, useScrollTop, useSubsetImage, useWindowSize };
|
|
1
|
+
import { a as UseSubsetImageProps, c as useScrollTop, d as UseOutsideClickProps, f as useOutsideClick, i as SUBSETS, l as UseScrollLockProps, m as useDelayUnmount, n as BaseProps, o as useSubsetImage, p as useDragScroll, r as Folder, s as UseScrollTopProps, t as useWindowSize, u as useScrollLock } from "../index-ComhjQ-q.cjs";
|
|
2
|
+
export { BaseProps, Folder, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDragScroll, useOutsideClick, useScrollLock, useScrollTop, useSubsetImage, useWindowSize };
|
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { a as UseSubsetImageProps, c as
|
|
2
|
-
|
|
3
|
-
export { BaseProps, Folder, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, UseSubsetImagePropsWithoutApiClient, useDelayUnmount, useDragScroll, useOutsideClick, useScrollLock, useScrollTop, useSubsetImage, useWindowSize };
|
|
1
|
+
import { a as UseSubsetImageProps, c as useScrollTop, d as UseOutsideClickProps, f as useOutsideClick, i as SUBSETS, l as UseScrollLockProps, m as useDelayUnmount, n as BaseProps, o as useSubsetImage, p as useDragScroll, r as Folder, s as UseScrollTopProps, t as useWindowSize, u as useScrollLock } from "../index-ByfkW7VU.mjs";
|
|
2
|
+
export { BaseProps, Folder, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDragScroll, useOutsideClick, useScrollLock, useScrollTop, useSubsetImage, useWindowSize };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../util-
|
|
1
|
+
import"../src-C_FmOyer.mjs";import"../util-zXJA6Gnc.mjs";import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../hooks-DBo6LQrH.mjs";import"../providers-5JCPezAS.mjs";export{r as SUBSETS,t as useDelayUnmount,o as useDragScroll,i as useOutsideClick,e as useScrollLock,n as useScrollTop,a as useSubsetImage,s as useWindowSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,h as t,m as n}from"./util-zXJA6Gnc.mjs";import{n as r}from"./providers-5JCPezAS.mjs";import{throttle as i}from"lodash-es";import{useCallback as a,useEffect as o,useMemo as s,useRef as c,useState as l}from"react";function u(e,t){let[n,r]=l(!1);return o(()=>{let i;return e&&!n?r(!0):!e&&n&&(i=setTimeout(()=>r(!1),t)),()=>clearTimeout(i)},[e,t,n]),n}function d(e=1){let t=c(null),[n,r]=l(!1),[i,a]=l(0),[o,s]=l(0),u=c(!1);return{ref:t,onMouseDown:e=>{t.current&&(r(!0),u.current=!1,a(e.pageX-t.current.offsetLeft),s(t.current.scrollLeft))},onMouseLeave:()=>r(!1),onMouseUp:()=>r(!1),onMouseMove:r=>{if(!n||!t.current)return;r.preventDefault();let a=(r.pageX-t.current.offsetLeft-i)*e;Math.abs(a)>10&&(u.current=!0),t.current.scrollLeft=o-a},onClickCapture:e=>{u.current&&(e.stopPropagation(),e.preventDefault())}}}function f({ref:e,setOpen:t}){let n=a(n=>{e.current?.contains(n.target)||t(!1)},[e,t]);o(()=>(document.addEventListener(`mousedown`,n),document.addEventListener(`touchstart`,n),()=>{document.removeEventListener(`mousedown`,n),document.removeEventListener(`touchstart`,n)}),[n])}const p=[`mouse`,`touch`];function m({open:e,type:t=p}){let n=a(e=>{e.preventDefault()},[]),r=a(e=>{e.preventDefault()},[]);o(()=>{let i=e&&t.includes(`mouse`),a=e&&t.includes(`touch`);return i?(document.body.classList.add(`overflow-hidden`),document.addEventListener(`wheel`,r,{passive:!1})):(document.body.classList.remove(`overflow-hidden`),document.removeEventListener(`wheel`,r)),a?document.addEventListener(`touchmove`,n,{passive:!1}):document.removeEventListener(`touchmove`,n),()=>{document.body.classList.remove(`overflow-hidden`),document.removeEventListener(`touchmove`,n),document.removeEventListener(`wheel`,r)}},[e,t,n,r])}function h({enabled:e=!0,behavior:t=`smooth`}={}){let[n,r]=l(!1),i=c(null),s=a(()=>{window.scrollTo({top:0,behavior:t})},[t]);return o(()=>{let t=i.current;if(!t||!e){r(!1);return}let n=new IntersectionObserver(e=>{let t=e[0];t&&r(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return n.observe(t),()=>n.disconnect()},[e]),{isVisible:n,handleScrolToTop:s,ref:i}}const g=[12,120,240,300,406,512,612,768,960,1024,1280,1440,1560,1920,2560,3840];function _({ref:i,src:u,forceLoad:d=!1,folder:f=`media`,fallbackSrc:p,origin:m,originalWidth:h,loading:_=`lazy`,...v}){let y=r(),[b,x]=l(0),[S,C]=l(d||!u),[w,T]=l(!u),E=c(null),D=c(null),O=a(e=>{E.current=e,typeof i==`function`?i(e):i&&(i.current=e)},[i]),k=a((e,t)=>{let n=e.startsWith(`/`)?e.slice(1):e;return t===`static`?y.cdnStatic(n):y.cdnMedia(n)},[y]),A=s(()=>g.filter(e=>e<=h),[h]),j=s(()=>n(u)?u:k(u,f),[k,u,f]),M=s(()=>{if(m||!t(u)||A.length===0)return;let{filenameWithoutExtension:n,directory:r}=e(u,f);if(v.width){let e=A.find(e=>e>=v.width)??A[A.length-1],t=e*2,i=A.find(e=>e>=t)??A[A.length-1];return`${k(`${r}/subsets/w${e}/${n}.webp`,f)} 1x,${k(`${r}/subsets/w${i}/${n}.webp`,f)} 2x`}let i=``;for(let e of A)i+=`${k(`${r}/subsets/w${e}/${n}.webp`,f)} ${e}w, `;return i.trim()},[A,k,f,m,u,v.width]),N=a((t,n)=>{let{filenameWithoutExtension:r,directory:i}=e(t,n);return`${k(`${i}/subsets/origin/${r}.webp`,n)}`},[k]),P=s(()=>{if(u)return`${N(u,f)} 1x`},[u,f,N]),F=a(e=>{x(t=>t>=2?(e&&(D.current=e),3):t+1)},[]),I=(()=>{if(b===0)return M;if(b===1)return P}),L=b>=3?p:j,R=b===0?v.sizes:void 0,z=b>0?`eager`:_;o(()=>{b<3||T(!0)},[b]),o(()=>{let e=E.current;if(!e||w)return;if(e.complete&&e.naturalWidth===0&&e.getAttribute(`src`)){F();return}if(e.complete&&e.naturalWidth>0){C(!0);return}let t=()=>{e.naturalWidth>0&&C(!0)};return e.addEventListener(`load`,t),()=>e.removeEventListener(`load`,t)},[w,b,F]);let{fill:B,...V}=v;return{ref:O,isLoad:S,isError:w,imageProps:{...V,src:L,srcSet:I(),sizes:R,loading:z,onError:w?void 0:F}}}function v(e=1280){let[t,n]=l(e);return o(()=>{let e=i(()=>{let e=window.innerWidth;n(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:t}}export{m as a,u as c,h as i,g as n,f as o,_ as r,d as s,v as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./util-o7fjt7iK.cjs`),n=require(`./providers-BNK8Fisc.cjs`);let r=require(`lodash-es`),i=require(`react`);function a(e,t){let[n,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let i;return e&&!n?r(!0):!e&&n&&(i=setTimeout(()=>r(!1),t)),()=>clearTimeout(i)},[e,t,n]),n}function o(e=1){let t=(0,i.useRef)(null),[n,r]=(0,i.useState)(!1),[a,o]=(0,i.useState)(0),[s,c]=(0,i.useState)(0),l=(0,i.useRef)(!1);return{ref:t,onMouseDown:e=>{t.current&&(r(!0),l.current=!1,o(e.pageX-t.current.offsetLeft),c(t.current.scrollLeft))},onMouseLeave:()=>r(!1),onMouseUp:()=>r(!1),onMouseMove:r=>{if(!n||!t.current)return;r.preventDefault();let i=(r.pageX-t.current.offsetLeft-a)*e;Math.abs(i)>10&&(l.current=!0),t.current.scrollLeft=s-i},onClickCapture:e=>{l.current&&(e.stopPropagation(),e.preventDefault())}}}function s({ref:e,setOpen:t}){let n=(0,i.useCallback)(n=>{e.current?.contains(n.target)||t(!1)},[e,t]);(0,i.useEffect)(()=>(document.addEventListener(`mousedown`,n),document.addEventListener(`touchstart`,n),()=>{document.removeEventListener(`mousedown`,n),document.removeEventListener(`touchstart`,n)}),[n])}const c=[`mouse`,`touch`];function l({open:e,type:t=c}){let n=(0,i.useCallback)(e=>{e.preventDefault()},[]),r=(0,i.useCallback)(e=>{e.preventDefault()},[]);(0,i.useEffect)(()=>{let i=e&&t.includes(`mouse`),a=e&&t.includes(`touch`);return i?(document.body.classList.add(`overflow-hidden`),document.addEventListener(`wheel`,r,{passive:!1})):(document.body.classList.remove(`overflow-hidden`),document.removeEventListener(`wheel`,r)),a?document.addEventListener(`touchmove`,n,{passive:!1}):document.removeEventListener(`touchmove`,n),()=>{document.body.classList.remove(`overflow-hidden`),document.removeEventListener(`touchmove`,n),document.removeEventListener(`wheel`,r)}},[e,t,n,r])}function u({enabled:e=!0,behavior:t=`smooth`}={}){let[n,r]=(0,i.useState)(!1),a=(0,i.useRef)(null),o=(0,i.useCallback)(()=>{window.scrollTo({top:0,behavior:t})},[t]);return(0,i.useEffect)(()=>{let t=a.current;if(!t||!e){r(!1);return}let n=new IntersectionObserver(e=>{let t=e[0];t&&r(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return n.observe(t),()=>n.disconnect()},[e]),{isVisible:n,handleScrolToTop:o,ref:a}}const d=[12,120,240,300,406,512,612,768,960,1024,1280,1440,1560,1920,2560,3840];function f({ref:e,src:r,forceLoad:a=!1,folder:o=`media`,fallbackSrc:s,origin:c,originalWidth:l,loading:u=`lazy`,...f}){let p=n.n(),[m,h]=(0,i.useState)(0),[g,_]=(0,i.useState)(a||!r),[v,y]=(0,i.useState)(!r),b=(0,i.useRef)(null),x=(0,i.useRef)(null),S=(0,i.useCallback)(t=>{b.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),C=(0,i.useCallback)((e,t)=>{let n=e.startsWith(`/`)?e.slice(1):e;return t===`static`?p.cdnStatic(n):p.cdnMedia(n)},[p]),w=(0,i.useMemo)(()=>d.filter(e=>e<=l),[l]),T=(0,i.useMemo)(()=>t.m(r)?r:C(r,o),[C,r,o]),E=(0,i.useMemo)(()=>{if(c||!t.h(r)||w.length===0)return;let{filenameWithoutExtension:e,directory:n}=t.g(r,o);if(f.width){let t=w.find(e=>e>=f.width)??w[w.length-1],r=t*2,i=w.find(e=>e>=r)??w[w.length-1];return`${C(`${n}/subsets/w${t}/${e}.webp`,o)} 1x,${C(`${n}/subsets/w${i}/${e}.webp`,o)} 2x`}let i=``;for(let t of w)i+=`${C(`${n}/subsets/w${t}/${e}.webp`,o)} ${t}w, `;return i.trim()},[w,C,o,c,r,f.width]),D=(0,i.useCallback)((e,n)=>{let{filenameWithoutExtension:r,directory:i}=t.g(e,n);return`${C(`${i}/subsets/origin/${r}.webp`,n)}`},[C]),O=(0,i.useMemo)(()=>{if(r)return`${D(r,o)} 1x`},[r,o,D]),k=(0,i.useCallback)(e=>{h(t=>t>=2?(e&&(x.current=e),3):t+1)},[]),A=(()=>{if(m===0)return E;if(m===1)return O}),j=m>=3?s:T,M=m===0?f.sizes:void 0,N=m>0?`eager`:u;(0,i.useEffect)(()=>{m<3||y(!0)},[m]),(0,i.useEffect)(()=>{let e=b.current;if(!e||v)return;if(e.complete&&e.naturalWidth===0&&e.getAttribute(`src`)){k();return}if(e.complete&&e.naturalWidth>0){_(!0);return}let t=()=>{e.naturalWidth>0&&_(!0)};return e.addEventListener(`load`,t),()=>e.removeEventListener(`load`,t)},[v,m,k]);let{fill:P,...F}=f;return{ref:S,isLoad:g,isError:v,imageProps:{...F,src:j,srcSet:A(),sizes:M,loading:N,onError:v?void 0:k}}}function p(e=1280){let[t,n]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let e=(0,r.throttle)(()=>{let e=window.innerWidth;n(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:t}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as ApiClient } from "./index-OjfbEYpE.cjs";
|
|
2
1
|
import * as react0 from "react";
|
|
3
2
|
import React$1, { Dispatch, RefObject, SetStateAction } from "react";
|
|
4
3
|
|
|
@@ -61,9 +60,8 @@ interface BaseProps extends React$1.ImgHTMLAttributes<HTMLImageElement> {
|
|
|
61
60
|
originalWidth: number;
|
|
62
61
|
fallbackSrc?: string;
|
|
63
62
|
folder?: Folder;
|
|
64
|
-
apiClient: ApiClient;
|
|
65
63
|
}
|
|
66
|
-
type
|
|
64
|
+
type UseSubsetImageProps = BaseProps & ({
|
|
67
65
|
fill: true;
|
|
68
66
|
sizes: string;
|
|
69
67
|
width?: never;
|
|
@@ -74,9 +72,6 @@ type UseSubsetImagePropsWithoutApiClient = Omit<BaseProps, 'apiClient'> & ({
|
|
|
74
72
|
width: number;
|
|
75
73
|
height: number;
|
|
76
74
|
});
|
|
77
|
-
type UseSubsetImageProps = UseSubsetImagePropsWithoutApiClient & {
|
|
78
|
-
apiClient: ApiClient;
|
|
79
|
-
};
|
|
80
75
|
declare function useSubsetImage({
|
|
81
76
|
ref,
|
|
82
77
|
src,
|
|
@@ -86,7 +81,6 @@ declare function useSubsetImage({
|
|
|
86
81
|
origin,
|
|
87
82
|
originalWidth,
|
|
88
83
|
loading,
|
|
89
|
-
apiClient,
|
|
90
84
|
...rest
|
|
91
85
|
}: UseSubsetImageProps): {
|
|
92
86
|
ref: (node: HTMLImageElement | null) => void;
|
|
@@ -98,122 +92,122 @@ declare function useSubsetImage({
|
|
|
98
92
|
sizes: string | undefined;
|
|
99
93
|
loading: "eager" | "lazy";
|
|
100
94
|
onError: ((event?: React$1.SyntheticEvent<HTMLImageElement, Event>) => void) | undefined;
|
|
101
|
-
alt?: string | undefined
|
|
95
|
+
alt?: string | undefined;
|
|
102
96
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
103
|
-
decoding?: "async" | "auto" | "sync" | undefined
|
|
104
|
-
fetchPriority?: "high" | "low" | "auto"
|
|
105
|
-
height?:
|
|
97
|
+
decoding?: "async" | "auto" | "sync" | undefined;
|
|
98
|
+
fetchPriority?: "high" | "low" | "auto";
|
|
99
|
+
height?: undefined;
|
|
106
100
|
referrerPolicy?: React$1.HTMLAttributeReferrerPolicy | undefined;
|
|
107
|
-
useMap?: string | undefined
|
|
108
|
-
width?:
|
|
109
|
-
defaultChecked?: boolean | undefined
|
|
101
|
+
useMap?: string | undefined;
|
|
102
|
+
width?: undefined;
|
|
103
|
+
defaultChecked?: boolean | undefined;
|
|
110
104
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
111
|
-
suppressContentEditableWarning?: boolean | undefined
|
|
112
|
-
suppressHydrationWarning?: boolean | undefined
|
|
113
|
-
accessKey?: string | undefined
|
|
114
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {})
|
|
115
|
-
autoFocus?: boolean | undefined
|
|
116
|
-
className?: string | undefined
|
|
105
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
106
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
107
|
+
accessKey?: string | undefined;
|
|
108
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
109
|
+
autoFocus?: boolean | undefined;
|
|
110
|
+
className?: string | undefined;
|
|
117
111
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
118
|
-
contextMenu?: string | undefined
|
|
119
|
-
dir?: string | undefined
|
|
112
|
+
contextMenu?: string | undefined;
|
|
113
|
+
dir?: string | undefined;
|
|
120
114
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
121
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined
|
|
122
|
-
hidden?: boolean | undefined
|
|
123
|
-
id?: string | undefined
|
|
124
|
-
lang?: string | undefined
|
|
125
|
-
nonce?: string | undefined
|
|
126
|
-
slot?: string | undefined
|
|
115
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
116
|
+
hidden?: boolean | undefined;
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
lang?: string | undefined;
|
|
119
|
+
nonce?: string | undefined;
|
|
120
|
+
slot?: string | undefined;
|
|
127
121
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
128
122
|
style?: React$1.CSSProperties | undefined;
|
|
129
|
-
tabIndex?: number | undefined
|
|
130
|
-
title?: string | undefined
|
|
131
|
-
translate?: "yes" | "no" | undefined
|
|
132
|
-
radioGroup?: string | undefined
|
|
123
|
+
tabIndex?: number | undefined;
|
|
124
|
+
title?: string | undefined;
|
|
125
|
+
translate?: "yes" | "no" | undefined;
|
|
126
|
+
radioGroup?: string | undefined;
|
|
133
127
|
role?: React$1.AriaRole | undefined;
|
|
134
|
-
about?: string | undefined
|
|
135
|
-
content?: string | undefined
|
|
136
|
-
datatype?: string | undefined
|
|
128
|
+
about?: string | undefined;
|
|
129
|
+
content?: string | undefined;
|
|
130
|
+
datatype?: string | undefined;
|
|
137
131
|
inlist?: any;
|
|
138
|
-
prefix?: string | undefined
|
|
139
|
-
property?: string | undefined
|
|
140
|
-
rel?: string | undefined
|
|
141
|
-
resource?: string | undefined
|
|
142
|
-
rev?: string | undefined
|
|
143
|
-
typeof?: string | undefined
|
|
144
|
-
vocab?: string | undefined
|
|
145
|
-
autoCorrect?: string | undefined
|
|
146
|
-
autoSave?: string | undefined
|
|
147
|
-
color?: string | undefined
|
|
148
|
-
itemProp?: string | undefined
|
|
149
|
-
itemScope?: boolean | undefined
|
|
150
|
-
itemType?: string | undefined
|
|
151
|
-
itemID?: string | undefined
|
|
152
|
-
itemRef?: string | undefined
|
|
153
|
-
results?: number | undefined
|
|
154
|
-
security?: string | undefined
|
|
155
|
-
unselectable?: "on" | "off" | undefined
|
|
156
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
|
|
157
|
-
is?: string | undefined
|
|
158
|
-
exportparts?: string | undefined
|
|
159
|
-
part?: string | undefined
|
|
160
|
-
"aria-activedescendant"?: string | undefined
|
|
132
|
+
prefix?: string | undefined;
|
|
133
|
+
property?: string | undefined;
|
|
134
|
+
rel?: string | undefined;
|
|
135
|
+
resource?: string | undefined;
|
|
136
|
+
rev?: string | undefined;
|
|
137
|
+
typeof?: string | undefined;
|
|
138
|
+
vocab?: string | undefined;
|
|
139
|
+
autoCorrect?: string | undefined;
|
|
140
|
+
autoSave?: string | undefined;
|
|
141
|
+
color?: string | undefined;
|
|
142
|
+
itemProp?: string | undefined;
|
|
143
|
+
itemScope?: boolean | undefined;
|
|
144
|
+
itemType?: string | undefined;
|
|
145
|
+
itemID?: string | undefined;
|
|
146
|
+
itemRef?: string | undefined;
|
|
147
|
+
results?: number | undefined;
|
|
148
|
+
security?: string | undefined;
|
|
149
|
+
unselectable?: "on" | "off" | undefined;
|
|
150
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
151
|
+
is?: string | undefined;
|
|
152
|
+
exportparts?: string | undefined;
|
|
153
|
+
part?: string | undefined;
|
|
154
|
+
"aria-activedescendant"?: string | undefined;
|
|
161
155
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
162
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
163
|
-
"aria-braillelabel"?: string | undefined
|
|
164
|
-
"aria-brailleroledescription"?: string | undefined
|
|
156
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
157
|
+
"aria-braillelabel"?: string | undefined;
|
|
158
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
165
159
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
166
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined
|
|
167
|
-
"aria-colcount"?: number | undefined
|
|
168
|
-
"aria-colindex"?: number | undefined
|
|
169
|
-
"aria-colindextext"?: string | undefined
|
|
170
|
-
"aria-colspan"?: number | undefined
|
|
171
|
-
"aria-controls"?: string | undefined
|
|
172
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
|
|
173
|
-
"aria-describedby"?: string | undefined
|
|
174
|
-
"aria-description"?: string | undefined
|
|
175
|
-
"aria-details"?: string | undefined
|
|
160
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
161
|
+
"aria-colcount"?: number | undefined;
|
|
162
|
+
"aria-colindex"?: number | undefined;
|
|
163
|
+
"aria-colindextext"?: string | undefined;
|
|
164
|
+
"aria-colspan"?: number | undefined;
|
|
165
|
+
"aria-controls"?: string | undefined;
|
|
166
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
167
|
+
"aria-describedby"?: string | undefined;
|
|
168
|
+
"aria-description"?: string | undefined;
|
|
169
|
+
"aria-details"?: string | undefined;
|
|
176
170
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
177
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined
|
|
178
|
-
"aria-errormessage"?: string | undefined
|
|
171
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
172
|
+
"aria-errormessage"?: string | undefined;
|
|
179
173
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
180
|
-
"aria-flowto"?: string | undefined
|
|
174
|
+
"aria-flowto"?: string | undefined;
|
|
181
175
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
182
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
176
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
183
177
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
184
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined
|
|
185
|
-
"aria-keyshortcuts"?: string | undefined
|
|
186
|
-
"aria-label"?: string | undefined
|
|
187
|
-
"aria-labelledby"?: string | undefined
|
|
188
|
-
"aria-level"?: number | undefined
|
|
189
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
178
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
179
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
180
|
+
"aria-label"?: string | undefined;
|
|
181
|
+
"aria-labelledby"?: string | undefined;
|
|
182
|
+
"aria-level"?: number | undefined;
|
|
183
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
190
184
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
191
185
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
192
186
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
193
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
194
|
-
"aria-owns"?: string | undefined
|
|
195
|
-
"aria-placeholder"?: string | undefined
|
|
196
|
-
"aria-posinset"?: number | undefined
|
|
197
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined
|
|
187
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
188
|
+
"aria-owns"?: string | undefined;
|
|
189
|
+
"aria-placeholder"?: string | undefined;
|
|
190
|
+
"aria-posinset"?: number | undefined;
|
|
191
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
198
192
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
199
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
|
|
193
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
200
194
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
201
|
-
"aria-roledescription"?: string | undefined
|
|
202
|
-
"aria-rowcount"?: number | undefined
|
|
203
|
-
"aria-rowindex"?: number | undefined
|
|
204
|
-
"aria-rowindextext"?: string | undefined
|
|
205
|
-
"aria-rowspan"?: number | undefined
|
|
195
|
+
"aria-roledescription"?: string | undefined;
|
|
196
|
+
"aria-rowcount"?: number | undefined;
|
|
197
|
+
"aria-rowindex"?: number | undefined;
|
|
198
|
+
"aria-rowindextext"?: string | undefined;
|
|
199
|
+
"aria-rowspan"?: number | undefined;
|
|
206
200
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
207
|
-
"aria-setsize"?: number | undefined
|
|
208
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
209
|
-
"aria-valuemax"?: number | undefined
|
|
210
|
-
"aria-valuemin"?: number | undefined
|
|
211
|
-
"aria-valuenow"?: number | undefined
|
|
212
|
-
"aria-valuetext"?: string | undefined
|
|
213
|
-
children?: React$1.ReactNode;
|
|
201
|
+
"aria-setsize"?: number | undefined;
|
|
202
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
203
|
+
"aria-valuemax"?: number | undefined;
|
|
204
|
+
"aria-valuemin"?: number | undefined;
|
|
205
|
+
"aria-valuenow"?: number | undefined;
|
|
206
|
+
"aria-valuetext"?: string | undefined;
|
|
207
|
+
children?: React$1.ReactNode | undefined;
|
|
214
208
|
dangerouslySetInnerHTML?: {
|
|
215
209
|
__html: string | TrustedHTML;
|
|
216
|
-
} | undefined
|
|
210
|
+
} | undefined;
|
|
217
211
|
onCopy?: React$1.ClipboardEventHandler<HTMLImageElement> | undefined;
|
|
218
212
|
onCopyCapture?: React$1.ClipboardEventHandler<HTMLImageElement> | undefined;
|
|
219
213
|
onCut?: React$1.ClipboardEventHandler<HTMLImageElement> | undefined;
|
|
@@ -377,122 +371,122 @@ declare function useSubsetImage({
|
|
|
377
371
|
sizes: string | undefined;
|
|
378
372
|
loading: "eager" | "lazy";
|
|
379
373
|
onError: ((event?: React$1.SyntheticEvent<HTMLImageElement, Event>) => void) | undefined;
|
|
380
|
-
alt?: string | undefined
|
|
374
|
+
alt?: string | undefined;
|
|
381
375
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
382
|
-
decoding?: "async" | "auto" | "sync" | undefined
|
|
383
|
-
fetchPriority?: "high" | "low" | "auto"
|
|
376
|
+
decoding?: "async" | "auto" | "sync" | undefined;
|
|
377
|
+
fetchPriority?: "high" | "low" | "auto";
|
|
384
378
|
height: number;
|
|
385
379
|
referrerPolicy?: React$1.HTMLAttributeReferrerPolicy | undefined;
|
|
386
|
-
useMap?: string | undefined
|
|
380
|
+
useMap?: string | undefined;
|
|
387
381
|
width: number;
|
|
388
|
-
defaultChecked?: boolean | undefined
|
|
382
|
+
defaultChecked?: boolean | undefined;
|
|
389
383
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
390
|
-
suppressContentEditableWarning?: boolean | undefined
|
|
391
|
-
suppressHydrationWarning?: boolean | undefined
|
|
392
|
-
accessKey?: string | undefined
|
|
393
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {})
|
|
394
|
-
autoFocus?: boolean | undefined
|
|
395
|
-
className?: string | undefined
|
|
384
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
385
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
386
|
+
accessKey?: string | undefined;
|
|
387
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
388
|
+
autoFocus?: boolean | undefined;
|
|
389
|
+
className?: string | undefined;
|
|
396
390
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
397
|
-
contextMenu?: string | undefined
|
|
398
|
-
dir?: string | undefined
|
|
391
|
+
contextMenu?: string | undefined;
|
|
392
|
+
dir?: string | undefined;
|
|
399
393
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
400
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined
|
|
401
|
-
hidden?: boolean | undefined
|
|
402
|
-
id?: string | undefined
|
|
403
|
-
lang?: string | undefined
|
|
404
|
-
nonce?: string | undefined
|
|
405
|
-
slot?: string | undefined
|
|
394
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
395
|
+
hidden?: boolean | undefined;
|
|
396
|
+
id?: string | undefined;
|
|
397
|
+
lang?: string | undefined;
|
|
398
|
+
nonce?: string | undefined;
|
|
399
|
+
slot?: string | undefined;
|
|
406
400
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
407
401
|
style?: React$1.CSSProperties | undefined;
|
|
408
|
-
tabIndex?: number | undefined
|
|
409
|
-
title?: string | undefined
|
|
410
|
-
translate?: "yes" | "no" | undefined
|
|
411
|
-
radioGroup?: string | undefined
|
|
402
|
+
tabIndex?: number | undefined;
|
|
403
|
+
title?: string | undefined;
|
|
404
|
+
translate?: "yes" | "no" | undefined;
|
|
405
|
+
radioGroup?: string | undefined;
|
|
412
406
|
role?: React$1.AriaRole | undefined;
|
|
413
|
-
about?: string | undefined
|
|
414
|
-
content?: string | undefined
|
|
415
|
-
datatype?: string | undefined
|
|
407
|
+
about?: string | undefined;
|
|
408
|
+
content?: string | undefined;
|
|
409
|
+
datatype?: string | undefined;
|
|
416
410
|
inlist?: any;
|
|
417
|
-
prefix?: string | undefined
|
|
418
|
-
property?: string | undefined
|
|
419
|
-
rel?: string | undefined
|
|
420
|
-
resource?: string | undefined
|
|
421
|
-
rev?: string | undefined
|
|
422
|
-
typeof?: string | undefined
|
|
423
|
-
vocab?: string | undefined
|
|
424
|
-
autoCorrect?: string | undefined
|
|
425
|
-
autoSave?: string | undefined
|
|
426
|
-
color?: string | undefined
|
|
427
|
-
itemProp?: string | undefined
|
|
428
|
-
itemScope?: boolean | undefined
|
|
429
|
-
itemType?: string | undefined
|
|
430
|
-
itemID?: string | undefined
|
|
431
|
-
itemRef?: string | undefined
|
|
432
|
-
results?: number | undefined
|
|
433
|
-
security?: string | undefined
|
|
434
|
-
unselectable?: "on" | "off" | undefined
|
|
435
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
|
|
436
|
-
is?: string | undefined
|
|
437
|
-
exportparts?: string | undefined
|
|
438
|
-
part?: string | undefined
|
|
439
|
-
"aria-activedescendant"?: string | undefined
|
|
411
|
+
prefix?: string | undefined;
|
|
412
|
+
property?: string | undefined;
|
|
413
|
+
rel?: string | undefined;
|
|
414
|
+
resource?: string | undefined;
|
|
415
|
+
rev?: string | undefined;
|
|
416
|
+
typeof?: string | undefined;
|
|
417
|
+
vocab?: string | undefined;
|
|
418
|
+
autoCorrect?: string | undefined;
|
|
419
|
+
autoSave?: string | undefined;
|
|
420
|
+
color?: string | undefined;
|
|
421
|
+
itemProp?: string | undefined;
|
|
422
|
+
itemScope?: boolean | undefined;
|
|
423
|
+
itemType?: string | undefined;
|
|
424
|
+
itemID?: string | undefined;
|
|
425
|
+
itemRef?: string | undefined;
|
|
426
|
+
results?: number | undefined;
|
|
427
|
+
security?: string | undefined;
|
|
428
|
+
unselectable?: "on" | "off" | undefined;
|
|
429
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
430
|
+
is?: string | undefined;
|
|
431
|
+
exportparts?: string | undefined;
|
|
432
|
+
part?: string | undefined;
|
|
433
|
+
"aria-activedescendant"?: string | undefined;
|
|
440
434
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
441
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
442
|
-
"aria-braillelabel"?: string | undefined
|
|
443
|
-
"aria-brailleroledescription"?: string | undefined
|
|
435
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
436
|
+
"aria-braillelabel"?: string | undefined;
|
|
437
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
444
438
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
445
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined
|
|
446
|
-
"aria-colcount"?: number | undefined
|
|
447
|
-
"aria-colindex"?: number | undefined
|
|
448
|
-
"aria-colindextext"?: string | undefined
|
|
449
|
-
"aria-colspan"?: number | undefined
|
|
450
|
-
"aria-controls"?: string | undefined
|
|
451
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
|
|
452
|
-
"aria-describedby"?: string | undefined
|
|
453
|
-
"aria-description"?: string | undefined
|
|
454
|
-
"aria-details"?: string | undefined
|
|
439
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
440
|
+
"aria-colcount"?: number | undefined;
|
|
441
|
+
"aria-colindex"?: number | undefined;
|
|
442
|
+
"aria-colindextext"?: string | undefined;
|
|
443
|
+
"aria-colspan"?: number | undefined;
|
|
444
|
+
"aria-controls"?: string | undefined;
|
|
445
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
446
|
+
"aria-describedby"?: string | undefined;
|
|
447
|
+
"aria-description"?: string | undefined;
|
|
448
|
+
"aria-details"?: string | undefined;
|
|
455
449
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
456
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined
|
|
457
|
-
"aria-errormessage"?: string | undefined
|
|
450
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
451
|
+
"aria-errormessage"?: string | undefined;
|
|
458
452
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
459
|
-
"aria-flowto"?: string | undefined
|
|
453
|
+
"aria-flowto"?: string | undefined;
|
|
460
454
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
461
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
455
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
462
456
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
463
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined
|
|
464
|
-
"aria-keyshortcuts"?: string | undefined
|
|
465
|
-
"aria-label"?: string | undefined
|
|
466
|
-
"aria-labelledby"?: string | undefined
|
|
467
|
-
"aria-level"?: number | undefined
|
|
468
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
457
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
458
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
459
|
+
"aria-label"?: string | undefined;
|
|
460
|
+
"aria-labelledby"?: string | undefined;
|
|
461
|
+
"aria-level"?: number | undefined;
|
|
462
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
469
463
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
470
464
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
471
465
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
472
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
473
|
-
"aria-owns"?: string | undefined
|
|
474
|
-
"aria-placeholder"?: string | undefined
|
|
475
|
-
"aria-posinset"?: number | undefined
|
|
476
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined
|
|
466
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
467
|
+
"aria-owns"?: string | undefined;
|
|
468
|
+
"aria-placeholder"?: string | undefined;
|
|
469
|
+
"aria-posinset"?: number | undefined;
|
|
470
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
477
471
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
478
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
|
|
472
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
479
473
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
480
|
-
"aria-roledescription"?: string | undefined
|
|
481
|
-
"aria-rowcount"?: number | undefined
|
|
482
|
-
"aria-rowindex"?: number | undefined
|
|
483
|
-
"aria-rowindextext"?: string | undefined
|
|
484
|
-
"aria-rowspan"?: number | undefined
|
|
474
|
+
"aria-roledescription"?: string | undefined;
|
|
475
|
+
"aria-rowcount"?: number | undefined;
|
|
476
|
+
"aria-rowindex"?: number | undefined;
|
|
477
|
+
"aria-rowindextext"?: string | undefined;
|
|
478
|
+
"aria-rowspan"?: number | undefined;
|
|
485
479
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
486
|
-
"aria-setsize"?: number | undefined
|
|
487
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
488
|
-
"aria-valuemax"?: number | undefined
|
|
489
|
-
"aria-valuemin"?: number | undefined
|
|
490
|
-
"aria-valuenow"?: number | undefined
|
|
491
|
-
"aria-valuetext"?: string | undefined
|
|
492
|
-
children?: React$1.ReactNode;
|
|
480
|
+
"aria-setsize"?: number | undefined;
|
|
481
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
482
|
+
"aria-valuemax"?: number | undefined;
|
|
483
|
+
"aria-valuemin"?: number | undefined;
|
|
484
|
+
"aria-valuenow"?: number | undefined;
|
|
485
|
+
"aria-valuetext"?: string | undefined;
|
|
486
|
+
children?: React$1.ReactNode | undefined;
|
|
493
487
|
dangerouslySetInnerHTML?: {
|
|
494
488
|
__html: string | TrustedHTML;
|
|
495
|
-
} | undefined
|
|
489
|
+
} | undefined;
|
|
496
490
|
onCopy?: React$1.ClipboardEventHandler<HTMLImageElement> | undefined;
|
|
497
491
|
onCopyCapture?: React$1.ClipboardEventHandler<HTMLImageElement> | undefined;
|
|
498
492
|
onCut?: React$1.ClipboardEventHandler<HTMLImageElement> | undefined;
|
|
@@ -658,4 +652,4 @@ declare function useWindowSize(defaultWidth?: number): {
|
|
|
658
652
|
windowSize: number;
|
|
659
653
|
};
|
|
660
654
|
//#endregion
|
|
661
|
-
export { UseSubsetImageProps as a,
|
|
655
|
+
export { UseSubsetImageProps as a, useScrollTop as c, UseOutsideClickProps as d, useOutsideClick as f, SUBSETS as i, UseScrollLockProps as l, useDelayUnmount as m, BaseProps as n, useSubsetImage as o, useDragScroll as p, Folder as r, UseScrollTopProps as s, useWindowSize as t, useScrollLock as u };
|