superglue 2.0.0.beta.2 → 2.0.0.beta.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1640d0852a7c648653834bd123be25b3743bb902c9812392ce733e3481ae335b
|
|
4
|
+
data.tar.gz: 3c0a159812f0774aabab1a64f2a31d39a3a2fc1aff20c24db098508c2613ad29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d28259b08ed70b6d08282e2de5d7597490075e3b7f88cba4553f0becc07501b6645dd8363c62b9967625a4aa6f0fbe292f65fe75ef7c5eb2fba70666d0e4f07
|
|
7
|
+
data.tar.gz: 7c191014d7f40d0802383b5a8430a6af299233393a52c426289ca06f5773264c59b44eb24450a8129292868453281acf429f38e6e8b4411f2867b64787d48b98
|
|
@@ -197,7 +197,7 @@ module Superglue
|
|
|
197
197
|
|
|
198
198
|
def install_packages
|
|
199
199
|
say "Installing Superglue and friends"
|
|
200
|
-
run "yarn add react react-dom @thoughtbot/superglue
|
|
200
|
+
run "yarn add react react-dom @thoughtbot/superglue@^2.0.0-beta.11"
|
|
201
201
|
|
|
202
202
|
if @use_typescript
|
|
203
203
|
run "yarn add -D @types/react-dom @types/react @types/node @thoughtbot/candy_wrapper@0.0.4 typescript"
|
|
@@ -18,8 +18,7 @@ if (typeof window !== "undefined" && window.SUPERGLUE_INITIAL_PAGE_STATE) {
|
|
|
18
18
|
|
|
19
19
|
if (appEl) {
|
|
20
20
|
const { Provider, Outlet, ujs } = createApp({
|
|
21
|
-
// The base url prefixed to all calls made by
|
|
22
|
-
// and `remote` thunks.
|
|
21
|
+
// The base url prefixed to all calls made by `visit` and `remote`.
|
|
23
22
|
baseUrl: location.origin,
|
|
24
23
|
// The global var SUPERGLUE_INITIAL_PAGE_STATE is set by your erb
|
|
25
24
|
// template, e.g., index.html.erb
|
|
@@ -40,7 +39,7 @@ if (typeof window !== "undefined" && window.SUPERGLUE_INITIAL_PAGE_STATE) {
|
|
|
40
39
|
<Outlet />
|
|
41
40
|
</Layout>
|
|
42
41
|
</Provider>
|
|
43
|
-
</div
|
|
42
|
+
</div>,
|
|
44
43
|
);
|
|
45
44
|
}
|
|
46
45
|
});
|