@liner-fe/illust 0.1.7 → 0.2.7
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/.ultra.cache.json +19 -1
- package/package.json +7 -8
- package/lib/index.d.ts +0 -24
package/.ultra.cache.json
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"lib": "1760876275317.5342",
|
|
4
|
+
"node_modules": "1761203842576.7976",
|
|
5
|
+
".gitignore": "dc555529d53e3f2c4f0e55a863459c4b37d735aa",
|
|
6
|
+
"CHANGELOG.md": "f0c3c24b8d2fd6dd50505c9f52e0e4ac3b2fd22d",
|
|
7
|
+
"README.md": "63221bc63a67877867f2e5687df18a8fd094aaeb",
|
|
8
|
+
"config/tsup/tsup.config.ts": "a859643cfe271fbb36f8dcdbddf48e2a50cd3467",
|
|
9
|
+
"package.json": "5f0348bb8010110cae2f099804ee3cb99a5fa7e5.1761203975703.053",
|
|
10
|
+
"src/components/index.tsx": "a76f6fffbe12d6ba35c1514c75cbf25bfa921dca",
|
|
11
|
+
"src/constants/path.ts": "3d830e3cec1911a55b97d4c019ffa64544691f55",
|
|
12
|
+
"src/constants/size.ts": "7b67ec10bd33f292bd8ceeef1b6caa5c7aae8db8",
|
|
13
|
+
"src/index.ts": "c622c42f0af65297761fd53dc4bcdce07f282859",
|
|
14
|
+
"src/utils/illust.ts": "d38b03c111b7f8441af200053469c4b590ce1251",
|
|
15
|
+
"tsconfig.build.json": "c72ec6a3beec74122bb0b83d3881081d33af3ced",
|
|
16
|
+
"tsconfig.json": "81023397af8ff9abb35dce28ed574a745240aec4"
|
|
17
|
+
},
|
|
18
|
+
"deps": {}
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liner-fe/illust",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "yarn tsup --config ./config/tsup/tsup.config.ts",
|
|
7
|
-
"build:package": "yarn build"
|
|
8
|
-
},
|
|
9
5
|
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
"main": "./lib/index.js"
|
|
6
|
+
"access": "public"
|
|
12
7
|
},
|
|
13
8
|
"files": [
|
|
14
9
|
"*"
|
|
@@ -24,5 +19,9 @@
|
|
|
24
19
|
"@types/react-dom": "^18.2.5",
|
|
25
20
|
"esbuild-node-externals": "1.18.0",
|
|
26
21
|
"tsup": "^8.5.0"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "pnpm tsup --config ./config/tsup/tsup.config.ts",
|
|
25
|
+
"build:package": "pnpm build"
|
|
27
26
|
}
|
|
28
|
-
}
|
|
27
|
+
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { DetailedHTMLProps, ImgHTMLAttributes } from 'react';
|
|
3
|
-
import { Property } from 'csstype';
|
|
4
|
-
|
|
5
|
-
interface Source<T extends false | true = true> {
|
|
6
|
-
name: string;
|
|
7
|
-
inverse?: T;
|
|
8
|
-
}
|
|
9
|
-
interface IllustProps extends Omit<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'src'> {
|
|
10
|
-
width: number;
|
|
11
|
-
src: {
|
|
12
|
-
light: Source<false>;
|
|
13
|
-
dark?: Source;
|
|
14
|
-
};
|
|
15
|
-
margin?: Property.Margin<string>;
|
|
16
|
-
}
|
|
17
|
-
declare const Illust: (props: IllustProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare const prefetchIllust: ({ name, isDark, }: {
|
|
20
|
-
name: string;
|
|
21
|
-
isDark?: boolean;
|
|
22
|
-
}) => Promise<Response>;
|
|
23
|
-
|
|
24
|
-
export { Illust, type IllustProps, type Source, prefetchIllust };
|