Skip to content

Commit

Permalink
Update stimulus rails nested-form & switch to namespaced version (#6057)
Browse files Browse the repository at this point in the history
update stimulus rails nested-form to namespaced version
  • Loading branch information
thejonroberts committed Sep 26, 2024
1 parent 79ca251 commit ae68973
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/javascript/controllers/court_order_form_controller.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import NestedForm from 'stimulus-rails-nested-form'
import NestedForm from '@stimulus-components/rails-nested-form'
import Swal from 'sweetalert2'

export default class extends NestedForm {
Expand Down
5 changes: 2 additions & 3 deletions app/javascript/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is auto-generated by ./bin/rails stimulus:manifest:update
// Run that command whenever you add a new controller or create them with
// ./bin/rails generate stimulus controllerName
import RailsNestedForm from '@stimulus-components/rails-nested-form'

import { application } from './application'

Expand Down Expand Up @@ -30,8 +31,7 @@ import SidebarGroupController from './sidebar_group_controller'

import TruncatedTextController from './truncated_text_controller'

import NestedForm from 'stimulus-rails-nested-form'

application.register('nested-form', RailsNestedForm)
application.register('alert', AlertController)
application.register('autosave', AutosaveController)
application.register('disable-form', DisableFormController)
Expand All @@ -45,4 +45,3 @@ application.register('select-all', SelectAllController)
application.register('sidebar', SidebarController)
application.register('sidebar-group', SidebarGroupController)
application.register('truncated-text', TruncatedTextController)
application.register('nested-form', NestedForm)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@rails/actiontext": "^7.2.100",
"@rails/activestorage": "^7.2.100",
"@rails/ujs": "^7.1.400",
"@stimulus-components/rails-nested-form": "^5.0.0",
"add2calendar": "^1.1.8",
"bindings": "^1.5.0",
"bootstrap": "5.3.3",
Expand All @@ -41,7 +42,6 @@
"sass": "1.79.3",
"select2": "^4.0.13",
"select2-bootstrap-5-theme": "^1.3.0",
"stimulus-rails-nested-form": "^4.1.0",
"strftime": "^0.10.3",
"sweetalert2": "^11.3.5",
"tom-select": "^2.3.1",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,11 @@
dependencies:
"@sinonjs/commons" "^2.0.0"

"@stimulus-components/rails-nested-form@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@stimulus-components/rails-nested-form/-/rails-nested-form-5.0.0.tgz#b443ad8ba5220328cfd704ca956ebf95ab8c4848"
integrity sha512-qrmmurT+KBPrz9iBlyrgJa6Di8i0j328kSk2SUR53nK5W0kDhw1YxVC91aUR+7EsFKiwJT1iB7oDSwpDhDQPeA==

"@tootallnate/once@2":
version "2.0.0"
resolved "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz"
Expand Down Expand Up @@ -5749,11 +5754,6 @@ start-server-and-test@^2.0.8:
ps-tree "1.2.0"
wait-on "8.0.1"

stimulus-rails-nested-form@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/stimulus-rails-nested-form/-/stimulus-rails-nested-form-4.1.0.tgz#bfce185cff908170a4eb9973875b72517c3bc83a"
integrity sha512-ORqcTsg3sa4PGFEyUkbvcPG56F4K2fx1qJCUQIgngO1GaW5taKcvDkT0HvdTqtQAFe/1lN4CpJAqoSCt+nYF/Q==

stream-combiner@~0.0.4:
version "0.0.4"
resolved "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz"
Expand Down

0 comments on commit ae68973

Please sign in to comment.