@nil-/doc 0.1.0 → 0.2.1
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/CHANGELOG.md +14 -0
- package/LICENSE +7 -0
- package/README.md +5 -0
- package/components/Layout.svelte.d.ts +3 -3
- package/components/block/Block.svelte.d.ts +3 -3
- package/components/block/Controls.svelte.d.ts +3 -3
- package/components/block/Params.svelte.d.ts +3 -3
- package/components/block/Template.svelte.d.ts +3 -3
- package/components/block/context.d.ts +2 -2
- package/components/block/controls/Number.svelte.d.ts +3 -3
- package/components/block/controls/Range.svelte.d.ts +3 -3
- package/components/block/controls/Select.svelte.d.ts +3 -3
- package/components/block/controls/Switch.svelte.d.ts +3 -3
- package/components/block/controls/Text.svelte.d.ts +3 -3
- package/components/etc/Container.svelte.d.ts +3 -3
- package/components/etc/action.d.ts +2 -2
- package/components/navigation/Nav.svelte.d.ts +3 -3
- package/components/navigation/Node.svelte.d.ts +3 -3
- package/components/navigation/Tree.svelte.d.ts +3 -3
- package/package.json +14 -4
package/CHANGELOG.md
CHANGED
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# [ISC License](https://spdx.org/licenses/ISC)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022, Neil Aldea <njaldea@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
ADDED
|
@@ -17,9 +17,9 @@ declare const __propDef: {
|
|
|
17
17
|
content: {};
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
20
|
+
export type LayoutProps = typeof __propDef.props;
|
|
21
|
+
export type LayoutEvents = typeof __propDef.events;
|
|
22
|
+
export type LayoutSlots = typeof __propDef.slots;
|
|
23
23
|
export default class Layout extends SvelteComponentTyped<LayoutProps, LayoutEvents, LayoutSlots> {
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -8,9 +8,9 @@ declare const __propDef: {
|
|
|
8
8
|
default: {};
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
11
|
+
export type BlockProps = typeof __propDef.props;
|
|
12
|
+
export type BlockEvents = typeof __propDef.events;
|
|
13
|
+
export type BlockSlots = typeof __propDef.slots;
|
|
14
14
|
export default class Block extends SvelteComponentTyped<BlockProps, BlockEvents, BlockSlots> {
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -9,9 +9,9 @@ declare const __propDef: {
|
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
12
|
+
export type ControlsProps = typeof __propDef.props;
|
|
13
|
+
export type ControlsEvents = typeof __propDef.events;
|
|
14
|
+
export type ControlsSlots = typeof __propDef.slots;
|
|
15
15
|
export default class Controls extends SvelteComponentTyped<ControlsProps, ControlsEvents, ControlsSlots> {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -9,9 +9,9 @@ declare const __propDef: {
|
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
12
|
+
export type ParamsProps = typeof __propDef.props;
|
|
13
|
+
export type ParamsEvents = typeof __propDef.events;
|
|
14
|
+
export type ParamsSlots = typeof __propDef.slots;
|
|
15
15
|
export default class Params extends SvelteComponentTyped<ParamsProps, ParamsEvents, ParamsSlots> {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -13,9 +13,9 @@ declare class __sveltets_Render<Args> {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type TemplateProps<Args> = ReturnType<__sveltets_Render<Args>['props']>;
|
|
17
|
+
export type TemplateEvents<Args> = ReturnType<__sveltets_Render<Args>['events']>;
|
|
18
|
+
export type TemplateSlots<Args> = ReturnType<__sveltets_Render<Args>['slots']>;
|
|
19
19
|
export default class Template<Args> extends SvelteComponentTyped<TemplateProps<Args>, TemplateEvents<Args>, TemplateSlots<Args>> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Control } from "./controls/types";
|
|
2
2
|
import type { Writable } from "svelte/store";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ParamValues = Record<string, any>;
|
|
4
|
+
export type Params = {
|
|
5
5
|
id: number;
|
|
6
6
|
tag: string;
|
|
7
7
|
values: ParamValues;
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type NumberProps = typeof __propDef.props;
|
|
14
|
+
export type NumberEvents = typeof __propDef.events;
|
|
15
|
+
export type NumberSlots = typeof __propDef.slots;
|
|
16
16
|
export default class Number extends SvelteComponentTyped<NumberProps, NumberEvents, NumberSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type RangeProps = typeof __propDef.props;
|
|
14
|
+
export type RangeEvents = typeof __propDef.events;
|
|
15
|
+
export type RangeSlots = typeof __propDef.slots;
|
|
16
16
|
export default class Range extends SvelteComponentTyped<RangeProps, RangeEvents, RangeSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type SelectProps = typeof __propDef.props;
|
|
14
|
+
export type SelectEvents = typeof __propDef.events;
|
|
15
|
+
export type SelectSlots = typeof __propDef.slots;
|
|
16
16
|
export default class Select extends SvelteComponentTyped<SelectProps, SelectEvents, SelectSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type SwitchProps = typeof __propDef.props;
|
|
14
|
+
export type SwitchEvents = typeof __propDef.events;
|
|
15
|
+
export type SwitchSlots = typeof __propDef.slots;
|
|
16
16
|
export default class Switch extends SvelteComponentTyped<SwitchProps, SwitchEvents, SwitchSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type TextProps = typeof __propDef.props;
|
|
14
|
+
export type TextEvents = typeof __propDef.events;
|
|
15
|
+
export type TextSlots = typeof __propDef.slots;
|
|
16
16
|
export default class Text extends SvelteComponentTyped<TextProps, TextEvents, TextSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -15,9 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
b: {};
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type ContainerProps = typeof __propDef.props;
|
|
19
|
+
export type ContainerEvents = typeof __propDef.events;
|
|
20
|
+
export type ContainerSlots = typeof __propDef.slots;
|
|
21
21
|
export default class Container extends SvelteComponentTyped<ContainerProps, ContainerEvents, ContainerSlots> {
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type Writable } from "svelte/store";
|
|
2
2
|
import type { ActionReturn } from "svelte/action";
|
|
3
|
-
|
|
3
|
+
type Parameter = {
|
|
4
4
|
reset: () => number;
|
|
5
5
|
vertical: boolean;
|
|
6
6
|
reversed: boolean;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type Return = {
|
|
9
9
|
position: Writable<number>;
|
|
10
10
|
draggable: (div: HTMLDivElement, parameter: Parameter) => ActionReturn<Parameter>;
|
|
11
11
|
};
|
|
@@ -16,9 +16,9 @@ declare const __propDef: {
|
|
|
16
16
|
default: {};
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type NavProps = typeof __propDef.props;
|
|
20
|
+
export type NavEvents = typeof __propDef.events;
|
|
21
|
+
export type NavSlots = typeof __propDef.slots;
|
|
22
22
|
export default class Nav extends SvelteComponentTyped<NavProps, NavEvents, NavSlots> {
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -18,9 +18,9 @@ declare const __propDef: {
|
|
|
18
18
|
};
|
|
19
19
|
slots: {};
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
21
|
+
export type NodeProps = typeof __propDef.props;
|
|
22
|
+
export type NodeEvents = typeof __propDef.events;
|
|
23
|
+
export type NodeSlots = typeof __propDef.slots;
|
|
24
24
|
export default class Node extends SvelteComponentTyped<NodeProps, NodeEvents, NodeSlots> {
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -16,9 +16,9 @@ declare const __propDef: {
|
|
|
16
16
|
};
|
|
17
17
|
slots: {};
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type TreeProps = typeof __propDef.props;
|
|
20
|
+
export type TreeEvents = typeof __propDef.events;
|
|
21
|
+
export type TreeSlots = typeof __propDef.slots;
|
|
22
22
|
export default class Tree extends SvelteComponentTyped<TreeProps, TreeEvents, TreeSlots> {
|
|
23
23
|
}
|
|
24
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nil-/doc",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"author": {
|
|
5
|
+
"email": "njaldea@gmail.com",
|
|
6
|
+
"name": "Neil Aldea"
|
|
7
|
+
},
|
|
4
8
|
"devDependencies": {
|
|
5
|
-
"@sveltejs/adapter-auto": "
|
|
6
|
-
"@sveltejs/kit": "
|
|
9
|
+
"@sveltejs/adapter-auto": "next",
|
|
10
|
+
"@sveltejs/kit": "next",
|
|
7
11
|
"@sveltejs/package": "next",
|
|
8
12
|
"mdsvex": "^0.10.6",
|
|
9
13
|
"svelte": "^3.53.1",
|
|
@@ -11,13 +15,19 @@
|
|
|
11
15
|
"svelte-markdown": "^0.2.3",
|
|
12
16
|
"svelte-preprocess": "^4.10.7",
|
|
13
17
|
"tslib": "^2.4.1",
|
|
14
|
-
"typescript": "^4.
|
|
18
|
+
"typescript": "^4.9.3",
|
|
15
19
|
"vite": "^3.2.4"
|
|
16
20
|
},
|
|
17
21
|
"type": "module",
|
|
18
22
|
"publishConfig": {
|
|
19
23
|
"linkDirectory": true
|
|
20
24
|
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"svelte",
|
|
27
|
+
"documentation",
|
|
28
|
+
"component"
|
|
29
|
+
],
|
|
30
|
+
"license": "ISC",
|
|
21
31
|
"exports": {
|
|
22
32
|
"./package.json": "./package.json",
|
|
23
33
|
".": "./index.js"
|