@alekstar79/draggable-resizable-container 1.0.3 → 1.0.5
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 -2
- package/dist/index.es.js +325 -248
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +42 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/plugins/StatePersistencePlugin.d.ts +10 -10
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alekstar79/draggable-resizable-container",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A modern TypeScript library for managing draggable and resizable containers",
|
|
5
5
|
"author": "Aleksey Tarasenko <alekstar79@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@ export interface SavedContainerState {
|
|
|
19
19
|
parentElementId?: string;
|
|
20
20
|
closedTimestamp?: number;
|
|
21
21
|
resize?: ResizeConfig;
|
|
22
|
-
|
|
22
|
+
storable?: boolean;
|
|
23
23
|
[p: string]: any;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
@@ -30,27 +30,27 @@ export declare class StatePersistencePlugin implements Plugin {
|
|
|
30
30
|
get pluginId(): Symbol;
|
|
31
31
|
private static readonly STORAGE_KEY;
|
|
32
32
|
private static readonly CLOSED_QUEUE_KEY;
|
|
33
|
-
private static readonly
|
|
33
|
+
private static readonly STORABLE_CONTAINERS_KEY;
|
|
34
34
|
private static reactiveState;
|
|
35
35
|
private static get containerStates();
|
|
36
36
|
private static get closedQueue();
|
|
37
|
-
private static get
|
|
37
|
+
private static get storableContainers();
|
|
38
38
|
private static isGlobalEventsInitialized;
|
|
39
39
|
private manager?;
|
|
40
40
|
private containerId?;
|
|
41
|
-
private
|
|
41
|
+
private storable;
|
|
42
42
|
private autoSaveEffect?;
|
|
43
43
|
static containers: {
|
|
44
44
|
manager: ContainerManagerInterface;
|
|
45
45
|
containerId: string;
|
|
46
|
-
|
|
46
|
+
storable?: boolean;
|
|
47
47
|
}[];
|
|
48
48
|
/**
|
|
49
49
|
* Install plugin on container manager instance with reactive state management
|
|
50
50
|
*/
|
|
51
51
|
install(manager: ContainerManagerInterface, options?: {
|
|
52
52
|
containerId: string;
|
|
53
|
-
|
|
53
|
+
storable?: boolean;
|
|
54
54
|
}): void;
|
|
55
55
|
/**
|
|
56
56
|
* Set up reactive auto-save effect for container state changes
|
|
@@ -68,19 +68,19 @@ export declare class StatePersistencePlugin implements Plugin {
|
|
|
68
68
|
/**
|
|
69
69
|
* Register a container as a demo container
|
|
70
70
|
*/
|
|
71
|
-
static
|
|
71
|
+
static registerContainer(containerId: string): void;
|
|
72
72
|
/**
|
|
73
73
|
* Save demo containers to localStorage
|
|
74
74
|
*/
|
|
75
|
-
private static
|
|
75
|
+
private static saveContainersToStorage;
|
|
76
76
|
/**
|
|
77
77
|
* Get list of all demo containers
|
|
78
78
|
*/
|
|
79
|
-
private static
|
|
79
|
+
private static getContainers;
|
|
80
80
|
/**
|
|
81
81
|
* Check if a container is a demo container
|
|
82
82
|
*/
|
|
83
|
-
static
|
|
83
|
+
static isStorableContainer(containerId: string): boolean;
|
|
84
84
|
/**
|
|
85
85
|
* Get all saved states from localStorage
|
|
86
86
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alekstar79/draggable-resizable-container",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A modern TypeScript library for managing draggable and resizable containers",
|
|
5
5
|
"author": "Aleksey Tarasenko <alekstar79@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|