keits 0.0.2 → 0.0.4

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.
Files changed (63) hide show
  1. package/dist/dev/api.js +270 -0
  2. package/dist/dev/forms.js +328 -0
  3. package/dist/dev/index.js +290 -294
  4. package/dist/dev/router.js +445 -0
  5. package/dist/dev/shared/computed-3UO-KiH1.js +40 -0
  6. package/dist/dev/shared/element-CQPqagu1.js +222 -0
  7. package/dist/dev/shared/graph-D6-x_CWC.js +324 -0
  8. package/dist/dev/shared/owner-Dmge21OW.js +62 -0
  9. package/dist/dev/shared/render-effect-kOGnLNbL.js +26 -0
  10. package/dist/dev/shared/resource-CbXVATvq.js +154 -0
  11. package/dist/dev/shared/signal-BOXkY-Iv.js +24 -0
  12. package/dist/dev/shared/store-BzUN1qE5.js +148 -0
  13. package/dist/dev/svg.js +1 -1
  14. package/dist/prod/api.js +210 -0
  15. package/dist/prod/forms.js +237 -0
  16. package/dist/prod/index.js +209 -234
  17. package/dist/prod/router.js +345 -0
  18. package/dist/prod/shared/computed-CAPpOLCY.js +33 -0
  19. package/dist/prod/shared/element-DGyQ01Vs.js +164 -0
  20. package/dist/prod/shared/graph-C_aA46c6.js +240 -0
  21. package/dist/prod/shared/owner-6BFHIPR9.js +59 -0
  22. package/dist/prod/shared/render-effect-DjaUT3Cn.js +23 -0
  23. package/dist/prod/shared/resource-CNC2DBO3.js +109 -0
  24. package/dist/prod/shared/signal-DGrl3r9T.js +16 -0
  25. package/dist/prod/shared/store-Dcscpk_h.js +109 -0
  26. package/dist/prod/svg.js +1 -1
  27. package/dist/types/api/cache.d.ts +16 -0
  28. package/dist/types/api/client.d.ts +42 -0
  29. package/dist/types/api/error.d.ts +16 -0
  30. package/dist/types/api/index.d.ts +3 -0
  31. package/dist/types/api/url.d.ts +5 -0
  32. package/dist/types/async/index.d.ts +2 -0
  33. package/dist/types/async/lazy.d.ts +7 -0
  34. package/dist/types/async/resource.d.ts +23 -0
  35. package/dist/types/async/suspense-context.d.ts +4 -0
  36. package/dist/types/core/graph.d.ts +8 -0
  37. package/dist/types/dom/types.d.ts +1 -1
  38. package/dist/types/flow/catch.d.ts +2 -0
  39. package/dist/types/flow/dynamic.d.ts +6 -0
  40. package/dist/types/flow/for.d.ts +7 -0
  41. package/dist/types/flow/if.d.ts +4 -0
  42. package/dist/types/flow/index.d.ts +8 -0
  43. package/dist/types/flow/portal.d.ts +2 -0
  44. package/dist/types/flow/range.d.ts +11 -0
  45. package/dist/types/flow/show.d.ts +1 -0
  46. package/dist/types/flow/suspense.d.ts +2 -0
  47. package/dist/types/flow/switch.d.ts +9 -0
  48. package/dist/types/forms/form.d.ts +55 -0
  49. package/dist/types/forms/index.d.ts +2 -0
  50. package/dist/types/forms/paths.d.ts +6 -0
  51. package/dist/types/forms/types.d.ts +38 -0
  52. package/dist/types/index.d.ts +2 -0
  53. package/dist/types/router/history.d.ts +21 -0
  54. package/dist/types/router/index.d.ts +3 -0
  55. package/dist/types/router/links.d.ts +1 -0
  56. package/dist/types/router/match.d.ts +15 -0
  57. package/dist/types/router/router.d.ts +10 -0
  58. package/dist/types/router/scroll.d.ts +5 -0
  59. package/dist/types/router/types.d.ts +87 -0
  60. package/dist/types/svg/types.d.ts +1 -1
  61. package/package.json +37 -6
  62. package/dist/dev/shared/element-By0uLZli.js +0 -544
  63. package/dist/prod/shared/element-C8c5hIhH.js +0 -394
@@ -48,6 +48,10 @@ export interface RootNode extends OwnerFields {
48
48
  key: object;
49
49
  value: unknown;
50
50
  };
51
+ held?: {
52
+ owner: Owner | null;
53
+ fn: () => void;
54
+ }[] | null;
51
55
  }
