@platecms/delta-smart-text 0.2.0 → 0.3.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/components/DeltaSlateEditor.vue.d.ts +2 -0
- package/index.cjs +127 -127
- package/index.js +10377 -10359
- package/package.json +1 -1
- package/react/components/DeltaSlateEditorConnector.d.ts +3 -1
- package/react/store/editorSlice.d.ts +10 -2
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
2
|
+
import { Organization } from '../../../__generated__/graphql';
|
|
2
3
|
export declare class DeltaSlateEditorConnector {
|
|
3
4
|
private readonly root;
|
|
4
5
|
private readonly uuid;
|
|
5
6
|
private readonly context;
|
|
6
7
|
private readonly client;
|
|
8
|
+
private readonly organization;
|
|
7
9
|
private readonly isDisabled?;
|
|
8
|
-
constructor(targetEl: HTMLElement, uuid: string, client: ApolloClient<NormalizedCacheObject>, context: HTMLElement | null, isDisabled?: boolean);
|
|
10
|
+
constructor(targetEl: HTMLElement, uuid: string, client: ApolloClient<NormalizedCacheObject>, context: HTMLElement | null, organization: Organization | undefined, isDisabled?: boolean);
|
|
9
11
|
render(): void;
|
|
10
12
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseSelection, Descendant } from 'slate';
|
|
2
|
-
import { ContentItem, ContentType } from '../../../__generated__/graphql';
|
|
2
|
+
import { ContentItem, ContentType, Organization } from '../../../__generated__/graphql';
|
|
3
3
|
interface EditorSlice {
|
|
4
|
+
organization: Organization | undefined;
|
|
4
5
|
states: EditorState[];
|
|
5
6
|
}
|
|
6
7
|
export interface EditorState {
|
|
@@ -21,6 +22,7 @@ export interface EditorState {
|
|
|
21
22
|
export declare const defaultEditorFieldState: Omit<EditorState, "uuid">;
|
|
22
23
|
declare function selectStates(state: EditorSlice): EditorState[];
|
|
23
24
|
declare function selectStateIndex(state: EditorSlice, uuid: string): number;
|
|
25
|
+
declare function selectCurrentOrganization(state: EditorSlice): Organization | undefined;
|
|
24
26
|
export declare const selectById: import('@reduxjs/toolkit').Selector<{
|
|
25
27
|
editor: EditorSlice;
|
|
26
28
|
}, EditorState, [uuid: string]> & {
|
|
@@ -148,12 +150,18 @@ export declare const selectById: import('@reduxjs/toolkit').Selector<{
|
|
|
148
150
|
memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
149
151
|
argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
|
|
150
152
|
};
|
|
153
|
+
}, selectOrganization: import('@reduxjs/toolkit').Selector<{
|
|
154
|
+
editor: EditorSlice;
|
|
155
|
+
}, Organization | undefined, []> & {
|
|
156
|
+
unwrapped: typeof selectCurrentOrganization;
|
|
151
157
|
};
|
|
152
158
|
export declare const setState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
153
159
|
uuid: string;
|
|
154
160
|
state?: Partial<Omit<EditorState, "uuid">>;
|
|
155
161
|
context?: string;
|
|
156
|
-
}, "editor/setState">,
|
|
162
|
+
}, "editor/setState">, setOrganization: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
163
|
+
organization: Organization | undefined;
|
|
164
|
+
}, "editor/setOrganization">, setInitialValue: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
157
165
|
uuid: string;
|
|
158
166
|
initialValue: Descendant[];
|
|
159
167
|
}, "editor/setInitialValue">;
|