@rebasepro/client-postgresql 0.0.1-canary.4d4fb3e → 0.0.1-canary.ca2cb6e
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/client/src/admin.d.ts +94 -0
- package/dist/client/src/auth.d.ts +161 -0
- package/dist/client/src/collection.d.ts +19 -0
- package/dist/client/src/cron.d.ts +25 -0
- package/dist/client/src/index.d.ts +42 -0
- package/dist/client/src/query_builder.d.ts +53 -0
- package/dist/client/src/reviver.d.ts +1 -0
- package/dist/client/src/storage.d.ts +3 -0
- package/dist/client/src/transport.d.ts +33 -0
- package/dist/client/src/websocket.d.ts +99 -0
- package/dist/index.es.js +28 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -17
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/controllers/auth.d.ts +2 -0
- package/dist/types/src/controllers/client.d.ts +119 -7
- package/dist/types/src/controllers/collection_registry.d.ts +4 -3
- package/dist/types/src/controllers/customization_controller.d.ts +7 -1
- package/dist/types/src/controllers/data.d.ts +34 -7
- package/dist/types/src/controllers/data_driver.d.ts +20 -28
- package/dist/types/src/controllers/database_admin.d.ts +2 -2
- package/dist/types/src/controllers/email.d.ts +34 -0
- package/dist/types/src/controllers/index.d.ts +1 -0
- package/dist/types/src/controllers/local_config_persistence.d.ts +4 -4
- package/dist/types/src/controllers/navigation.d.ts +5 -5
- package/dist/types/src/controllers/registry.d.ts +6 -3
- package/dist/types/src/controllers/side_entity_controller.d.ts +7 -6
- package/dist/types/src/controllers/storage.d.ts +24 -26
- package/dist/types/src/rebase_context.d.ts +8 -4
- package/dist/types/src/types/backend.d.ts +4 -1
- package/dist/types/src/types/builders.d.ts +5 -4
- package/dist/types/src/types/chips.d.ts +1 -1
- package/dist/types/src/types/collections.d.ts +169 -125
- package/dist/types/src/types/cron.d.ts +102 -0
- package/dist/types/src/types/data_source.d.ts +1 -1
- package/dist/types/src/types/entity_actions.d.ts +8 -8
- package/dist/types/src/types/entity_callbacks.d.ts +15 -15
- package/dist/types/src/types/entity_link_builder.d.ts +1 -1
- package/dist/types/src/types/entity_overrides.d.ts +2 -1
- package/dist/types/src/types/entity_views.d.ts +8 -8
- package/dist/types/src/types/export_import.d.ts +3 -3
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/plugins.d.ts +72 -18
- package/dist/types/src/types/properties.d.ts +118 -33
- package/dist/types/src/types/relations.d.ts +1 -1
- package/dist/types/src/types/slots.d.ts +30 -6
- package/dist/types/src/types/translations.d.ts +44 -0
- package/dist/types/src/types/user_management_delegate.d.ts +1 -0
- package/package.json +83 -86
- package/src/usePostgresClientDriver.ts +57 -29
- package/tsconfig.json +1 -0
- package/vite.config.ts +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { EntityReference, EntityRelation, EntityValues, GeoPoint, Entity } from "./entities";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { EntityAfterReadProps, EntityBeforeSaveProps } from "./entity_callbacks";
|
|
8
|
-
import { User } from "../users";
|
|
2
|
+
import type { EntityReference, EntityRelation, EntityValues, GeoPoint, Entity } from "./entities";
|
|
3
|
+
import type { Relation, JoinStep, OnAction } from "./relations";
|
|
4
|
+
import type { EntityCollection, FilterValues } from "./collections";
|
|
5
|
+
import type { ColorKey, ColorScheme } from "./chips";
|
|
6
|
+
import type { AuthController } from "../controllers/auth";
|
|
7
|
+
import type { EntityAfterReadProps, EntityBeforeSaveProps } from "./entity_callbacks";
|
|
8
|
+
import type { User } from "../users";
|
|
9
9
|
/**
|
|
10
10
|
* Callbacks/Hooks for individual property fields
|
|
11
11
|
* @group Entity properties
|
|
@@ -14,7 +14,7 @@ export type PropertyCallbacks<T = unknown, M extends Record<string, unknown> = R
|
|
|
14
14
|
/**
|
|
15
15
|
* Callback used after fetching data, to transform the value before rendering
|
|
16
16
|
*/
|
|
17
|
-
afterRead?(props: Omit<EntityAfterReadProps<M, USER>,
|
|
17
|
+
afterRead?(props: Omit<EntityAfterReadProps<M, USER>, "entity"> & {
|
|
18
18
|
value: T;
|
|
19
19
|
entity: Entity<M> | undefined;
|
|
20
20
|
}): Promise<T> | T;
|
|
@@ -22,7 +22,7 @@ export type PropertyCallbacks<T = unknown, M extends Record<string, unknown> = R
|
|
|
22
22
|
* Callback used before saving, after validation.
|
|
23
23
|
* You can modify the value before it's saved.
|
|
24
24
|
*/
|
|
25
|
-
beforeSave?(props: Omit<EntityBeforeSaveProps<M, USER>,
|
|
25
|
+
beforeSave?(props: Omit<EntityBeforeSaveProps<M, USER>, "values"> & {
|
|
26
26
|
value: T;
|
|
27
27
|
previousValue: T | undefined;
|
|
28
28
|
values: Partial<M>;
|
|
@@ -41,30 +41,49 @@ export type Properties = {
|
|
|
41
41
|
* This is the core of the type inference system.
|
|
42
42
|
*/
|
|
43
43
|
export type InferPropertyType<P extends Property> = P extends StringProperty ? string : P extends NumberProperty ? number : P extends BooleanProperty ? boolean : P extends DateProperty ? Date : P extends GeopointProperty ? GeoPoint : P extends ReferenceProperty ? EntityReference : P extends RelationProperty ? EntityRelation | EntityRelation[] : P extends ArrayProperty ? (P["of"] extends Property ? InferPropertyType<P["of"]>[] : unknown[]) : P extends MapProperty ? (P["properties"] extends Properties ? InferEntityType<P["properties"]> : Record<string, unknown>) : never;
|
|
44
|
+
/**
|
|
45
|
+
* Helper type that determines whether a property is required.
|
|
46
|
+
* Uses direct structural matching against `{ validation: { required: true } }`
|
|
47
|
+
* (without the optional marker on `validation`), which correctly narrows
|
|
48
|
+
* literal `true` while treating widened `boolean` as not-required.
|
|
49
|
+
*/
|
|
50
|
+
type IsRequired<P extends Property> = P extends {
|
|
51
|
+
validation: {
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
} ? true : false;
|
|
55
|
+
/**
|
|
56
|
+
* Extract keys from Properties where the property is required.
|
|
57
|
+
*/
|
|
58
|
+
type RequiredPropertyKeys<P extends Properties> = {
|
|
59
|
+
[K in keyof P]: IsRequired<P[K]> extends true ? K : never;
|
|
60
|
+
}[keyof P];
|
|
61
|
+
/**
|
|
62
|
+
* Extract keys from Properties where the property is optional.
|
|
63
|
+
*/
|
|
64
|
+
type OptionalPropertyKeys<P extends Properties> = {
|
|
65
|
+
[K in keyof P]: IsRequired<P[K]> extends true ? never : K;
|
|
66
|
+
}[keyof P];
|
|
44
67
|
/**
|
|
45
68
|
* A generic type that converts a `Properties` schema definition into a corresponding
|
|
46
69
|
* TypeScript entity type. It correctly handles required and optional properties.
|
|
47
70
|
*
|
|
71
|
+
* A property is considered required when it has `validation: { required: true }`.
|
|
72
|
+
* The `true` must be a literal type — if `required` is typed as `boolean`,
|
|
73
|
+
* the property will be treated as optional (use `as const` for literal inference).
|
|
74
|
+
*
|
|
48
75
|
* @example
|
|
49
76
|
* const productSchema = {
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* };
|
|
77
|
+
* name: { type: 'string', validation: { required: true } },
|
|
78
|
+
* price: { type: 'number' }
|
|
79
|
+
* } as const satisfies Properties;
|
|
53
80
|
* type Product = InferEntityType<typeof productSchema>;
|
|
54
81
|
* // Result: { name: string; price?: number; }
|
|
55
82
|
*/
|
|
56
83
|
export type InferEntityType<P extends Properties> = {
|
|
57
|
-
-readonly [K in
|
|
58
|
-
validation?: {
|
|
59
|
-
required: true;
|
|
60
|
-
};
|
|
61
|
-
} ? K : never]: InferPropertyType<P[K]>;
|
|
84
|
+
-readonly [K in RequiredPropertyKeys<P>]: InferPropertyType<P[K]>;
|
|
62
85
|
} & {
|
|
63
|
-
-readonly [K in
|
|
64
|
-
validation?: {
|
|
65
|
-
required: true;
|
|
66
|
-
};
|
|
67
|
-
} ? never : K]?: InferPropertyType<P[K]>;
|
|
86
|
+
-readonly [K in OptionalPropertyKeys<P>]?: InferPropertyType<P[K]>;
|
|
68
87
|
};
|
|
69
88
|
/**
|
|
70
89
|
* Interface including all common properties of a CMS property.
|
|
@@ -396,14 +415,79 @@ export interface RelationProperty extends BaseProperty {
|
|
|
396
415
|
*/
|
|
397
416
|
isId?: boolean;
|
|
398
417
|
/**
|
|
399
|
-
* The
|
|
400
|
-
*
|
|
401
|
-
*
|
|
418
|
+
* The target collection this relation points to.
|
|
419
|
+
* When set, the framework treats this property as a self-contained relation
|
|
420
|
+
* definition and no separate `relations[]` entry is needed.
|
|
421
|
+
*/
|
|
422
|
+
target?: () => EntityCollection;
|
|
423
|
+
/**
|
|
424
|
+
* Whether this property references one or many records.
|
|
425
|
+
* Defaults to `"one"`.
|
|
426
|
+
*/
|
|
427
|
+
cardinality?: "one" | "many";
|
|
428
|
+
/**
|
|
429
|
+
* Which side owns the persistence for this relationship.
|
|
430
|
+
* - `"owning"`: The foreign key (for one-to-one) or junction table (for many-to-many) is on this collection.
|
|
431
|
+
* - `"inverse"`: The foreign key is on the target collection's table.
|
|
432
|
+
* Defaults to `"owning"`.
|
|
433
|
+
*/
|
|
434
|
+
direction?: "owning" | "inverse";
|
|
435
|
+
/**
|
|
436
|
+
* The name of the corresponding relation on the target collection.
|
|
437
|
+
* Used for inverse relations to locate the owning side.
|
|
438
|
+
*/
|
|
439
|
+
inverseRelationName?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Column on THIS table that stores the foreign key to the target.
|
|
442
|
+
* Required when `direction` is `"owning"` and `cardinality` is `"one"`.
|
|
443
|
+
* Auto-inferred if not set.
|
|
444
|
+
* @example "author_id"
|
|
445
|
+
*/
|
|
446
|
+
localKey?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Column on the TARGET table that stores the foreign key back to this entity.
|
|
449
|
+
* Required when `direction` is `"inverse"`.
|
|
450
|
+
* Auto-inferred if not set.
|
|
451
|
+
* @example "post_id"
|
|
452
|
+
*/
|
|
453
|
+
foreignKeyOnTarget?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Junction table configuration for many-to-many relationships.
|
|
456
|
+
* Required when `cardinality` is `"many"` and `direction` is `"owning"`.
|
|
457
|
+
* Auto-inferred if not set.
|
|
458
|
+
*/
|
|
459
|
+
through?: {
|
|
460
|
+
table: string;
|
|
461
|
+
sourceColumn: string;
|
|
462
|
+
targetColumn: string;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Explicit, ordered join path for advanced multi-hop relations.
|
|
466
|
+
* When set, overrides `localKey`, `foreignKeyOnTarget`, and `through`.
|
|
467
|
+
*/
|
|
468
|
+
joinPath?: JoinStep[];
|
|
469
|
+
/**
|
|
470
|
+
* Cascade action on update.
|
|
471
|
+
*/
|
|
472
|
+
onUpdate?: OnAction;
|
|
473
|
+
/**
|
|
474
|
+
* Cascade action on delete.
|
|
475
|
+
*/
|
|
476
|
+
onDelete?: OnAction;
|
|
477
|
+
/**
|
|
478
|
+
* Overrides applied to the target collection when rendered as a subcollection tab.
|
|
479
|
+
*/
|
|
480
|
+
overrides?: Partial<EntityCollection>;
|
|
481
|
+
/**
|
|
482
|
+
* Optional name for this relation. Defaults to the property key at runtime.
|
|
483
|
+
* Only needed when the relation name should differ from the property key,
|
|
484
|
+
* or for backward compatibility with existing `relations[]` entries.
|
|
402
485
|
*/
|
|
403
|
-
relationName
|
|
486
|
+
relationName?: string;
|
|
404
487
|
/**
|
|
405
|
-
* The resolved relation object.
|
|
406
|
-
*
|
|
488
|
+
* The resolved relation object, populated by the framework at normalization time.
|
|
489
|
+
* **Do not set manually** — it is computed from the inline fields above
|
|
490
|
+
* or looked up from the collection's `relations[]` array.
|
|
407
491
|
*/
|
|
408
492
|
relation?: Relation;
|
|
409
493
|
/**
|
|
@@ -765,7 +849,7 @@ export type StorageConfig = {
|
|
|
765
849
|
* When set to true, this flag indicates that the bucket name will be
|
|
766
850
|
* included in the saved storage path.
|
|
767
851
|
*
|
|
768
|
-
* E.g. `
|
|
852
|
+
* E.g. `s3://my-bucket/path/to/file.png` instead of just `path/to/file.png`
|
|
769
853
|
*
|
|
770
854
|
* Defaults to false.
|
|
771
855
|
*/
|
|
@@ -860,7 +944,7 @@ export interface ImageResize {
|
|
|
860
944
|
* - `contain`: Scale down to fit within bounds, preserving aspect ratio (default)
|
|
861
945
|
* - `cover`: Scale to fill bounds, preserving aspect ratio (may crop)
|
|
862
946
|
*/
|
|
863
|
-
mode?:
|
|
947
|
+
mode?: "contain" | "cover";
|
|
864
948
|
/**
|
|
865
949
|
* Output format for the resized image.
|
|
866
950
|
* - `original`: Keep the original format (default)
|
|
@@ -868,7 +952,7 @@ export interface ImageResize {
|
|
|
868
952
|
* - `png`: Convert to PNG
|
|
869
953
|
* - `webp`: Convert to WebP
|
|
870
954
|
*/
|
|
871
|
-
format?:
|
|
955
|
+
format?: "original" | "jpeg" | "png" | "webp";
|
|
872
956
|
/**
|
|
873
957
|
* Quality for lossy formats (JPEG, WebP). Number between 0 and 100.
|
|
874
958
|
* Higher is better quality but larger file size. Defaults to 80.
|
|
@@ -1048,11 +1132,11 @@ export interface ConditionContext {
|
|
|
1048
1132
|
* Current form/entity values.
|
|
1049
1133
|
* Date values are converted to Unix timestamps (milliseconds).
|
|
1050
1134
|
*/
|
|
1051
|
-
values: Record<string,
|
|
1135
|
+
values: Record<string, unknown>;
|
|
1052
1136
|
/**
|
|
1053
1137
|
* Previous values before the current edit session.
|
|
1054
1138
|
*/
|
|
1055
|
-
previousValues: Record<string,
|
|
1139
|
+
previousValues: Record<string, unknown>;
|
|
1056
1140
|
/**
|
|
1057
1141
|
* Current value of this property specifically.
|
|
1058
1142
|
*/
|
|
@@ -1089,3 +1173,4 @@ export interface ConditionContext {
|
|
|
1089
1173
|
*/
|
|
1090
1174
|
now: number;
|
|
1091
1175
|
}
|
|
1176
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CollectionActionsProps, EntityTableController, SelectionController, EntityCollection } from "./collections";
|
|
3
|
-
import { Entity } from "./entities";
|
|
4
|
-
import { PluginFormActionProps, PluginGenericProps, PluginHomePageActionsProps, PluginHomePageAdditionalCardsProps } from "./plugins";
|
|
5
|
-
import { Property } from "./properties";
|
|
6
|
-
import { RebaseContext } from "../rebase_context";
|
|
2
|
+
import type { CollectionActionsProps, EntityTableController, SelectionController, EntityCollection } from "./collections";
|
|
3
|
+
import type { Entity } from "./entities";
|
|
4
|
+
import type { PluginFormActionProps, PluginGenericProps, PluginHomePageActionsProps, PluginHomePageAdditionalCardsProps } from "./plugins";
|
|
5
|
+
import type { Property } from "./properties";
|
|
6
|
+
import type { RebaseContext } from "../rebase_context";
|
|
7
7
|
/**
|
|
8
8
|
* Registry mapping slot names to their component prop types.
|
|
9
9
|
* Each key represents a UI extension point in the CMS.
|
|
@@ -14,6 +14,8 @@ export interface SlotRegistry {
|
|
|
14
14
|
"home.cards": PluginHomePageAdditionalCardsProps;
|
|
15
15
|
"home.children.start": PluginGenericProps;
|
|
16
16
|
"home.children.end": PluginGenericProps;
|
|
17
|
+
/** Compact insight widget rendered inline in a home page collection card. */
|
|
18
|
+
"home.card.insight": HomeCardInsightSlotProps;
|
|
17
19
|
"home.collection.actions": PluginHomePageActionsProps;
|
|
18
20
|
/** Rendered below the logo in the sidebar drawer. */
|
|
19
21
|
"navigation.header": NavigationSlotProps;
|
|
@@ -28,6 +30,8 @@ export interface SlotRegistry {
|
|
|
28
30
|
"collection.toolbar": CollectionToolbarProps;
|
|
29
31
|
/** Custom empty-state component when a collection has no data. */
|
|
30
32
|
"collection.empty-state": CollectionEmptyStateProps;
|
|
33
|
+
/** Insight widgets rendered above the collection table. */
|
|
34
|
+
"collection.insights": CollectionInsightsSlotProps;
|
|
31
35
|
"form.actions": PluginFormActionProps;
|
|
32
36
|
"form.actions.top": PluginFormActionProps;
|
|
33
37
|
/** Rendered before the form title / field list. */
|
|
@@ -74,7 +78,7 @@ export interface SlotContribution<K extends SlotName = SlotName> {
|
|
|
74
78
|
/**
|
|
75
79
|
* Additional props to merge into the slot props before rendering.
|
|
76
80
|
*/
|
|
77
|
-
props?: Record<string,
|
|
81
|
+
props?: Record<string, unknown>;
|
|
78
82
|
/**
|
|
79
83
|
* Ordering hint. Lower values render first. Defaults to 50.
|
|
80
84
|
*/
|
|
@@ -226,3 +230,23 @@ export interface GlobalSearchProps {
|
|
|
226
230
|
export interface ShellToolbarProps {
|
|
227
231
|
context: RebaseContext;
|
|
228
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Props for `collection.insights` slot.
|
|
235
|
+
* Insight widgets rendered above the collection table.
|
|
236
|
+
* @group Plugins
|
|
237
|
+
*/
|
|
238
|
+
export interface CollectionInsightsSlotProps {
|
|
239
|
+
path: string;
|
|
240
|
+
collection: EntityCollection;
|
|
241
|
+
parentCollectionIds: string[];
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Props for `home.card.insight` slot.
|
|
245
|
+
* Compact insight rendered inline in a home page collection card.
|
|
246
|
+
* @group Plugins
|
|
247
|
+
*/
|
|
248
|
+
export interface HomeCardInsightSlotProps {
|
|
249
|
+
slug: string;
|
|
250
|
+
collection: EntityCollection;
|
|
251
|
+
context: RebaseContext;
|
|
252
|
+
}
|
|
@@ -44,6 +44,8 @@ export interface RebaseTranslations {
|
|
|
44
44
|
clear_filter: string;
|
|
45
45
|
clear_filter_sort: string;
|
|
46
46
|
clear_sort: string;
|
|
47
|
+
/** Reset all active filters */
|
|
48
|
+
clear_all: string;
|
|
47
49
|
no_items: string;
|
|
48
50
|
no_entries_found: string;
|
|
49
51
|
all_entries_loaded: string;
|
|
@@ -124,6 +126,20 @@ export interface RebaseTranslations {
|
|
|
124
126
|
/** Shown in unsaved-changes dialogs */
|
|
125
127
|
are_you_sure_leave: string;
|
|
126
128
|
passkey_error_unsupported: string;
|
|
129
|
+
/** Snackbar message after a successful save */
|
|
130
|
+
saved_correctly: string;
|
|
131
|
+
/** Snackbar title when a beforeSave callback throws */
|
|
132
|
+
error_before_saving: string;
|
|
133
|
+
/** Snackbar title when an afterSave callback throws */
|
|
134
|
+
error_after_saving: string;
|
|
135
|
+
/** Snackbar title when the save itself fails */
|
|
136
|
+
error_saving_entity: string;
|
|
137
|
+
/** Alert shown when the entity does not exist in the database */
|
|
138
|
+
entity_does_not_exist: string;
|
|
139
|
+
/** Tooltip when the form has unsaved modifications */
|
|
140
|
+
form_modified: string;
|
|
141
|
+
/** Tooltip when the form is in sync with the database */
|
|
142
|
+
form_in_sync: string;
|
|
127
143
|
admin: string;
|
|
128
144
|
home: string;
|
|
129
145
|
this_form_has_errors: string;
|
|
@@ -267,6 +283,8 @@ export interface RebaseTranslations {
|
|
|
267
283
|
any_of_these: string;
|
|
268
284
|
only_admins_edit_roles: string;
|
|
269
285
|
error_user_not_found: string;
|
|
286
|
+
/** Placeholder / label for the "all roles" filter option */
|
|
287
|
+
all_roles: string;
|
|
270
288
|
role: string;
|
|
271
289
|
name_of_this_role: string;
|
|
272
290
|
id_of_this_role: string;
|
|
@@ -373,6 +391,7 @@ export interface RebaseTranslations {
|
|
|
373
391
|
no_filterable_properties: string;
|
|
374
392
|
apply_filters: string;
|
|
375
393
|
list: string;
|
|
394
|
+
table_view_mode: string;
|
|
376
395
|
cards: string;
|
|
377
396
|
board: string;
|
|
378
397
|
initialize_kanban_order_desc: string;
|
|
@@ -380,6 +399,7 @@ export interface RebaseTranslations {
|
|
|
380
399
|
kanban_view_requires_enum: string;
|
|
381
400
|
no_enum_values_configured: string;
|
|
382
401
|
items_need_backfill: string;
|
|
402
|
+
kanban_order_not_configured: string;
|
|
383
403
|
initialize: string;
|
|
384
404
|
confirm_multiple_delete: string;
|
|
385
405
|
delete_entity_confirm_title: string;
|
|
@@ -823,4 +843,28 @@ export interface RebaseTranslations {
|
|
|
823
843
|
studio_kanban_configure?: string;
|
|
824
844
|
studio_missing_reference_error?: string;
|
|
825
845
|
studio_new_collection_add?: string;
|
|
846
|
+
db_column_type?: string;
|
|
847
|
+
primary_key_unique_id?: string;
|
|
848
|
+
spread_children_as_columns?: string;
|
|
849
|
+
mode?: string;
|
|
850
|
+
timezone?: string;
|
|
851
|
+
target_collection?: string;
|
|
852
|
+
storage_file_name?: string;
|
|
853
|
+
storage_path?: string;
|
|
854
|
+
storage_max_size?: string;
|
|
855
|
+
storage_resize_mode?: string;
|
|
856
|
+
storage_output_format?: string;
|
|
857
|
+
storage_max_width?: string;
|
|
858
|
+
storage_max_height?: string;
|
|
859
|
+
storage_quality?: string;
|
|
860
|
+
storage_file_upload_config?: string;
|
|
861
|
+
storage_image_resize_config?: string;
|
|
862
|
+
storage_all_file_types?: string;
|
|
863
|
+
storage_allowed_file_types?: string;
|
|
864
|
+
storage_include_bucket_url?: string;
|
|
865
|
+
storage_save_url?: string;
|
|
866
|
+
datetime_automatic_value?: string;
|
|
867
|
+
markdown_paste_behavior?: string;
|
|
868
|
+
markdown_strip_html?: string;
|
|
869
|
+
markdown_convert_pasted?: string;
|
|
826
870
|
}
|
package/package.json
CHANGED
|
@@ -1,90 +1,87 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "@rebasepro/client-postgresql",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.1-canary.ca2cb6e",
|
|
5
|
+
"description": "PostgreSQL data source client for Rebase",
|
|
6
|
+
"funding": {
|
|
7
|
+
"url": "https://github.com/sponsors/rebaseco"
|
|
8
|
+
},
|
|
9
|
+
"author": "Rebase",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/rebasepro/rebase.git",
|
|
14
|
+
"directory": "packages/client-postgresql"
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist/index.umd.js",
|
|
17
|
+
"module": "./dist/index.es.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"source": "src/index.ts",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=14"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"rebase",
|
|
25
|
+
"postgresql",
|
|
26
|
+
"database",
|
|
27
|
+
"client",
|
|
28
|
+
"typescript",
|
|
29
|
+
"admin"
|
|
30
|
+
],
|
|
31
|
+
"jest": {
|
|
32
|
+
"transform": {
|
|
33
|
+
"^.+\\.tsx?$": "ts-jest"
|
|
8
34
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"module": "./dist/index.es.js",
|
|
18
|
-
"types": "./dist/index.d.ts",
|
|
19
|
-
"source": "src/index.ts",
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=14"
|
|
22
|
-
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"firebase",
|
|
25
|
-
"cms",
|
|
26
|
-
"admin",
|
|
27
|
-
"admin panel",
|
|
28
|
-
"postgresql",
|
|
29
|
-
"database",
|
|
30
|
-
"rebase",
|
|
31
|
-
"client"
|
|
35
|
+
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
|
|
36
|
+
"moduleFileExtensions": [
|
|
37
|
+
"ts",
|
|
38
|
+
"tsx",
|
|
39
|
+
"js",
|
|
40
|
+
"jsx",
|
|
41
|
+
"json",
|
|
42
|
+
"node"
|
|
32
43
|
],
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"test:lint": "eslint \"src/**\" --quiet",
|
|
38
|
-
"test": "jest --passWithNoTests",
|
|
39
|
-
"clean": "rm -rf dist && find ./src -name '*.js' -type f | xargs rm -f"
|
|
40
|
-
},
|
|
41
|
-
"jest": {
|
|
42
|
-
"transform": {
|
|
43
|
-
"^.+\\.tsx?$": "ts-jest"
|
|
44
|
-
},
|
|
45
|
-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
|
|
46
|
-
"moduleFileExtensions": [
|
|
47
|
-
"ts",
|
|
48
|
-
"tsx",
|
|
49
|
-
"js",
|
|
50
|
-
"jsx",
|
|
51
|
-
"json",
|
|
52
|
-
"node"
|
|
53
|
-
],
|
|
54
|
-
"moduleNameMapper": {
|
|
55
|
-
"^@rebasepro/core$": "<rootDir>/../core/src/index.ts",
|
|
56
|
-
"^@rebasepro/common$": "<rootDir>/../common/src/index.ts",
|
|
57
|
-
"^@rebasepro/types$": "<rootDir>/../types/src/index.ts"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"exports": {
|
|
61
|
-
".": {
|
|
62
|
-
"types": "./dist/index.d.ts",
|
|
63
|
-
"development": "./src/index.ts",
|
|
64
|
-
"import": "./dist/index.es.js",
|
|
65
|
-
"require": "./dist/index.umd.js"
|
|
66
|
-
},
|
|
67
|
-
"./package.json": "./package.json"
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@rebasepro/client": "0.0.1-canary.4d4fb3e",
|
|
71
|
-
"@rebasepro/types": "0.0.1-canary.4d4fb3e"
|
|
72
|
-
},
|
|
73
|
-
"peerDependencies": {
|
|
74
|
-
"react": ">=19.0.0",
|
|
75
|
-
"react-dom": ">=19.0.0"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@types/jest": "^29.5.14",
|
|
79
|
-
"@types/react": "^19.0.8",
|
|
80
|
-
"@types/react-dom": "^19.0.3",
|
|
81
|
-
"jest": "^29.7.0",
|
|
82
|
-
"ts-jest": "^29.4.5",
|
|
83
|
-
"typescript": "^5.0.0",
|
|
84
|
-
"vite": "^5.0.0"
|
|
85
|
-
},
|
|
86
|
-
"gitHead": "71bcef3c51a458cd054f7924cc18efbbe515dcc8",
|
|
87
|
-
"publishConfig": {
|
|
88
|
-
"access": "public"
|
|
44
|
+
"moduleNameMapper": {
|
|
45
|
+
"^@rebasepro/core$": "<rootDir>/../core/src/index.ts",
|
|
46
|
+
"^@rebasepro/common$": "<rootDir>/../common/src/index.ts",
|
|
47
|
+
"^@rebasepro/types$": "<rootDir>/../types/src/index.ts"
|
|
89
48
|
}
|
|
90
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"exports": {
|
|
51
|
+
".": {
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"development": "./src/index.ts",
|
|
54
|
+
"import": "./dist/index.es.js",
|
|
55
|
+
"require": "./dist/index.umd.js"
|
|
56
|
+
},
|
|
57
|
+
"./package.json": "./package.json"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@rebasepro/client": "0.0.1-canary.ca2cb6e",
|
|
61
|
+
"@rebasepro/types": "0.0.1-canary.ca2cb6e"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": ">=19.0.0",
|
|
65
|
+
"react-dom": ">=19.0.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@types/jest": "^29.5.14",
|
|
69
|
+
"@types/react": "^19.0.8",
|
|
70
|
+
"@types/react-dom": "^19.0.3",
|
|
71
|
+
"jest": "^29.7.0",
|
|
72
|
+
"ts-jest": "^29.4.5",
|
|
73
|
+
"typescript": "^5.0.0",
|
|
74
|
+
"vite": "^5.0.0"
|
|
75
|
+
},
|
|
76
|
+
"gitHead": "d935eefa5aa8d1009a2398cfac2c1e4ee9aeb6b6",
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public"
|
|
79
|
+
},
|
|
80
|
+
"scripts": {
|
|
81
|
+
"watch": "vite build --watch",
|
|
82
|
+
"build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json",
|
|
83
|
+
"test:lint": "eslint \"src/**\" --quiet",
|
|
84
|
+
"test": "jest --passWithNoTests",
|
|
85
|
+
"clean": "rm -rf dist && find ./src -name '*.js' -type f | xargs rm -f"
|
|
86
|
+
}
|
|
87
|
+
}
|