@magiclabs.ai/magicbook-client 0.6.3 → 0.6.5-canary

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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- ![GitHub CI](https://github.com/magiclabs-ai/mb-client/actions/workflows/test.yml/badge.svg) ![GitHub CI](https://github.com/magiclabs-ai/mb-client/actions/workflows/linter.yml/badge.svg) [![npm version](https://img.shields.io/npm/v/@magiclabs.ai/magicbook-client.svg)](https://www.npmjs.com/package/@magiclabs.ai/magicbook-client)
2
+ ![GitHub CI](https://github.com/magiclabs-ai/mb-client/actions/workflows/ci.yml/badge.svg) [![npm version](https://img.shields.io/npm/v/@magiclabs.ai/magicbook-client.svg)](https://www.npmjs.com/package/@magiclabs.ai/magicbook-client)
3
3
 
4
4
  # magicbook-client
5
5
 
@@ -94,11 +94,6 @@ After submitting you can set a GUID to the design request.
94
94
  await designRequest.setGuid('a9ccb406-015a-47df-bb59-ea171b8617ca')
95
95
  ```
96
96
 
97
- The design request can be canceled by triggering a cancellation event through this method.
98
- ```ts
99
- await designRequest.cancel()
100
- ```
101
-
102
97
  Finally, once the design request is complete, retrieve it in JSON format.
103
98
 
104
99
  ```ts
@@ -0,0 +1 @@
1
+ VITE_MB_CLIENT_API_KEY=
@@ -0,0 +1,13 @@
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>
@@ -0,0 +1,35 @@
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
+ }