ably-ui 4.5.0 → 5.0.0.dev.bf26560
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/Gemfile.lock +1 -1
- data/README.md +13 -17
- data/lib/ably_ui/core/code/component.css +2 -0
- data/lib/ably_ui/core/code/component.js +7468 -1
- data/lib/ably_ui/core/connect_state_wrapper/component.js +22 -1
- data/lib/ably_ui/core/contact_footer/component.css +2 -0
- data/lib/ably_ui/core/contact_footer/component.js +211 -1
- data/lib/ably_ui/core/cookie_message/component.css +2 -0
- data/lib/ably_ui/core/cookie_message/component.js +82 -1
- data/lib/ably_ui/core/core.base.css +1 -0
- data/lib/ably_ui/core/core.components.css +49 -0
- data/lib/ably_ui/core/feature_footer/component.css +2 -0
- data/lib/ably_ui/core/feature_footer/component.js +211 -1
- data/lib/ably_ui/core/featured_link/component.css +2 -0
- data/lib/ably_ui/core/featured_link/component.js +82 -1
- data/lib/ably_ui/core/flash/component.css +2 -0
- data/lib/ably_ui/core/flash/component.js +82 -1
- data/lib/ably_ui/core/footer/component.css +2 -0
- data/lib/ably_ui/core/footer/component.js +82 -1
- data/lib/ably_ui/core/icon/component.css +1 -0
- data/lib/ably_ui/core/icon/component.js +22 -1
- data/lib/ably_ui/core/logo/component.js +22 -1
- data/lib/ably_ui/core/meganav/component.css +2 -0
- data/lib/ably_ui/core/meganav/component.js +1857 -1
- data/lib/ably_ui/core/meganav_blog_posts_list/component.js +1934 -1
- data/lib/ably_ui/core/meganav_content_developers/component.js +22 -1
- data/lib/ably_ui/core/meganav_content_platform/component.js +22 -1
- data/lib/ably_ui/core/meganav_content_use_cases/component.js +22 -1
- data/lib/ably_ui/core/meganav_content_why_ably/component.js +22 -1
- data/lib/ably_ui/core/meganav_control/component.js +208 -1
- data/lib/ably_ui/core/meganav_control_mobile_dropdown/component.js +975 -1
- data/lib/ably_ui/core/meganav_control_mobile_panel_close/component.js +142 -1
- data/lib/ably_ui/core/meganav_control_mobile_panel_open/component.js +170 -1
- data/lib/ably_ui/core/meganav_items_desktop/component.js +22 -1
- data/lib/ably_ui/core/meganav_items_mobile/component.js +22 -1
- data/lib/ably_ui/core/meganav_items_signed_in/component.js +22 -1
- data/lib/ably_ui/core/notice/component.css +2 -0
- data/lib/ably_ui/core/notice/component.js +4613 -2
- data/lib/ably_ui/core/scripts.js +1 -1
- data/lib/ably_ui/core/showcase/component.css +2 -0
- data/lib/ably_ui/core/showcase/component.js +343 -1
- data/lib/ably_ui/core/sign_out_link/component.js +22 -1
- data/lib/ably_ui/core/slider/component.css +2 -0
- data/lib/ably_ui/core/slider/component.js +38 -1
- data/lib/ably_ui/core/slider/slider.html.erb +1 -1
- data/lib/ably_ui/core/styles.base.css +1 -0
- data/lib/ably_ui/core/styles.components.css +49 -0
- data/lib/ably_ui/core/uptime/component.css +2 -0
- data/lib/ably_ui/core/uptime/component.js +82 -1
- data/lib/ably_ui/react/connect_state_wrapper/component.js +1 -0
- data/lib/ably_ui/react/scripts.js +1 -0
- data/lib/ably_ui/version.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0665de8dd412a7f436a71a7943ee6c2bc218f2313a717914e5c82695803e0b42
|
4
|
+
data.tar.gz: 98cae3185b7567da3812ae210ea658f92dabdbe25876433ff652a4c0dad08d85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df760efebbc7d5553649428e789dfc4c828f4b946776f017fa96d3f9595b43b147f670cdf4e724157c5072a99594de4e914d6baf12e354f2711888809e0dad15
|
7
|
+
data.tar.gz: 44a8a115c69e8cc7a744311add3661061f4315bcaa0b64455ba35494e5978ca4d0c1b916859559b0c75c79a55cf72550e0bef3f5d4dc69e6fee98374e384f9de
|
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.
|
@@ -68,3 +68,5 @@
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
|
71
|
+
|
72
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vLi9zcmMvY29yZS9Db2RlL2NvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxvRkFBb0Y7QUFDdEY7O0FBRUE7RUFDRTtJQUNFLCtCQUErQjtJQUMvQiwrQkFBK0I7RUFDakM7O0VBRUE7SUFDRSxrQkFBa0I7RUFDcEI7O0VBRUE7SUFDRSxpQkFBaUI7RUFDbkI7O0VBRUE7O0lBRUUsOEJBQThCO0VB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