ably-ui 4.2.0.dev.04ce1ff → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +13 -17
- data/lib/ably_ui/version.rb +1 -1
- metadata +8 -15
- data/lib/ably_ui/core/core.base.css +0 -1
- data/lib/ably_ui/core/core.components.css +0 -49
- data/lib/ably_ui/core/icon/component.css +0 -1
- data/lib/ably_ui/core/styles.base.css +0 -1
- data/lib/ably_ui/core/styles.components.css +0 -49
- data/lib/ably_ui/react/connect_state_wrapper/component.js +0 -1
- data/lib/ably_ui/react/scripts.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6affdd374453898a61eab4a3b46c740ea6e743f28610753701a1cb370f069a21
|
4
|
+
data.tar.gz: c0a099bf76000b63c15dbef975622a5913faa2cdd1dbbffc9d8c74a0e6c0375e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063f4de46d58e22998eb466258b3644d4a153210f46b4d9f5e071a61c15fa6aa27bf097633ede1b906d55b2c2fa7868401ed9f8c4da278472b81c7903a78a93a
|
7
|
+
data.tar.gz: a6e7268c83a6938c21bcd2fcd413e7e731088c3029dff0d70c5d660555519955716c10e9f41b3a5a2ce6b8b1f473427d8a24e7082b9d39aedb7575356f3a522d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -34,8 +34,6 @@ Each module, apart from components, exposes a `scripts.js`, `styles.css` and `MO
|
|
34
34
|
|
35
35
|
This type of installation gives you access to module/components assets as well as React components.
|
36
36
|
|
37
|
-
Note, the package is currently hosted in our private GitHub registry, so you will need a `GITHUB_REGISTRY_TOKEN` environment variable in your shell to be able to install it. See [here](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) for instructions on obtaining one.
|
38
|
-
|
39
37
|
```bash
|
40
38
|
npm install @ably/ui
|
41
39
|
|
@@ -123,18 +121,9 @@ To use `ably-ui` with [Ruby on Rails](https://rubyonrails.org/) add the `ably-ui
|
|
123
121
|
```ruby
|
124
122
|
gem 'ably-ui',
|
125
123
|
'1.0.0',
|
126
|
-
require: 'ably_ui'
|
127
|
-
source: 'https://rubygems.pkg.github.com/ably'
|
128
|
-
```
|
129
|
-
|
130
|
-
And then run:
|
131
|
-
|
132
|
-
```bash
|
133
|
-
bundle config https://rubygems.pkg.github.com/ably USERNAME:TOKEN
|
124
|
+
require: 'ably_ui'
|
134
125
|
```
|
135
126
|
|
136
|
-
Where `USERNAME` is your GitHub username (without the `@`) and TOKEN is your [GitHub access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token). This is required because the gem is downloaded from a private gem registry on GitHub.
|
137
|
-
|
138
127
|
Components are exposed as [View Components](https://github.com/github/view_component) and should be available in any view:
|
139
128
|
|
140
129
|
```erb
|
@@ -268,13 +257,20 @@ Then change back `path` to source `source` in the `Gemfile`. If you need to upda
|
|
268
257
|
|
269
258
|
Make sure you commit & push your work and remove the [development-specific config](#using-the-development-build-of-ably-ui-in-the-preview-app) before doing this.
|
270
259
|
|
271
|
-
You will need to authenticate with
|
260
|
+
You will need to authenticate with [npmjs](https://docs.npmjs.com/creating-and-viewing-access-tokens) and [Ruby Gems](https://guides.rubygems.org/api-key-scopes/) to publish.
|
272
261
|
|
273
262
|
After the above, you should have:
|
274
263
|
|
275
|
-
-
|
276
|
-
-
|
277
|
-
|
264
|
+
- NPM_TOKEN set in your environment
|
265
|
+
- `.npmrc` file to read NPM_TOKEN from your environment like this:
|
266
|
+
```
|
267
|
+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
|
268
|
+
```
|
269
|
+
- a `~/.gem/credentials` file that has your Rubygems API key:
|
270
|
+
```
|
271
|
+
---
|
272
|
+
:rubygems_api_key: REPLACE_THIS_WITH_YOUR_OWN_API_KEY
|
273
|
+
```
|
278
274
|
|
279
275
|
To deploy a review app with your in-progress code, you can use the `pre-release` script:
|
280
276
|
|
@@ -389,7 +385,7 @@ This will trigger GitHub actions in supported apps (currently [Voltaire](http://
|
|
389
385
|
**To trigger a release:**
|
390
386
|
|
391
387
|
- Merge your PR into `main`.
|
392
|
-
- On the Github [Ably-UI](http://github.com/ably/ui) repo, [create a new release](https://github.com/ably/ui/releases/new) tag.
|
388
|
+
- On the Github [Ably-UI](http://github.com/ably/ably-ui) repo, [create a new release](https://github.com/ably/ably-ui/releases/new) tag.
|
393
389
|
- Create a new tag with the new version number for the release.
|
394
390
|
- _Do not prefix the tag with a `v`_
|
395
391
|
- Add a meaningful title for the Release.
|
data/lib/ably_ui/version.rb
CHANGED
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:
|
4
|
+
version: 5.0.0
|
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: 2021-10-
|
13
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: view_component
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 2.33.0
|
29
|
-
description:
|
29
|
+
description:
|
30
30
|
email:
|
31
31
|
- dominik.piatek@ably.com
|
32
32
|
- arti.mathanda@ably.com
|
@@ -52,8 +52,6 @@ files:
|
|
52
52
|
- lib/ably_ui/core/contact_footer/contact_footer.rb
|
53
53
|
- lib/ably_ui/core/cookie_message/component.css
|
54
54
|
- lib/ably_ui/core/cookie_message/component.js
|
55
|
-
- lib/ably_ui/core/core.base.css
|
56
|
-
- lib/ably_ui/core/core.components.css
|
57
55
|
- lib/ably_ui/core/core.rb
|
58
56
|
- lib/ably_ui/core/feature_footer/component.css
|
59
57
|
- lib/ably_ui/core/feature_footer/component.js
|
@@ -86,7 +84,6 @@ files:
|
|
86
84
|
- lib/ably_ui/core/footer/component.js
|
87
85
|
- lib/ably_ui/core/footer/footer.html.erb
|
88
86
|
- lib/ably_ui/core/footer/footer.rb
|
89
|
-
- lib/ably_ui/core/icon/component.css
|
90
87
|
- lib/ably_ui/core/icon/component.js
|
91
88
|
- lib/ably_ui/core/icon/icon.html.erb
|
92
89
|
- lib/ably_ui/core/icon/icon.rb
|
@@ -177,15 +174,11 @@ files:
|
|
177
174
|
- lib/ably_ui/core/slider/slider.html.erb
|
178
175
|
- lib/ably_ui/core/slider/slider.rb
|
179
176
|
- lib/ably_ui/core/sprites.svg
|
180
|
-
- lib/ably_ui/core/styles.base.css
|
181
|
-
- lib/ably_ui/core/styles.components.css
|
182
177
|
- lib/ably_ui/core/styles.css
|
183
178
|
- lib/ably_ui/core/uptime/component.css
|
184
179
|
- lib/ably_ui/core/uptime/component.js
|
185
180
|
- lib/ably_ui/core/uptime/uptime.html.erb
|
186
181
|
- lib/ably_ui/core/uptime/uptime.rb
|
187
|
-
- lib/ably_ui/react/connect_state_wrapper/component.js
|
188
|
-
- lib/ably_ui/react/scripts.js
|
189
182
|
- lib/ably_ui/reset/scripts.js
|
190
183
|
- lib/ably_ui/reset/styles.css
|
191
184
|
- lib/ably_ui/version.rb
|
@@ -194,7 +187,7 @@ licenses:
|
|
194
187
|
- Apache-2.0
|
195
188
|
metadata:
|
196
189
|
source_code_uri: https://github.com/ably/ably-ui
|
197
|
-
post_install_message:
|
190
|
+
post_install_message:
|
198
191
|
rdoc_options: []
|
199
192
|
require_paths:
|
200
193
|
- lib
|
@@ -205,12 +198,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
198
|
version: '0'
|
206
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
200
|
requirements:
|
208
|
-
- - "
|
201
|
+
- - ">="
|
209
202
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
203
|
+
version: '0'
|
211
204
|
requirements: []
|
212
205
|
rubygems_version: 3.2.3
|
213
|
-
signing_key:
|
206
|
+
signing_key:
|
214
207
|
specification_version: 4
|
215
208
|
summary: Shared component library and design system for Ably Real-time Ltd (ably.com)
|
216
209
|
test_files: []
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "./styles/properties.css";
|
@@ -1,49 +0,0 @@
|
|
1
|
-
@import "./styles/buttons.css";
|
2
|
-
@import "./styles/layout.css";
|
3
|
-
@import "./styles/text.css";
|
4
|
-
|
5
|
-
@layer components {
|
6
|
-
.ui-input {
|
7
|
-
@apply text-p2 font-light bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
8
|
-
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
9
|
-
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
10
|
-
@apply max-w-screen-sm;
|
11
|
-
}
|
12
|
-
|
13
|
-
/* Basis for icon component */
|
14
|
-
.ui-icon-cool-black {
|
15
|
-
stroke: var(--color-cool-black);
|
16
|
-
}
|
17
|
-
|
18
|
-
.ui-icon-white {
|
19
|
-
stroke: var(--color-white);
|
20
|
-
}
|
21
|
-
|
22
|
-
.ui-icon-dark-grey {
|
23
|
-
stroke: var(--color-dark-grey);
|
24
|
-
}
|
25
|
-
|
26
|
-
/* Extend how tailwind does group hover for icons */
|
27
|
-
.group {
|
28
|
-
&:hover {
|
29
|
-
.group-hover\:icon-gui-hover {
|
30
|
-
stroke: var(--color-gui-hover);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
&:focus {
|
35
|
-
.group-focus\:icon-gui-focus {
|
36
|
-
stroke: var(--color-gui-focus);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
.ui-version-tag {
|
42
|
-
@apply inline-block absolute align-top uppercase font-bold whitespace-nowrap;
|
43
|
-
|
44
|
-
position: relative;
|
45
|
-
vertical-align: super;
|
46
|
-
margin-left: 3px;
|
47
|
-
font-size: 8px;
|
48
|
-
}
|
49
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
@import "./styles/properties.css";
|
@@ -1,49 +0,0 @@
|
|
1
|
-
@import "./styles/buttons.css";
|
2
|
-
@import "./styles/layout.css";
|
3
|
-
@import "./styles/text.css";
|
4
|
-
|
5
|
-
@layer components {
|
6
|
-
.ui-input {
|
7
|
-
@apply text-p2 font-light bg-light-grey rounded p-input w-full leading-none appearance-none border border-mid-grey transition-input;
|
8
|
-
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
9
|
-
@apply focus:bg-white focus:shadow-input focus:border-transparent focus:outline-gui-focus;
|
10
|
-
@apply max-w-screen-sm;
|
11
|
-
}
|
12
|
-
|
13
|
-
/* Basis for icon component */
|
14
|
-
.ui-icon-cool-black {
|
15
|
-
stroke: var(--color-cool-black);
|
16
|
-
}
|
17
|
-
|
18
|
-
.ui-icon-white {
|
19
|
-
stroke: var(--color-white);
|
20
|
-
}
|
21
|
-
|
22
|
-
.ui-icon-dark-grey {
|
23
|
-
stroke: var(--color-dark-grey);
|
24
|
-
}
|
25
|
-
|
26
|
-
/* Extend how tailwind does group hover for icons */
|
27
|
-
.group {
|
28
|
-
&:hover {
|
29
|
-
.group-hover\:icon-gui-hover {
|
30
|
-
stroke: var(--color-gui-hover);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
&:focus {
|
35
|
-
.group-focus\:icon-gui-focus {
|
36
|
-
stroke: var(--color-gui-focus);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
.ui-version-tag {
|
42
|
-
@apply inline-block absolute align-top uppercase font-bold whitespace-nowrap;
|
43
|
-
|
44
|
-
position: relative;
|
45
|
-
vertical-align: super;
|
46
|
-
margin-left: 3px;
|
47
|
-
font-size: 8px;
|
48
|
-
}
|
49
|
-
}
|
@@ -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})()}));
|