52
56
  export type Source = SignalSource | ComputedNode;
53
57
  export type Computation = EffectNode | ComputedNode;
@@ -66,6 +70,10 @@ export declare function getOwner(): Owner | null;
66
70
  export declare function runWithOwner<T>(owner: Owner | null, fn: () => T): T;
67
71
  export declare function addCleanup(fn: () => void): boolean;
68
72
  export declare function addMount(fn: () => void): void;
73
+ export declare function deferMounts<T>(fn: () => T): {
74
+ result: T;
75
+ release: () => void;
76
+ };
69
77
  export declare function dispose(node: Owner): void;
70
78
  export declare function handleError(error: unknown, owner: Owner | null): void;
71
79
  export declare function isStaticRender(): boolean;
@@ -37,7 +37,7 @@ export type Props<E extends Element> = ElementProps<E> & AttributeProps & EventP
37
37
  ref?: (element: E) => void;
38
38
  };
39
39
  export interface ElementFactory<E extends Element> {
40
- (props?: Props<E> | null, children?: Child): E;
41
40
  (children: Child): E;
41
+ (props?: Props<E> | null, children?: Child): E;
42
42
  }
43
43
  export {};
@@ -0,0 +1,2 @@
1
+ import type { Child } from "../dom/types";
2
+ export declare function $catch(children: () => Child, fallback: (error: unknown, reset: () => void) => Child): Child;
@@ -0,0 +1,6 @@
1
+ import type { Child } from "../dom/types";
2
+ export type Component<P> = (props: P) => Child;
3
+ type MaybeComponent<P> = Component<P> | null | undefined | false;
4
+ export declare function $dynamic(component: () => MaybeComponent<void>): Child;
5
+ export declare function $dynamic<P>(component: () => MaybeComponent<P>, props: P): Child;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Accessor } from "../core/types";
2
+ import type { Child } from "../dom/types";
3
+ export interface ForOptions {
4
+ fallback?: () => Child;
5
+ }
6
+ export declare function $for<T>(each: () => readonly T[] | null | undefined | false, render: (item: T, index: Accessor<number>) => Child, options?: ForOptions): Child;
7
+ export declare function longestIncreasing(sequence: readonly number[]): Set<number>;
@@ -0,0 +1,4 @@
1
+ import type { Accessor } from "../core/types";
2
+ import type { Child } from "../dom/types";
3
+ export type Truthy<T> = Exclude<T, null | undefined | false | 0 | "" | 0>;
4
+ export declare function $if<T>(when: () => T, then: (value: Accessor<Truthy<T>>) => Child, otherwise?: () => Child): Child;
@@ -0,0 +1,8 @@
1
+ export { $for, type ForOptions } from "./for";
2
+ export { $if, type Truthy } from "./if";
3
+ export { $show } from "./show";
4
+ export { $switch, type PartialSwitchCases, type SwitchCases } from "./switch";
5
+ export { $dynamic, type Component } from "./dynamic";
6
+ export { $catch } from "./catch";
7
+ export { $portal } from "./portal";
8
+ export { $suspense } from "./suspense";
@@ -0,0 +1,2 @@
1
+ import type { Child } from "../dom/types";
2
+ export declare function $portal(children: () => Child, target?: Element | null): Child;
@@ -0,0 +1,11 @@
1
+ import type { Child } from "../dom/types";
2
+ export interface Row {
3
+ item: unknown;
4
+ index: ((next: number) => void) | null;
5
+ dispose: () => void;
6
+ first: Node;
7
+ last: Node;
8
+ }
9
+ export declare function createRow(build: () => Child, item: unknown): Row;
10
+ export declare function moveRow(parent: Node, row: Row, anchor: Node | null): void;
11
+ export declare function removeRow(row: Row): void;
@@ -0,0 +1 @@
1
+ export declare function $show<E extends HTMLElement | SVGElement>(when: () => unknown, element: E): E;
@@ -0,0 +1,2 @@
1
+ import type { Child } from "../dom/types";
2
+ export declare function $suspense(children: () => Child, fallback: () => Child): Child;
@@ -0,0 +1,9 @@
1
+ import type { Child } from "../dom/types";
2
+ export type SwitchCases<V extends PropertyKey> = {
3
+ readonly [K in V]: () => Child;
4
+ };
5
+ export type PartialSwitchCases<V extends PropertyKey> = {
6
+ readonly [K in V]?: () => Child;
7
+ };
8
+ export declare function $switch<V extends PropertyKey>(value: () => V, cases: SwitchCases<NoInfer<V>>): Child;
9
+ export declare function $switch<V extends PropertyKey>(value: () => V, cases: PartialSwitchCases<NoInfer<V>>, fallback: () => Child): Child;
@@ -0,0 +1,55 @@
1
+ import { type Store } from "../core/store";
2
+ import type { MaybeAccessor } from "../dom/types";
3
+ import type { ArrayPath, CheckResult, FormErrors, Path, PathValue, StandardSchemaV1 } from "./types";
4
+ export type FieldChecks<T> = {
5
+ [P in Path<T>]?: (value: PathValue<T, P>, values: T) => CheckResult | PromiseLike<CheckResult>;
6
+ };
7
+ export interface FormOptions<T extends object, Out> {
8
+ initial: T;
9
+ schema?: StandardSchemaV1<unknown, Out>;
10
+ validate?: (values: T) => FormErrors<T> | undefined | void | PromiseLike<FormErrors<T> | undefined | void>;
11
+ fields?: NoInfer<FieldChecks<T>>;
12
+ }
13
+ export type BindProps = {
14
+ name: () => string;
15
+ type?: "checkbox" | "radio";
16
+ value?: () => string;
17
+ checked?: () => boolean;
18
+ oninput?: (event: Event) => void;
19
+ onchange?: (event: Event) => void;
20
+ onblur: () => void;
21
+ "aria-invalid": () => "true" | undefined;
22
+ };
23
+ export interface FieldArray<Item> {
24
+ items(): readonly Store<Item>[];
25
+ add(item: Item, at?: number): void;
26
+ remove(index: number): void;
27
+ move(from: number, to: number): void;
28
+ }
29
+ type ItemOf<V> = V extends readonly (infer Item)[] ? Item : never;
30
+ export interface Form<T extends object, Out = T> {
31
+ readonly values: Store<T>;
32
+ value<P extends Path<T>>(path: MaybeAccessor<P>): PathValue<T, P>;
33
+ set<P extends Path<T>>(path: P, value: PathValue<T, P>): void;
34
+ update(fn: (draft: T) => void): void;
35
+ bind<P extends Path<T>>(path: MaybeAccessor<P>, options?: {
36
+ value?: string;
37
+ }): BindProps;
38
+ error(path?: MaybeAccessor<Path<T> | "">): string | undefined;
39
+ touched(path: MaybeAccessor<Path<T>>): boolean;
40
+ touch(path: Path<T>): void;
41
+ dirty(path?: MaybeAccessor<Path<T>>): boolean;
42
+ valid(): boolean;
43
+ validating(): boolean;
44
+ submitting(): boolean;
45
+ submitted(): boolean;
46
+ array<P extends ArrayPath<T>>(path: P): FieldArray<ItemOf<PathValue<T, P>>>;
47
+ setErrors(errors: FormErrors<T> | {
48
+ readonly status: number;
49
+ readonly body: unknown;
50
+ }): boolean;
51
+ submit(handler: (values: Out) => unknown): (event?: Event) => Promise<boolean>;
52
+ reset(values?: T): void;
53
+ }
54
+ export declare function form<T extends object, Out = T>(options: FormOptions<T, Out>): Form<T, Out>;
55
+ export {};
@@ -0,0 +1,2 @@
1
+ export { form, type BindProps, type FieldArray, type FieldChecks, type Form, type FormOptions } from "./form";
2
+ export type { ArrayPath, CheckResult, FormErrors, Path, PathValue, StandardIssue, StandardResult, StandardSchemaV1 } from "./types";
@@ -0,0 +1,6 @@
1
+ export declare function getAt(source: unknown, path: string): unknown;
2
+ export declare function setAt(target: object, path: string, value: unknown): void;
3
+ export declare function deepEqual(a: unknown, b: unknown): boolean;
4
+ export declare function within(path: string, parent: string): boolean;
5
+ export declare function remapKeys<V>(record: Readonly<Record<string, V>>, list: string, move: (index: number) => number): Record<string, V>;
6
+ export declare function serverErrors(body: unknown): Record<string, string>;
@@ -0,0 +1,38 @@
1
+ type Leaf = string | number | boolean | bigint | symbol | null | undefined | Date | Blob | ((...args: never[]) => unknown);
2
+ export type Path<T, Depth extends unknown[] = []> = Depth["length"] extends 8 ? never : T extends Leaf ? never : T extends readonly (infer Item)[] ? `${number}` | SubPath<`${number}`, Item, Depth> : {
3
+ [K in keyof T & string]: K | SubPath<K, T[K], Depth>;
4
+ }[keyof T & string];
5
+ type SubPath<K extends string, V, Depth extends unknown[]> = V extends Leaf ? never : `${K}.${Path<V, [...Depth, unknown]>}`;
6
+ export type PathValue<T, P extends string> = P extends `${infer Head}.${infer Rest}` ? PathValue<Step<T, Head>, Rest> : Step<T, P>;
7
+ type Step<T, K extends string> = T extends readonly (infer Item)[] ? (K extends `${number}` ? Item : never) : K extends keyof T ? T[K] : never;
8
+ export type ArrayPath<T> = {
9
+ [P in Path<T>]: PathValue<T, P> extends readonly unknown[] ? P : never;
10
+ }[Path<T>];
11
+ export type FormErrors<T> = {
12
+ [P in Path<T> | ""]?: string;
13
+ };
14
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
15
+ readonly "~standard": {
16
+ readonly version: 1;
17
+ readonly vendor: string;
18
+ readonly validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>;
19
+ readonly types?: {
20
+ readonly input: Input;
21
+ readonly output: Output;
22
+ } | undefined;
23
+ };
24
+ }
25
+ export type StandardResult<Output> = {
26
+ readonly value: Output;
27
+ readonly issues?: undefined;
28
+ } | {
29
+ readonly issues: readonly StandardIssue[];
30
+ };
31
+ export interface StandardIssue {
32
+ readonly message: string;
33
+ readonly path?: readonly (PropertyKey | {
34
+ readonly key: PropertyKey;
35
+ })[] | undefined;
36
+ }
37
+ export type CheckResult = string | null | undefined | false;
38
+ export {};
@@ -8,3 +8,5 @@ export { catchError, createRoot, getOwner, onCleanup, onMount, renderStatic, run
8
8
  export { createContext, provide, useContext, type Context, type ContextOptions } from "./core/context";
9
9
  export { reconcile, store, unwrap, type ReconcileOptions, type SetStore, type Store, type StoreOptions } from "./core/store";
10
10
  export * from "./dom/index";
11
+ export * from "./flow/index";
12
+ export * from "./async/index";
@@ -0,0 +1,21 @@
1
+ export interface HistoryLocation {
2
+ path: string;
3
+ search: string;
4
+ hash: string;
5
+ }
6
+ export interface RouterHistory {
7
+ read(): HistoryLocation;
8
+ push(url: string): void;
9
+ replace(url: string): void;
10
+ listen(callback: () => void): () => void;
11
+ href(url: string): string;
12
+ toAppUrl(url: URL): string | null;
13
+ key(): string;
14
+ }
15
+ export declare function browserHistory(base?: string): RouterHistory;
16
+ export declare function hashHistory(): RouterHistory;
17
+ export declare function memoryHistory(initial?: string): RouterHistory & {
18
+ back(): void;
19
+ forward(): void;
20
+ };
21
+ export declare function splitUrl(url: string): HistoryLocation;
@@ -0,0 +1,3 @@
1
+ export { createRouter, type RouterConfig } from "./router";
2
+ export { browserHistory, hashHistory, memoryHistory, type HistoryLocation, type RouterHistory } from "./history";
3
+ export type { GuardResult, LayoutProps, LinkOptions, NavigateOptions, NavigationTarget, ParamNames, Params, QueryOf, QuerySchema, QuerySpec, QueryValues, RouteDef, RouteMatch, RoutePath, Router } from "./types";
@@ -0,0 +1 @@
1
+ export declare function linkTarget(event: MouseEvent, toAppUrl: (url: URL) => string | null): string | null;
@@ -0,0 +1,15 @@
1
+ import type { QuerySchema, RouteDef, RouteMatch } from "./types";
2
+ export interface Branch {
3
+ path: string;
4
+ routes: readonly RouteDef[];
5
+ pattern: RegExp;
6
+ keys: string[];
7
+ score: number;
8
+ }
9
+ export declare function joinPath(parent: string, path: string): string;
10
+ export declare function compileRoutes(routes: readonly RouteDef[]): Branch[];
11
+ export declare function matchPath(branches: readonly Branch[], pathname: string): RouteMatch | null;
12
+ export declare function branchSchema(match: RouteMatch | null): QuerySchema;
13
+ export declare function parseQuery(schema: QuerySchema, search: string): Record<string, string | number | boolean>;
14
+ export declare function buildSearch(values: Readonly<Record<string, string | number | boolean | undefined>>): string;
15
+ export declare function fillParams(path: string, params: Readonly<Record<string, string | number>> | undefined): string;
@@ -0,0 +1,10 @@
1
+ import { type RouterHistory } from "./history";
2
+ import type { RouteDef, Router } from "./types";
3
+ export interface RouterConfig<Routes extends readonly RouteDef[]> {
4
+ routes: Routes;
5
+ history?: "browser" | "hash" | RouterHistory;
6
+ base?: string;
7
+ links?: boolean;
8
+ scroll?: boolean;
9
+ }
10
+ export declare function createRouter<const Routes extends readonly RouteDef[]>(config: RouterConfig<Routes>): Router<Routes>;
@@ -0,0 +1,5 @@
1
+ export interface Scroller {
2
+ save(key: string): void;
3
+ restore(key: string, popped: boolean, pathChanged: boolean, hash: string, hashChanged: boolean): void;
4
+ }
5
+ export declare function createScroller(): Scroller;
@@ -0,0 +1,87 @@
1
+ import type { Child } from "../dom/types";
2
+ import type { Accessor } from "../core/types";
3
+ export type QuerySpec = "string" | "number" | "boolean" | readonly string[];
4
+ export type QuerySchema = Readonly<Record<string, QuerySpec>>;
5
+ export type QueryValues<S> = {
6
+ -readonly [K in keyof S]?: S[K] extends "number" ? number : S[K] extends "boolean" ? boolean : S[K] extends readonly (infer V)[] ? V : string;
7
+ };
8
+ export interface NavigationTarget {
9
+ path: string;
10
+ route: string | null;
11
+ params: Readonly<Record<string, string>>;
12
+ search: string;
13
+ from: string | null;
14
+ }
15
+ export type GuardResult = boolean | string;
16
+ export interface LayoutProps {
17
+ children: Child;
18
+ }
19
+ export interface RouteDef {
20
+ readonly path: string;
21
+ readonly component?: () => Child;
22
+ readonly layout?: (props: LayoutProps) => Child;
23
+ readonly children?: readonly RouteDef[];
24
+ readonly query?: QuerySchema;
25
+ readonly guard?: (to: NavigationTarget) => GuardResult | PromiseLike<GuardResult>;
26
+ }
27
+ type Join<Parent extends string, Path extends string> = Path extends `/${string}` ? Path : Path extends "" ? Parent extends "" ? "/" : Parent : Parent extends "" | "/" ? `/${Path}` : `${Parent}/${Path}`;
28
+ type OwnQuery<D> = D extends {
29
+ readonly query: infer Q;
30
+ } ? Q : {};
31
+ export type RouteEntries<Routes, Parent extends string = "", ParentQuery = {}> = Routes extends readonly (infer D)[] ? D extends {
32
+ readonly path: infer P extends string;
33
+ } ? {
34
+ path: Join<Parent, P>;
35
+ query: ParentQuery & OwnQuery<D>;
36
+ } | (D extends {
37
+ readonly children: infer C;
38
+ } ? RouteEntries<C, Join<Parent, P>, ParentQuery & OwnQuery<D>> : never) : never : never;
39
+ export type RoutePath<Routes> = Exclude<RouteEntries<Routes>["path"], `${string}*${string}`>;
40
+ export type ParamNames<P extends string> = P extends `${string}:${infer Name}/${infer Rest}` ? Name | ParamNames<`/${Rest}`> : P extends `${string}:${infer Name}` ? Name : never;
41
+ export type Params<P extends string> = {
42
+ [K in ParamNames<P>]: string;
43
+ };
44
+ export type QueryOf<Routes, P extends string> = QueryValues<Extract<RouteEntries<Routes>, {
45
+ path: P;
46
+ }>["query"]>;
47
+ export type LinkOptions<Routes, P extends string> = {
48
+ query?: QueryOf<Routes, P>;
49
+ hash?: string;
50
+ } & ([ParamNames<P>] extends [never] ? {
51
+ params?: undefined;
52
+ } : {
53
+ params: {
54
+ [K in ParamNames<P>]: string | number;
55
+ };
56
+ });
57
+ export type PlainUrl<U extends string> = U extends `${string}/:${string}` ? never : U;
58
+ export interface NavigateOptions {
59
+ replace?: boolean;
60
+ }
61
+ export interface RouteMatch {
62
+ path: string;
63
+ routes: readonly RouteDef[];
64
+ params: Readonly<Record<string, string>>;
65
+ }
66
+ export interface Router<Routes extends readonly RouteDef[]> {
67
+ location: Accessor<{
68
+ path: string;
69
+ search: string;
70
+ hash: string;
71
+ }>;
72
+ match: Accessor<RouteMatch | null>;
73
+ params: Accessor<Readonly<Record<string, string>>>;
74
+ query: Accessor<Readonly<Record<string, string | number | boolean>>>;
75
+ pending: Accessor<boolean>;
76
+ navigate<P extends RoutePath<Routes>>(path: P, ...options: [ParamNames<P>] extends [never] ? [(LinkOptions<Routes, P> & NavigateOptions)?] : [LinkOptions<Routes, P> & NavigateOptions]): Promise<boolean>;
77
+ navigate<U extends string>(url: PlainUrl<U>, options?: NavigateOptions): Promise<boolean>;
78
+ href<P extends RoutePath<Routes>>(path: P, ...options: [ParamNames<P>] extends [never] ? [LinkOptions<Routes, P>?] : [LinkOptions<Routes, P>]): string;
79
+ onLeave(check: (to: NavigationTarget) => boolean | PromiseLike<boolean>): void;
80
+ view(): Child;
81
+ setQuery(values: Readonly<Record<string, string | number | boolean | undefined>>, options?: {
82
+ push?: boolean;
83
+ }): void;
84
+ isActive(path: string, exact?: boolean): boolean;
85
+ dispose(): void;
86
+ }
87
+ export {};
@@ -8,6 +8,6 @@ export type SvgProps<E extends SVGElement> = AttributeProps & EventProps<E> & {
8
8
  ref?: (element: E) => void;
9
9
  };
10
10
  export interface SvgElementFactory<E extends SVGElement> {
11
- (props?: SvgProps<E> | null, children?: Child): E;
12
11
  (children: Child): E;
12
+ (props?: SvgProps<E> | null, children?: Child): E;
13
13
  }
package/package.json CHANGED
@@ -1,13 +1,22 @@
1
1
  {
2
2
  "name": "keits",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Fine-grained reactive TypeScript framework. Real DOM, no virtual DOM, zero dependencies.",
5
- "keywords": ["reactive", "signals", "framework", "typescript", "fine-grained", "no-vdom"],
5
+ "keywords": [
6
+ "reactive",
7
+ "signals",
8
+ "framework",
9
+ "typescript",
10
+ "fine-grained",
11
+ "no-vdom"
12
+ ],
6
13
  "author": "Michael Ranni",
7
14
  "license": "MIT",
8
15
  "type": "module",
9
16
  "sideEffects": false,
10
- "files": ["dist"],
17
+ "files": [
18
+ "dist"
19
+ ],
11
20
  "types": "./dist/types/index.d.ts",
12
21
  "exports": {
13
22
  ".": {
@@ -21,6 +30,24 @@
21
30
  "types": "./dist/types/svg/index.d.ts",
22
31
  "development": "./dist/dev/svg.js",
23
32
  "default": "./dist/prod/svg.js"
33
+ },
34
+ "./router": {
35
+ "@keits/source": "./src/router/index.ts",
36
+ "types": "./dist/types/router/index.d.ts",
37
+ "development": "./dist/dev/router.js",
38
+ "default": "./dist/prod/router.js"
39
+ },
40
+ "./api": {
41
+ "@keits/source": "./src/api/index.ts",
42
+ "types": "./dist/types/api/index.d.ts",
43
+ "development": "./dist/dev/api.js",
44
+ "default": "./dist/prod/api.js"
45
+ },
46
+ "./forms": {
47
+ "@keits/source": "./src/forms/index.ts",
48
+ "types": "./dist/types/forms/index.d.ts",
49
+ "development": "./dist/dev/forms.js",
50
+ "default": "./dist/prod/forms.js"
24
51
  }
25
52
  },
26
53
  "scripts": {
@@ -29,9 +56,13 @@
29
56
  "prepublishOnly": "cd ../.. && npm run check"
30
57
  },
31
58
  "size-budget": {
32
- "dist/prod/index.js": 5376,
59
+ "dist/prod/index.js": 7168,
33
60
  "size/basic.js": 1792,
34
61
  "size/dom-basic.js": 3072,
35
- "size/svg-icon.js": 3328
62
+ "size/svg-icon.js": 3328,
63
+ "size/data-app.js": 5120,
64
+ "size/router-app.js": 6144,
65
+ "size/api-app.js": 6656,
66
+ "size/forms-app.js": 6656
36
67
  }
37
- }
68
+ }