creo 0.0.4-dev → 0.1.0
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/README.md +5 -1
- package/dist/functional/assert.d.ts +1 -0
- package/dist/functional/key.d.ts +2 -0
- package/dist/functional/maybe.d.ts +6 -0
- package/dist/functional/maybe_promise.d.ts +1 -0
- package/dist/functional/shallow_equal.d.ts +2 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1373 -0
- package/dist/index.js.map +26 -0
- package/dist/internal/engine.d.ts +18 -0
- package/dist/internal/internal_view.d.ts +38 -0
- package/dist/internal/orchestrator.d.ts +16 -0
- package/dist/public/app.d.ts +19 -0
- package/dist/public/event_handle.d.ts +32 -0
- package/dist/public/primitive.d.ts +20 -0
- package/dist/public/primitives/primitives.d.ts +318 -0
- package/dist/public/state.d.ts +37 -0
- package/dist/public/store.d.ts +35 -0
- package/dist/public/view.d.ts +37 -0
- package/dist/render/canvas_render.d.ts +1 -0
- package/dist/render/html_render.d.ts +35 -0
- package/dist/render/json_render.d.ts +17 -0
- package/dist/render/render_interface.d.ts +7 -0
- package/dist/render/stream_render.d.ts +1 -0
- package/dist/render/string_render.d.ts +17 -0
- package/dist/structures/indexed_list.d.ts +46 -0
- package/dist/structures/list.d.ts +68 -0
- package/package.json +23 -11
- package/.env.development +0 -1
- package/.github/workflows/main.yml +0 -24
- package/TODOS.md +0 -2
- package/index.html +0 -13
- package/index.ts +0 -1
- package/src/DOM/Context.ts +0 -36
- package/src/DOM/DomEngine.ts +0 -106
- package/src/DOM/IRenderCycle.ts +0 -9
- package/src/DOM/Key.ts +0 -1
- package/src/DOM/Node.ts +0 -472
- package/src/DOM/Registry.ts +0 -53
- package/src/creo.ts +0 -134
- package/src/data-structures/assert/assert.ts +0 -12
- package/src/data-structures/indexed-map/IndexedMap.ts +0 -281
- package/src/data-structures/linked-map/LinkedMap.spec.ts +0 -67
- package/src/data-structures/linked-map/LinkedMap.ts +0 -198
- package/src/data-structures/list/List.spec.ts +0 -181
- package/src/data-structures/list/List.ts +0 -195
- package/src/data-structures/maybe/Maybe.ts +0 -25
- package/src/data-structures/null/null.ts +0 -3
- package/src/data-structures/record/IsRecordLike.spec.ts +0 -29
- package/src/data-structures/record/IsRecordLike.ts +0 -3
- package/src/data-structures/record/Record.spec.ts +0 -240
- package/src/data-structures/record/Record.ts +0 -145
- package/src/data-structures/shalllowEqual/shallowEqual.ts +0 -26
- package/src/data-structures/simpleKey/simpleKey.ts +0 -8
- package/src/examples/SimpleTodoList/SimpleTodoList.ts +0 -53
- package/src/examples/simple.ts +0 -0
- package/src/globals.d.ts +0 -1
- package/src/main.ts +0 -24
- package/src/style.css +0 -41
- package/src/ui/html/Block.ts +0 -10
- package/src/ui/html/Button.ts +0 -12
- package/src/ui/html/HStack.ts +0 -10
- package/src/ui/html/Inline.ts +0 -12
- package/src/ui/html/List.ts +0 -10
- package/src/ui/html/Text.ts +0 -9
- package/src/ui/html/VStack.ts +0 -11
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -23
- package/vite.config.js +0 -10
- /package/{src/data-structures/wildcard/wildcard.ts → dist/internal/wildcard.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assertNever(x: never): never;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type None = null | undefined;
|
|
2
|
+
export type Just<T> = T;
|
|
3
|
+
export type Maybe<T> = Just<T> | None;
|
|
4
|
+
export declare function just<T>(maybe: Maybe<T>, errorMessage?: string): asserts maybe is Just<T>;
|
|
5
|
+
export declare function withDefault<T, K>(v: Maybe<T>, alternative: K): K | NonNullable<T>;
|
|
6
|
+
export declare const _: undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MaybePromise<T> = T | Promise<T>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { createApp } from "./public/app";
|
|
2
|
+
export { view } from "./public/view";
|
|
3
|
+
export type { ViewBody, ViewFn, Slot, Children, PublicView } from "./public/view";
|
|
4
|
+
export type { Reactive, Use } from "./public/state";
|
|
5
|
+
export { State } from "./public/state";
|
|
6
|
+
export { Store, store, isStore } from "./public/store";
|
|
7
|
+
export { $primitive } from "./public/primitive";
|
|
8
|
+
export type { PrimitiveProps, EventHandlerProps } from "./public/primitive";
|
|
9
|
+
export { html, text, div, span, section, article, aside, nav, header, footer, main, address, hgroup, search, p, h1, h2, h3, h4, h5, h6, pre, code, em, strong, small, br, hr, a, blockquote, label, abbr, b, bdi, bdo, cite, data, dfn, i, kbd, mark, q, rp, rt, ruby, s, samp, sub, sup, time, u, varEl, wbr, del, ins, ul, ol, li, dl, dt, dd, table, thead, tbody, tfoot, tr, th, td, caption, colgroup, col, form, button, input, textarea, select, option, fieldset, legend, datalist, optgroup, output, progress, meter, img, video, audio, canvas, source, track, map, area, picture, iframe, embed, object, portal, svg, details, summary, dialog, menu, figure, figcaption, script, noscript, template, slot, } from "./public/primitives/primitives";
|
|
10
|
+
export type { BaseEventData, PointerEventData, KeyEventData, InputEventData, FocusEventData, ContainerEvents, FormEvents, HtmlAttrs, } from "./public/primitives/primitives";
|
|
11
|
+
export type { IRender } from "./render/render_interface";
|
|
12
|
+
export { HtmlRender } from "./render/html_render";
|
|
13
|
+
export { JsonRender } from "./render/json_render";
|
|
14
|
+
export type { JsonNode } from "./render/json_render";
|
|
15
|
+
export { StringRender } from "./render/string_render";
|
|
16
|
+
export { Engine, type Scheduler } from "./internal/engine";
|
|
17
|
+
export { type Maybe, type None, type Just, just, withDefault, _ } from "./functional/maybe";
|
|
18
|
+
export type { Key } from "./functional/key";
|
|
19
|
+
export { shallowEqual } from "./functional/shallow_equal";
|
|
20
|
+
export { assertNever } from "./functional/assert";
|