@nubitio/core 0.10.0 → 0.11.1
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 +10 -14
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,11 +24,7 @@ import { CoreProvider } from '@nubitio/core';
|
|
|
24
24
|
|
|
25
25
|
export function App() {
|
|
26
26
|
return (
|
|
27
|
-
<CoreProvider
|
|
28
|
-
apiBaseUrl="https://api.example.com"
|
|
29
|
-
timezone="UTC"
|
|
30
|
-
locale="en"
|
|
31
|
-
>
|
|
27
|
+
<CoreProvider apiBaseUrl="https://api.example.com" timezone="UTC" locale="en">
|
|
32
28
|
{/* your app */}
|
|
33
29
|
</CoreProvider>
|
|
34
30
|
);
|
|
@@ -102,12 +98,12 @@ See `CoreHttpClientConfig` for all options.
|
|
|
102
98
|
|
|
103
99
|
## Key exports
|
|
104
100
|
|
|
105
|
-
| Export
|
|
106
|
-
|
|
107
|
-
| `CoreProvider`
|
|
108
|
-
| `CoreHttpClient`
|
|
109
|
-
| `dispatch` / `useEvents`
|
|
110
|
-
| `createCrudEvents`
|
|
111
|
-
| `MercureProvider`
|
|
112
|
-
| `DateUtils`
|
|
113
|
-
| `coreTranslationsEs` / `coreTranslationsEn` | Built-in translations for Spanish and English
|
|
101
|
+
| Export | Description |
|
|
102
|
+
| ------------------------------------------- | ----------------------------------------------------------------------- |
|
|
103
|
+
| `CoreProvider` | Root provider — wraps HTTP, i18n, React Query, and runtime config |
|
|
104
|
+
| `CoreHttpClient` | Type-safe HTTP client with error normalisation + pluggable auth refresh |
|
|
105
|
+
| `dispatch` / `useEvents` | Lightweight event bus for cross-component communication |
|
|
106
|
+
| `createCrudEvents` | Factory for typed CRUD event sets |
|
|
107
|
+
| `MercureProvider` | Real-time SSE integration via Mercure hub |
|
|
108
|
+
| `DateUtils` | Timezone-aware date formatting powered by Luxon |
|
|
109
|
+
| `coreTranslationsEs` / `coreTranslationsEn` | Built-in translations for Spanish and English |
|
package/dist/index.cjs
CHANGED
|
@@ -326,6 +326,8 @@ const coreTranslationsEs = {
|
|
|
326
326
|
"grid.buttonRefresh": "Actualizar",
|
|
327
327
|
"grid.buttonActions": "Acciones",
|
|
328
328
|
"grid.buttonView": "Ver",
|
|
329
|
+
"grid.buttonExport": "Exportar",
|
|
330
|
+
"grid.exportError": "No se pudo exportar. Intenta de nuevo.",
|
|
329
331
|
"grid.rowsPerPage": "Filas por página",
|
|
330
332
|
"grid.recordRange": "{{start}}-{{end}} de {{total}} registros",
|
|
331
333
|
"grid.noRecordCount": "0 registros",
|
|
@@ -465,6 +467,8 @@ const coreTranslationsEn = {
|
|
|
465
467
|
"grid.buttonRefresh": "Refresh",
|
|
466
468
|
"grid.buttonActions": "Actions",
|
|
467
469
|
"grid.buttonView": "View",
|
|
470
|
+
"grid.buttonExport": "Export",
|
|
471
|
+
"grid.exportError": "Couldn't export. Try again.",
|
|
468
472
|
"grid.rowsPerPage": "Rows per page",
|
|
469
473
|
"grid.recordRange": "{{start}}-{{end}} of {{total}} records",
|
|
470
474
|
"grid.noRecordCount": "0 records",
|
package/dist/index.d.cts
CHANGED
|
@@ -240,6 +240,8 @@ interface CoreTranslationKeys {
|
|
|
240
240
|
'grid.buttonRefresh': string;
|
|
241
241
|
'grid.buttonActions': string;
|
|
242
242
|
'grid.buttonView': string;
|
|
243
|
+
'grid.buttonExport': string;
|
|
244
|
+
'grid.exportError': string;
|
|
243
245
|
'grid.rowsPerPage': string;
|
|
244
246
|
'grid.recordRange': string;
|
|
245
247
|
'grid.noRecordCount': string;
|
package/dist/index.d.mts
CHANGED
|
@@ -240,6 +240,8 @@ interface CoreTranslationKeys {
|
|
|
240
240
|
'grid.buttonRefresh': string;
|
|
241
241
|
'grid.buttonActions': string;
|
|
242
242
|
'grid.buttonView': string;
|
|
243
|
+
'grid.buttonExport': string;
|
|
244
|
+
'grid.exportError': string;
|
|
243
245
|
'grid.rowsPerPage': string;
|
|
244
246
|
'grid.recordRange': string;
|
|
245
247
|
'grid.noRecordCount': string;
|
package/dist/index.mjs
CHANGED
|
@@ -301,6 +301,8 @@ const coreTranslationsEs = {
|
|
|
301
301
|
"grid.buttonRefresh": "Actualizar",
|
|
302
302
|
"grid.buttonActions": "Acciones",
|
|
303
303
|
"grid.buttonView": "Ver",
|
|
304
|
+
"grid.buttonExport": "Exportar",
|
|
305
|
+
"grid.exportError": "No se pudo exportar. Intenta de nuevo.",
|
|
304
306
|
"grid.rowsPerPage": "Filas por página",
|
|
305
307
|
"grid.recordRange": "{{start}}-{{end}} de {{total}} registros",
|
|
306
308
|
"grid.noRecordCount": "0 registros",
|
|
@@ -440,6 +442,8 @@ const coreTranslationsEn = {
|
|
|
440
442
|
"grid.buttonRefresh": "Refresh",
|
|
441
443
|
"grid.buttonActions": "Actions",
|
|
442
444
|
"grid.buttonView": "View",
|
|
445
|
+
"grid.buttonExport": "Export",
|
|
446
|
+
"grid.exportError": "Couldn't export. Try again.",
|
|
443
447
|
"grid.rowsPerPage": "Rows per page",
|
|
444
448
|
"grid.recordRange": "{{start}}-{{end}} of {{total}} records",
|
|
445
449
|
"grid.noRecordCount": "0 records",
|
package/package.json
CHANGED