@hamak/ui-remote-resource-impl 0.4.19 → 0.5.0
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/autosave/index.d.ts +5 -0
- package/dist/autosave/index.d.ts.map +1 -0
- package/dist/autosave/index.js +4 -0
- package/dist/autosave/resource-autosave-provider.d.ts +49 -0
- package/dist/autosave/resource-autosave-provider.d.ts.map +1 -0
- package/dist/autosave/resource-autosave-provider.js +90 -0
- package/dist/es2015/autosave/index.js +20 -0
- package/dist/es2015/autosave/resource-autosave-provider.js +108 -0
- package/dist/es2015/index.js +4 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/autosave/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource Autosave Provider
|
|
3
|
+
*
|
|
4
|
+
* Implements autosave for files managed by the remote resource plugin.
|
|
5
|
+
* Uses UPDATE_ENTITY or RESOURCE_CALL_REQUEST actions to save files.
|
|
6
|
+
*/
|
|
7
|
+
import type { Dispatch, AnyAction } from 'redux';
|
|
8
|
+
import type { FileSystemNode } from '@hamak/shared-utils';
|
|
9
|
+
import type { IAutosaveProvider, AutosaveResult } from '@hamak/ui-store-spi';
|
|
10
|
+
import { EntityActionFactory } from '@hamak/ui-remote-resource-api';
|
|
11
|
+
import { ResourceActionFactory } from '@hamak/ui-remote-resource-api';
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for ResourceAutosaveProvider
|
|
14
|
+
*/
|
|
15
|
+
export interface ResourceAutosaveProviderConfig {
|
|
16
|
+
/** Entity action factory */
|
|
17
|
+
entityActionFactory?: EntityActionFactory;
|
|
18
|
+
/** Resource action factory */
|
|
19
|
+
resourceActionFactory?: ResourceActionFactory;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Autosave provider for remote resources
|
|
23
|
+
*
|
|
24
|
+
* This provider handles autosave for files that are managed via the
|
|
25
|
+
* remote resource plugin. It checks for the presence of resource/entity
|
|
26
|
+
* extension state and uses appropriate actions to save changes.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ResourceAutosaveProvider implements IAutosaveProvider {
|
|
29
|
+
readonly id = "remote-resource";
|
|
30
|
+
readonly priority = 20;
|
|
31
|
+
private entityActionFactory;
|
|
32
|
+
private resourceActionFactory;
|
|
33
|
+
constructor(config?: ResourceAutosaveProviderConfig);
|
|
34
|
+
/**
|
|
35
|
+
* Check if this provider supports a given path.
|
|
36
|
+
* Returns true if the node has remote resource extension state.
|
|
37
|
+
*/
|
|
38
|
+
supports(path: string[], node: FileSystemNode): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Save file content to remote server.
|
|
41
|
+
* Dispatches UPDATE_ENTITY (if entity) or RESOURCE_CALL_REQUEST (if resource).
|
|
42
|
+
*/
|
|
43
|
+
save(path: string[], content: unknown, node: FileSystemNode, dispatch: Dispatch<AnyAction>): Promise<AutosaveResult>;
|
|
44
|
+
/**
|
|
45
|
+
* Cancel is a no-op for resources since we don't track in-flight requests here.
|
|
46
|
+
*/
|
|
47
|
+
cancel(path: string[]): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=resource-autosave-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-autosave-provider.d.ts","sourceRoot":"","sources":["../../src/autosave/resource-autosave-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,4BAA4B;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAE1C,8BAA8B;IAC9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,qBAAa,wBAAyB,YAAW,iBAAiB;IAChE,QAAQ,CAAC,EAAE,qBAAqB;IAChC,QAAQ,CAAC,QAAQ,MAAM;IAEvB,OAAO,CAAC,mBAAmB,CAAsB;IACjD,OAAO,CAAC,qBAAqB,CAAwB;gBAEzC,MAAM,GAAE,8BAAmC;IAKvD;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO;IAKvD;;;OAGG;IACG,IAAI,CACR,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC5B,OAAO,CAAC,cAAc,CAAC;IAgE1B;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI;CAG7B"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource Autosave Provider
|
|
3
|
+
*
|
|
4
|
+
* Implements autosave for files managed by the remote resource plugin.
|
|
5
|
+
* Uses UPDATE_ENTITY or RESOURCE_CALL_REQUEST actions to save files.
|
|
6
|
+
*/
|
|
7
|
+
import { REMOTE_RESOURCE_EXTENSION_KEY, } from '@hamak/ui-remote-resource-api';
|
|
8
|
+
import { EntityActionFactory } from '@hamak/ui-remote-resource-api';
|
|
9
|
+
import { ResourceActionFactory } from '@hamak/ui-remote-resource-api';
|
|
10
|
+
/**
|
|
11
|
+
* Autosave provider for remote resources
|
|
12
|
+
*
|
|
13
|
+
* This provider handles autosave for files that are managed via the
|
|
14
|
+
* remote resource plugin. It checks for the presence of resource/entity
|
|
15
|
+
* extension state and uses appropriate actions to save changes.
|
|
16
|
+
*/
|
|
17
|
+
export class ResourceAutosaveProvider {
|
|
18
|
+
constructor(config = {}) {
|
|
19
|
+
this.id = 'remote-resource';
|
|
20
|
+
this.priority = 20; // Higher priority than remote-fs
|
|
21
|
+
this.entityActionFactory = config.entityActionFactory ?? new EntityActionFactory();
|
|
22
|
+
this.resourceActionFactory = config.resourceActionFactory ?? new ResourceActionFactory();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if this provider supports a given path.
|
|
26
|
+
* Returns true if the node has remote resource extension state.
|
|
27
|
+
*/
|
|
28
|
+
supports(path, node) {
|
|
29
|
+
const extensionState = node.state?.extensionStates?.[REMOTE_RESOURCE_EXTENSION_KEY];
|
|
30
|
+
return extensionState !== undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Save file content to remote server.
|
|
34
|
+
* Dispatches UPDATE_ENTITY (if entity) or RESOURCE_CALL_REQUEST (if resource).
|
|
35
|
+
*/
|
|
36
|
+
async save(path, content, node, dispatch) {
|
|
37
|
+
try {
|
|
38
|
+
const resourceAttrs = node.state?.extensionStates?.[REMOTE_RESOURCE_EXTENSION_KEY];
|
|
39
|
+
if (!resourceAttrs) {
|
|
40
|
+
return {
|
|
41
|
+
success: false,
|
|
42
|
+
error: {
|
|
43
|
+
code: 'NO_RESOURCE_STATE',
|
|
44
|
+
message: 'Node has no remote resource extension state',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
// Check if this is an entity
|
|
49
|
+
if (resourceAttrs.entity?.entityId) {
|
|
50
|
+
// Use entity update action
|
|
51
|
+
dispatch(this.entityActionFactory.update(resourceAttrs.entity.entityId, path, content));
|
|
52
|
+
}
|
|
53
|
+
else if (resourceAttrs.endpointId) {
|
|
54
|
+
// Use resource call request with update operation
|
|
55
|
+
dispatch(this.resourceActionFactory.callRequest(resourceAttrs.endpointId, 'update', { body: content }, path));
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
return {
|
|
59
|
+
success: false,
|
|
60
|
+
error: {
|
|
61
|
+
code: 'NO_ENDPOINT',
|
|
62
|
+
message: 'Node has no entity or endpoint information',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
// Note: The actual HTTP request is async and handled by resource middleware.
|
|
67
|
+
// Success/failure will be tracked by the middleware dispatching
|
|
68
|
+
// RESOURCE_CALL_SUCCESS or RESOURCE_CALL_FAILURE actions.
|
|
69
|
+
return {
|
|
70
|
+
success: true,
|
|
71
|
+
timestamp: Date.now(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
return {
|
|
76
|
+
success: false,
|
|
77
|
+
error: {
|
|
78
|
+
code: error.code ?? 'SAVE_ERROR',
|
|
79
|
+
message: error.message ?? 'Failed to dispatch save action',
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Cancel is a no-op for resources since we don't track in-flight requests here.
|
|
86
|
+
*/
|
|
87
|
+
cancel(path) {
|
|
88
|
+
// No-op: resource middleware handles request lifecycle
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Remote Resource Autosave
|
|
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("./resource-autosave-provider"), exports);
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Resource Autosave Provider
|
|
4
|
+
*
|
|
5
|
+
* Implements autosave for files managed by the remote resource plugin.
|
|
6
|
+
* Uses UPDATE_ENTITY or RESOURCE_CALL_REQUEST actions to save files.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ResourceAutosaveProvider = void 0;
|
|
19
|
+
const ui_remote_resource_api_1 = require("@hamak/ui-remote-resource-api");
|
|
20
|
+
const ui_remote_resource_api_2 = require("@hamak/ui-remote-resource-api");
|
|
21
|
+
const ui_remote_resource_api_3 = require("@hamak/ui-remote-resource-api");
|
|
22
|
+
/**
|
|
23
|
+
* Autosave provider for remote resources
|
|
24
|
+
*
|
|
25
|
+
* This provider handles autosave for files that are managed via the
|
|
26
|
+
* remote resource plugin. It checks for the presence of resource/entity
|
|
27
|
+
* extension state and uses appropriate actions to save changes.
|
|
28
|
+
*/
|
|
29
|
+
class ResourceAutosaveProvider {
|
|
30
|
+
constructor(config = {}) {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
this.id = 'remote-resource';
|
|
33
|
+
this.priority = 20; // Higher priority than remote-fs
|
|
34
|
+
this.entityActionFactory = (_a = config.entityActionFactory) !== null && _a !== void 0 ? _a : new ui_remote_resource_api_2.EntityActionFactory();
|
|
35
|
+
this.resourceActionFactory = (_b = config.resourceActionFactory) !== null && _b !== void 0 ? _b : new ui_remote_resource_api_3.ResourceActionFactory();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if this provider supports a given path.
|
|
39
|
+
* Returns true if the node has remote resource extension state.
|
|
40
|
+
*/
|
|
41
|
+
supports(path, node) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const extensionState = (_b = (_a = node.state) === null || _a === void 0 ? void 0 : _a.extensionStates) === null || _b === void 0 ? void 0 : _b[ui_remote_resource_api_1.REMOTE_RESOURCE_EXTENSION_KEY];
|
|
44
|
+
return extensionState !== undefined;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Save file content to remote server.
|
|
48
|
+
* Dispatches UPDATE_ENTITY (if entity) or RESOURCE_CALL_REQUEST (if resource).
|
|
49
|
+
*/
|
|
50
|
+
save(path, content, node, dispatch) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
var _a, _b, _c, _d, _e;
|
|
53
|
+
try {
|
|
54
|
+
const resourceAttrs = (_b = (_a = node.state) === null || _a === void 0 ? void 0 : _a.extensionStates) === null || _b === void 0 ? void 0 : _b[ui_remote_resource_api_1.REMOTE_RESOURCE_EXTENSION_KEY];
|
|
55
|
+
if (!resourceAttrs) {
|
|
56
|
+
return {
|
|
57
|
+
success: false,
|
|
58
|
+
error: {
|
|
59
|
+
code: 'NO_RESOURCE_STATE',
|
|
60
|
+
message: 'Node has no remote resource extension state',
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
// Check if this is an entity
|
|
65
|
+
if ((_c = resourceAttrs.entity) === null || _c === void 0 ? void 0 : _c.entityId) {
|
|
66
|
+
// Use entity update action
|
|
67
|
+
dispatch(this.entityActionFactory.update(resourceAttrs.entity.entityId, path, content));
|
|
68
|
+
}
|
|
69
|
+
else if (resourceAttrs.endpointId) {
|
|
70
|
+
// Use resource call request with update operation
|
|
71
|
+
dispatch(this.resourceActionFactory.callRequest(resourceAttrs.endpointId, 'update', { body: content }, path));
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return {
|
|
75
|
+
success: false,
|
|
76
|
+
error: {
|
|
77
|
+
code: 'NO_ENDPOINT',
|
|
78
|
+
message: 'Node has no entity or endpoint information',
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
// Note: The actual HTTP request is async and handled by resource middleware.
|
|
83
|
+
// Success/failure will be tracked by the middleware dispatching
|
|
84
|
+
// RESOURCE_CALL_SUCCESS or RESOURCE_CALL_FAILURE actions.
|
|
85
|
+
return {
|
|
86
|
+
success: true,
|
|
87
|
+
timestamp: Date.now(),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
return {
|
|
92
|
+
success: false,
|
|
93
|
+
error: {
|
|
94
|
+
code: (_d = error.code) !== null && _d !== void 0 ? _d : 'SAVE_ERROR',
|
|
95
|
+
message: (_e = error.message) !== null && _e !== void 0 ? _e : 'Failed to dispatch save action',
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Cancel is a no-op for resources since we don't track in-flight requests here.
|
|
103
|
+
*/
|
|
104
|
+
cancel(path) {
|
|
105
|
+
// No-op: resource middleware handles request lifecycle
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.ResourceAutosaveProvider = ResourceAutosaveProvider;
|
package/dist/es2015/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createEntitySyncMiddleware = exports.createEntityMiddleware = exports.createSyncMiddleware = exports.createResourceMiddleware = exports.EntityRegistry = exports.ResourceRegistry = exports.MockResourceProvider = exports.RestResourceProvider = exports.STORE_EXTENSIONS_TOKEN = exports.MIDDLEWARE_REGISTRY_TOKEN = exports.STORE_MANAGER_TOKEN = exports.ENTITY_REGISTRY_TOKEN = exports.RESOURCE_REGISTRY_TOKEN = exports.createResourcePlugin = void 0;
|
|
3
|
+
exports.ResourceAutosaveProvider = exports.createEntitySyncMiddleware = exports.createEntityMiddleware = exports.createSyncMiddleware = exports.createResourceMiddleware = exports.EntityRegistry = exports.ResourceRegistry = exports.MockResourceProvider = exports.RestResourceProvider = exports.STORE_EXTENSIONS_TOKEN = exports.MIDDLEWARE_REGISTRY_TOKEN = exports.STORE_MANAGER_TOKEN = exports.ENTITY_REGISTRY_TOKEN = exports.RESOURCE_REGISTRY_TOKEN = exports.createResourcePlugin = void 0;
|
|
4
4
|
// Plugin factory (main export)
|
|
5
5
|
var resource_plugin_factory_1 = require("./plugin/resource-plugin-factory");
|
|
6
6
|
Object.defineProperty(exports, "createResourcePlugin", { enumerable: true, get: function () { return resource_plugin_factory_1.createResourcePlugin; } });
|
|
@@ -31,3 +31,6 @@ var entity_middleware_1 = require("./middleware/entity-middleware");
|
|
|
31
31
|
Object.defineProperty(exports, "createEntityMiddleware", { enumerable: true, get: function () { return entity_middleware_1.createEntityMiddleware; } });
|
|
32
32
|
var entity_sync_middleware_1 = require("./middleware/entity-sync-middleware");
|
|
33
33
|
Object.defineProperty(exports, "createEntitySyncMiddleware", { enumerable: true, get: function () { return entity_sync_middleware_1.createEntitySyncMiddleware; } });
|
|
34
|
+
// Autosave provider
|
|
35
|
+
var resource_autosave_provider_1 = require("./autosave/resource-autosave-provider");
|
|
36
|
+
Object.defineProperty(exports, "ResourceAutosaveProvider", { enumerable: true, get: function () { return resource_autosave_provider_1.ResourceAutosaveProvider; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -15,4 +15,6 @@ export { createEntitySyncMiddleware } from './middleware/entity-sync-middleware'
|
|
|
15
15
|
export type { FileSystemNodeActions } from '@hamak/ui-store-impl';
|
|
16
16
|
export type { ResourceOperation, EntityKey, ErrorObject, RemoteResourceAttributes, EntityAttributes } from '@hamak/ui-remote-resource-api';
|
|
17
17
|
export type { IResourceProvider, ResourceCallParams, ResourceCallResult, ResourceEndpointDefinition, PayloadMapper, ResponseTransformer, EntityDefinition, EntityKeySchema, EntityKeyMapper, EntityPathGenerator, ResourcePluginConfig } from '@hamak/ui-remote-resource-spi';
|
|
18
|
+
export { ResourceAutosaveProvider } from './autosave/resource-autosave-provider';
|
|
19
|
+
export type { ResourceAutosaveProviderConfig } from './autosave/resource-autosave-provider';
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,YAAY,EACV,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAGvC,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,YAAY,EACV,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAGvC,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,YAAY,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,3 +14,5 @@ export { createResourceMiddleware } from './middleware/resource-middleware';
|
|
|
14
14
|
export { createSyncMiddleware } from './middleware/sync-middleware';
|
|
15
15
|
export { createEntityMiddleware } from './middleware/entity-middleware';
|
|
16
16
|
export { createEntitySyncMiddleware } from './middleware/entity-sync-middleware';
|
|
17
|
+
// Autosave provider
|
|
18
|
+
export { ResourceAutosaveProvider } from './autosave/resource-autosave-provider';
|
package/package.json
CHANGED