activeadmin_mitosis_editor 0.1.0 → 0.1.9

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: 2ad40eae80694ed08d0c1d66cebcaf83a9b143511f59fd60c40267efc080242e
4
- data.tar.gz: d7193e1d92c8c41fefad21f94324c82cacd0679918cac018cb27fc1aaf1d43c5
3
+ metadata.gz: 5a713ce01ac7d48e2b7f66f4a6c6a80e43f09c8634cb7bf87194263369bbe84f
4
+ data.tar.gz: cab4a14c3c53786ae3ca8c3b03ff6fd2cb9cdb41b03322446704750052b121c9
5
5
  SHA512:
6
- metadata.gz: 3fd8c21be7f91bb7f0a53f1457d1661badfb563d8e497cf9d6616ce75d7155380ff8e81a6cc5c2cda8149d185e4e63a9a2b656cf6ca7fa4e0e022f11b2d59d78
7
- data.tar.gz: 4b3051769cebe415c0b54ef9ed21267d03cf430e7819d221e79fa298cd308bde7ec074f5866ed033949cc46c1ffd87ddf0acc70af7f010fb6a98fc72c7ee6f7a
6
+ metadata.gz: 59e9a4e9b842e64473d3992d4efd345e3c663baa7c9ffb7eb599479953be13c92243e85b19a0435e85a8ed0a9000091495ee0359de6fe5c91b9bda96e51f9a14
7
+ data.tar.gz: 4c324f7c18e3f2d0ee6d08766aa2d876d42b0a9646bb1ad6b4408c698919e7b86d2f817fb46b3dac4823afa6f17f0424bf0ae3ecb27b2b45b9c1d3ed6070d6cc
data/CHANGELOG.md CHANGED
@@ -1,11 +1,67 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ ### [0.1.9](https://github.com/codxse/mitosis-active-admin/compare/v0.1.5...v0.1.9) (2026-02-18)
7
6
 
