@hamak/ui-store-api 0.4.0 → 0.4.2
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/api/index.js +19 -3
- package/dist/es2015/api/middleware-registry.js +2 -1
- package/dist/es2015/api/reducer-registry.js +2 -1
- package/dist/es2015/api/store-manager.js +2 -1
- package/dist/es2015/fs/contracts/filesystem-facade.contract.js +2 -1
- package/dist/es2015/fs/contracts/filesystem-manager.contract.js +2 -1
- package/dist/es2015/fs/index.js +21 -5
- package/dist/es2015/index.js +20 -4
- package/dist/es2015/tokens/index.js +17 -1
- package/dist/es2015/tokens/service-tokens.js +7 -4
- package/dist/es2015/types/extension-types.js +2 -1
- package/dist/es2015/types/index.js +20 -4
- package/dist/es2015/types/middleware-types.js +2 -1
- package/dist/es2015/types/reducer-types.js +2 -1
- package/dist/es2015/types/store-types.js +2 -1
- 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 +5 -5
- 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/tsconfig.es2015.json +11 -13
- 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/api/index.js
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* API Interfaces Export
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./store-manager"), exports);
|
|
21
|
+
__exportStar(require("./middleware-registry"), exports);
|
|
22
|
+
__exportStar(require("./reducer-registry"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/es2015/fs/index.js
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.fileSystemNodeInitialState = void 0;
|
|
18
|
+
var shared_utils_1 = require("@hamak/shared-utils");
|
|
19
|
+
Object.defineProperty(exports, "fileSystemNodeInitialState", { enumerable: true, get: function () { return shared_utils_1.fileSystemNodeInitialState; } });
|
|
4
20
|
// Filesystem contracts
|
|
5
|
-
|
|
6
|
-
|
|
21
|
+
__exportStar(require("./contracts/filesystem-manager.contract"), exports);
|
|
22
|
+
__exportStar(require("./contracts/filesystem-facade.contract"), exports);
|
package/dist/es2015/index.js
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* UI Store API
|
|
3
4
|
* Public interfaces, types, and tokens for Redux state management
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./types"), exports);
|
|
22
|
+
__exportStar(require("./api"), exports);
|
|
23
|
+
__exportStar(require("./tokens"), exports);
|
|
24
|
+
__exportStar(require("./fs"), exports);
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Tokens Export
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./service-tokens"), exports);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Dependency Injection Tokens
|
|
3
4
|
* Used for service resolution in the microkernel
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.STORE_EXTENSIONS_TOKEN = exports.REDUCER_REGISTRY_TOKEN = exports.MIDDLEWARE_REGISTRY_TOKEN = exports.STORE_MANAGER_TOKEN = void 0;
|
|
8
|
+
exports.STORE_MANAGER_TOKEN = Symbol('StoreManager');
|
|
9
|
+
exports.MIDDLEWARE_REGISTRY_TOKEN = Symbol('MiddlewareRegistry');
|
|
10
|
+
exports.REDUCER_REGISTRY_TOKEN = Symbol('ReducerRegistry');
|
|
11
|
+
exports.STORE_EXTENSIONS_TOKEN = Symbol('StoreExtensions');
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Type Definitions Export
|
|
3
4
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./store-types"), exports);
|
|
21
|
+
__exportStar(require("./middleware-types"), exports);
|
|
22
|
+
__exportStar(require("./reducer-types"), exports);
|
|
23
|
+
__exportStar(require("./extension-types"), exports);
|
|
@@ -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.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "UI Store API - Redux store interfaces and contracts",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
".": {
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"import": "./dist/index.js",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"require": "./dist/es2015/index.js",
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
30
|
},
|
|
31
31
|
"./es2015": {
|
|
32
|
-
"
|
|
32
|
+
"require": "./dist/es2015/index.js",
|
|
33
33
|
"default": "./dist/es2015/index.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@hamak/
|
|
37
|
+
"@hamak/shared-utils": "0.4.2",
|
|
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';
|
package/tsconfig.es2015.json
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
3
|
"target": "ES2015",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"lib": ["ES2015"],
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"strict": true,
|
|
8
10
|
"outDir": "./dist/es2015",
|
|
11
|
+
"rootDir": "./src",
|
|
9
12
|
"declaration": false,
|
|
10
13
|
"declarationMap": false,
|
|
11
14
|
"sourceMap": false,
|
|
12
15
|
"downlevelIteration": true,
|
|
13
|
-
"
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"allowSyntheticDefaultImports": true
|
|
14
18
|
},
|
|
15
|
-
"include": [
|
|
16
|
-
|
|
17
|
-
],
|
|
18
|
-
"exclude": [
|
|
19
|
-
"node_modules",
|
|
20
|
-
"dist",
|
|
21
|
-
"**/*.test.ts"
|
|
22
|
-
]
|
|
19
|
+
"include": ["src/**/*"],
|
|
20
|
+
"exclude": ["node_modules", "dist", "**/*.test.ts"]
|
|
23
21
|
}
|
|
@@ -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
|
-
}
|