@hamak/ui-store-api 0.4.0 → 0.4.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/dist/es2015/fs/index.js +1 -3
- package/dist/fs/contracts/filesystem-facade.contract.d.ts +1 -2
- package/dist/fs/contracts/filesystem-facade.contract.d.ts.map +1 -1
- package/dist/fs/contracts/filesystem-manager.contract.d.ts +1 -1
- package/dist/fs/contracts/filesystem-manager.contract.d.ts.map +1 -1
- package/dist/fs/index.d.ts +2 -3
- package/dist/fs/index.d.ts.map +1 -1
- package/dist/fs/index.js +1 -3
- package/package.json +2 -2
- package/src/fs/contracts/filesystem-facade.contract.ts +1 -2
- package/src/fs/contracts/filesystem-manager.contract.ts +1 -2
- package/src/fs/index.ts +12 -6
- package/dist/es2015/fs/types/fs-node.types.js +0 -1
- package/dist/es2015/fs/types/fs-state.types.js +0 -12
- package/dist/fs/types/fs-node.types.d.ts +0 -37
- package/dist/fs/types/fs-node.types.d.ts.map +0 -1
- package/dist/fs/types/fs-node.types.js +0 -1
- package/dist/fs/types/fs-state.types.d.ts +0 -32
- package/dist/fs/types/fs-state.types.d.ts.map +0 -1
- package/dist/fs/types/fs-state.types.js +0 -12
- package/src/fs/types/fs-node.types.ts +0 -45
- package/src/fs/types/fs-state.types.ts +0 -39
package/dist/es2015/fs/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './types/fs-node.types';
|
|
3
|
-
export * from './types/fs-state.types';
|
|
1
|
+
export { fileSystemNodeInitialState } from '@hamak/shared-utils';
|
|
4
2
|
// Filesystem contracts
|
|
5
3
|
export * from './contracts/filesystem-manager.contract';
|
|
6
4
|
export * from './contracts/filesystem-facade.contract';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FileSystemNode, DirectoryNode, FileNode } from '
|
|
2
|
-
import { Path } from '@hamak/navigation-utils';
|
|
1
|
+
import { FileSystemNode, DirectoryNode, FileNode, Path } from '@hamak/shared-utils';
|
|
3
2
|
/**
|
|
4
3
|
* High-level facade for filesystem operations
|
|
5
4
|
* Provides a convenient API over the filesystem manager
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem-facade.contract.d.ts","sourceRoot":"","sources":["../../../src/fs/contracts/filesystem-facade.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"filesystem-facade.contract.d.ts","sourceRoot":"","sources":["../../../src/fs/contracts/filesystem-facade.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEpF;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,IAAI,aAAa,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,SAAS,CAAC;IAEhD;;OAEG;IACH,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D;;OAEG;IACH,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,aAAa,GAAG,SAAS,CAAC;IAExD;;OAEG;IACH,OAAO,CAAC,CAAC,GAAG,GAAG,EACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,CAAC,EACV,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAC1D,IAAI,CAAC;IAER;;OAEG;IACH,iBAAiB,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IAE5B;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem-manager.contract.d.ts","sourceRoot":"","sources":["../../../src/fs/contracts/filesystem-manager.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA2B,eAAe,
|
|
1
|
+
{"version":3,"file":"filesystem-manager.contract.d.ts","sourceRoot":"","sources":["../../../src/fs/contracts/filesystem-manager.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA2B,eAAe,EAAQ,MAAM,qBAAqB,CAAC;AACrG,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,MAAM;IAClD,OAAO,EAAE,GAAG,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,eAAe,IAAI,eAAe,CAAC;IAEnC;;OAEG;IACH,UAAU,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,KAAK,eAAe,CAAC;IAE1E;;OAEG;IACH,cAAc,CAAC,CAAC,EACd,kBAAkB,EAAE,QAAQ,CAAC,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC,EAC5D,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GACtB,QAAQ,CAAC,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;CAC5C"}
|
package/dist/fs/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type { FileSystemNode, DirectoryNode, FileNode, FileSystemNodeBase, FileSystemNodeState, FileMemoState, FileSystemState, FileContentSchema } from '@hamak/shared-utils';
|
|
2
|
+
export { fileSystemNodeInitialState } from '@hamak/shared-utils';
|
|
3
3
|
export * from './contracts/filesystem-manager.contract';
|
|
4
4
|
export * from './contracts/filesystem-facade.contract';
|
|
5
|
-
export type { FileContentSchema } from '@hamak/navigation-utils';
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/fs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fs/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fs/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC"}
|
package/dist/fs/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './types/fs-node.types';
|
|
3
|
-
export * from './types/fs-state.types';
|
|
1
|
+
export { fileSystemNodeInitialState } from '@hamak/shared-utils';
|
|
4
2
|
// Filesystem contracts
|
|
5
3
|
export * from './contracts/filesystem-manager.contract';
|
|
6
4
|
export * from './contracts/filesystem-facade.contract';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/ui-store-api",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "UI Store API - Redux store interfaces and contracts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@hamak/
|
|
37
|
+
"@hamak/shared-utils": "0.4.1",
|
|
38
38
|
"redux": "^5.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FileSystemNode, DirectoryNode, FileNode } from '
|
|
2
|
-
import { Path } from '@hamak/navigation-utils';
|
|
1
|
+
import { FileSystemNode, DirectoryNode, FileNode, Path } from '@hamak/shared-utils';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* High-level facade for filesystem operations
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FileSystemNode, DirectoryNode, FileNode, FileSystemState } from '
|
|
2
|
-
import { Path } from '@hamak/navigation-utils';
|
|
1
|
+
import { FileSystemNode, DirectoryNode, FileNode, FileSystemState, Path } from '@hamak/shared-utils';
|
|
3
2
|
import { Action } from 'redux';
|
|
4
3
|
|
|
5
4
|
/**
|
package/src/fs/index.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
//
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
// Re-export filesystem types from shared-utils
|
|
2
|
+
export type {
|
|
3
|
+
FileSystemNode,
|
|
4
|
+
DirectoryNode,
|
|
5
|
+
FileNode,
|
|
6
|
+
FileSystemNodeBase,
|
|
7
|
+
FileSystemNodeState,
|
|
8
|
+
FileMemoState,
|
|
9
|
+
FileSystemState,
|
|
10
|
+
FileContentSchema
|
|
11
|
+
} from '@hamak/shared-utils';
|
|
12
|
+
export { fileSystemNodeInitialState } from '@hamak/shared-utils';
|
|
4
13
|
|
|
5
14
|
// Filesystem contracts
|
|
6
15
|
export * from './contracts/filesystem-manager.contract';
|
|
7
16
|
export * from './contracts/filesystem-facade.contract';
|
|
8
|
-
|
|
9
|
-
// Re-export from navigation-utils for convenience
|
|
10
|
-
export type { FileContentSchema } from '@hamak/navigation-utils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create initial filesystem node state
|
|
3
|
-
*/
|
|
4
|
-
export function fileSystemNodeInitialState(contentPresent = true) {
|
|
5
|
-
return {
|
|
6
|
-
contentLoaded: contentPresent,
|
|
7
|
-
contentLoading: false,
|
|
8
|
-
contentLoadError: undefined,
|
|
9
|
-
contentHistory: [],
|
|
10
|
-
extensionStates: {}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AbstractFileNode, AbstractDirectoryNode, FileContentSchema } from '@hamak/navigation-utils';
|
|
2
|
-
import { FileSystemNodeState } from './fs-state.types';
|
|
3
|
-
/**
|
|
4
|
-
* Base interface for filesystem nodes with state
|
|
5
|
-
*/
|
|
6
|
-
export interface FileSystemNodeBase {
|
|
7
|
-
type: 'directory' | 'file';
|
|
8
|
-
name: string;
|
|
9
|
-
state: FileSystemNodeState;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Directory node with state management
|
|
13
|
-
*/
|
|
14
|
-
export interface DirectoryNode extends FileSystemNodeBase, Omit<AbstractDirectoryNode<FileSystemNode>, 'children'> {
|
|
15
|
-
type: 'directory';
|
|
16
|
-
children: Record<string, FileSystemNode>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* File node with state management
|
|
20
|
-
*/
|
|
21
|
-
export interface FileNode<T = any> extends FileSystemNodeBase, AbstractFileNode<T> {
|
|
22
|
-
type: 'file';
|
|
23
|
-
content: T;
|
|
24
|
-
schema: string | FileContentSchema;
|
|
25
|
-
state: FileSystemNodeState;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Union type for filesystem nodes
|
|
29
|
-
*/
|
|
30
|
-
export type FileSystemNode = DirectoryNode | FileNode;
|
|
31
|
-
/**
|
|
32
|
-
* Root filesystem state
|
|
33
|
-
*/
|
|
34
|
-
export interface FileSystemState {
|
|
35
|
-
root: DirectoryNode;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=fs-node.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fs-node.types.d.ts","sourceRoot":"","sources":["../../../src/fs/types/fs-node.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,GAAG,MAAM,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,mBAAmB,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,kBAAkB,EAAE,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAChH,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,kBAAkB,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAChF,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAClC,KAAK,EAAE,mBAAmB,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,QAAQ,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAA;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Holder interface for values that can be undefined
|
|
3
|
-
*/
|
|
4
|
-
export interface Holder<T = any> {
|
|
5
|
-
value: T;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Memo state for tracking file modifications
|
|
9
|
-
*/
|
|
10
|
-
export interface FileMemoState {
|
|
11
|
-
originalContent: Holder;
|
|
12
|
-
modified: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* State information for filesystem nodes
|
|
16
|
-
*/
|
|
17
|
-
export interface FileSystemNodeState {
|
|
18
|
-
contentLoaded: boolean;
|
|
19
|
-
contentLoading: boolean;
|
|
20
|
-
contentLoadError?: {
|
|
21
|
-
code?: string;
|
|
22
|
-
message?: string;
|
|
23
|
-
};
|
|
24
|
-
memo?: FileMemoState;
|
|
25
|
-
contentHistory: any[];
|
|
26
|
-
extensionStates: Record<string, unknown>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Create initial filesystem node state
|
|
30
|
-
*/
|
|
31
|
-
export declare function fileSystemNodeInitialState(contentPresent?: boolean): FileSystemNodeState;
|
|
32
|
-
//# sourceMappingURL=fs-state.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fs-state.types.d.ts","sourceRoot":"","sources":["../../../src/fs/types/fs-state.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,GAAG,GAAG;IAC7B,KAAK,EAAC,CAAC,CAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,OAAO,CAAA;IACtB,cAAc,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtD,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,cAAc,EAAE,GAAG,EAAE,CAAA;IACrB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,cAAc,UAAO,GAAG,mBAAmB,CAQrF"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create initial filesystem node state
|
|
3
|
-
*/
|
|
4
|
-
export function fileSystemNodeInitialState(contentPresent = true) {
|
|
5
|
-
return {
|
|
6
|
-
contentLoaded: contentPresent,
|
|
7
|
-
contentLoading: false,
|
|
8
|
-
contentLoadError: undefined,
|
|
9
|
-
contentHistory: [],
|
|
10
|
-
extensionStates: {}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AbstractFileNode,
|
|
3
|
-
AbstractDirectoryNode,
|
|
4
|
-
FileContentSchema
|
|
5
|
-
} from '@hamak/navigation-utils';
|
|
6
|
-
import { FileSystemNodeState } from './fs-state.types';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Base interface for filesystem nodes with state
|
|
10
|
-
*/
|
|
11
|
-
export interface FileSystemNodeBase {
|
|
12
|
-
type: 'directory' | 'file'
|
|
13
|
-
name: string
|
|
14
|
-
state: FileSystemNodeState
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Directory node with state management
|
|
19
|
-
*/
|
|
20
|
-
export interface DirectoryNode extends FileSystemNodeBase, Omit<AbstractDirectoryNode<FileSystemNode>, 'children'> {
|
|
21
|
-
type: 'directory'
|
|
22
|
-
children: Record<string, FileSystemNode>
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* File node with state management
|
|
27
|
-
*/
|
|
28
|
-
export interface FileNode<T = any> extends FileSystemNodeBase, AbstractFileNode<T> {
|
|
29
|
-
type: 'file'
|
|
30
|
-
content: T
|
|
31
|
-
schema: string | FileContentSchema
|
|
32
|
-
state: FileSystemNodeState
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Union type for filesystem nodes
|
|
37
|
-
*/
|
|
38
|
-
export type FileSystemNode = DirectoryNode | FileNode
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Root filesystem state
|
|
42
|
-
*/
|
|
43
|
-
export interface FileSystemState {
|
|
44
|
-
root: DirectoryNode
|
|
45
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Holder interface for values that can be undefined
|
|
3
|
-
*/
|
|
4
|
-
export interface Holder<T = any>{
|
|
5
|
-
value:T
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Memo state for tracking file modifications
|
|
10
|
-
*/
|
|
11
|
-
export interface FileMemoState {
|
|
12
|
-
originalContent: Holder
|
|
13
|
-
modified: boolean // tell whether the current file content is modified compared to original
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* State information for filesystem nodes
|
|
18
|
-
*/
|
|
19
|
-
export interface FileSystemNodeState {
|
|
20
|
-
contentLoaded: boolean
|
|
21
|
-
contentLoading: boolean
|
|
22
|
-
contentLoadError?: { code?: string, message?: string }
|
|
23
|
-
memo?: FileMemoState
|
|
24
|
-
contentHistory: any[]
|
|
25
|
-
extensionStates: Record<string, unknown>
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Create initial filesystem node state
|
|
30
|
-
*/
|
|
31
|
-
export function fileSystemNodeInitialState(contentPresent = true): FileSystemNodeState {
|
|
32
|
-
return {
|
|
33
|
-
contentLoaded: contentPresent,
|
|
34
|
-
contentLoading: false,
|
|
35
|
-
contentLoadError: undefined,
|
|
36
|
-
contentHistory: [],
|
|
37
|
-
extensionStates: {}
|
|
38
|
-
}
|
|
39
|
-
}
|