@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.
Files changed (48) hide show
  1. package/README.md +52 -5
  2. package/dist/lib/index.cjs +373 -373
  3. package/dist/lib/index.js +15967 -15938
  4. package/dist/lib/index.umd.cjs +379 -379
  5. package/dist/lib/src/apps/gallery/gallery.d.ts +8 -0
  6. package/dist/lib/src/comps/collection-products.d.ts +12 -0
  7. package/dist/lib/src/comps/common-button.d.ts +2 -2
  8. package/dist/lib/src/comps/common-fields.d.ts +4 -0
  9. package/dist/lib/src/comps/common-table-fields.d.ts +6 -0
  10. package/dist/lib/src/comps/common-ui.d.ts +3 -0
  11. package/dist/lib/src/comps/copyable-view.d.ts +8 -1
  12. package/dist/lib/src/comps/discount-details.d.ts +5 -5
  13. package/dist/lib/src/comps/discount-filters.d.ts +12 -73
  14. package/dist/lib/src/comps/fields-view.d.ts +28 -1
  15. package/dist/lib/src/comps/home-sales-chart.d.ts +1 -1
  16. package/dist/lib/src/comps/home-stat-card.d.ts +5 -1
  17. package/dist/lib/src/comps/image-editor.d.ts +17 -4
  18. package/dist/lib/src/comps/login-form.d.ts +4 -1
  19. package/dist/lib/src/comps/login-latest-updates.d.ts +32 -0
  20. package/dist/lib/src/comps/logo-text.d.ts +2 -0
  21. package/dist/lib/src/comps/markdown-card.d.ts +10 -1
  22. package/dist/lib/src/comps/md-view.d.ts +1 -1
  23. package/dist/lib/src/comps/media.d.ts +3 -2
  24. package/dist/lib/src/comps/modal.d.ts +1 -1
  25. package/dist/lib/src/comps/order-line-items.d.ts +1 -1
  26. package/dist/lib/src/comps/order-payment-gateway.d.ts +6 -2
  27. package/dist/lib/src/comps/order-price.d.ts +7 -2
  28. package/dist/lib/src/comps/product-discounts.d.ts +6 -0
  29. package/dist/lib/src/comps/quick-search-browser.d.ts +9 -0
  30. package/dist/lib/src/comps/resource-view.d.ts +10 -0
  31. package/dist/lib/src/comps/select-resource.d.ts +15 -0
  32. package/dist/lib/src/comps/settings-change-password.d.ts +2 -0
  33. package/dist/lib/src/comps/table-schema-view.d.ts +30 -3
  34. package/dist/lib/src/comps/tags-edit.d.ts +1 -1
  35. package/dist/lib/src/comps/template-example-input.d.ts +1 -1
  36. package/dist/lib/src/comps/template-template.d.ts +1 -1
  37. package/dist/lib/src/comps/transition.d.ts +18 -0
  38. package/dist/lib/src/hooks/useCollectionsActions.d.ts +5 -5
  39. package/dist/lib/src/hooks/useDocumentActions.d.ts +6 -4
  40. package/dist/lib/src/hooks/useNavigateWithState.d.ts +9 -0
  41. package/dist/lib/src/pages/index.d.ts +4 -1
  42. package/dist/lib/src/pages/order.d.ts +9 -3
  43. package/dist/website/assets/{index-BzxD23gt.js → index-C7Q7dM9P.js} +372 -372
  44. package/dist/website/assets/style-CWN3iS8N.css +1 -0
  45. package/dist/website/index.html +2 -2
  46. package/dist/website/localhost_3000_logo.png +0 -0
  47. package/package.json +1 -1
  48. 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
- Effectively, two build targets:
6
- 1. A website, with configurable backend endpoint
7
- 2. A `library` with
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