@magiclabs.ai/magicbook-client 0.6.8-canary → 0.6.8
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/index.cjs +4855 -0
- package/index.cjs.map +1 -0
- package/index.d.cts +1751 -0
- package/index.d.ts +1751 -0
- package/index.js +4817 -0
- package/index.js.map +1 -0
- package/package.json +12 -12
- package/example/.env.example +0 -1
- package/example/index.html +0 -13
- package/example/package.json +0 -35
- package/example/pnpm-lock.yaml +0 -3403
- package/example/postcss.config.js +0 -6
- package/example/public/logo.png +0 -0
- package/example/public/vite.svg +0 -1
- package/example/src/App.tsx +0 -172
- package/example/src/components/layout.tsx +0 -36
- package/example/src/index.css +0 -3
- package/example/src/main.tsx +0 -10
- package/example/src/vite-env.d.ts +0 -1
- package/example/tailwind.config.js +0 -12
- package/example/tsconfig.json +0 -21
- package/example/tsconfig.node.json +0 -9
- package/example/vite.config.ts +0 -7
- package/src/index.ts +0 -4
- package/tsconfig.json +0 -13
- package/tsup.config.ts +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magiclabs.ai/magicbook-client",
|
|
3
|
-
"version": "0.6.8
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript package to create photo books with the Magicbook API.",
|
|
6
6
|
"repository": {
|
|
@@ -10,13 +10,18 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"import": "./
|
|
14
|
-
"require": "./
|
|
13
|
+
"import": "./index.js",
|
|
14
|
+
"require": "./index.cjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"main": "./
|
|
18
|
-
"module": "./
|
|
17
|
+
"main": "./index.cjs",
|
|
18
|
+
"module": "./index.js",
|
|
19
19
|
"types": "./src/index.d.ts",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "../../scripts/build/before.sh && tsup && ../../scripts/build/after.sh",
|
|
22
|
+
"deploy": "./scripts/deploy-npm.sh",
|
|
23
|
+
"watch": "../../scripts/build/before.sh --watch && tsup --watch"
|
|
24
|
+
},
|
|
20
25
|
"dependencies": {
|
|
21
26
|
"dotenv": "^16.3.1",
|
|
22
27
|
"flatted": "^3.2.7",
|
|
@@ -26,10 +31,5 @@
|
|
|
26
31
|
"devDependencies": {
|
|
27
32
|
"jsdom": "^22.1.0"
|
|
28
33
|
},
|
|
29
|
-
"packageManager": "pnpm@8.6.11"
|
|
30
|
-
|
|
31
|
-
"build": "../../scripts/build/before.sh && tsup && ../../scripts/build/after.sh",
|
|
32
|
-
"deploy": "./scripts/deploy-npm.sh",
|
|
33
|
-
"watch": "../../scripts/build/before.sh --watch && tsup --watch"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
34
|
+
"packageManager": "pnpm@8.6.11"
|
|
35
|
+
}
|
package/example/.env.example
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VITE_MB_CLIENT_API_KEY=
|
package/example/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/logo.png" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>MagicBook Client Example</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/example/package.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-example",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc && vite build",
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"preview": "vite preview"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@faker-js/faker": "^8.0.1",
|
|
13
|
-
"@magiclabs.ai/magicbook-client": "file:../dist",
|
|
14
|
-
"react": "^18.2.0",
|
|
15
|
-
"react-dom": "^18.2.0"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@types/react": "^18.2.6",
|
|
19
|
-
"@types/react-dom": "^18.2.4",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
21
|
-
"@typescript-eslint/parser": "^5.59.6",
|
|
22
|
-
"@vitejs/plugin-react": "^4.0.0",
|
|
23
|
-
"autoprefixer": "^10.4.14",
|
|
24
|
-
"eslint": "^8.41.0",
|
|
25
|
-
"eslint-config-next": "13.4.3",
|
|
26
|
-
"eslint-config-standard": "^17.0.0",
|
|
27
|
-
"eslint-plugin-react": "^7.32.2",
|
|
28
|
-
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
|
|
29
|
-
"eslint-plugin-unused-imports": "^2.0.0",
|
|
30
|
-
"postcss": "^8.4.23",
|
|
31
|
-
"tailwindcss": "^3.3.2",
|
|
32
|
-
"typescript": "^5.0.4",
|
|
33
|
-
"vite": "^4.3.8"
|
|
34
|
-
}
|
|
35
|
-
}
|