@xeplr/cli 0.3.7 → 0.3.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/package.json
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@xeplr/auth": "^1.3.0",
|
|
21
21
|
"@xeplr/base-apis": "^2.0.0",
|
|
22
22
|
"@xeplr/db": "^1.1.0",
|
|
23
|
-
"@xeplr/factory": "^3.0.
|
|
24
|
-
"@xeplr/ui-factory": "^1.8.
|
|
23
|
+
"@xeplr/factory": "^3.0.2",
|
|
24
|
+
"@xeplr/ui-factory": "^1.8.6",
|
|
25
25
|
"@xeplr/utils": "^1.0.11",
|
|
26
26
|
"dotenv": "^17.4.2",
|
|
27
27
|
"express": "^5.2.0",
|
package/templates/ui/README.md
CHANGED
|
@@ -16,7 +16,7 @@ npm run build # → dist/
|
|
|
16
16
|
| `src/main.jsx` | `ThemeProvider` (required — the theme's colours exist only inside it) and `AccessProvider` |
|
|
17
17
|
| `src/App.jsx` | routes, the side rail (`drawerItems`) and the settings menu (`settingsOverrides`) — **by key**, never by label |
|
|
18
18
|
| `src/menu.js` | every menu key this app uses; forms added to the menu are `form:<key>` |
|
|
19
|
-
| `src/api/factory.js` | the calls to the API's forms routes |
|
|
19
|
+
| `src/api/factory.js` | the calls to the API's forms routes — with `authFetchFile`, so a form's stored pictures show as thumbnails |
|
|
20
20
|
| `src/pages/Tasks.jsx` | the sample list. It opens records on a **page** (`onOpenRecord` → `/tasks/new`, `/tasks/:id`), and `EditTask.jsx` is that page — it also holds the task form's **front-end hooks** (`TaskHooks extends FactoryHooks` — every method calls `super`, including `step`, run before a stepper moves) and sends **Done** back to the list |
|
|
21
21
|
| `src/pages/ConfigureUI.jsx` | Configure UI (Super Admin): `Forms.jsx` and `MenuSettings.jsx` tabs; `FormDesigner.jsx` designs one form |
|
|
22
22
|
| `src/pages/FormRecords.jsx` | opens any published form — what a form added to the menu links to |
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@tanstack/react-table": "^8.21.3",
|
|
15
|
-
"@xeplr/ui-account": "^1.4.
|
|
15
|
+
"@xeplr/ui-account": "^1.4.3",
|
|
16
16
|
"@xeplr/ui-canvas": "^1.1.0",
|
|
17
|
-
"@xeplr/ui-factory": "^1.8.
|
|
17
|
+
"@xeplr/ui-factory": "^1.8.6",
|
|
18
18
|
"@xeplr/ui-table": "^1.1.3",
|
|
19
19
|
"react": "^19.2.4",
|
|
20
20
|
"react-dom": "^19.2.4",
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
//
|
|
4
4
|
// authFetch attaches the signed-in user's token (and the active company, when
|
|
5
5
|
// the app has tenancy) and returns the PARSED body. createFactoryApi accepts
|
|
6
|
-
// it as it is.
|
|
7
|
-
|
|
6
|
+
// it as it is. authFetchFile is the same request returning the file's bytes:
|
|
7
|
+
// how a form's stored pictures show as thumbnails.
|
|
8
|
+
import { authFetch, authFetchFile } from '@xeplr/ui-account'
|
|
8
9
|
import { createFactoryApi } from '@xeplr/ui-factory'
|
|
9
10
|
|
|
10
|
-
export const factory = createFactoryApi({ fetch: authFetch, base: '/api' })
|
|
11
|
+
export const factory = createFactoryApi({ fetch: authFetch, fetchFile: authFetchFile, base: '/api' })
|