@liner-fe/illust 0.1.2 → 0.1.4
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/CHANGELOG.md +12 -0
- package/config/tsup/tsup.config.ts +1 -7
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2965
- package/package.json +3 -16
- package/src/components/index.tsx +4 -5
- package/lib/index.cjs +0 -3064
- package/lib/index.d.mts +0 -31
package/CHANGELOG.md
CHANGED
|
@@ -6,13 +6,7 @@ export default defineConfig({
|
|
|
6
6
|
outDir: 'lib',
|
|
7
7
|
// 이거는 무슨 옵션일까?
|
|
8
8
|
// splitting: false,
|
|
9
|
-
format:
|
|
10
|
-
outExtension({ format }) {
|
|
11
|
-
return {
|
|
12
|
-
js: format === 'cjs' ? '.cjs' : '.js',
|
|
13
|
-
dts: '.d.ts',
|
|
14
|
-
};
|
|
15
|
-
},
|
|
9
|
+
format: 'esm',
|
|
16
10
|
bundle: true,
|
|
17
11
|
minify: false,
|
|
18
12
|
keepNames: true,
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { DetailedHTMLProps, ImgHTMLAttributes } from 'react';
|
|
3
3
|
import { Property } from 'csstype';
|
|
4
4
|
|
|
5
5
|
declare const illustNames: readonly ["hero-gift", "hero-search", "mini-approve", "mini-documents-2", "mini-documents-3", "mini-documents-4", "mini-documents-5", "mini-documents", "mini-egg", "mini-empty-message", "mini-empty", "mini-gift", "mini-graduation_hat", "mini-not-search", "mini-not-ticket-2", "mini-private", "mini-search", "mini-ticket", "mini-ticket-3", "mini-window", "spot-catch_star", "spot-clap", "spot-empty", "spot-gift", "spot-no_search", "spot-search-2", "spot-search-3", "spot-search-4", "spot-search-5", "spot-search", "spot-sign_up", "spot-team", "spot-write", "mini-sign", "mini-pots", "mini-erase", "mini-rocket"];
|
|
@@ -13,7 +13,7 @@ interface Source<T extends false | true = true> {
|
|
|
13
13
|
name: IllustType;
|
|
14
14
|
inverse?: T;
|
|
15
15
|
}
|
|
16
|
-
interface IllustProps extends Omit<
|
|
16
|
+
interface IllustProps extends Omit<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'src'> {
|
|
17
17
|
width: number;
|
|
18
18
|
src: {
|
|
19
19
|
light: Source<false>;
|