@lblod/ember-rdfa-editor-lblod-plugins 24.2.3 → 24.3.0-dev.c8ea222380a5835c40b49c8a0e5b3fe09208623f

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ '@lblod/ember-rdfa-editor-lblod-plugins': patch
3
+ ---
4
+
5
+ Ensure that the event handlers of snippet actions are only triggered once
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 24.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#493](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/493) [`1e596e1`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/1e596e1db4d201ed2cba0713808d918944c51eb6) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Redesign structure nodes v1
8
+
9
+ ### Patch Changes
10
+
11
+ - [#492](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/492) [`76b6ecb`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/76b6ecb4ff09ec18088448fd6da69b9e69f34a7c) Thanks [@elpoelma](https://github.com/elpoelma)! - Disable `rdfaAware` setting for heading nodes in dummy app
12
+
3
13
  ## 24.2.3
4
14
 
5
15
  ### Patch 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
- class='say-snippet-button'
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
- @onClick={{this.editFragment}}
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
- @onClick={{this.deleteFragment}}
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
- @onClick={{this.addFragment}}
180
+ {{on 'click' this.addFragment}}
187
181
  @isActive={{this.isActive}}
188
182
  />
189
183
  {{/if}}
@@ -7,12 +7,18 @@
7
7
  white-space: normal;
8
8
  }
9
9
  .say-structure__header {
10
- background-color: var(--au-gray-200);
10
+ background-color: var(--au-gray-100);
11
11
  display: flex;
12
12
  gap: 5px;
13
13
  flex-direction: row;
14
- h4 {
14
+ padding-left: 0.7rem;
15
+ border-bottom: 1px solid var(--au-gray-300);
16
+ border-radius: 0.1em 0.1em 0 0;
17
+
18
+ h5 {
15
19
  margin: 0;
20
+ font-weight: var(--au-medium);
21
+ font-size: var(--au-h-functional);
16
22
  }
17
23
  .say-structure__title {
18
24
  flex-grow: 1;
@@ -29,15 +35,15 @@
29
35
  word-break: break-word;
30
36
  word-wrap: break-word;
31
37
  }
32
- padding: var(--au-small);
33
38
  }
34
39
  .say-structure__content {
40
+ padding: 0.7rem;
41
+ padding-right: 3rem;
35
42
  [data-slot] {
36
43
  white-space: break-spaces;
37
44
  word-break: break-word;
38
45
  word-wrap: break-word;
39
46
  }
40
- padding: var(--au-small);
41
47
  }
42
48
 
43
49
  .say-structure__content.say-empty {
@@ -51,3 +57,16 @@
51
57
  }
52
58
  }
53
59
  }
60
+
61
+ .ember-node.say-active:has(> .say-structure) {
62
+ outline: none;
63
+ }
64
+
65
+ .ember-node.say-active > .say-structure {
66
+ border-color: var(--au-blue-700);
67
+ border-width: 0.2rem;
68
+ > .say-structure__header {
69
+ border-bottom-color: var(--au-blue-700);
70
+ border-bottom-width: 0.2rem;
71
+ }
72
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "24.2.3",
3
+ "version": "24.3.0-dev.c8ea222380a5835c40b49c8a0e5b3fe09208623f",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",