Update sealgen, fix type issues

master
Kuba Orlik 10 months ago
parent f3da755843
commit de6e676dfa

8
package-lock.json generated

@ -15,7 +15,7 @@
"@koa/router": "^12.0.1",
"@playwright/test": "^1.36.1",
"@sealcode/jdd": "^0.2.4",
"@sealcode/sealgen": "^0.11.1",
"@sealcode/sealgen": "^0.11.2",
"@sealcode/ts-predicates": "^0.4.3",
"@types/kill-port": "^2.0.0",
"get-port": "^7.0.0",
@ -1301,9 +1301,9 @@
}
},
"node_modules/@sealcode/sealgen": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.11.1.tgz",
"integrity": "sha512-RH4TUwwHNgz4NE0vVDsXQ45xcPo/NqhmmcFaZhv8od0uXRfzvf5WrugHtrWdEEif4naYXSmJ8te7yaoa9Y5ubg==",
"version": "0.11.2",
"resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.11.2.tgz",
"integrity": "sha512-CS/RyR3KvzsVRZ2wOrCfA1n54xUvkitDTG7OgMrfUKNVSQLp4Cvg8ewmff8WeknfLNsVz4ALcwrVI8GfSCqCOA==",
"dependencies": {
"@koa/router": "^12.0.1",
"@sealcode/ts-predicates": "^0.4.3",

@ -36,7 +36,7 @@
"@koa/router": "^12.0.1",
"@playwright/test": "^1.36.1",
"@sealcode/jdd": "^0.2.4",
"@sealcode/sealgen": "^0.11.1",
"@sealcode/sealgen": "^0.11.2",
"@sealcode/ts-predicates": "^0.4.3",
"@types/kill-port": "^2.0.0",
"get-port": "^7.0.0",

@ -3,14 +3,5 @@ import { Registry } from "@sealcode/jdd";
export const registry = new Registry();
import { BeigeBox } from "./beige-box/beige-box.jdd.js";
registry.add("beige-box", BeigeBox);
import { NiceBox } from "./nice-box/nice-box.jdd.js";
registry.add("nice-box", NiceBox);
import { NicerBox } from "./nicer-box/nicer-box.jdd.js";
registry.add("nicer-box", NicerBox);
import { SomeExampleForYouAll } from "./some-example-for-you-all/some-example-for-you-all.jdd.js";
registry.add("some-example-for-you-all", SomeExampleForYouAll);

@ -7,21 +7,7 @@ import { render, simpleJDDContext } from "@sealcode/jdd";
export const actionName = "Components";
const actions = {
add: (state: State, inputs: Record<string, string>) => {
console.log({ inputs });
return {
...state,
elements: [...state.elements, inputs.element_to_add || "new element"],
};
},
remove: (state: State, _: unknown, index_to_remove: number) => {
return {
...state,
elements: state.elements.filter((_, index) => index != index_to_remove),
};
},
} as const;
const actions = {} as const;
type State = {
component: string;

@ -1,6 +1,5 @@
// DO NOT EDIT! This file is generated automaticaly with npx sealgen generate-scss-includes
@import "../node_modules/@sealcode/sealgen/src/forms/forms.scss";
@import "back/jdd-components/some-example-for-you-all/some-example-for-you-all.scss";
@import "back/routes/common/ui/input.scss";
@import "tables.scss";

Loading…
Cancel
Save