@sealcode/jdd-editor 0.2.14 → 0.2.16
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/.nyc_output/51efb67f-ce86-4cce-8246-d293600e6ff2.json +1 -0
- package/.nyc_output/processinfo/0553c492-d66d-4588-be20-d4a284e17ff7.json +1 -0
- package/.nyc_output/processinfo/15c7e9a9-1ea9-4c86-8310-45fa6fc6e38b.json +1 -0
- package/.nyc_output/processinfo/51efb67f-ce86-4cce-8246-d293600e6ff2.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/.xunit +1 -1
- package/@types/components.sreact.d.ts +1 -1
- package/@types/controllers/code-snippet.stimulus.d.ts +6 -0
- package/@types/controllers/json-editor.stimulus.d.ts +0 -1
- package/@types/inputs/component-input-code-with-custom-language.d.ts +7 -0
- package/@types/inputs/component-input-code.d.ts +3 -1
- package/@types/inputs/component-input-list.d.ts +3 -2
- package/@types/inputs/component-input-structured.d.ts +3 -2
- package/@types/inputs/component-input-table.d.ts +3 -2
- package/@types/inputs/component-input.d.ts +3 -2
- package/@types/jdd-creator.d.ts +2 -2
- package/@types/jdd-page.d.ts +4 -2
- package/assets/styles/components.jdd-page.css +5 -2
- package/coverage/clover.xml +173 -170
- package/dist/src/controllers/code-snippet.stimulus.js +12 -0
- package/dist/src/controllers/code-snippet.stimulus.js.map +7 -0
- package/dist/src/controllers/exportable-textarea.stimulus.js +0 -1
- package/dist/src/controllers/exportable-textarea.stimulus.js.map +2 -2
- package/dist/src/controllers/json-editor.stimulus.js +0 -3
- package/dist/src/controllers/json-editor.stimulus.js.map +2 -2
- package/dist/src/edit-jdd-field.js +3 -5
- package/dist/src/edit-jdd-field.js.map +2 -2
- package/dist/src/inputs/component-input-code-with-custom-language.js +41 -0
- package/dist/src/inputs/component-input-code-with-custom-language.js.map +7 -0
- package/dist/src/inputs/component-input-code.js +22 -11
- package/dist/src/inputs/component-input-code.js.map +2 -2
- package/dist/src/inputs/component-input-list.js +3 -1
- package/dist/src/inputs/component-input-list.js.map +2 -2
- package/dist/src/inputs/component-input-structured.js +2 -0
- package/dist/src/inputs/component-input-structured.js.map +2 -2
- package/dist/src/inputs/component-input-table.js +6 -3
- package/dist/src/inputs/component-input-table.js.map +2 -2
- package/dist/src/inputs/component-input.js +22 -6
- package/dist/src/inputs/component-input.js.map +2 -2
- package/dist/src/jdd-page.js +24 -12
- package/dist/src/jdd-page.js.map +2 -2
- package/package.json +2 -2
- package/src/controllers/code-snippet.stimulus.ts +12 -0
- package/src/controllers/exportable-textarea.stimulus.ts +0 -1
- package/src/controllers/json-editor.stimulus.ts +0 -4
- package/src/edit-jdd-field.ts +3 -5
- package/src/inputs/component-input-code-with-custom-language.ts +44 -0
- package/src/inputs/component-input-code.ts +23 -10
- package/src/inputs/component-input-list.ts +9 -1
- package/src/inputs/component-input-structured.ts +4 -0
- package/src/inputs/component-input-table.ts +5 -1
- package/src/inputs/component-input.ts +31 -1
- package/src/jdd-page.ts +31 -13
- package/.nyc_output/b318e449-cc0d-49b3-8647-15d9173f5905.json +0 -1
- package/.nyc_output/processinfo/65a49023-1c6a-4217-ab3e-89a09cde8bfc.json +0 -1
- package/.nyc_output/processinfo/b318e449-cc0d-49b3-8647-15d9173f5905.json +0 -1
- package/.nyc_output/processinfo/be222db4-3db9-4c08-a4b5-58673c1c7c29.json +0 -1
- /package/.nyc_output/{65a49023-1c6a-4217-ab3e-89a09cde8bfc.json → 0553c492-d66d-4588-be20-d4a284e17ff7.json} +0 -0
- /package/.nyc_output/{be222db4-3db9-4c08-a4b5-58673c1c7c29.json → 15c7e9a9-1ea9-4c86-8310-45fa6fc6e38b.json} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":1119187,"argv":["/home/kuba/.local/share/fnm/node-versions/v21.7.3/installation/bin/node","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/node_modules/.bin/mocha","--reporter","xunit","--reporter-option","output=.xunit"],"execArgv":[],"cwd":"/home/kuba/projects/sealcode/superseal/repos/jdd-editor","time":1770320340362,"ppid":1119164,"coverageFilename":"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/.nyc_output/0553c492-d66d-4588-be20-d4a284e17ff7.json","externalId":"","uuid":"0553c492-d66d-4588-be20-d4a284e17ff7","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":"0553c492-d66d-4588-be20-d4a284e17ff7","pid":1119194,"argv":["/home/kuba/.local/share/fnm/node-versions/v21.7.3/installation/bin/node","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/node_modules/.bin/mocha","--recursive","--timeout=10000","--require","source-map-support/register","lib/src/**/*.test.js"],"execArgv":[],"cwd":"/home/kuba/projects/sealcode/superseal/repos/jdd-editor","time":1770320340584,"ppid":1119187,"coverageFilename":"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/.nyc_output/15c7e9a9-1ea9-4c86-8310-45fa6fc6e38b.json","externalId":"","uuid":"15c7e9a9-1ea9-4c86-8310-45fa6fc6e38b","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":1119164,"argv":["/home/kuba/.local/share/fnm/node-versions/v21.7.3/installation/bin/node","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/node_modules/.bin/nyc","--reporter","clover","mocha","--reporter","xunit","--reporter-option","output=.xunit"],"execArgv":[],"cwd":"/home/kuba/projects/sealcode/superseal/repos/jdd-editor","time":1770320339627,"ppid":1119153,"coverageFilename":"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/.nyc_output/51efb67f-ce86-4cce-8246-d293600e6ff2.json","externalId":"","uuid":"51efb67f-ce86-4cce-8246-d293600e6ff2","files":["/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/component-preview-actions.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/components.sreact.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/autogrow-textarea.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/code-snippet.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/component-debugger.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/exportable-textarea.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/input-image-preview.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/jdd-table-paste.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/json-editor.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/markdown-textarea.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/refresh-on-ts-changes.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/refresh-styles.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/submit-on-input.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/toast.stimulus.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/edit-jdd-field.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/index.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-code-with-custom-language.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-code.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-color.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-enum.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-image.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-list.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-single-reference.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-structured.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-table.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/print-arg-path.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/jdd-creator.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/jdd-page.ts","/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/test.test.ts"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"0553c492-d66d-4588-be20-d4a284e17ff7":{"parent":null,"children":["15c7e9a9-1ea9-4c86-8310-45fa6fc6e38b"]},"15c7e9a9-1ea9-4c86-8310-45fa6fc6e38b":{"parent":"0553c492-d66d-4588-be20-d4a284e17ff7","children":[]},"51efb67f-ce86-4cce-8246-d293600e6ff2":{"parent":null,"children":[]}},"files":{"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/component-preview-actions.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/components.sreact.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/autogrow-textarea.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/code-snippet.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/component-debugger.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/exportable-textarea.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/input-image-preview.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/jdd-table-paste.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/json-editor.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/markdown-textarea.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/refresh-on-ts-changes.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/refresh-styles.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/submit-on-input.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/controllers/toast.stimulus.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/edit-jdd-field.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/index.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-code-with-custom-language.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-code.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-color.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-enum.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-image.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-list.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-single-reference.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-structured.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input-table.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/component-input.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/inputs/print-arg-path.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/jdd-creator.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/jdd-page.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"],"/home/kuba/projects/sealcode/superseal/repos/jdd-editor/src/test.test.ts":["51efb67f-ce86-4cce-8246-d293600e6ff2"]},"externalIds":{}}
|
package/.xunit
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<testsuite name="Mocha Tests" tests="0" failures="0" errors="0" skipped="0" timestamp="
|
|
1
|
+
<testsuite name="Mocha Tests" tests="0" failures="0" errors="0" skipped="0" timestamp="Thu, 05 Feb 2026 19:39:00 GMT" time="0">
|
|
2
2
|
</testsuite>
|
|
@@ -5,7 +5,7 @@ import type { JDDPageState } from "./jdd-page.js";
|
|
|
5
5
|
import JDDPage from "./jdd-page.js";
|
|
6
6
|
export declare class JDDDebugger extends JDDPage {
|
|
7
7
|
renderParameterButtons(state: JDDPageState): Stringifiable;
|
|
8
|
-
actions: Record<string, import("
|
|
8
|
+
actions: Record<string, import("@sealcode/sealgen").StatefulPageAction<JDDPageState>>;
|
|
9
9
|
getInitialState(ctx: Context): Promise<{
|
|
10
10
|
components: never[];
|
|
11
11
|
}>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { Component } from "@sealcode/jdd";
|
|
2
|
+
export declare function ComponentInputCode({ language, value, arg_path, component, }: {
|
|
2
3
|
value: string;
|
|
3
4
|
language: string;
|
|
4
5
|
arg_path: string[];
|
|
6
|
+
component: Component;
|
|
5
7
|
}): JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Context } from "koa";
|
|
2
|
-
import type { ComponentArgument, JDDContext, List } from "@sealcode/jdd";
|
|
2
|
+
import type { Component, ComponentArgument, JDDContext, List } from "@sealcode/jdd";
|
|
3
3
|
import type { JDDPageState } from "../jdd-page.js";
|
|
4
4
|
import type { StatefulPage } from "@sealcode/sealgen";
|
|
5
5
|
import type { ComponentPreviewActions } from "../component-preview-actions.js";
|
|
6
|
-
export declare function ComponentInputList<State extends JDDPageState, T extends ComponentArgument<unknown>>({ state, ctx, arg_path, arg, value, page, makeJDDContext, ...rest }: {
|
|
6
|
+
export declare function ComponentInputList<State extends JDDPageState, T extends ComponentArgument<unknown>>({ state, ctx, arg_path, arg, value, page, makeJDDContext, component, ...rest }: {
|
|
7
7
|
state: State;
|
|
8
8
|
ctx: Context;
|
|
9
9
|
arg_path: string[];
|
|
@@ -12,4 +12,5 @@ export declare function ComponentInputList<State extends JDDPageState, T extends
|
|
|
12
12
|
page: StatefulPage<JDDPageState, typeof ComponentPreviewActions>;
|
|
13
13
|
makeJDDContext: (ctx: Context) => JDDContext;
|
|
14
14
|
makeAssetURL: (asset: string) => string;
|
|
15
|
+
component: Component;
|
|
15
16
|
}): Promise<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Context } from "koa";
|
|
2
|
-
import { Structured, type ComponentArgument, type JDDContext, type NestedComponent } from "@sealcode/jdd";
|
|
2
|
+
import { Component, Structured, type ComponentArgument, type JDDContext, type NestedComponent } from "@sealcode/jdd";
|
|
3
3
|
import type { StatefulPage } from "@sealcode/sealgen";
|
|
4
4
|
import type { JDDPageState } from "../jdd-page.js";
|
|
5
5
|
import type { ComponentPreviewActions } from "../component-preview-actions.js";
|
|
6
|
-
export declare function ComponentInputStructured<T extends Structured<Record<string, ComponentArgument<unknown>>> | NestedComponent>({ state, ctx, arg_path, arg, value, page, makeJDDContext, ...rest }: {
|
|
6
|
+
export declare function ComponentInputStructured<T extends Structured<Record<string, ComponentArgument<unknown>>> | NestedComponent>({ state, ctx, arg_path, arg, value, page, makeJDDContext, component, ...rest }: {
|
|
7
7
|
state: JDDPageState;
|
|
8
8
|
ctx: Context;
|
|
9
9
|
arg_path: string[];
|
|
@@ -12,4 +12,5 @@ export declare function ComponentInputStructured<T extends Structured<Record<str
|
|
|
12
12
|
page: StatefulPage<JDDPageState, typeof ComponentPreviewActions>;
|
|
13
13
|
makeJDDContext: (ctx: Context) => JDDContext;
|
|
14
14
|
makeAssetURL: (asset: string) => string;
|
|
15
|
+
component: Component;
|
|
15
16
|
}): Promise<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { JDDContext, Table, TableData } from "@sealcode/jdd";
|
|
1
|
+
import type { Component, JDDContext, Table, TableData } from "@sealcode/jdd";
|
|
2
2
|
import type { StatefulPage } from "@sealcode/sealgen";
|
|
3
3
|
import type { Context } from "koa";
|
|
4
4
|
import type { ComponentPreviewActions } from "../component-preview-actions.js";
|
|
5
5
|
import type { JDDPageState } from "../jdd-page.js";
|
|
6
|
-
export declare function ComponentInputTable<State extends JDDPageState, CellType, HeaderType>({ state, arg_path, ctx, arg, value, page, makeJDDContext, makeAssetURL, }: {
|
|
6
|
+
export declare function ComponentInputTable<State extends JDDPageState, CellType, HeaderType>({ state, arg_path, ctx, arg, value, page, makeJDDContext, makeAssetURL, component, }: {
|
|
7
7
|
state: State;
|
|
8
8
|
ctx: Context;
|
|
9
9
|
arg_path: string[];
|
|
@@ -12,4 +12,5 @@ export declare function ComponentInputTable<State extends JDDPageState, CellType
|
|
|
12
12
|
page: StatefulPage<JDDPageState, typeof ComponentPreviewActions>;
|
|
13
13
|
makeJDDContext: (ctx: Context) => JDDContext;
|
|
14
14
|
makeAssetURL: (asset: string) => string;
|
|
15
|
+
component: Component;
|
|
15
16
|
}): Promise<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ComponentArgument, JDDContext } from "@sealcode/jdd";
|
|
1
|
+
import type { Component, ComponentArgument, JDDContext } from "@sealcode/jdd";
|
|
2
2
|
import type { StatefulPage } from "@sealcode/sealgen";
|
|
3
3
|
import type { Context } from "koa";
|
|
4
4
|
import type { ComponentPreviewActions } from "../component-preview-actions.js";
|
|
5
5
|
import type { JDDPageState } from "../jdd-page.js";
|
|
6
6
|
export declare const actionName = "Components";
|
|
7
|
-
export declare function ComponentInput<State extends JDDPageState, T>({ ctx, state, arg_path, arg, value, page, makeJDDContext, makeAssetURL, }: {
|
|
7
|
+
export declare function ComponentInput<State extends JDDPageState, T>({ ctx, state, arg_path, arg, value, page, makeJDDContext, makeAssetURL, component, }: {
|
|
8
8
|
state: State;
|
|
9
9
|
ctx: Context;
|
|
10
10
|
arg_path: string[];
|
|
@@ -13,4 +13,5 @@ export declare function ComponentInput<State extends JDDPageState, T>({ ctx, sta
|
|
|
13
13
|
page: StatefulPage<JDDPageState, typeof ComponentPreviewActions>;
|
|
14
14
|
makeJDDContext: (ctx: Context) => JDDContext;
|
|
15
15
|
makeAssetURL: (asset: string) => string;
|
|
16
|
+
component: Component;
|
|
16
17
|
}): Promise<string>;
|
package/@types/jdd-creator.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { JDDPageState } from "./jdd-page.js";
|
|
|
3
3
|
import JDDPage from "./jdd-page.js";
|
|
4
4
|
import { Stringifiable } from "tempstream/@types/stringify.js";
|
|
5
5
|
export default abstract class JDDCreator extends JDDPage {
|
|
6
|
-
actions: Record<string, import("
|
|
6
|
+
actions: Record<string, import("@sealcode/sealgen").StatefulPageAction<JDDPageState>>;
|
|
7
7
|
/**
|
|
8
8
|
* This method returns list of components allowed in JDD Editor instance.
|
|
9
9
|
* If list is empty it will allow all of the components in registry,
|
|
@@ -11,7 +11,7 @@ export default abstract class JDDCreator extends JDDPage {
|
|
|
11
11
|
* available.
|
|
12
12
|
*/
|
|
13
13
|
getAllowedComponents(): string[];
|
|
14
|
-
getRegistryComponents(): Record<string, import("
|
|
14
|
+
getRegistryComponents(): Record<string, import("@sealcode/jdd").Component<Record<string, import("@sealcode/jdd").ComponentArgument<unknown, unknown, unknown>>>>;
|
|
15
15
|
renderParameterButtons(state: JDDPageState): string;
|
|
16
16
|
renderComponentBlock(ctx: Context, state: JDDPageState, component_data: {
|
|
17
17
|
component_name: string;
|
package/@types/jdd-page.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare const actionName = "Components";
|
|
|
9
9
|
export type JDDPageState = {
|
|
10
10
|
components: RawJDDocument;
|
|
11
11
|
preview_size?: string;
|
|
12
|
-
messages?: string[];
|
|
13
12
|
};
|
|
14
13
|
export default abstract class JDDPage extends StatefulPage<JDDPageState, typeof ComponentPreviewActions> {
|
|
15
14
|
actions: Record<string, import("@sealcode/sealgen").StatefulPageAction<JDDPageState>>;
|
|
@@ -45,6 +44,9 @@ export default abstract class JDDPage extends StatefulPage<JDDPageState, typeof
|
|
|
45
44
|
}[];
|
|
46
45
|
}>;
|
|
47
46
|
renderPreParameterButtons(_ctx: Context, _state: JDDPageState): FlatTemplatable | Promise<FlatTemplatable>;
|
|
48
|
-
renderMessages(_ctx: Context, state: JDDPageState): string;
|
|
49
47
|
render(ctx: Context, state: JDDPageState): Promise<string>;
|
|
48
|
+
renderWithMessages(ctx: Context, state: JDDPageState, messages: {
|
|
49
|
+
type: "error" | "success";
|
|
50
|
+
content: string;
|
|
51
|
+
}[]): Promise<string>;
|
|
50
52
|
}
|
|
@@ -109,6 +109,7 @@ body.jdd-editor {
|
|
|
109
109
|
position: fixed;
|
|
110
110
|
top: 60px;
|
|
111
111
|
left: 0;
|
|
112
|
+
gap: 8px;
|
|
112
113
|
width: 100%;
|
|
113
114
|
display: flex;
|
|
114
115
|
flex-flow: column;
|
|
@@ -227,14 +228,16 @@ body.jdd-editor {
|
|
|
227
228
|
|
|
228
229
|
label {
|
|
229
230
|
display: flex;
|
|
230
|
-
flex-flow:
|
|
231
|
-
gap: 8px;
|
|
231
|
+
flex-flow: column;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
fieldset {
|
|
235
235
|
background-color: #80808024;
|
|
236
236
|
min-inline-size: 0;
|
|
237
237
|
width: calc(100% - 30px);
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-flow: column;
|
|
240
|
+
row-gap: 8px;
|
|
238
241
|
|
|
239
242
|
& > div {
|
|
240
243
|
overflow-x: auto;
|