apostrophe 3.45.0 → 3.45.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.45.1 (2023-04-28)
4
+
5
+ ### Fixes
6
+
7
+ * Added missing styles to ensure consistent presentation of the rich text insert menu.
8
+ * Fixed a bug in which clicking on an image in the media manager would close the "insert
9
+ image" dialog box.
10
+
3
11
  ## 3.45.0 (2023-04-27)
4
12
 
5
13
  ### Adds
@@ -41,7 +41,20 @@ export default function() {
41
41
  // or el2 is not a modal, it is treated as its DOM
42
42
  // parent modal, or as `document`. If el1 has no
43
43
  // parent modal this method always returns false.
44
+ //
45
+ // If el1 is no longer connected to the DOM then it
46
+ // is also considered to be "on top" e.g. not something
47
+ // that should concern `v-click-outside-element` and
48
+ // similar functionality. This is necessary because
49
+ // sometimes Vue removes elements from the DOM before
50
+ // we can examine their relationships.
44
51
  onTopOf(el1, el2) {
52
+ if (!el1.isConnected) {
53
+ // If el1 is no longer in the DOM we can't make a proper determination,
54
+ // returning true prevents unwanted things like click-outside-element
55
+ // events from firing
56
+ return true;
57
+ }
45
58
  if (!el1.matches('[data-apos-modal]')) {
46
59
  el1 = el1.closest('[data-apos-modal]') || document;
47
60
  }
@@ -678,6 +678,7 @@ function traverseNextNode(node) {
678
678
  border: 1px solid var(--a-base-8);
679
679
  color: var(--a-base-1);
680
680
  font-family: var(--a-family-default);
681
+ font-size: var(--a-type-base);
681
682
  }
682
683
 
683
684
  .apos-rich-text-insert-menu-item {
@@ -694,6 +695,11 @@ function traverseNextNode(node) {
694
695
  flex-direction: column;
695
696
  h4, p {
696
697
  margin: 4px;
698
+ font-family: var(--a-family-default);
699
+ font-size: var(--a-type-base);
700
+ }
701
+ h4 {
702
+ font-weight: bold;
697
703
  }
698
704
  }
699
705
  .apos-rich-text-insert-menu-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apostrophe",
3
- "version": "3.45.0",
3
+ "version": "3.45.1",
4
4
  "description": "The Apostrophe Content Management System.",
5
5
  "main": "index.js",
6
6
  "scripts": {