shopify_app 14.3.0 → 14.4.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/shopify_app/storage_access.js +2 -1
- data/app/assets/javascripts/shopify_app/top_level_interaction.js +1 -1
- data/app/views/shopify_app/sessions/enable_cookies.html.erb +1 -6
- data/app/views/shopify_app/sessions/top_level_interaction.html.erb +1 -7
- data/lib/shopify_app/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f429b16cc3a7e58ffefc48b73c3e3680e99e92da9a7d9bd39d7e9ab5a4c166d
|
|
4
|
+
data.tar.gz: a99e5831aceacada3b406a426559a51cec1403b102272b2ec3a254215aab7164
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24d08c9a1e4c6ef931cade3b3eb76c7d219d09a09dccb5b14b6f2c32a00c8e4684f2a6a1bf1f90211d706e22db6c598173722327071d2b28e99d1f8b7e78347c
|
|
7
|
+
data.tar.gz: 21e89b713d809aa19c3012fb22267a563b277f104ca080ed0b43151d726533cafd04d4df5ea9b880eac382f59bd15f572955025986e3baa907bec9d203367e84
|
data/CHANGELOG.md
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
|
|
133
133
|
/* ITP 2.0 solution: handles cookie partitioning */
|
|
134
134
|
StorageAccessHelper.prototype.setUpHelper = function() {
|
|
135
|
-
|
|
135
|
+
var shopifyData = document.body.dataset;
|
|
136
|
+
return new ITPHelper({redirectUrl: shopifyData.shopOrigin + "/admin/apps/" + shopifyData.apiKey + shopifyData.returnTo});
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
StorageAccessHelper.prototype.setCookieAndRedirect = function() {
|
|
@@ -14,15 +14,10 @@
|
|
|
14
14
|
display: none;
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
|
-
<script>
|
|
18
|
-
window.apiKey = "<%= ShopifyApp.configuration.api_key %>";
|
|
19
|
-
window.shopOrigin = "https://<%= @shop %>";
|
|
20
|
-
window.returnTo = "<%= params[:return_to] %>"
|
|
21
|
-
</script>
|
|
22
17
|
|
|
23
18
|
<%= javascript_include_tag('shopify_app/enable_cookies', crossorigin: 'anonymous', integrity: true) %>
|
|
24
19
|
</head>
|
|
25
|
-
<body>
|
|
20
|
+
<body data-api-key="<%= ShopifyApp.configuration.api_key %>" data-shop-origin="https://<%= @shop %>" data-redirect-url="<%= @url %>">
|
|
26
21
|
<%=
|
|
27
22
|
content_tag(
|
|
28
23
|
:div, nil,
|
|
@@ -15,15 +15,9 @@
|
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
|
|
18
|
-
<script>
|
|
19
|
-
window.apiKey = "<%= ShopifyApp.configuration.api_key %>";
|
|
20
|
-
window.shopOrigin = "https://<%= @shop %>";
|
|
21
|
-
window.redirectUrl = "<%= @url %>";
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
18
|
<%= javascript_include_tag('shopify_app/top_level', crossorigin: 'anonymous', integrity: true) %>
|
|
25
19
|
</head>
|
|
26
|
-
<body>
|
|
20
|
+
<body data-api-key="<%= ShopifyApp.configuration.api_key %>" data-shop-origin="https://<%= @shop %>" data-redirect-url="<%= @url %>">
|
|
27
21
|
<main id="TopLevelInteractionContent">
|
|
28
22
|
<div class="Polaris-Page">
|
|
29
23
|
<div class="Polaris-Page__Content">
|
data/lib/shopify_app/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shopify_app
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 14.
|
|
4
|
+
version: 14.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shopify
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: browser_sniffer
|