@liner-fe/illust 0.1.1 → 0.1.3

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @liner-fe/illust
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6bf3a85: liner-fe/illust build code 삭제
8
+
9
+ ## 0.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 07ae3a7: fix: illust, prism dual package로 전환
14
+
3
15
  ## 0.1.1
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "@liner-fe/illust",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "scripts": {
5
- "build": "yarn tsup --config ./config/tsup/tsup.config.ts"
5
+ "build": ""
6
6
  },
7
7
  "sideEffects": false,
8
8
  "publishConfig": {
9
- "access": "public",
10
- "main": "./lib/index.js"
9
+ "access": "public"
11
10
  },
12
11
  "files": [
13
12
  "*"
14
13
  ],
15
- "main": "./lib/index.js",
16
- "types": "./lib/index.d.ts",
14
+ "main": "./src/index.ts",
17
15
  "dependencies": {
18
16
  "@liner-fe/design-token": "workspace:^",
19
17
  "react": "^18.2.0",
@@ -1,19 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
- import { nodeExternalsPlugin } from 'esbuild-node-externals';
3
-
4
- export default defineConfig({
5
- entry: ['src/index.ts'],
6
- outDir: 'lib',
7
- // 이거는 무슨 옵션일까?
8
- // splitting: false,
9
- format: 'cjs',
10
- bundle: true,
11
- minify: false,
12
- keepNames: true,
13
- jsxFactory: 'React.createElement',
14
- jsxFragment: 'Fragment',
15
- tsconfig: './tsconfig.build.json',
16
- platform: 'neutral',
17
- dts: true,
18
- esbuildPlugins: [nodeExternalsPlugin()],
19
- });
package/lib/index.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ImageProps } from 'next/image';
3
- import { Property } from 'csstype';
4
-
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"];
6
- declare const darkIllustNames: 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"];
7
-
8
- type LightIllustType = (typeof illustNames)[number];
9
- type DarkIllustType = (typeof darkIllustNames)[number];
10
- type IllustType = DarkIllustType | LightIllustType;
11
-
12
- interface Source<T extends false | true = true> {
13
- name: IllustType;
14
- inverse?: T;
15
- }
16
- interface IllustProps extends Omit<ImageProps, 'alt' | 'width' | 'height' | 'fill' | 'src'> {
17
- width: number;
18
- src: {
19
- light: Source<false>;
20
- dark?: Source;
21
- };
22
- margin?: Property.Margin<string>;
23
- }
24
- declare const Illust: (props: IllustProps) => react_jsx_runtime.JSX.Element;
25
-
26
- declare const prefetchIllust: ({ name, isDark, }: {
27
- name: IllustType;
28
- isDark?: boolean;
29
- }) => Promise<Response>;
30
-
31
- export { Illust, type IllustProps, type Source, prefetchIllust };