ably-ui 7.8.0 → 7.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 494466a56e66a9ee3ecf752f58e793156bf14028dcff63ef26b7dc9bea8b0ccc
4
- data.tar.gz: c16e417e18ef060884bbceabddd76d5ac0c731667c4ab0a28aa90f31d19c7a43
3
+ metadata.gz: bde61226b5f6a191c68aa300a043c9cece9986a3b3dac6af0f2a94af71ccc2af
4
+ data.tar.gz: d0612a892d69a1e47db0b6c0deb2e47dc49921e8397b609b6445e9372ae4b519
5
5
  SHA512:
6
- metadata.gz: db9ac06c3dd5f9b7a11f27e347f91e52e6cf73e600011609e3a2bae478d1122c200ccc121019fa4b680ab818140b20d1364f7c8ddfae0054dd65499f860e8858
7
- data.tar.gz: a006f629b0a55f416709a02bff4be042bbc9c6279711625f4443bac64afd8ebdc84435081b50e8740d99b9ac8b865c7750e8693855618f7af4199eeee743285a
6
+ metadata.gz: 50eb420c73b8fd342d329f4645e2a23c97c29ebf5da91b43efeb6b2ff22efc1e36a0db602764c2fc76d478cdf3e39a53694dd0ade5405cb58792dc38d705c94b
7
+ data.tar.gz: 790d81482e6f4573059c3773a1145151c2be7bda2607ec188fea5d174164285c5ee474257be9035911a563c3e26ec6544a5bb2f86cc200aaeee32c9be4c5bdcf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ably-ui (7.7.0.dev.250db1f)
4
+ ably-ui (7.8.0.dev.502e5bf)
5
5
  view_component (>= 2.33, < 2.50)
6
6
 
7
7
  GEM
@@ -1,13 +1,13 @@
1
1
  <%= link_to logo_href, class: 'h-32' do %>
2
- <%= tag.svg class: ["transition-colors", theme(:logo_text_color)], data: { id: data_id }, width: "108", height: "32", viewBox: "0 0 108 32", xmlns: "http://www.w3.org/2000/svg" do %>
2
+ <%= tag.svg class: ["transition-colors", "text-cool-black"], data: { id: data_id }, width: "108", height: "32", viewBox: "0 0 108 32", xmlns: "http://www.w3.org/2000/svg" do %>
3
3
  <path
4
4
  d="M62.922 24.9786V4.08813H66.6933V11.6512C67.9709 10.435 69.6164 9.76044 71.3538 9.76044C75.4318 9.76044 79.0498 12.8674 79.0498 17.5484C79.0498 22.2293 75.4318 25.3465 71.3538 25.3465C69.5244 25.3465 67.7971 24.6209 66.5094 23.3024V24.9786H62.922ZM75.2785 17.5484C75.2785 14.932 73.4183 13.1025 70.9859 13.1025C68.6148 13.1025 66.7853 14.84 66.6933 17.3644V17.5484C66.6933 20.1648 68.5534 21.9942 70.9859 21.9942C73.4183 21.9942 75.2785 20.1648 75.2785 17.5484ZM80.7975 24.9786V4.08813H84.5688V24.9786H80.7975ZM89.8425 30.3954L92.0399 25.1523L86.0712 10.1284H90.1491L93.9511 20.6247L97.8144 10.1284H101.954L93.8591 30.4056H89.8425V30.3954ZM56.9329 10.1284V12.0191C55.6247 10.5883 53.7952 9.77066 51.9147 9.77066C47.8367 9.77066 44.2187 12.8777 44.2187 17.5586C44.2187 22.2497 47.8367 25.3465 51.9147 25.3465C53.8668 25.3465 55.7166 24.4982 57.0555 22.9754V24.9888H60.3465V10.1284H56.9329ZM56.5649 17.5484C56.5649 20.1341 54.7048 21.9942 52.2724 21.9942C49.8399 21.9942 47.9798 20.1341 47.9798 17.5484C47.9798 14.9626 49.8399 13.1025 52.2724 13.1025C54.6435 13.1025 56.473 14.8706 56.5649 17.3644V17.5484Z"
5
5
  fill="currentColor"
6
6
  />
7
- <path d="M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z" fill="url(#paint0_linear)" />
8
- <path d="M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z" fill="url(#paint1_linear)" />
7
+ <path d="M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z" fill="url(#<%= gradient_id_0 %>)" />
8
+ <path d="M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z" fill="url(#<%= gradient_id_1 %>)" />
9
9
  <defs>
10
- <linearGradient id="paint0_linear" x1="5.47361" y1="37.4219" x2="32.4603" y2="7.45023" gradientUnits="userSpaceOnUse">
10
+ <linearGradient id="<%= gradient_id_0 %>" x1="5.47361" y1="37.4219" x2="32.4603" y2="7.45023" gradientUnits="userSpaceOnUse">
11
11
  <stop stop-color="#FF5416" />
12
12
  <stop offset="0.2535" stop-color="#FF5115" />
13
13
  <stop offset="0.461" stop-color="#FF4712" />
