@lblod/ember-rdfa-editor-lblod-plugins 37.0.2 → 37.0.3-dev.0b720e5dcf7c0f45eb2c57ddc786859d62673413
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/CHANGELOG.md +6 -0
- package/addon/plugins/location-plugin/index.ts +3 -5
- package/addon/plugins/locked-placeholder-plugin/utils/replace-content-function.ts +1 -0
- package/declarations/addon/plugins/location-plugin/contextual-actions/index.d.ts +1 -1
- package/declarations/addon/plugins/location-plugin/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 37.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`edc47f2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/edc47f296f8a525bde907a88d047de49441c37da) Thanks [@abeforgit](https://github.com/abeforgit)! - Fix location command signature, again
|
|
8
|
+
|
|
3
9
|
## 37.0.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
EditorState,
|
|
5
5
|
EditorView,
|
|
6
6
|
Transaction,
|
|
7
|
+
Command,
|
|
7
8
|
} from '@lblod/ember-rdfa-editor';
|
|
8
9
|
import { LocationType } from '@lblod/ember-rdfa-editor-lblod-plugins/components/location-plugin/map';
|
|
9
10
|
|
|
@@ -44,11 +45,8 @@ export function openLocationModal(
|
|
|
44
45
|
view.dispatch(tr);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
export function openLocationModalCommand(locationType: LocationType) {
|
|
48
|
-
return function (
|
|
49
|
-
state: EditorState,
|
|
50
|
-
dispatch?: (tr: Transaction) => boolean,
|
|
51
|
-
) {
|
|
48
|
+
export function openLocationModalCommand(locationType: LocationType): Command {
|
|
49
|
+
return function (state, dispatch) {
|
|
52
50
|
if (!dispatch) {
|
|
53
51
|
return false;
|
|
54
52
|
}
|
|
@@ -34,6 +34,7 @@ export default function replaceLockedPlaceholderContent(
|
|
|
34
34
|
return true;
|
|
35
35
|
});
|
|
36
36
|
placeholdersWithPos.reverse();
|
|
37
|
+
console.log(placeholdersWithPos);
|
|
37
38
|
const monads = [];
|
|
38
39
|
const valuesResolved =
|
|
39
40
|
typeof values === 'function' ? values(initialState) : values;
|
|
@@ -3,7 +3,7 @@ import { LocationType } from '@lblod/ember-rdfa-editor-lblod-plugins/components/
|
|
|
3
3
|
export declare function getContextualActions(): (state: EditorState, searchQuery?: string) => {
|
|
4
4
|
id: string;
|
|
5
5
|
group: string;
|
|
6
|
-
command:
|
|
6
|
+
command: import("@lblod/ember-rdfa-editor").Command;
|
|
7
7
|
label: string;
|
|
8
8
|
locationType: LocationType;
|
|
9
9
|
icon: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProsePlugin, PluginKey, EditorState, EditorView,
|
|
1
|
+
import { ProsePlugin, PluginKey, EditorState, EditorView, Command } from '@lblod/ember-rdfa-editor';
|
|
2
2
|
import { LocationType } from '@lblod/ember-rdfa-editor-lblod-plugins/components/location-plugin/map';
|
|
3
3
|
type PluginState = {
|
|
4
4
|
modalOpen: boolean;
|
|
@@ -7,7 +7,7 @@ type PluginState = {
|
|
|
7
7
|
export declare const locationModalsPluginKey: PluginKey<PluginState>;
|
|
8
8
|
export declare function closeLocationModal(view: EditorView): void;
|
|
9
9
|
export declare function openLocationModal(view: EditorView, locationType?: LocationType): void;
|
|
10
|
-
export declare function openLocationModalCommand(locationType: LocationType):
|
|
10
|
+
export declare function openLocationModalCommand(locationType: LocationType): Command;
|
|
11
11
|
export declare function locationModalsPlugin(): ProsePlugin<PluginState>;
|
|
12
12
|
export declare function getLocationModalsPluginState(state: EditorState): PluginState | undefined;
|
|
13
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "37.0.
|
|
3
|
+
"version": "37.0.3-dev.0b720e5dcf7c0f45eb2c57ddc786859d62673413",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|