alchemy_cms 7.2.1 → 7.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5346cf7eaede725b3effb1c1f2c65197b03488a5dc0c84aa664f8b6e7202bc9a
4
- data.tar.gz: cb81890a906ed6206bcf91e232cb79fc0cc47627fe578c056f593dbb26164115
3
+ metadata.gz: eb22c2991c573b8ad8fe7460295352de9721226f3a3674dc3eac1cd73034874a
4
+ data.tar.gz: 63b4185e81621b66282b928a4b127a1a722264a4f0e69483cd15cdc176f642d2
5
5
  SHA512:
6
- metadata.gz: a96118e3df08a1d433b81880a7f87a7a4aa27321f634871435fc90661a05bdc389bd2e5cbca9ef933b30a5737409a7f9218a41e3304e79a5228ea13847faf9e6
7
- data.tar.gz: 32ad6789dc62af82725092740f5e9c03188643bfff633c273b06c9d9d7d5a542d71236ae07a96c6d23ebaa615402684125331cd3468645151b649f36ae87e413
6
+ metadata.gz: d252e2a70fc5b58e05e768446aa6ac6b1ffe1cd718d7b123aca66f53eb78ae98b628fda218e1d1e30e2a3fabd2c5b0274bdfff13092d9b546844b84432c7c959
7
+ data.tar.gz: 766e765a3ae71c220adb052c2ff86d0c2f686a5a801529b2fa6ee1a1f27c6d588691632423d33ef612a51b28c663a8553a31b1b450afe3437f6474af5f9a46f9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.2.3 (2024-06-27)
4
+
5
+ - [7.2-stable] Disable Turbo Prefetch in Admin [#2947](https://github.com/AlchemyCMS/alchemy_cms/pull/2947) ([tvdeyen](https://github.com/tvdeyen))
6
+ - [7.2-stable] Prevent Javascript error if the page will be unlocked [#2946](https://github.com/AlchemyCMS/alchemy_cms/pull/2946) ([alchemycms-bot](https://github.com/alchemycms-bot))
7
+ - [7.2-stable] fix(ContactMessages): Use alchemy route proxy [#2929](https://github.com/AlchemyCMS/alchemy_cms/pull/2929) ([alchemycms-bot](https://github.com/alchemycms-bot))
8
+ - [7.2-stable] [js] Update tinymce 7.1.0 → 7.1.1 (patch) [#2921](https://github.com/AlchemyCMS/alchemy_cms/pull/2921) ([alchemycms-bot](https://github.com/alchemycms-bot))
9
+
10
+ ## 7.2.2 (2024-06-04)
11
+
12
+ - [7.2-stable] fix(RoutingConstraints): Allow Turbo Stream requests [#2916](https://github.com/AlchemyCMS/alchemy_cms/pull/2916) ([alchemycms-bot](https://github.com/alchemycms-bot))
13
+ - [7.2-stable] fix Ingredient Audio and Video boolean type casting [#2912](https://github.com/AlchemyCMS/alchemy_cms/pull/2912) ([alchemycms-bot](https://github.com/alchemycms-bot))
14
+
3
15
  ## 7.2.1 (2024-06-03)
4
16
 
5
17
  - Add name attribute to Preview IFrame [#2908](https://github.com/AlchemyCMS/alchemy_cms/pull/2908) ([mamhoff](https://github.com/mamhoff))
@@ -97,7 +97,7 @@ module Alchemy
97
97
  else
98
98
  Language.current_root_page.urlname
99
99
  end
100
- redirect_to show_page_path(
100
+ redirect_to alchemy.show_page_path(
101
101
  urlname: urlname,
102
102
  locale: prefix_locale? ? Current.language.code : nil
103
103
  )
@@ -26,6 +26,17 @@ module Alchemy
26
26
  def preview_text(max_length = 30)
27
27
  name.to_s[0..max_length - 1]
28
28
  end
29
+
30
+ %i[
31
+ autoplay
32
+ controls
33
+ loop
34
+ muted
35
+ ].each do |method|
36
+ define_method(:"#{method}=") do |value|
37
+ super(ActiveModel::Type::Boolean.new.cast(value))
38
+ end
39
+ end
29
40
  end
30
41
  end
31
42
  end
@@ -31,6 +31,18 @@ module Alchemy
31
31
  def preview_text(max_length = 30)
32
32
  name.to_s[0..max_length - 1]
33
33
  end
34
+
35
+ %i[
36
+ autoplay
37
+ controls
38
+ loop
39
+ muted
40
+ playsinline
41
+ ].each do |method|
42
+ define_method(:"#{method}=") do |value|
43
+ super(ActiveModel::Type::Boolean.new.cast(value))
44
+ end
45
+ end
34
46
  end
35
47
  end
36
48
  end
@@ -15,6 +15,6 @@
15
15
  }
16
16
  locked_page_icon.outerHTML = locked_page_icon_content
17
17
  }
18
- document.querySelector("#page_<%= @page.id -%> .page_status.locked").remove()
18
+ document.querySelector("#page_<%= @page.id -%> .page_status.locked")?.remove()
19
19
  Alchemy.growl('<%= flash[:notice] -%>')
20
20
  })()
@@ -8,6 +8,7 @@
8
8
  <%= csrf_meta_tag %>
9
9
  <meta name="robots" content="noindex">
10
10
  <meta name="alchemy-icon-sprite" content="<%= asset_path("remixicon.symbol.svg") %>">
11
+ <meta name="turbo-prefetch" content="false">
11
12
  <%= stylesheet_link_tag('alchemy/admin/all', media: 'screen', 'data-turbo-track' => true) %>
12
13
  <%= stylesheet_link_tag('alchemy/print', media: 'print', 'data-turbo-track' => true) %>
13
14
  <%= yield :stylesheets %>
@@ -27,7 +27,7 @@ module Alchemy
27
27
  # because it could be a legacy route that needs to be redirected.
28
28
  #
29
29
  def handable_format?
30
- @request.format.symbol.nil? || (@request.format.symbol == :html)
30
+ @request.format.symbol.nil? || @request.format.html?
31
31
  end
32
32
 
33
33
  # We don't want to handle the Rails info routes.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "7.2.1"
4
+ VERSION = "7.2.3"
5
5
 
6
6
  def self.version
7
7
  VERSION
data/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "flatpickr": "^4.6.13",
18
18
  "keymaster": "^1.6.2",
19
19
  "sortablejs": "^1.15.2",
20
- "tinymce": "^7.1.0"
20
+ "tinymce": "^7.1.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@babel/core": "^7.24.5",