@@ -15,7 +15,7 @@
15
15
  <stop offset="0.8327" stop-color="#FF1E08" />
16
16
  <stop offset="1" stop-color="#FF0000" />
17
17
  </linearGradient>
18
- <linearGradient id="paint1_linear" x1="10.7084" y1="39.3593" x2="26.6583" y2="21.6452" gradientUnits="userSpaceOnUse">
18
+ <linearGradient id="<%= gradient_id_1 %>" x1="10.7084" y1="39.3593" x2="26.6583" y2="21.6452" gradientUnits="userSpaceOnUse">
19
19
  <stop stop-color="#FF5416" />
20
20
  <stop offset="0.2535" stop-color="#FF5115" />
21
21
  <stop offset="0.461" stop-color="#FF4712" />
@@ -1,14 +1,17 @@
1
+ require 'securerandom'
2
+
1
3
  module AblyUi
2
4
  module Core
3
5
  class Logo < ViewComponent::Base
4
6
  include AblyUi::Core::MeganavConfig
5
7
 
6
- attr_reader :href, :data_id
8
+ attr_reader :href, :data_id, :gradient_id_0, :gradient_id_1
7
9
 
8
- def initialize(theme_name:, data_id: '', href:)
10
+ def initialize(data_id: '', href:)
9
11
  @data_id = data_id
10
12
  @href = href
11
- theme_setup(theme_name)
13
+ @gradient_id_0 = "paint_linear_#{SecureRandom.uuid}"
14
+ @gradient_id_1 = "paint_linear_#{SecureRandom.uuid}"
12
15
  end
13
16
 
14
17
  def logo_href
@@ -2,7 +2,7 @@
2
2
  <%= notice %>
3
3
 
4
4
  <div class="ui-meganav ui-grid-px">
5
- <%= render(AblyUi::Core::Logo.new(theme_name: @theme_name, data_id: "meganav-logo", href: logo_link)) %>
5
+ <%= render(AblyUi::Core::Logo.new(data_id: "meganav-logo", href: logo_link)) %>
6
6
  <%= render(AblyUi::Core::MeganavItemsDesktop.new(theme_name: @theme_name, url_base: url_base)) %>
7
7
 
8
8
  <% if @session_data[:signedIn] %>
@@ -1,3 +1,3 @@
1
1
  module AblyUi
2
- VERSION = '7.8.0'
2
+ VERSION = '7.8.2'
3
3
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ably-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.8.0
4
+ version: 7.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Piatek
8
8
  - Arti Mathanda
9
9
  - Bruce Thomas
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-05-18 00:00:00.000000000 Z
13
+ date: 2022-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: view_component
@@ -32,7 +32,7 @@ dependencies:
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '2.50'
35
- description:
35
+ description:
36
36
  email:
37
37
  - dominik.piatek@ably.com
38
38
  - arti.mathanda@ably.com
@@ -201,8 +201,6 @@ files:
201
201
  - lib/ably_ui/core/uptime/component.js
202
202
  - lib/ably_ui/core/uptime/uptime.html.erb
203
203
  - lib/ably_ui/core/uptime/uptime.rb
204
- - lib/ably_ui/react/connect_state_wrapper/component.js
205
- - lib/ably_ui/react/scripts.js
206
204
  - lib/ably_ui/reset/scripts.js
207
205
  - lib/ably_ui/reset/styles.css
208
206
  - lib/ably_ui/version.rb
@@ -211,7 +209,7 @@ licenses:
211
209
  - Apache-2.0
212
210
  metadata:
213
211
  source_code_uri: https://github.com/ably/ably-ui
214
- post_install_message:
212
+ post_install_message:
215
213
  rdoc_options: []
216
214
  require_paths:
217
215
  - lib
@@ -227,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
225
  version: '0'
228
226
  requirements: []
229
227
  rubygems_version: 3.2.3
230
- signing_key:
228
+ signing_key:
231
229
  specification_version: 4
232
230
  summary: Shared component library and design system for Ably Real-time Ltd (ably.com)
233
231
  test_files: []
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.React=e.AblyUi.React||{},e.AblyUi.React.ConnectStateWrapper=t())}(this,(function(){return{}.default}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define([,],t):"object"==typeof exports?exports.AblyUi=t(require("react"),require("react-dom")):(e.AblyUi=e.AblyUi||{},e.AblyUi.React=t(e[void 0],e[void 0]))}(this,(function(e,t){return(()=>{"use strict";var r={281:t=>{t.exports=e},645:e=>{e.exports=t}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{a.r(n),a.d(n,{reactRenderer:()=>i});var e=a(281),t=a.n(e),r=a(645),o=a.n(r);function i(e){var r=document.querySelectorAll("[data-react]");Array.from(r).forEach((function(r){var a=r.getAttribute("data-react"),n=e[a];if(!n)throw new Error('Found a data-react attribute with "'.concat(a,'" but no matching component.'));var i=r.getAttribute("data-react-props"),c=i&&JSON.parse(i||{});o().render(t().createElement(n,c),r),r.removeAttribute("data-react"),r.removeAttribute("data-react-props")}))}})(),n})()}));