@storecraft/dashboard 1.0.4 → 1.0.6
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 +52 -5
- package/dist/lib/index.cjs +373 -373
- package/dist/lib/index.js +15967 -15938
- package/dist/lib/index.umd.cjs +379 -379
- package/dist/lib/src/apps/gallery/gallery.d.ts +8 -0
- package/dist/lib/src/comps/collection-products.d.ts +12 -0
- package/dist/lib/src/comps/common-button.d.ts +2 -2
- package/dist/lib/src/comps/common-fields.d.ts +4 -0
- package/dist/lib/src/comps/common-table-fields.d.ts +6 -0
- package/dist/lib/src/comps/common-ui.d.ts +3 -0
- package/dist/lib/src/comps/copyable-view.d.ts +8 -1
- package/dist/lib/src/comps/discount-details.d.ts +5 -5
- package/dist/lib/src/comps/discount-filters.d.ts +12 -73
- package/dist/lib/src/comps/fields-view.d.ts +28 -1
- package/dist/lib/src/comps/home-sales-chart.d.ts +1 -1
- package/dist/lib/src/comps/home-stat-card.d.ts +5 -1
- package/dist/lib/src/comps/image-editor.d.ts +17 -4
- package/dist/lib/src/comps/login-form.d.ts +4 -1
- package/dist/lib/src/comps/login-latest-updates.d.ts +32 -0
- package/dist/lib/src/comps/logo-text.d.ts +2 -0
- package/dist/lib/src/comps/markdown-card.d.ts +10 -1
- package/dist/lib/src/comps/md-view.d.ts +1 -1
- package/dist/lib/src/comps/media.d.ts +3 -2
- package/dist/lib/src/comps/modal.d.ts +1 -1
- package/dist/lib/src/comps/order-line-items.d.ts +1 -1
- package/dist/lib/src/comps/order-payment-gateway.d.ts +6 -2
- package/dist/lib/src/comps/order-price.d.ts +7 -2
- package/dist/lib/src/comps/product-discounts.d.ts +6 -0
- package/dist/lib/src/comps/quick-search-browser.d.ts +9 -0
- package/dist/lib/src/comps/resource-view.d.ts +10 -0
- package/dist/lib/src/comps/select-resource.d.ts +15 -0
- package/dist/lib/src/comps/settings-change-password.d.ts +2 -0
- package/dist/lib/src/comps/table-schema-view.d.ts +30 -3
- package/dist/lib/src/comps/tags-edit.d.ts +1 -1
- package/dist/lib/src/comps/template-example-input.d.ts +1 -1
- package/dist/lib/src/comps/template-template.d.ts +1 -1
- package/dist/lib/src/comps/transition.d.ts +18 -0
- package/dist/lib/src/hooks/useCollectionsActions.d.ts +5 -5
- package/dist/lib/src/hooks/useDocumentActions.d.ts +6 -4
- package/dist/lib/src/hooks/useNavigateWithState.d.ts +9 -0
- package/dist/lib/src/pages/index.d.ts +4 -1
- package/dist/lib/src/pages/order.d.ts +9 -3
- package/dist/website/assets/{index-BzxD23gt.js → index-C7Q7dM9P.js} +372 -372
- package/dist/website/assets/style-CWN3iS8N.css +1 -0
- package/dist/website/index.html +2 -2
- package/dist/website/localhost_3000_logo.png +0 -0
- package/package.json +1 -1
- package/dist/website/assets/style-WBf4dDmi.css +0 -1
package/README.md
CHANGED
@@ -1,12 +1,20 @@
|
|
1
1
|
# **Storecraft** Official Dashboard
|
2
|
-
The Official `storecraft` Dashboard, leveraging `static rendering` / `client side rendering` / `swr`,
|
3
|
-
so it can be deployed into cost effective **CDN**.
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<div style="text-align:center">
|
4
|
+
<img src='https://storecraft.app/storecraft-color.svg'
|
5
|
+
width='90%'' />
|
6
|
+
</div><hr/><br/>
|
7
|
+
|
8
|
+
The Official `storecraft` Dashboard 🏆,
|
9
|
+
- Leveraging `static rendering` / `client side rendering` / `swr`
|
10
|
+
- Can be deployed into cost effective **CDN**
|
11
|
+
- Also available at `jsDelivr` **CDN**
|
12
|
+
|
13
|
+
Effectively, **TWO** Build Targets
|
14
|
+
1. A `library` with
|
8
15
|
- Dashboard as `react` functional component
|
9
16
|
- a `mount` function, that you can wrap for any framework of pure DOM.
|
17
|
+
2. A website, with configurable backend endpoint.
|
10
18
|
|
11
19
|
Build is handled by `Vite`
|
12
20
|
|
@@ -52,6 +60,45 @@ dist
|
|
52
60
|
|
53
61
|
```
|
54
62
|
|
63
|
+
## Consuming via `React`
|
64
|
+
|
65
|
+
First,
|
66
|
+
|
67
|
+
```bash
|
68
|
+
npm i @storecraft/dashboard
|
69
|
+
```
|
70
|
+
|
71
|
+
Then,
|
72
|
+
|
73
|
+
```jsx
|
74
|
+
import { Dashboard } from '@storecraft/dashboard'
|
75
|
+
|
76
|
+
export const Root = () => {
|
77
|
+
|
78
|
+
return (
|
79
|
+
<div className='w-screen h-screen'>
|
80
|
+
<Dashboard />
|
81
|
+
</div>
|
82
|
+
)
|
83
|
+
}
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
## Consuming via `jsDelivr`
|
88
|
+
|
89
|
+
```html
|
90
|
+
<script id='_storecraft_script_' type="module">
|
91
|
+
|
92
|
+
import { mountStorecraftDashboard } from 'https://cdn.jsdelivr.net/npm/@storecraft/dashboard@latest/dist/lib/index.min.js';
|
93
|
+
|
94
|
+
mountStorecraftDashboard(
|
95
|
+
document.getElementById('root'), false
|
96
|
+
);
|
97
|
+
|
98
|
+
</script>
|
99
|
+
|
100
|
+
```
|
101
|
+
|
55
102
|
|
56
103
|
```txt
|
57
104
|
Author: Tomer Shalev
|