Skip to content

Commit

Permalink
Merge pull request #7 from hotwired/hotwire-native-bridge-js
Browse files Browse the repository at this point in the history
Point to the new @hotwired/hotwire-native-bridge js library
  • Loading branch information
jayohms authored Sep 25, 2024
2 parents 44c25f8 + 16b895d commit 3f15056
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/javascript/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "@hotwired/turbo"
import { Application } from "@hotwired/stimulus"
import "@hotwired/strada"
import "@hotwired/hotwire-native-demo"

// Controllers
import MenuController from "./controllers/menu_controller.js"
Expand Down
4 changes: 2 additions & 2 deletions public/javascript/controllers/bridge/form_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BridgeComponent } from "@hotwired/strada"
import { BridgeElement } from "@hotwired/strada"
import { BridgeComponent } from "@hotwired/hotwire-native-demo"
import { BridgeElement } from "@hotwired/hotwire-native-demo"

export default class extends BridgeComponent {
static component = "form"
Expand Down
4 changes: 2 additions & 2 deletions public/javascript/controllers/bridge/menu_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BridgeComponent } from "@hotwired/strada"
import { BridgeElement } from "@hotwired/strada"
import { BridgeComponent } from "@hotwired/hotwire-native-demo"
import { BridgeElement } from "@hotwired/hotwire-native-demo"

export default class extends BridgeComponent {
static component = "menu"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BridgeComponent } from "@hotwired/strada"
import { BridgeComponent } from "@hotwired/hotwire-native-demo"

export default class extends BridgeComponent {
static component = "overflow-menu"
Expand Down
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="actions grid">
<h2 class="actions__header space --top-l">Bridge Components</h2>
<div class="actions__body grid__item --start-2 --span-10">
<a class="actions__item" href="https://strada.hotwired.dev" target="_blank">
<a class="actions__item" href="https://native.hotwired.dev/overview/bridge-components" target="_blank">
<div class="actions__icon --external" aria-hidden="true"></div>
Learn about Bridge Components
</a>
Expand Down
2 changes: 1 addition & 1 deletion views/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"imports": {
"@hotwired/turbo": "https://cdn.jsdelivr.net/npm/@hotwired/[email protected]/+esm",
"@hotwired/stimulus": "https://cdn.jsdelivr.net/npm/@hotwired/[email protected]/+esm",
"@hotwired/strada": "https://cdn.jsdelivr.net/npm/@hotwired/strada@1.0.0-beta1/+esm"
"@hotwired/hotwire-native-bridge": "https://cdn.jsdelivr.net/npm/@hotwired/hotwire-native-bridge@1.0.0/+esm"
}
}
</script>
Expand Down

0 comments on commit 3f15056

Please sign in to comment.