alchemy_cms 8.2.7 → 8.2.8

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.
@@ -1,6 +1,6 @@
1
1
  import { RemoteSelect } from "alchemy_admin/components/remote_select"
2
2
 
3
- class AttachmentSelect extends RemoteSelect {
3
+ export class AttachmentSelect extends RemoteSelect {
4
4
  _renderResult(item) {
5
5
  return this._renderListEntry(item)
6
6
  }
@@ -20,7 +20,7 @@ const formatItem = (icon, text, hint) => {
20
20
  `
21
21
  }
22
22
 
23
- class ElementSelect extends HTMLElement {
23
+ export class ElementSelect extends HTMLElement {
24
24
  constructor() {
25
25
  super()
26
26
  }
@@ -1,6 +1,6 @@
1
1
  import { RemoteSelect } from "alchemy_admin/components/remote_select"
2
2
 
3
- class PageSelect extends RemoteSelect {
3
+ export class PageSelect extends RemoteSelect {
4
4
  get pageId() {
5
5
  return this.selection ? JSON.parse(this.selection)["id"] : undefined
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { setupSelectLocale } from "alchemy_admin/i18n"
2
2
 
3
- class TagsAutocomplete extends HTMLElement {
3
+ export class TagsAutocomplete extends HTMLElement {
4
4
  async connectedCallback() {
5
5
  await setupSelectLocale()
6
6
 
@@ -5,7 +5,7 @@ import { currentLocale } from "alchemy_admin/i18n"
5
5
  const DARK_THEME = "alchemy-dark"
6
6
  const LIGHT_THEME = "alchemy"
7
7
 
8
- class Tinymce extends AlchemyHTMLElement {
8
+ export class Tinymce extends AlchemyHTMLElement {
9
9
  #min_height = null
10
10
 
11
11
  /**
@@ -53,6 +53,11 @@ document.addEventListener("turbo:load", Initializer)
53
53
 
54
54
  // Public API for extensions
55
55
  export { RemoteSelect } from "alchemy_admin/components/remote_select"
56
+ export { PageSelect } from "alchemy_admin/components/page_select"
57
+ export { AttachmentSelect } from "alchemy_admin/components/attachment_select"
58
+ export { ElementSelect } from "alchemy_admin/components/element_select"
59
+ export { TagsAutocomplete } from "alchemy_admin/components/tags_autocomplete"
60
+ export { Tinymce } from "alchemy_admin/components/tinymce"
56
61
  export { on } from "alchemy_admin/utils/events"
57
62
 
58
63
  // Page-specific modules - bundled to avoid dual-loading
data/config/importmap.rb CHANGED
@@ -14,6 +14,11 @@ pin "tinymce", to: "tinymce.min.js", preload: true
14
14
 
15
15
  pin "alchemy_admin", to: "alchemy/alchemy_admin.min.js", preload: true
16
16
  pin "alchemy_admin/components/remote_select", to: "alchemy/alchemy_admin.min.js"
17
+ pin "alchemy_admin/components/page_select", to: "alchemy/alchemy_admin.min.js"
18
+ pin "alchemy_admin/components/attachment_select", to: "alchemy/alchemy_admin.min.js"
19
+ pin "alchemy_admin/components/element_select", to: "alchemy/alchemy_admin.min.js"
20
+ pin "alchemy_admin/components/tags_autocomplete", to: "alchemy/alchemy_admin.min.js"
21
+ pin "alchemy_admin/components/tinymce", to: "alchemy/alchemy_admin.min.js"
17
22
  pin "alchemy_admin/image_cropper", to: "alchemy/alchemy_admin.min.js"
18
23
  pin "alchemy_admin/image_overlay", to: "alchemy/alchemy_admin.min.js"
19
24
  pin "alchemy_admin/picture_selector", to: "alchemy/alchemy_admin.min.js"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "8.2.7"
4
+ VERSION = "8.2.8"
5
5
 
6
6
  def self.version
7
7
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.7
4
+ version: 8.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen