turbo_reflex 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -3
- data/README.md +1 -6
- data/app/assets/builds/turbo_reflex.js +1 -1
- data/app/assets/builds/turbo_reflex.js.map +4 -4
- data/app/controllers/concerns/turbo_reflex/controller.rb +12 -108
- data/app/javascript/activity.js +20 -0
- data/app/javascript/delegates.js +27 -0
- data/app/javascript/drivers/form.js +12 -0
- data/app/javascript/drivers/frame.js +11 -0
- data/app/javascript/drivers/index.js +63 -0
- data/app/javascript/drivers/window.js +70 -0
- data/app/javascript/elements.js +29 -50
- data/app/javascript/index.js +72 -0
- data/app/javascript/lifecycle.js +40 -0
- data/app/javascript/logger.js +34 -0
- data/app/javascript/schema.js +6 -0
- data/app/javascript/turbo.js +24 -0
- data/app/javascript/urls.js +9 -0
- data/app/javascript/uuids.js +10 -0
- data/lib/turbo_reflex/base.rb +59 -9
- data/lib/turbo_reflex/engine.rb +2 -10
- data/lib/turbo_reflex/runner.rb +199 -0
- data/lib/turbo_reflex/version.rb +1 -1
- data/package.json +5 -4
- data/turbo_reflex.gemspec +1 -0
- data/yarn.lock +146 -155
- metadata +30 -11
- data/app/controllers/turbo_reflex/turbo_reflexes_controller.rb +0 -12
- data/app/helpers/turbo_reflex/turbo_reflex_helper.rb +0 -9
- data/app/javascript/event_registry.js +0 -34
- data/app/javascript/frame_sources.js +0 -28
- data/app/javascript/lifecycle_events.js +0 -24
- data/app/javascript/security.js +0 -7
- data/app/javascript/turbo_reflex.js +0 -111
- data/config/routes.rb +0 -5
- data/lib/turbo_reflex/errors.rb +0 -6
data/yarn.lock
CHANGED
@@ -49,17 +49,15 @@
|
|
49
49
|
dependencies:
|
50
50
|
regenerator-runtime "^0.13.4"
|
51
51
|
|
52
|
-
"@esbuild/android-arm@0.15.
|
53
|
-
version "0.15.
|
54
|
-
resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.15.
|
55
|
-
integrity sha512-
|
56
|
-
dependencies:
|
57
|
-
esbuild-wasm "0.15.8"
|
52
|
+
"@esbuild/android-arm@0.15.10":
|
53
|
+
version "0.15.10"
|
54
|
+
resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.15.10.tgz#a5f9432eb221afc243c321058ef25fe899886892"
|
55
|
+
integrity sha512-FNONeQPy/ox+5NBkcSbYJxoXj9GWu8gVGJTVmUyoOCKQFDTrHVKgNSzChdNt0I8Aj/iKcsDf2r9BFwv+FSNUXg==
|
58
56
|
|
59
|
-
"@esbuild/linux-loong64@0.15.
|
60
|
-
version "0.15.
|
61
|
-
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.
|
62
|
-
integrity sha512-
|
57
|
+
"@esbuild/linux-loong64@0.15.10":
|
58
|
+
version "0.15.10"
|
59
|
+
resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.15.10.tgz#78a42897c2cf8db9fd5f1811f7590393b77774c7"
|
60
|
+
integrity sha512-w0Ou3Z83LOYEkwaui2M8VwIp+nLi/NA60lBLMvaJ+vXVMcsARYdEzLNE7RSm4+lSg4zq4d7fAVuzk7PNQ5JFgg==
|
63
61
|
|
64
62
|
"@eslint/eslintrc@^1.3.2":
|
65
63
|
version "1.3.2"
|
@@ -96,10 +94,10 @@
|
|
96
94
|
resolved "https://registry.yarnpkg.com/@glimmer/util/-/util-0.41.4.tgz#508fd82ca40305416e130f0da7b537295ded7989"
|
97
95
|
integrity sha512-DwS94K+M0vtG+cymxH0rslJr09qpdjyOLdCjmpKcG/nNiZQfMA1ybAaFEmwk9UaVlUG9STENFeQwyrLevJB+7g==
|
98
96
|
|
99
|
-
"@humanwhocodes/config-array@^0.10.
|
100
|
-
version "0.10.
|
101
|
-
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.
|
102
|
-
integrity sha512-
|
97
|
+
"@humanwhocodes/config-array@^0.10.5":
|
98
|
+
version "0.10.7"
|
99
|
+
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.7.tgz#6d53769fd0c222767e6452e8ebda825c22e9f0dc"
|
100
|
+
integrity sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==
|
103
101
|
dependencies:
|
104
102
|
"@humanwhocodes/object-schema" "^1.2.1"
|
105
103
|
debug "^4.1.1"
|
@@ -172,9 +170,9 @@
|
|
172
170
|
integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
|
173
171
|
|
174
172
|
"@types/node@*":
|
175
|
-
version "18.7.
|
176
|
-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.
|
177
|
-
integrity sha512-
|
173
|
+
version "18.7.23"
|
174
|
+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.23.tgz#75c580983846181ebe5f4abc40fe9dfb2d65665f"
|
175
|
+
integrity sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==
|
178
176
|
|
179
177
|
"@types/unist@^2.0.0", "@types/unist@^2.0.2":
|
180
178
|
version "2.0.6"
|
@@ -684,140 +682,133 @@ error-ex@^1.3.1:
|
|
684
682
|
dependencies:
|
685
683
|
is-arrayish "^0.2.1"
|
686
684
|
|
687
|
-
esbuild-android-64@0.15.
|
688
|
-
version "0.15.
|
689
|
-
resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.15.
|
690
|
-
integrity sha512-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
esbuild-android-arm64
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
esbuild-darwin-64
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
esbuild-darwin-arm64
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
esbuild-freebsd-64
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
esbuild-freebsd-arm64
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
esbuild-linux-32
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
esbuild-linux-64
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
esbuild-linux-arm64
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
esbuild-linux-arm
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
esbuild-linux-mips64le
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
esbuild-linux-ppc64le
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
esbuild-linux-riscv64
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
esbuild-linux-s390x
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
esbuild-netbsd-64
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
esbuild-openbsd-64
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
esbuild-sunos-64
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
esbuild-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
esbuild-windows-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
esbuild-windows-
|
785
|
-
|
786
|
-
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.15.8.tgz#cedee65505209c8d371d7228b60785c08f43e04d"
|
787
|
-
integrity sha512-ag9ptYrsizgsR+PQE8QKeMqnosLvAMonQREpLw4evA4FFgOBMLEat/dY/9txbpozTw9eEOYyD3a4cE9yTu20FA==
|
788
|
-
|
789
|
-
esbuild-windows-arm64@0.15.8:
|
790
|
-
version "0.15.8"
|
791
|
-
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.8.tgz#1d75235290bf23a111e6c0b03febd324af115cb1"
|
792
|
-
integrity sha512-dbpAb0VyPaUs9mgw65KRfQ9rqiWCHpNzrJusoPu+LpEoswosjt/tFxN7cd2l68AT4qWdBkzAjDLRon7uqMeWcg==
|
685
|
+
esbuild-android-64@0.15.10:
|
686
|
+
version "0.15.10"
|
687
|
+
resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.15.10.tgz#8a59a84acbf2eca96996cadc35642cf055c494f0"
|
688
|
+
integrity sha512-UI7krF8OYO1N7JYTgLT9ML5j4+45ra3amLZKx7LO3lmLt1Ibn8t3aZbX5Pu4BjWiqDuJ3m/hsvhPhK/5Y/YpnA==
|
689
|
+
|
690
|
+
esbuild-android-arm64@0.15.10:
|
691
|
+
version "0.15.10"
|
692
|
+
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.15.10.tgz#f453851dc1d8c5409a38cf7613a33852faf4915d"
|
693
|
+
integrity sha512-EOt55D6xBk5O05AK8brXUbZmoFj4chM8u3riGflLa6ziEoVvNjRdD7Cnp82NHQGfSHgYR06XsPI8/sMuA/cUwg==
|
694
|
+
|
695
|
+
esbuild-darwin-64@0.15.10:
|
696
|
+
version "0.15.10"
|
697
|
+
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.15.10.tgz#778bd29c8186ff47b176c8af58c08cf0fb8e6b86"
|
698
|
+
integrity sha512-hbDJugTicqIm+WKZgp208d7FcXcaK8j2c0l+fqSJ3d2AzQAfjEYDRM3Z2oMeqSJ9uFxyj/muSACLdix7oTstRA==
|
699
|
+
|
700
|
+
esbuild-darwin-arm64@0.15.10:
|
701
|
+
version "0.15.10"
|
702
|
+
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.10.tgz#b30bbefb46dc3c5d4708b0435e52f6456578d6df"
|
703
|
+
integrity sha512-M1t5+Kj4IgSbYmunf2BB6EKLkWUq+XlqaFRiGOk8bmBapu9bCDrxjf4kUnWn59Dka3I27EiuHBKd1rSO4osLFQ==
|
704
|
+
|
705
|
+
esbuild-freebsd-64@0.15.10:
|
706
|
+
version "0.15.10"
|
707
|
+
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.10.tgz#ab301c5f6ded5110dbdd611140bef1a7c2e99236"
|
708
|
+
integrity sha512-KMBFMa7C8oc97nqDdoZwtDBX7gfpolkk6Bcmj6YFMrtCMVgoU/x2DI1p74DmYl7CSS6Ppa3xgemrLrr5IjIn0w==
|
709
|
+
|
710
|
+
esbuild-freebsd-arm64@0.15.10:
|
711
|
+
version "0.15.10"
|
712
|
+
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.10.tgz#a5b09b867a6ff49110f52343b6f12265db63d43f"
|
713
|
+
integrity sha512-m2KNbuCX13yQqLlbSojFMHpewbn8wW5uDS6DxRpmaZKzyq8Dbsku6hHvh2U+BcLwWY4mpgXzFUoENEf7IcioGg==
|
714
|
+
|
715
|
+
esbuild-linux-32@0.15.10:
|
716
|
+
version "0.15.10"
|
717
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.15.10.tgz#5282fe9915641caf9c8070e4ba2c3e16d358f837"
|
718
|
+
integrity sha512-guXrwSYFAvNkuQ39FNeV4sNkNms1bLlA5vF1H0cazZBOLdLFIny6BhT+TUbK/hdByMQhtWQ5jI9VAmPKbVPu1w==
|
719
|
+
|
720
|
+
esbuild-linux-64@0.15.10:
|
721
|
+
version "0.15.10"
|
722
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.15.10.tgz#f3726e85a00149580cb19f8abfabcbb96f5d52bb"
|
723
|
+
integrity sha512-jd8XfaSJeucMpD63YNMO1JCrdJhckHWcMv6O233bL4l6ogQKQOxBYSRP/XLWP+6kVTu0obXovuckJDcA0DKtQA==
|
724
|
+
|
725
|
+
esbuild-linux-arm64@0.15.10:
|
726
|
+
version "0.15.10"
|
727
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.10.tgz#2f0056e9d5286edb0185b56655caa8c574d8dbe7"
|
728
|
+
integrity sha512-GByBi4fgkvZFTHFDYNftu1DQ1GzR23jws0oWyCfhnI7eMOe+wgwWrc78dbNk709Ivdr/evefm2PJiUBMiusS1A==
|
729
|
+
|
730
|
+
esbuild-linux-arm@0.15.10:
|
731
|
+
version "0.15.10"
|
732
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.15.10.tgz#40a9270da3c8ffa32cf72e24a79883e323dff08d"
|
733
|
+
integrity sha512-6N8vThLL/Lysy9y4Ex8XoLQAlbZKUyExCWyayGi2KgTBelKpPgj6RZnUaKri0dHNPGgReJriKVU6+KDGQwn10A==
|
734
|
+
|
735
|
+
esbuild-linux-mips64le@0.15.10:
|
736
|
+
version "0.15.10"
|
737
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.10.tgz#90ce1c4ee0202edb4ac69807dea77f7e5804abc4"
|
738
|
+
integrity sha512-BxP+LbaGVGIdQNJUNF7qpYjEGWb0YyHVSKqYKrn+pTwH/SiHUxFyJYSP3pqkku61olQiSBnSmWZ+YUpj78Tw7Q==
|
739
|
+
|
740
|
+
esbuild-linux-ppc64le@0.15.10:
|
741
|
+
version "0.15.10"
|
742
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.10.tgz#782837ae7bd5b279178106c9dd801755a21fabdf"
|
743
|
+
integrity sha512-LoSQCd6498PmninNgqd/BR7z3Bsk/mabImBWuQ4wQgmQEeanzWd5BQU2aNi9mBURCLgyheuZS6Xhrw5luw3OkQ==
|
744
|
+
|
745
|
+
esbuild-linux-riscv64@0.15.10:
|
746
|
+
version "0.15.10"
|
747
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.10.tgz#d7420d806ece5174f24f4634303146f915ab4207"
|
748
|
+
integrity sha512-Lrl9Cr2YROvPV4wmZ1/g48httE8z/5SCiXIyebiB5N8VT7pX3t6meI7TQVHw/wQpqP/AF4SksDuFImPTM7Z32Q==
|
749
|
+
|
750
|
+
esbuild-linux-s390x@0.15.10:
|
751
|
+
version "0.15.10"
|
752
|
+
resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.10.tgz#21fdf0cb3494a7fb520a71934e4dffce67fe47be"
|
753
|
+
integrity sha512-ReP+6q3eLVVP2lpRrvl5EodKX7EZ1bS1/z5j6hsluAlZP5aHhk6ghT6Cq3IANvvDdscMMCB4QEbI+AjtvoOFpA==
|
754
|
+
|
755
|
+
esbuild-netbsd-64@0.15.10:
|
756
|
+
version "0.15.10"
|
757
|
+
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.10.tgz#6c06b3107e3df53de381e6299184d4597db0440f"
|
758
|
+
integrity sha512-iGDYtJCMCqldMskQ4eIV+QSS/CuT7xyy9i2/FjpKvxAuCzrESZXiA1L64YNj6/afuzfBe9i8m/uDkFHy257hTw==
|
759
|
+
|
760
|
+
esbuild-openbsd-64@0.15.10:
|
761
|
+
version "0.15.10"
|
762
|
+
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.10.tgz#4daef5f5d8e74bbda53b65160029445d582570cf"
|
763
|
+
integrity sha512-ftMMIwHWrnrYnvuJQRJs/Smlcb28F9ICGde/P3FUTCgDDM0N7WA0o9uOR38f5Xe2/OhNCgkjNeb7QeaE3cyWkQ==
|
764
|
+
|
765
|
+
esbuild-sunos-64@0.15.10:
|
766
|
+
version "0.15.10"
|
767
|
+
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.15.10.tgz#5fe7bef267a02f322fd249a8214d0274937388a7"
|
768
|
+
integrity sha512-mf7hBL9Uo2gcy2r3rUFMjVpTaGpFJJE5QTDDqUFf1632FxteYANffDZmKbqX0PfeQ2XjUDE604IcE7OJeoHiyg==
|
769
|
+
|
770
|
+
esbuild-windows-32@0.15.10:
|
771
|
+
version "0.15.10"
|
772
|
+
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.15.10.tgz#48e3dde25ab0135579a288b30ab6ddef6d1f0b28"
|
773
|
+
integrity sha512-ttFVo+Cg8b5+qHmZHbEc8Vl17kCleHhLzgT8X04y8zudEApo0PxPg9Mz8Z2cKH1bCYlve1XL8LkyXGFjtUYeGg==
|
774
|
+
|
775
|
+
esbuild-windows-64@0.15.10:
|
776
|
+
version "0.15.10"
|
777
|
+
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.15.10.tgz#387a9515bef3fee502d277a5d0a2db49a4ecda05"
|
778
|
+
integrity sha512-2H0gdsyHi5x+8lbng3hLbxDWR7mKHWh5BXZGKVG830KUmXOOWFE2YKJ4tHRkejRduOGDrBvHBriYsGtmTv3ntA==
|
779
|
+
|
780
|
+
esbuild-windows-arm64@0.15.10:
|
781
|
+
version "0.15.10"
|
782
|
+
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.10.tgz#5a6fcf2fa49e895949bf5495cf088ab1b43ae879"
|
783
|
+
integrity sha512-S+th4F+F8VLsHLR0zrUcG+Et4hx0RKgK1eyHc08kztmLOES8BWwMiaGdoW9hiXuzznXQ0I/Fg904MNbr11Nktw==
|
793
784
|
|
794
785
|
esbuild@^0.15.7:
|
795
|
-
version "0.15.
|
796
|
-
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.15.
|
797
|
-
integrity sha512-
|
786
|
+
version "0.15.10"
|
787
|
+
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.15.10.tgz#85c2f8446e9b1fe04fae68daceacba033eedbd42"
|
788
|
+
integrity sha512-N7wBhfJ/E5fzn/SpNgX+oW2RLRjwaL8Y0ezqNqhjD6w0H2p0rDuEz2FKZqpqLnO8DCaWumKe8dsC/ljvVSSxng==
|
798
789
|
optionalDependencies:
|
799
|
-
"@esbuild/android-arm" "0.15.
|
800
|
-
"@esbuild/linux-loong64" "0.15.
|
801
|
-
esbuild-android-64 "0.15.
|
802
|
-
esbuild-android-arm64 "0.15.
|
803
|
-
esbuild-darwin-64 "0.15.
|
804
|
-
esbuild-darwin-arm64 "0.15.
|
805
|
-
esbuild-freebsd-64 "0.15.
|
806
|
-
esbuild-freebsd-arm64 "0.15.
|
807
|
-
esbuild-linux-32 "0.15.
|
808
|
-
esbuild-linux-64 "0.15.
|
809
|
-
esbuild-linux-arm "0.15.
|
810
|
-
esbuild-linux-arm64 "0.15.
|
811
|
-
esbuild-linux-mips64le "0.15.
|
812
|
-
esbuild-linux-ppc64le "0.15.
|
813
|
-
esbuild-linux-riscv64 "0.15.
|
814
|
-
esbuild-linux-s390x "0.15.
|
815
|
-
esbuild-netbsd-64 "0.15.
|
816
|
-
esbuild-openbsd-64 "0.15.
|
817
|
-
esbuild-sunos-64 "0.15.
|
818
|
-
esbuild-windows-32 "0.15.
|
819
|
-
esbuild-windows-64 "0.15.
|
820
|
-
esbuild-windows-arm64 "0.15.
|
790
|
+
"@esbuild/android-arm" "0.15.10"
|
791
|
+
"@esbuild/linux-loong64" "0.15.10"
|
792
|
+
esbuild-android-64 "0.15.10"
|
793
|
+
esbuild-android-arm64 "0.15.10"
|
794
|
+
esbuild-darwin-64 "0.15.10"
|
795
|
+
esbuild-darwin-arm64 "0.15.10"
|
796
|
+
esbuild-freebsd-64 "0.15.10"
|
797
|
+
esbuild-freebsd-arm64 "0.15.10"
|
798
|
+
esbuild-linux-32 "0.15.10"
|
799
|
+
esbuild-linux-64 "0.15.10"
|
800
|
+
esbuild-linux-arm "0.15.10"
|
801
|
+
esbuild-linux-arm64 "0.15.10"
|
802
|
+
esbuild-linux-mips64le "0.15.10"
|
803
|
+
esbuild-linux-ppc64le "0.15.10"
|
804
|
+
esbuild-linux-riscv64 "0.15.10"
|
805
|
+
esbuild-linux-s390x "0.15.10"
|
806
|
+
esbuild-netbsd-64 "0.15.10"
|
807
|
+
esbuild-openbsd-64 "0.15.10"
|
808
|
+
esbuild-sunos-64 "0.15.10"
|
809
|
+
esbuild-windows-32 "0.15.10"
|
810
|
+
esbuild-windows-64 "0.15.10"
|
811
|
+
esbuild-windows-arm64 "0.15.10"
|
821
812
|
|
822
813
|
escape-string-regexp@2.0.0:
|
823
814
|
version "2.0.0"
|
@@ -923,12 +914,12 @@ eslint@^6.8.0:
|
|
923
914
|
v8-compile-cache "^2.0.3"
|
924
915
|
|
925
916
|
eslint@^8.19.0:
|
926
|
-
version "8.
|
927
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
|
928
|
-
integrity sha512-
|
917
|
+
version "8.24.0"
|
918
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.24.0.tgz#489516c927a5da11b3979dbfb2679394523383c8"
|
919
|
+
integrity sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==
|
929
920
|
dependencies:
|
930
921
|
"@eslint/eslintrc" "^1.3.2"
|
931
|
-
"@humanwhocodes/config-array" "^0.10.
|
922
|
+
"@humanwhocodes/config-array" "^0.10.5"
|
932
923
|
"@humanwhocodes/gitignore-to-minimatch" "^1.0.2"
|
933
924
|
"@humanwhocodes/module-importer" "^1.0.1"
|
934
925
|
ajv "^6.10.0"
|
@@ -2838,9 +2829,9 @@ type-fest@^0.8.1:
|
|
2838
2829
|
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
|
2839
2830
|
|
2840
2831
|
uglify-js@^3.1.4:
|
2841
|
-
version "3.17.
|
2842
|
-
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.
|
2843
|
-
integrity sha512-
|
2832
|
+
version "3.17.2"
|
2833
|
+
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.2.tgz#f55f668b9a64b213977ae688703b6bbb7ca861c6"
|
2834
|
+
integrity sha512-bbxglRjsGQMchfvXZNusUcYgiB9Hx2K4AHYXQy2DITZ9Rd+JzhX7+hoocE5Winr7z2oHvPsekkBwXtigvxevXg==
|
2844
2835
|
|
2845
2836
|
unherit@^1.0.4:
|
2846
2837
|
version "1.1.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo_reflex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Hopkins (hopsoft)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: turbo_ready
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.1'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: capybara
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,24 +340,29 @@ files:
|
|
326
340
|
- app/assets/images/turbo-reflex-logo-light.webp
|
327
341
|
- app/assets/images/turbo-reflex-mark.webp
|
328
342
|
- app/controllers/concerns/turbo_reflex/controller.rb
|
329
|
-
- app/
|
330
|
-
- app/
|
343
|
+
- app/javascript/activity.js
|
344
|
+
- app/javascript/delegates.js
|
345
|
+
- app/javascript/drivers/form.js
|
346
|
+
- app/javascript/drivers/frame.js
|
347
|
+
- app/javascript/drivers/index.js
|
348
|
+
- app/javascript/drivers/window.js
|
331
349
|
- app/javascript/elements.js
|
332
|
-
- app/javascript/
|
333
|
-
- app/javascript/
|
334
|
-
- app/javascript/
|
335
|
-
- app/javascript/
|
336
|
-
- app/javascript/
|
350
|
+
- app/javascript/index.js
|
351
|
+
- app/javascript/lifecycle.js
|
352
|
+
- app/javascript/logger.js
|
353
|
+
- app/javascript/schema.js
|
354
|
+
- app/javascript/turbo.js
|
355
|
+
- app/javascript/urls.js
|
356
|
+
- app/javascript/uuids.js
|
337
357
|
- bin/loc
|
338
358
|
- bin/standardize
|
339
359
|
- bin/test
|
340
|
-
- config/routes.rb
|
341
360
|
- docker-compose.yml
|
342
361
|
- fly.toml
|
343
362
|
- lib/turbo_reflex.rb
|
344
363
|
- lib/turbo_reflex/base.rb
|
345
364
|
- lib/turbo_reflex/engine.rb
|
346
|
-
- lib/turbo_reflex/
|
365
|
+
- lib/turbo_reflex/runner.rb
|
347
366
|
- lib/turbo_reflex/sanitizer.rb
|
348
367
|
- lib/turbo_reflex/version.rb
|
349
368
|
- package.json
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class TurboReflex::TurboReflexesController < ActionController::Base
|
4
|
-
include TurboReflex::Controller
|
5
|
-
|
6
|
-
def show
|
7
|
-
return head(:ok) unless turbo_reflex_instance&.turbo_streams.present?
|
8
|
-
render html: view_context.turbo_reflex_frame_tag do
|
9
|
-
turbo_reflex_instance.turbo_streams.map(&:to_s).join
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
const registeredEvents = {}
|
2
|
-
let eventListener
|
3
|
-
|
4
|
-
function registerEventListener (fn) {
|
5
|
-
eventListener = fn
|
6
|
-
}
|
7
|
-
|
8
|
-
function registerEvent (eventName, tagNames) {
|
9
|
-
registeredEvents[eventName] = tagNames
|
10
|
-
document.addEventListener(eventName, eventListener, true)
|
11
|
-
}
|
12
|
-
|
13
|
-
function isRegisteredEvent (eventName, tagName) {
|
14
|
-
tagName = tagName.toLowerCase()
|
15
|
-
return (
|
16
|
-
registeredEvents[eventName].includes(tagName) ||
|
17
|
-
(!Object.values(registeredEvents)
|
18
|
-
.flat()
|
19
|
-
.includes(tagName) &&
|
20
|
-
registeredEvents[eventName].includes('*'))
|
21
|
-
)
|
22
|
-
}
|
23
|
-
|
24
|
-
function logRegisteredEvents () {
|
25
|
-
console.log(registeredEvents)
|
26
|
-
}
|
27
|
-
|
28
|
-
export {
|
29
|
-
registerEventListener,
|
30
|
-
registerEvent,
|
31
|
-
registeredEvents,
|
32
|
-
isRegisteredEvent,
|
33
|
-
logRegisteredEvents
|
34
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import LifecycleEvents from './lifecycle_events'
|
2
|
-
const frameSources = {}
|
3
|
-
|
4
|
-
// fires after receiving a turbo HTTP response
|
5
|
-
addEventListener('turbo:before-fetch-response', event => {
|
6
|
-
const frame = event.target
|
7
|
-
frameSources[frame.id] = frame.src
|
8
|
-
|
9
|
-
const { turboReflexActive, turboReflexElementId } = frame.dataset
|
10
|
-
if (!turboReflexActive) return
|
11
|
-
|
12
|
-
const element = document.getElementById(turboReflexElementId)
|
13
|
-
delete frame.dataset.turboReflexActive
|
14
|
-
delete frame.dataset.turboReflexElementId
|
15
|
-
|
16
|
-
LifecycleEvents.dispatch(LifecycleEvents.finish, element || document, {
|
17
|
-
frame,
|
18
|
-
element: element || 'Unknown! Missing id attribute.'
|
19
|
-
})
|
20
|
-
})
|
21
|
-
|
22
|
-
// fires when a frame element is navigated and finishes loading
|
23
|
-
addEventListener('turbo:frame-load', event => {
|
24
|
-
const frame = event.target
|
25
|
-
frame.dataset.turboReflexSrc =
|
26
|
-
frameSources[frame.id] || frame.src || frame.dataset.turboReflexSrc
|
27
|
-
delete frameSources[frame.id]
|
28
|
-
})
|
@@ -1,24 +0,0 @@
|
|
1
|
-
const events = {
|
2
|
-
beforeStart: 'turbo-reflex:before-start',
|
3
|
-
start: 'turbo-reflex:start',
|
4
|
-
finish: 'turbo-reflex:finish',
|
5
|
-
error: 'turbo-reflex:error',
|
6
|
-
missingFrameId: 'turbo-reflex:missing-frame-id',
|
7
|
-
missingFrame: 'turbo-reflex:missing-frame',
|
8
|
-
missingFrameSrc: 'turbo-reflex:missing-frame-src'
|
9
|
-
}
|
10
|
-
|
11
|
-
function dispatch (name, target = document, detail = {}) {
|
12
|
-
const event = new CustomEvent(name, {
|
13
|
-
detail,
|
14
|
-
cancelable: true,
|
15
|
-
bubbles: true
|
16
|
-
})
|
17
|
-
target.dispatchEvent(event)
|
18
|
-
}
|
19
|
-
|
20
|
-
function logEventNames () {
|
21
|
-
Object.values(events).forEach(name => console.log(name))
|
22
|
-
}
|
23
|
-
|
24
|
-
export default { ...events, dispatch, logEventNames }
|