@nice2dev/ui-forms 1.4.6 → 1.4.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/dist/index.cjs +8 -8
- package/dist/index.d.ts +12 -0
- package/dist/index.mjs +3717 -3585
- package/dist/studio.cjs +5 -5
- package/dist/studio.mjs +40 -24
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { NiceDataSourceSchemaTable } from '@nice2dev/ui';
|
|
|
8
8
|
import { NiceFieldValidationRule } from '@nice2dev/ui';
|
|
9
9
|
import { NiceFormItem } from '@nice2dev/ui';
|
|
10
10
|
import { NiceHookBinding } from '@nice2dev/ui';
|
|
11
|
+
import { NiceModuleDataSource } from '@nice2dev/ui';
|
|
11
12
|
import { NiceNoCodeIo } from '@nice2dev/ui';
|
|
12
13
|
import { NiceNoCodeStep } from '@nice2dev/ui';
|
|
13
14
|
import { NiceRbacModel } from '@nice2dev/ui';
|
|
@@ -458,6 +459,11 @@ export declare interface NiceDevelopmentStudioProps extends NiceStandardProps {
|
|
|
458
459
|
* the steps against it (`read` a data source, `write` rows, `callScript`).
|
|
459
460
|
*/
|
|
460
461
|
scriptIo?: (module: NiceStudioModuleKey) => NiceNoCodeIo | undefined;
|
|
462
|
+
/**
|
|
463
|
+
* Runs a data source with parameter values for the designer's Preview (1.4.7) — the host's API
|
|
464
|
+
* (OmniVerk: `POST /api/data-sources/preview`); a nested list's rows come assembled.
|
|
465
|
+
*/
|
|
466
|
+
previewDataSource?: NiceStudioPreviewDataSource;
|
|
461
467
|
/** The host's own preview of a view (e.g. its runtime renderer): small in the preview, full beside the designer. */
|
|
462
468
|
renderViewPreview?: (ctx: NiceStudioViewPreviewContext) => React.ReactNode;
|
|
463
469
|
/** Extra parts of a module (payments, webhooks, …): rows under the module, opened full-screen. */
|
|
@@ -1137,6 +1143,12 @@ export declare interface NiceStudioPreset {
|
|
|
1137
1143
|
templateSchema?: JsonSchema;
|
|
1138
1144
|
}
|
|
1139
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* Runs a module's data source with parameter values for the data source editor's Preview (1.4.7) —
|
|
1148
|
+
* the host's API (OmniVerk: `POST /api/data-sources/preview`), a mock in a demo.
|
|
1149
|
+
*/
|
|
1150
|
+
export declare type NiceStudioPreviewDataSource = (module: NiceStudioModuleKey, def: NiceModuleDataSource, params: Record<string, string>) => Promise<ReadonlyArray<Record<string, unknown>>>;
|
|
1151
|
+
|
|
1140
1152
|
/**
|
|
1141
1153
|
* How the studio reaches the host's modules. Only the four list/read/write methods are needed;
|
|
1142
1154
|
* each optional one turns on the matching feature (create, delete, packages, templates,
|