@skaldapp/shared 1.2.32 → 1.2.33
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/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import Credential from "./schemas/credential.js";
|
|
|
3
3
|
import Page from "./schemas/page.js";
|
|
4
4
|
export type TCredential = FromSchema<typeof Credential>;
|
|
5
5
|
export type TPage = FromSchema<typeof Page> & {
|
|
6
|
+
$branch: TPage[];
|
|
6
7
|
$children: TPage[];
|
|
7
8
|
$index: number;
|
|
8
9
|
$next?: TPage;
|
|
@@ -38,6 +39,7 @@ export declare const sharedStore: {
|
|
|
38
39
|
[x: string]: unknown;
|
|
39
40
|
};
|
|
40
41
|
name: string | null;
|
|
42
|
+
$branch: any[];
|
|
41
43
|
$children: any[];
|
|
42
44
|
$index: number;
|
|
43
45
|
$next?: any;
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,11 @@ const schemas = [Nodes, Page], ajv = new AJV({
|
|
|
15
15
|
schemas,
|
|
16
16
|
useDefaults: true,
|
|
17
17
|
}), immediate = true, properties = {
|
|
18
|
+
$branch: {
|
|
19
|
+
get() {
|
|
20
|
+
return this.branch.filter(({ frontmatter: { hidden } }) => !hidden);
|
|
21
|
+
},
|
|
22
|
+
},
|
|
18
23
|
$children: {
|
|
19
24
|
get() {
|
|
20
25
|
return this.children.filter(({ frontmatter: { hidden } }) => !hidden);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package",
|
|
3
3
|
"name": "@skaldapp/shared",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.33",
|
|
5
5
|
"description": "A TypeScript library providing reactive data structures, JSON schema validation, and tree utilities for Vue-based applications in the skald ecosystem.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"prettier": "@skaldapp/configs/prettierrc",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@skaldapp/flat-json-tree": "^2.2.
|
|
36
|
+
"@skaldapp/flat-json-tree": "^2.2.24",
|
|
37
37
|
"ajv": "^8.17.1",
|
|
38
38
|
"ajv-keywords": "^5.1.0",
|
|
39
39
|
"json-schema-to-ts": "^3.1.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"vue": "^3.5.27"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@skaldapp/configs": "^1.2.
|
|
44
|
+
"@skaldapp/configs": "^1.2.49",
|
|
45
45
|
"eslint": "^9.39.2"
|
|
46
46
|
}
|
|
47
47
|
}
|