@machinerd/js-module 0.4.1 → 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-NTpsm0XR.mjs → skeleton-S6S1ZnCy.mjs} +1 -1
- package/dist/{skeleton-B1Jzl0cz.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 +14 -14
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.mjs +1 -1
- package/dist/ui-client/index.cjs +1 -1
- package/dist/ui-client/index.d.cts +44 -30
- package/dist/ui-client/index.d.mts +42 -28
- package/dist/ui-client/index.mjs +1 -1
- package/dist/util/index.cjs +1 -1
- package/dist/util/index.mjs +1 -1
- package/package.json +5 -1
- package/dist/hooks-BDwkyixK.mjs +0 -1
- package/dist/hooks-D1JcFVTH.cjs +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/dist/{util-1BLWEgZB.cjs → util-o7fjt7iK.cjs} +0 -0
- /package/dist/{util-Dtb82Us1.mjs → util-zXJA6Gnc.mjs} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as ApiClient } from "./index-DiZ4xS_f.mjs";
|
|
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./
|
|
1
|
+
const e=require(`./src-CjpmdVyv.cjs`);module.exports=e.t;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-
|
|
1
|
+
import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-CH1uVFqx.cjs";
|
|
2
2
|
export { ApiConfig, UploadValues, ApiClient as default };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-
|
|
1
|
+
import { n as ApiConfig, r as UploadValues, t as ApiClient } from "./index-D6Jzsxc-.mjs";
|
|
2
2
|
export { ApiConfig, UploadValues, ApiClient as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{t as e}from"./src-C_FmOyer.mjs";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../src-CjpmdVyv.cjs`);const e=require(`../providers-BNK8Fisc.cjs`);exports.ApiClientProvider=e.t,exports.useApiClient=e.n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as ApiConfig, t as ApiClient } from "../index-CH1uVFqx.cjs";
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/providers/api-client/api-client.d.ts
|
|
5
|
+
declare function ApiClientProvider({
|
|
6
|
+
children,
|
|
7
|
+
config
|
|
8
|
+
}: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
config: ApiConfig;
|
|
11
|
+
}): react_jsx_runtime7.JSX.Element;
|
|
12
|
+
declare function useApiClient(): ApiClient;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ApiClientProvider, useApiClient };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as ApiConfig, t as ApiClient } from "../index-D6Jzsxc-.mjs";
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/providers/api-client/api-client.d.ts
|
|
5
|
+
declare function ApiClientProvider({
|
|
6
|
+
children,
|
|
7
|
+
config
|
|
8
|
+
}: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
config: ApiConfig;
|
|
11
|
+
}): react_jsx_runtime7.JSX.Element;
|
|
12
|
+
declare function useApiClient(): ApiClient;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ApiClientProvider, useApiClient };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../src-C_FmOyer.mjs";import{n as e,t}from"../providers-5JCPezAS.mjs";export{t as ApiClientProvider,e as useApiClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./src-C_FmOyer.mjs";import{createContext as t,useContext as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=t(null);function a({children:t,config:n}){let a=new e(n);return r(i.Provider,{value:a,children:t})}function o(){let e=n(i);if(!e)throw Error(`ApiClient not found`);return e}export{o as n,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./src-CjpmdVyv.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`);const i=(0,n.createContext)(null);function a({children:e,config:n}){let a=new t.t(n);return(0,r.jsx)(i.Provider,{value:a,children:e})}function o(){let e=(0,n.useContext)(i);if(!e)throw Error(`ApiClient not found`);return e}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as e}from"./util-
|
|
1
|
+
import{y as e}from"./util-zXJA6Gnc.mjs";import{jsx as t}from"react/jsx-runtime";import{cva as n}from"class-variance-authority";const r=n(e(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function i({size:e,rounded:n,width:i,height:a,className:o,...s}){let c=i?typeof i==`string`?i:`${i}px`:void 0,l=a?typeof a==`string`?a:`${a}px`:void 0;return t(`div`,{"data-komc":!0,"aria-hidden":`true`,className:r({size:e,rounded:n,className:o}),style:{width:c,height:l},...s})}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./util-
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./util-o7fjt7iK.cjs`);let n=require(`react/jsx-runtime`),r=require(`class-variance-authority`);const i=(0,r.cva)(t.y(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function a({size:e,rounded:t,width:r,height:a,className:o,...s}){let c=r?typeof r==`string`?r:`${r}px`:void 0,l=a?typeof a==`string`?a:`${a}px`:void 0;return(0,n.jsx)(`div`,{"data-komc":!0,"aria-hidden":`true`,className:i({size:e,rounded:t,className:o}),style:{width:c,height:l},...s})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"js-cookie";import t from"query-string";var n=class{#e;#t;constructor(e){this.#e=e.apiEndpoint,this.#t=e.cdnEndpoint}async login(e,t){let n=`${this.#e}/auth/login`;return await(await fetch(n,{method:`POST`,body:JSON.stringify({email:e,password:t}),headers:{"Content-Type":`application/json`},credentials:`include`})).json()}getToken(){return e.get(`access`)}getBearer(){return`Bearer ${this.getToken()}`}async hasPermission(e,t,n=!1,r=!1){if(this.getToken()===void 0){if(!r)throw Error(`로그인 필요`);return}let i=`${this.#e}/has-permission?obj=${e}&act=${t}`;n&&(i=`${i}&exact=true`);let a=await fetch(i,{headers:{Authorization:this.getBearer()}});if(!a.ok){if(!r)throw Error(`인증에러`);return}return await a.json()}cdnMedia(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/media/${e}`}cdnStatic(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/static/${e}`}getUploadPresignURL(e){let n=t.stringify(e);return fetch(`${this.#e}/upload/presign?${n}`,{credentials:`include`,headers:{Authorization:this.getBearer()}})}createParaMap(e,t){let n=URL.createObjectURL(e).split(`/`).pop()||``,r=e.name.split(`.`).pop()?.toLowerCase(),i=`${t?`${t.replace(/^\//,``)}/`:``}${n}.${r}`,a={contentType:e.type||`application/octet-stream`,length:e.size,key:i};return e.type.includes(`image`)||(a.disposition=`attachment; filename*=UTF8''${encodeURI(e.name)}`),a}async upload(e,t){let n=this.createParaMap(e,t),r=await(await this.getUploadPresignURL(n)).json(),i={"Content-Length":n.length.toString(),"Content-Type":n.contentType.toString()};n.disposition&&(i[`Content-Disposition`]=n.disposition);try{await fetch(r,{method:`PUT`,headers:i,body:e,credentials:`include`})}catch(e){return new Promise((t,n)=>n(e))}return new Promise(e=>e(n.key))}};export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`js-cookie`);t=e.t(t);let n=require(`query-string`);n=e.t(n);var r=class{#e;#t;constructor(e){this.#e=e.apiEndpoint,this.#t=e.cdnEndpoint}async login(e,t){let n=`${this.#e}/auth/login`;return await(await fetch(n,{method:`POST`,body:JSON.stringify({email:e,password:t}),headers:{"Content-Type":`application/json`},credentials:`include`})).json()}getToken(){return t.default.get(`access`)}getBearer(){return`Bearer ${this.getToken()}`}async hasPermission(e,t,n=!1,r=!1){if(this.getToken()===void 0){if(!r)throw Error(`로그인 필요`);return}let i=`${this.#e}/has-permission?obj=${e}&act=${t}`;n&&(i=`${i}&exact=true`);let a=await fetch(i,{headers:{Authorization:this.getBearer()}});if(!a.ok){if(!r)throw Error(`인증에러`);return}return await a.json()}cdnMedia(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/media/${e}`}cdnStatic(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/static/${e}`}getUploadPresignURL(e){let t=n.default.stringify(e);return fetch(`${this.#e}/upload/presign?${t}`,{credentials:`include`,headers:{Authorization:this.getBearer()}})}createParaMap(e,t){let n=URL.createObjectURL(e).split(`/`).pop()||``,r=e.name.split(`.`).pop()?.toLowerCase(),i=`${t?`${t.replace(/^\//,``)}/`:``}${n}.${r}`,a={contentType:e.type||`application/octet-stream`,length:e.size,key:i};return e.type.includes(`image`)||(a.disposition=`attachment; filename*=UTF8''${encodeURI(e.name)}`),a}async upload(e,t){let n=this.createParaMap(e,t),r=await(await this.getUploadPresignURL(n)).json(),i={"Content-Length":n.length.toString(),"Content-Type":n.contentType.toString()};n.disposition&&(i[`Content-Disposition`]=n.disposition);try{await fetch(r,{method:`PUT`,headers:i,body:e,credentials:`include`})}catch(e){return new Promise((t,n)=>n(e))}return new Promise(e=>e(n.key))}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|