@lblod/ember-rdfa-editor-lblod-plugins 24.3.0 → 24.3.1
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 24.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#494](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/494) [`3941b65`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/3941b659fbb710be0aafd34b911a42416a1124c9) Thanks [@elpoelma](https://github.com/elpoelma)! - Ensure that the event handlers of snippet actions are only triggered once
|
|
8
|
+
|
|
3
9
|
## 24.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -32,7 +32,6 @@ import { recalculateNumbers } from '@lblod/ember-rdfa-editor-lblod-plugins/plugi
|
|
|
32
32
|
interface ButtonSig {
|
|
33
33
|
Args: {
|
|
34
34
|
isActive: boolean;
|
|
35
|
-
onClick: () => void;
|
|
36
35
|
icon: AuIconSignature['Args']['icon'];
|
|
37
36
|
helpText: string;
|
|
38
37
|
};
|
|
@@ -41,13 +40,8 @@ interface ButtonSig {
|
|
|
41
40
|
|
|
42
41
|
const SnippetButton: TemplateOnlyComponent<ButtonSig> = <template>
|
|
43
42
|
{{#if @isActive}}
|
|
44
|
-
<button
|
|
45
|
-
|
|
46
|
-
type='button'
|
|
47
|
-
{{on 'click' @onClick}}
|
|
48
|
-
...attributes
|
|
49
|
-
>
|
|
50
|
-
<AuIcon @icon={{@icon}} @size='large' {{on 'click' @onClick}} />
|
|
43
|
+
<button class='say-snippet-button' type='button' ...attributes>
|
|
44
|
+
<AuIcon @icon={{@icon}} @size='large' />
|
|
51
45
|
<div class='say-snippet-button-text'>
|
|
52
46
|
{{t @helpText}}
|
|
53
47
|
</div>
|
|
@@ -169,13 +163,13 @@ export default class SnippetNode extends Component<Signature> {
|
|
|
169
163
|
<SnippetButton
|
|
170
164
|
@icon={{SynchronizeIcon}}
|
|
171
165
|
@helpText='snippet-plugin.snippet-node.change-fragment'
|
|
172
|
-
|
|
166
|
+
{{on 'click' this.editFragment}}
|
|
173
167
|
@isActive={{this.isActive}}
|
|
174
168
|
/>
|
|
175
169
|
<SnippetButton
|
|
176
170
|
@icon={{BinIcon}}
|
|
177
171
|
@helpText='snippet-plugin.snippet-node.remove-fragment'
|
|
178
|
-
|
|
172
|
+
{{on 'click' this.deleteFragment}}
|
|
179
173
|
@isActive={{this.isActive}}
|
|
180
174
|
class='say-snippet-remove-button'
|
|
181
175
|
/>
|
|
@@ -183,7 +177,7 @@ export default class SnippetNode extends Component<Signature> {
|
|
|
183
177
|
<SnippetButton
|
|
184
178
|
@icon={{AddIcon}}
|
|
185
179
|
@helpText='snippet-plugin.snippet-node.add-fragment'
|
|
186
|
-
|
|
180
|
+
{{on 'click' this.addFragment}}
|
|
187
181
|
@isActive={{this.isActive}}
|
|
188
182
|
/>
|
|
189
183
|
{{/if}}
|