8
- ## [Unreleased]
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix CI release 1 ([bc04724](https://github.com/codxse/mitosis-active-admin/commit/bc04724a3e30670b8eeebe6c7194ab92e8fbf6f0))
11
+ * fix CI release to git tag ([0f0f9ea](https://github.com/codxse/mitosis-active-admin/commit/0f0f9ea2007fd30d89a4c395204cb12a12da39f3))
12
+ * fix initializer ([357760d](https://github.com/codxse/mitosis-active-admin/commit/357760dbcb16dcc12a5cde5c56b6c491a89db834))
13
+ * styling preview markdiown horizontal scroll ([d02cad7](https://github.com/codxse/mitosis-active-admin/commit/d02cad788e89418b880e684f555671343cc5956c))
14
+ * test release workflow ([b4810b7](https://github.com/codxse/mitosis-active-admin/commit/b4810b7fae54bda9637082772035d10e4f4bd838))
15
+
16
+ ### [0.1.8](https://github.com/codxse/mitosis-active-admin/compare/v0.1.7...v0.1.8) (2026-02-18)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * fix CI release 1 ([bc04724](https://github.com/codxse/mitosis-active-admin/commit/bc04724a3e30670b8eeebe6c7194ab92e8fbf6f0))
22
+ * fix CI release to git tag ([0f0f9ea](https://github.com/codxse/mitosis-active-admin/commit/0f0f9ea2007fd30d89a4c395204cb12a12da39f3))
23
+ * styling preview markdiown horizontal scroll ([d02cad7](https://github.com/codxse/mitosis-active-admin/commit/d02cad788e89418b880e684f555671343cc5956c))
24
+
25
+ ### [0.1.7](https://github.com/codxse/mitosis-active-admin/compare/v0.1.5...v0.1.7) (2026-02-17)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * test release workflow ([b4810b7](https://github.com/codxse/mitosis-active-admin/commit/b4810b7fae54bda9637082772035d10e4f4bd838))
31
+
32
+ ### [0.1.6](https://github.com/codxse/mitosis-active-admin/compare/v0.1.5...v0.1.6) (2026-02-17)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * test release workflow ([b4810b7](https://github.com/codxse/mitosis-active-admin/commit/b4810b7fae54bda9637082772035d10e4f4bd838))
38
+
39
+ ### [0.1.5](https://github.com/codxse/mitosis-active-admin/compare/v0.1.4...v0.1.5) (2026-02-17)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * fix initializer ([357760d](https://github.com/codxse/mitosis-active-admin/commit/357760dbcb16dcc12a5cde5c56b6c491a89db834))
45
+
46
+ ## [0.1.5] - 2026-02-17
47
+
48
+ ### Added
49
+ -
50
+
51
+ ## [0.1.4] - 2026-02-17
52
+
53
+ ### Added
54
+ -
55
+
56
+ ## [0.1.3] - 2026-02-17
57
+
58
+ ### Added
59
+ -
60
+
61
+ ## [0.1.1] - 2026-02-17
62
+
63
+ ### Added
64
+ -
9
65
 
10
66
  ## [0.1.0] - 2025-02-15
11
67
 
data/CLAUDE.md CHANGED
@@ -8,7 +8,7 @@ This is a Ruby gem called `activeadmin_mitosis_editor` that provides a split-vie
8
8
 
9
9
  1. **Main Gem** (`/lib`): The Ruby gem with Formtastic input class and Railtie for asset pipeline integration.
10
10
  2. **Demo App** (`/demo`): A Rails 8.1 application demonstrating the gem's usage and system tests.
11
- 3. **Assets** (`/vendor/assets`): Pre-compiled mitosis-js and Prism syntax highlighter bundles. Downloaded from https://www.npmjs.com/package/@codxse/mitosis-js v1.6.1
11
+ 3. **Assets** (`/vendor/assets`): Pre-compiled mitosis-js and Prism syntax highlighter bundles. Downloaded from https://www.npmjs.com/package/@codxse/mitosis-js v1.6.2
12
12
 
13
13
  - The gem bundles pre-compiled CSS/JS assets in `/vendor/assets`
14
14
  - No database migrations required - stores markdown as plain strings
@@ -106,8 +106,10 @@ Note: RSpec is only available in the demo app, not in the gem root. The gem itse
106
106
  ## Dependencies
107
107
 
108
108
  ### Runtime
109
- - Rails >= 6.0
110
- - Formtastic >= 4.0
109
+ - Ruby >= 3.0
110
+ - Rails >= 7.0
111
+ - ActiveAdmin >= 4.0
112
+ - Formtastic >= 5.0
111
113
  - Mitosis-js (bundled in vendor/assets)
112
114
 
113
115
  ### Development (Demo App)
data/README.md CHANGED
@@ -109,9 +109,10 @@ The editor JS auto-detects `window.Prism` and passes it to `createEditor()` when
109
109
 
110
110
  ## Requirements
111
111
 
112
- - Rails >= 6.0
113
- - ActiveAdmin
114
- - Formtastic
112
+ - Ruby >= 3.0
113
+ - Rails >= 7.0
114
+ - ActiveAdmin >= 4.0
115
+ - Formtastic >= 5.0
115
116
 
116
117
  ## Development
117
118
 
@@ -124,3 +125,4 @@ Bug reports and pull requests are welcome on GitHub.
124
125
  ## License
125
126
 
126
127
  The gem is available as open source under the terms of the MIT License.
128
+ # test
data/RELEASE.md CHANGED
@@ -4,39 +4,65 @@ This document describes how to release new versions of the gem.
4
4
 
5
5
  ## Version Bumping
6
6
 
7
- Use the `bump-version` script to bump the version:
7
+ The project uses [standard-version](https://github.com/conventional-changelog/standard-version) to automate versioning and changelog generation based on [conventional commits](https://www.conventionalcommits.org/).
8
+
9
+ ### Commit Message Format
10
+
11
+ ```
12
+ <type>(<scope>): <description>
13
+
14
+ [optional body]
15
+
16
+ [optional footer(s)]
17
+ ```
18
+
19
+ **Types:**
20
+ - `feat:` → minor version bump
21
+ - `fix:` → patch version bump
22
+ - `feat!:` or `BREAKING CHANGE:` → major version bump
23
+ - `chore:`, `docs:`, `refactor:`, etc. → no version bump
24
+
25
+ ### Release Process
8
26
 
9
27
  ```bash
10
- ruby script/bump-version [major|minor|patch]
28
+ # Make your changes and commit them
29
+ git commit -m "fix: resolve editor initialization issue"
30
+ git commit -m "feat: add dark theme support"
31
+
32
+ # Run standard-version to bump version, generate changelog, and create tag
33
+ npx standard-version
11
34
  ```
12
35
 
13
- The script auto-detects the bump type from commit messages:
14
- - `feat!:` or `BREAKING` major
15
- - `feat:` minor
16
- - `fix:` → patch (default)
36
+ This will:
37
+ 1. Analyze commits since last tag
38
+ 2. Determine bump type (major/minor/patch)
39
+ 3. Update `package.json` version
40
+ 4. Generate CHANGELOG entries from commits
41
+ 5. Sync version to Ruby (`lib/activeadmin_mitosis_editor/version.rb`)
42
+ 6. Create a git tag (e.g., v0.1.8)
17
43
 
18
- ## Manual Release
44
+ ### Publish to RubyGems
19
45
 
20
- 1. Bump the version:
21
- ```bash
22
- ruby script/bump-version patch
23
- ```
46
+ After running standard-version:
24
47
 
25
- 2. Build the gem:
26
- ```bash
27
- gem build *.gemspec
28
- ```
48
+ ```bash
49
+ # Push commits and tags
50
+ git push --follow-tags origin master
29
51
 
30
- 3. Publish to RubyGems:
31
- ```bash
32
- gem push activeadmin_mitosis_editor-X.X.X.gem
33
- ```
52
+ # Build and publish the gem
53
+ gem build *.gemspec
54
+ gem push activeadmin_mitosis_editor-X.X.X.gem
55
+ ```
56
+
57
+ ## Manual Release
34
58
 
35
- 4. Create a git tag:
36
- ```bash
37
- git tag vX.X.X
38
- git push origin main --tags
39
- ```
59
+ If you need manual control over versioning:
60
+
61
+ ```bash
62
+ # Specify the version type explicitly
63
+ npx standard-version --release-as minor
64
+ npx standard-version --release-as 2.0.0
65
+ ```
40
66
 
41
67
  ## GitHub Actions Release
42
68
 
@@ -63,18 +89,11 @@ You can manually trigger a release from the GitHub Actions UI:
63
89
 
64
90
  ## Requirements
65
91
 
92
+ - Node.js 18+ (for standard-version)
66
93
  - Ruby 3.3+
67
94
  - RubyGems account with API key
68
95
  - `RUBYGEMS_API_KEY` secret in GitHub repository settings
69
96
 
70
97
  ## CHANGELOG
71
98
 
72
- The CHANGELOG.md follows [Keep a Changelog](https://keepachangelog.com/) format.
73
-
74
- When bumping version, add entries under `## [Unreleased]` with appropriate change type:
75
- - `### Added` - new features
76
- - `### Changed` - changes to existing functionality
77
- - `### Deprecated` - soon-to-be removed features
78
- - `### Removed` - removed features
79
- - `### Fixed` - bug fixes
80
- - `### Security` - security fixes
99
+ The CHANGELOG.md is automatically generated by standard-version based on conventional commits. See [Keep a Changelog](https://keepachangelog.com/) for format details.
@@ -8,10 +8,14 @@ Gem::Specification.new do |spec|
8
8
  spec.summary = "A split-view markdown editor input for ActiveAdmin"
9
9
  spec.description = "Wraps mitosis-js as a custom input for ActiveAdmin forms"
10
10
  spec.license = "MIT"
11
+ spec.homepage = "https://github.com/codxse/mitosis-active-admin"
12
+ spec.metadata["source_code_uri"] = "https://github.com/codxse/mitosis-active-admin"
11
13
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|\.git)}) }
12
14
  spec.require_paths = ["lib"]
13
15
 
14
- spec.add_runtime_dependency "railties", ">= 6.0"
15
- spec.add_runtime_dependency "formtastic", ">= 4.0"
16
- spec.add_runtime_dependency "activesupport", ">= 6.0"
16
+ spec.required_ruby_version = ">= 3.0"
17
+
18
+ spec.add_runtime_dependency "railties", ">= 7.0"
19
+ spec.add_runtime_dependency "formtastic", "~> 5.0"
20
+ spec.add_runtime_dependency "activesupport", ">= 7.0"
17
21
  end
@@ -1 +1 @@
1
- .mitosis-editor-wrapper{--editor-width:100%;--editor-height:600px;--editor-padding:16px;--editor-border-radius:4px;--divider-width:2px;--editor-font-family:ui-monospace,monospace;--editor-font-size:14px;--editor-line-height:1.6;--editor-bg:#ffffff;--editor-text:#282a36;--editor-border:#e0e0e0;--editor-caret:#000000;--editor-placeholder:#999999;--editor-selection:#b3d9ff;--preview-bg:#ffffff;--preview-text:#282a36;--preview-border:#e0e0e0;--preview-code-bg:#f6f8fa;--preview-link:#0366d6;--divider-bg:#e0e0e0;--divider-hover:#bdbdbd;--scrollbar-width:6px;--scrollbar-track:transparent;--scrollbar-thumb:#c1c1c1;--scrollbar-thumb-hover:#a8a8a8;width:var(--editor-width);height:var(--editor-height);position:relative;font-family:system-ui,-apple-system,sans-serif;box-sizing:border-box}.mitosis-editor-wrapper *,.mitosis-editor-wrapper ::after,.mitosis-editor-wrapper ::before{box-sizing:inherit}.mitosis-editor-container{position:relative;height:100%;overflow:hidden}.mitosis-textarea{position:absolute;top:0;left:0;width:100%;height:100%;padding:var(--editor-padding);outline:0;resize:none;font-family:var(--editor-font-family);font-size:var(--editor-font-size);line-height:var(--editor-line-height);caret-color:var(--editor-caret);z-index:2;color:var(--editor-text);border:1px solid var(--editor-border);border-radius:var(--editor-border-radius);background:var(--editor-bg);border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.mitosis-textarea::placeholder{color:var(--editor-placeholder)}.mitosis-textarea::selection{background:var(--editor-selection)}.mitosis-highlight{position:absolute;top:0;left:0;width:100%;height:100%;padding:var(--editor-padding);pointer-events:none;font-family:var(--editor-font-family);font-size:var(--editor-font-size);line-height:var(--editor-line-height);white-space:pre-wrap;word-wrap:break-word;overflow:auto;z-index:1;color:var(--editor-text)}.mitosis-preview{height:100%;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--preview-border);border-radius:var(--editor-border-radius);background:var(--preview-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.mitosis-preview-content{padding:var(--editor-padding);overflow:auto;flex:1;background:var(--preview-bg);color:var(--preview-text)}.mitosis-preview-content h1,.mitosis-preview-content h2,.mitosis-preview-content h3,.mitosis-preview-content h4,.mitosis-preview-content h5,.mitosis-preview-content h6{margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.25}.mitosis-preview-content h1{font-size:2em;border-bottom:1px solid var(--preview-border);padding-bottom:.3em}.mitosis-preview-content h2{font-size:1.5em;border-bottom:1px solid var(--preview-border);padding-bottom:.3em}.mitosis-preview-content h3{font-size:1.25em}.mitosis-preview-content h4{font-size:1em}.mitosis-preview-content h5{font-size:.875em}.mitosis-preview-content h6{font-size:.85em;color:var(--preview-text);opacity:.7}.mitosis-preview-content p{margin:1em 0}.mitosis-preview-content ol,.mitosis-preview-content ul{padding-left:2em;margin:1em 0}.mitosis-preview-content li{margin:.25em 0}.mitosis-preview-content code{background:var(--preview-code-bg);padding:.2em .4em;border-radius:3px;font-family:ui-monospace,monospace;font-size:.9em}.mitosis-preview-content pre{background:var(--preview-code-bg);padding:16px;border-radius:6px;overflow:auto;margin:1em 0}.mitosis-preview-content pre code{background:0 0;padding:0}.mitosis-preview-content blockquote{border-left:4px solid var(--preview-border);padding-left:1em;color:var(--preview-text);opacity:.7;margin:1em 0}.mitosis-preview-content img{max-width:100%;height:auto}.mitosis-preview-content a{color:var(--preview-link);text-decoration:none}.mitosis-preview-content a:hover{text-decoration:underline}.mitosis-preview-content hr{border:none;border-top:1px solid var(--preview-border);margin:2em 0}.mitosis-layout{display:flex;height:100%;gap:0;border:1px solid var(--editor-border);border-radius:var(--editor-border-radius);overflow:hidden}.mitosis-layout .mitosis-panel{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--editor-bg)}.mitosis-divider{width:var(--divider-width);cursor:col-resize;border-left:3px solid var(--divider-bg);position:relative;flex-shrink:0;transition:border-color .15s ease}.mitosis-divider:hover{border-color:var(--divider-hover)}.mitosis-editor-wrapper ::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.mitosis-editor-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track)}.mitosis-editor-wrapper ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:3px}.mitosis-editor-wrapper ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}
1
+ .mitosis-editor-wrapper{--editor-width:100%;--editor-height:600px;--editor-padding:16px;--editor-border-radius:4px;--divider-width:2px;--editor-font-family:ui-monospace,monospace;--editor-font-size:14px;--editor-line-height:1.6;--editor-bg:#ffffff;--editor-text:#282a36;--editor-border:#e0e0e0;--editor-caret:#000000;--editor-placeholder:#999999;--editor-selection:#b3d9ff;--preview-bg:#ffffff;--preview-text:#282a36;--preview-border:#e0e0e0;--preview-code-bg:#f6f8fa;--preview-link:#0366d6;--divider-bg:#e0e0e0;--divider-hover:#bdbdbd;--scrollbar-width:6px;--scrollbar-track:transparent;--scrollbar-thumb:#c1c1c1;--scrollbar-thumb-hover:#a8a8a8;width:var(--editor-width);height:var(--editor-height);position:relative;font-family:system-ui,-apple-system,sans-serif;box-sizing:border-box}.mitosis-editor-wrapper *,.mitosis-editor-wrapper ::after,.mitosis-editor-wrapper ::before{box-sizing:inherit}.mitosis-editor-container{position:relative;height:100%;overflow:hidden}.mitosis-textarea{position:absolute;top:0;left:0;width:100%;height:100%;padding:var(--editor-padding);outline:0;resize:none;font-family:var(--editor-font-family);font-size:var(--editor-font-size);line-height:var(--editor-line-height);caret-color:var(--editor-caret);z-index:2;color:var(--editor-text);border:1px solid var(--editor-border);border-radius:var(--editor-border-radius);background:var(--editor-bg);border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.mitosis-textarea::placeholder{color:var(--editor-placeholder)}.mitosis-textarea::selection{background:var(--editor-selection)}.mitosis-highlight{position:absolute;top:0;left:0;width:100%;height:100%;padding:var(--editor-padding);pointer-events:none;font-family:var(--editor-font-family);font-size:var(--editor-font-size);line-height:var(--editor-line-height);white-space:pre-wrap;word-wrap:break-word;overflow:auto;z-index:1;color:var(--editor-text)}.mitosis-preview{height:100%;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--preview-border);border-radius:var(--editor-border-radius);background:var(--preview-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.mitosis-preview-content{padding:var(--editor-padding);overflow:auto;flex:1;background:var(--preview-bg);color:var(--preview-text)}.mitosis-preview-content h1,.mitosis-preview-content h2,.mitosis-preview-content h3,.mitosis-preview-content h4,.mitosis-preview-content h5,.mitosis-preview-content h6{margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.25}.mitosis-preview-content h1{font-size:2em;border-bottom:1px solid var(--preview-border);padding-bottom:.3em}.mitosis-preview-content h2{font-size:1.5em;border-bottom:1px solid var(--preview-border);padding-bottom:.3em}.mitosis-preview-content h3{font-size:1.25em}.mitosis-preview-content h4{font-size:1em}.mitosis-preview-content h5{font-size:.875em}.mitosis-preview-content h6{font-size:.85em;color:var(--preview-text);opacity:.7}.mitosis-preview-content p{margin:1em 0}.mitosis-preview-content ol,.mitosis-preview-content ul{padding-left:2em;margin:1em 0}.mitosis-preview-content li{margin:.25em 0}.mitosis-preview-content code{background:var(--preview-code-bg);padding:.2em .4em;border-radius:3px;font-family:ui-monospace,monospace;font-size:.9em}.mitosis-preview-content pre{background:var(--preview-code-bg);padding:16px;border-radius:6px;overflow:auto;margin:1em 0}.mitosis-preview-content pre code{background:0 0;padding:0}.mitosis-preview-content blockquote{border-left:4px solid var(--preview-border);padding-left:1em;color:var(--preview-text);opacity:.7;margin:1em 0}.mitosis-preview-content img{max-width:100%;height:auto}.mitosis-preview-content a{color:var(--preview-link);text-decoration:none}.mitosis-preview-content a:hover{text-decoration:underline}.mitosis-preview-content hr{border:none;border-top:1px solid var(--preview-border);margin:2em 0}.mitosis-layout{display:flex;height:100%;gap:0;border:1px solid var(--editor-border);border-radius:var(--editor-border-radius);overflow:hidden}.mitosis-layout .mitosis-panel{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--editor-bg)}.mitosis-divider{width:var(--divider-width);cursor:col-resize;border-left:3px solid var(--divider-bg);position:relative;flex-shrink:0;transition:border-color .15s ease}.mitosis-divider:hover{border-color:var(--divider-hover)}.mitosis-editor-wrapper ::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.mitosis-editor-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track)}.mitosis-editor-wrapper ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:3px}.mitosis-editor-wrapper ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}
@@ -1,7 +1,32 @@
1
1
  module ActiveAdminMitosisEditor
2
2
  class Engine < Rails::Engine
3
- # Asset paths are not registered via Railtie to avoid conflicts with app-level
4
- # asset overrides. Applications using this gem should copy the bundled assets
5
- # from vendor/assets to their app/assets/stylesheets/mitosis_editor/ directory.
3
+ # Add gem assets to the asset pipeline
4
+ # App assets take precedence - gem assets are added at the END
5
+ # so Rails finds app's version first (if it exists)
6
+ initializer "activeadmin_mitosis_editor.assets" do
7
+ Rails.application.config.assets.paths <<
8
+ root.join("vendor/assets/stylesheets").to_s
9
+ Rails.application.config.assets.paths <<
10
+ root.join("vendor/assets/javascripts").to_s
11
+ end
12
+
13
+ initializer "activeadmin_mitosis_editor.formtastic_custom_inputs" do
14
+ require "activeadmin_mitosis_editor/inputs/mitosis_editor_input"
15
+
16
+ Formtastic::Inputs.send(:include, Module.new do
17
+ def self.included(base)
18
+ base.extend(ClassMethods)
19
+ end
20
+
21
+ module ClassMethods
22
+ def custom_input_class(name, class_name)
23
+ @custom_input_classes ||= {}
24
+ @custom_input_classes[name.to_sym] = class_name
25
+ end
26
+ end
27
+ end)
28
+
29
+ Formtastic::Inputs::MitosisEditorInput = ActiveAdminMitosisEditor::Inputs::MitosisEditorInput
30
+ end
6
31
  end
7
32
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminMitosisEditor
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -9,9 +9,9 @@ module MitosisEditor
9
9
  def copy_css_files
10
10
  copy_file "mitosis-editor.css",
11
11
  "app/assets/stylesheets/mitosis-editor.css"
12
- copy_file "theme-light.min.css",
12
+ copy_file "theme-light.css",
13
13
  "app/assets/stylesheets/theme-light.css"
14
- copy_file "theme-dark.min.css",
14
+ copy_file "theme-dark.css",
15
15
  "app/assets/stylesheets/theme-dark.css"
16
16
  end
17
17
 
data/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "activeadmin-mitosis-editor",
3
+ "version": "0.1.9",
4
+ "private": true,
5
+ "devDependencies": {
6
+ "standard-version": "^9.5.0"
7
+ },
8
+ "standard-version": {
9
+ "scripts": {
10
+ "postbump": "ruby script/sync-version"
11
+ }
12
+ }
13
+ }