@mak-98/xml-dirvi-app 0.11.0-beta.6.1 → 0.11.0-beta.7
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { TreeNode,
|
|
2
|
+
import type { TreeNode, TreeMethods } from 'dirvi-lib';
|
|
3
3
|
/**
|
|
4
4
|
* A node key containing its UUID and display name.
|
|
5
5
|
*
|
|
@@ -117,7 +117,7 @@ export declare const xmlValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
117
117
|
target: z.ZodString;
|
|
118
118
|
data: z.ZodString;
|
|
119
119
|
}, z.core.$strip>], "kind">;
|
|
120
|
-
export declare function createConstructors(xmlTreeNodeApi:
|
|
120
|
+
export declare function createConstructors(xmlTreeNodeApi: TreeMethods<XmlId, XmlNodeValue>): {
|
|
121
121
|
readonly document: (id: XmlId, children: Iterable<XmlTreeNode>) => XmlTreeNode | undefined;
|
|
122
122
|
readonly declaration: (id: XmlId, version: string, encoding: string | null, standalone: "yes" | "no" | null) => XmlTreeNode;
|
|
123
123
|
readonly doctype: (id: XmlId, name: string, publicId: string | null, systemId: string | null, internalSubset: string | null) => XmlTreeNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XmlNode } from '@rgrove/parse-xml';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TreeMethods } from 'dirvi-lib';
|
|
3
3
|
import type { XmlNodeValue, XmlTreeNode } from '../domain/xml-tree.js';
|
|
4
4
|
import type { XmlId } from '../domain/xml-tree.js';
|
|
5
5
|
/**
|
|
@@ -16,5 +16,5 @@ export type CreateXmlId = (name: string) => XmlId;
|
|
|
16
16
|
* mixed content such as text, elements, comments, and CDATA remains in its
|
|
17
17
|
* source-document order.
|
|
18
18
|
*/
|
|
19
|
-
export declare function getXmlEntries(treeNodeApi:
|
|
19
|
+
export declare function getXmlEntries(treeNodeApi: TreeMethods<XmlId, XmlNodeValue>, xmlNodes: readonly XmlNode[], createXmlId: CreateXmlId): XmlTreeNode[];
|
|
20
20
|
//# sourceMappingURL=get-xml-entries.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TreeMethods } from 'dirvi-lib';
|
|
2
2
|
import type { XmlId, XmlNodeValue, XmlTreeNode } from '../domain/xml-tree.js';
|
|
3
3
|
export declare const createXmlId: (name: string) => XmlId;
|
|
4
4
|
/**
|
|
@@ -7,5 +7,5 @@ export declare const createXmlId: (name: string) => XmlId;
|
|
|
7
7
|
* Each node receives an ID containing a fresh UUID and its node name.
|
|
8
8
|
* Source child order is preserved by the TreeNode child sequence.
|
|
9
9
|
*/
|
|
10
|
-
export declare function parseXmlDocument(treeNodeApi:
|
|
10
|
+
export declare function parseXmlDocument(treeNodeApi: TreeMethods<XmlId, XmlNodeValue>, source: string): XmlTreeNode;
|
|
11
11
|
//# sourceMappingURL=parse-xml-document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml-dirvi-app.d.ts","sourceRoot":"","sources":["../src/xml-dirvi-app.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAQnD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"xml-dirvi-app.d.ts","sourceRoot":"","sources":["../src/xml-dirvi-app.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAQnD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,SAwC1B,CAAC"}
|
package/dist/xml-dirvi-app.js
CHANGED