@rebasepro/app 0.16.0 → 0.16.1-canary.g2d1aec8
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/dist/auth/index.d.ts +4 -4
- package/dist/auth/types.d.ts +1 -1
- package/dist/auth/useRebaseAuthController.d.ts +1 -1
- package/dist/collections/index.d.ts +13 -13
- package/dist/components/Debug/collection-views/index.d.ts +3 -3
- package/dist/components/LoginView/index.d.ts +2 -2
- package/dist/components/common/index.d.ts +6 -6
- package/dist/components/common/useDataTableController.d.ts +1 -1
- package/dist/components/index.d.ts +18 -18
- package/dist/contexts/AdminModeController.d.ts +1 -1
- package/dist/contexts/ModeController.d.ts +1 -1
- package/dist/contexts/index.d.ts +18 -18
- package/dist/core/Rebase.d.ts +1 -1
- package/dist/core/index.d.ts +4 -4
- package/dist/hooks/index.d.ts +36 -36
- package/dist/hooks/useBridgeRegistration.d.ts +1 -1
- package/dist/hooks/useBuildAdminModeController.d.ts +1 -1
- package/dist/hooks/useBuildModeController.d.ts +1 -1
- package/dist/hooks/useUnsavedChangesDialog.d.ts +1 -1
- package/dist/index.d.ts +19 -19
- package/dist/index.es.js +20 -8
- package/dist/index.es.js.map +1 -1
- package/dist/util/index.d.ts +8 -8
- package/package.json +8 -8
- package/src/components/common/useDataTableController.tsx +20 -1
- package/src/locales/de.ts +0 -1
- package/src/locales/en.ts +0 -1
- package/src/locales/es.ts +0 -1
- package/src/locales/fr.ts +0 -1
- package/src/locales/hi.ts +0 -1
- package/src/locales/it.ts +0 -1
- package/src/locales/pt.ts +0 -1
package/dist/util/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./icon_list";
|
|
2
|
-
export * from "./icons";
|
|
3
|
-
export * from "./createFormexStub";
|
|
4
|
-
export * from "./entity_cache";
|
|
5
|
-
export * from "./useStorageUploadController";
|
|
6
|
-
export * from "./previews";
|
|
7
|
-
export * from "./enums";
|
|
8
|
-
export * from "./constants";
|
|
1
|
+
export * from "./icon_list.js";
|
|
2
|
+
export * from "./icons.js";
|
|
3
|
+
export * from "./createFormexStub.js";
|
|
4
|
+
export * from "./entity_cache.js";
|
|
5
|
+
export * from "./useStorageUploadController.js";
|
|
6
|
+
export * from "./previews.js";
|
|
7
|
+
export * from "./enums.js";
|
|
8
|
+
export * from "./constants.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.1-canary.g2d1aec8",
|
|
5
5
|
"description": "Rebase core — framework-agnostic runtime for data-driven admin panels",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/rebaseco"
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"magic-string": "^0.30.0",
|
|
53
53
|
"notistack": "^3.0.2",
|
|
54
54
|
"react-i18next": "^17.0.11",
|
|
55
|
-
"@rebasepro/admin-types": "0.16.
|
|
56
|
-
"@rebasepro/
|
|
57
|
-
"@rebasepro/
|
|
58
|
-
"@rebasepro/types": "0.16.
|
|
59
|
-
"@rebasepro/
|
|
60
|
-
"@rebasepro/
|
|
55
|
+
"@rebasepro/admin-types": "0.16.1-canary.g2d1aec8",
|
|
56
|
+
"@rebasepro/common": "0.16.1-canary.g2d1aec8",
|
|
57
|
+
"@rebasepro/forms": "0.16.1-canary.g2d1aec8",
|
|
58
|
+
"@rebasepro/types": "0.16.1-canary.g2d1aec8",
|
|
59
|
+
"@rebasepro/utils": "0.16.1-canary.g2d1aec8",
|
|
60
|
+
"@rebasepro/ui": "0.16.1-canary.g2d1aec8"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": ">=19.2.7",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
},
|
|
136
136
|
"scripts": {
|
|
137
137
|
"watch": "vite build --watch",
|
|
138
|
-
"build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json && pnpm exec esbuild src/vitePlugin.ts --platform=node --format=esm --outfile=dist/vitePlugin.js && node ../../scripts/assert-build-output.mjs",
|
|
138
|
+
"build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json && node ../../scripts/add-dts-extensions.mjs dist && pnpm exec esbuild src/vitePlugin.ts --platform=node --format=esm --outfile=dist/vitePlugin.js && node ../../scripts/assert-build-output.mjs",
|
|
139
139
|
"test:lint": "eslint \"src/**\" --quiet",
|
|
140
140
|
"test": "jest --passWithNoTests",
|
|
141
141
|
"clean": "rm -rf dist && find ./src \\( -name '*.js' -o -name '*.d.ts' \\) -type f | xargs rm -f",
|
|
@@ -210,7 +210,26 @@ export function useDataTableController<M extends Record<string, any> = any, USER
|
|
|
210
210
|
const [dataLoadingError, setDataLoadingError] = useState<Error | undefined>();
|
|
211
211
|
const [noMoreToLoad, setNoMoreToLoad] = useState<boolean>(false);
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
/**
|
|
214
|
+
* Clear the user's filters. `fixedFilter` survives — it is the collection
|
|
215
|
+
* forcing a scope, not something the user chose — but `defaultFilter` does
|
|
216
|
+
* not: a default is where the view *opens*, not a floor it can never go
|
|
217
|
+
* below.
|
|
218
|
+
*
|
|
219
|
+
* It used to reset to `defaultFilter`, which made "clear" unable to clear
|
|
220
|
+
* whenever a collection defined one, and every caller here wanted the
|
|
221
|
+
* opposite. `ClearFilterSortButton` is labelled "clear filter" and left one
|
|
222
|
+
* set. `EditorCollectionActionStart` calls this and then re-applies
|
|
223
|
+
* `collection.defaultFilter` on the next line — redundant under the old
|
|
224
|
+
* behaviour, and the clearest statement of what it expected.
|
|
225
|
+
* `FilterPresetsButton` documents "clearing all filters deactivates all
|
|
226
|
+
* chips", which was false: it derives a chip's active state from the
|
|
227
|
+
* filters, so a preset whose values equalled `defaultFilter` switched
|
|
228
|
+
* itself straight back on. That chip could not be turned off at all — click
|
|
229
|
+
* it, the keys are removed, the filter resets to the identical default, and
|
|
230
|
+
* the chip lights up again.
|
|
231
|
+
*/
|
|
232
|
+
const clearFilter = useCallback(() => setFilterValues(fixedFilter ?? undefined), [fixedFilter]);
|
|
214
233
|
|
|
215
234
|
const updateFilterValues = useCallback((updatedFilter: FilterValues<Extract<keyof M, string> | (string & {})> | undefined) => {
|
|
216
235
|
if (fixedFilter) {
|
package/src/locales/de.ts
CHANGED
|
@@ -523,7 +523,6 @@ export const de: RebaseTranslations = {
|
|
|
523
523
|
add_your: "Fügen Sie Ihre",
|
|
524
524
|
database_collections: "Datenbanksammlungen",
|
|
525
525
|
no_unmapped_collections: "Keine nicht zugeordneten Sammlungen",
|
|
526
|
-
query_and_update_with_datatalk: "Fragen Sie Ihre Daten in natürlicher Sprache ab und aktualisieren Sie sie mit DATATALK",
|
|
527
526
|
welcome_to_rebase: "Willkommen bei Rebase",
|
|
528
527
|
admin_panel_ready_bring_data: "Ihr Admin-Panel ist bereit. Bringen Sie Ihre Daten ein.",
|
|
529
528
|
admin_panel_ready_get_started: "Ihr Admin-Panel ist bereit. So können Sie loslegen.",
|
package/src/locales/en.ts
CHANGED
|
@@ -637,7 +637,6 @@ export const en: RebaseTranslations = {
|
|
|
637
637
|
add_your: "Add your",
|
|
638
638
|
database_collections: "database collections",
|
|
639
639
|
no_unmapped_collections: "No unmapped collections in the database",
|
|
640
|
-
query_and_update_with_datatalk: "Query and update your data in natural language with",
|
|
641
640
|
|
|
642
641
|
welcome_to_rebase: "Welcome to Rebase Cloud",
|
|
643
642
|
admin_panel_ready_bring_data: "Your admin panel is ready. Let's bring in your data.",
|
package/src/locales/es.ts
CHANGED
|
@@ -533,7 +533,6 @@ export const es: RebaseTranslations = {
|
|
|
533
533
|
add_your: "Añade tus",
|
|
534
534
|
database_collections: "colecciones de base de datos",
|
|
535
535
|
no_unmapped_collections: "No hay colecciones sin mapear en la base de datos",
|
|
536
|
-
query_and_update_with_datatalk: "Consulta y actualiza tus datos en lenguaje natural con",
|
|
537
536
|
|
|
538
537
|
welcome_to_rebase: "Bienvenido a Rebase Cloud",
|
|
539
538
|
admin_panel_ready_bring_data: "Tu panel de administración está listo. Traigamos tus datos.",
|
package/src/locales/fr.ts
CHANGED
|
@@ -523,7 +523,6 @@ export const fr: RebaseTranslations = {
|
|
|
523
523
|
add_your: "Ajoutez vos",
|
|
524
524
|
database_collections: "collections de base de données",
|
|
525
525
|
no_unmapped_collections: "Aucune collection non mappée",
|
|
526
|
-
query_and_update_with_datatalk: "Interrogez et mettez à jour vos données en langage naturel avec",
|
|
527
526
|
welcome_to_rebase: "Bienvenue sur Rebase Cloud",
|
|
528
527
|
admin_panel_ready_bring_data: "Votre panneau d'administration est prêt. Ajoutons vos données.",
|
|
529
528
|
admin_panel_ready_get_started: "Votre panneau d'administration est prêt. Voici comment démarrer.",
|
package/src/locales/hi.ts
CHANGED
|
@@ -523,7 +523,6 @@ export const hi: RebaseTranslations = {
|
|
|
523
523
|
add_your: "अपने",
|
|
524
524
|
database_collections: "डेटाबेस संग्रह",
|
|
525
525
|
no_unmapped_collections: "कोई असंबद्ध संग्रह नहीं",
|
|
526
|
-
query_and_update_with_datatalk: "DATATALK के साथ प्राकृतिक भाषा में अपना डेटा क्वेरी और अपडेट करें",
|
|
527
526
|
welcome_to_rebase: "Rebase में आपका स्वागत है",
|
|
528
527
|
admin_panel_ready_bring_data: "आपका पैनल तैयार है। अपना डेटा जोड़कर शुरू करें।",
|
|
529
528
|
admin_panel_ready_get_started: "शुरू करें",
|
package/src/locales/it.ts
CHANGED
|
@@ -523,7 +523,6 @@ export const it: RebaseTranslations = {
|
|
|
523
523
|
add_your: "Aggiungi le tue",
|
|
524
524
|
database_collections: "collezioni del database",
|
|
525
525
|
no_unmapped_collections: "Nessuna collezione non mappata",
|
|
526
|
-
query_and_update_with_datatalk: "Interroga e aggiorna i tuoi dati in linguaggio naturale con DATATALK",
|
|
527
526
|
welcome_to_rebase: "Benvenuto in Rebase Cloud",
|
|
528
527
|
admin_panel_ready_bring_data: "Il tuo pannello è pronto. Inizia aggiungendo i tuoi dati.",
|
|
529
528
|
admin_panel_ready_get_started: "Il tuo pannello è pronto. Ecco come iniziare.",
|
package/src/locales/pt.ts
CHANGED
|
@@ -530,7 +530,6 @@ export const pt: RebaseTranslations = {
|
|
|
530
530
|
add_your: "Adicione as suas",
|
|
531
531
|
database_collections: "coleções da base de dados",
|
|
532
532
|
no_unmapped_collections: "Sem coleções não mapeadas na base de dados",
|
|
533
|
-
query_and_update_with_datatalk: "Consulte e atualize os seus dados em linguagem natural com",
|
|
534
533
|
|
|
535
534
|
welcome_to_rebase: "Bem-vindo ao Rebase Cloud",
|
|
536
535
|
admin_panel_ready_bring_data: "O seu painel de administração está pronto. Vamos importar os seus dados.",
|