@ably/ui 8.7.0-dev.602ecf0 → 8.7.0-dev.6053fb4
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.
- package/README.md +9 -2
- package/core/.DS_Store +0 -0
- package/core/Code/component.css +3 -3
- package/core/Code/component.js +1 -1
- package/core/Code.jsx +353 -7273
- package/core/CompanyAutocomplete/component.js +1 -1
- package/core/ConnectStateWrapper.jsx +13 -4
- package/core/ContactFooter.jsx +13 -119
- package/core/CookieMessage.jsx +21 -293
- package/core/CustomerLogos.jsx +15 -117
- package/core/DropdownMenu/component.js +1 -0
- package/core/DropdownMenu.jsx +313 -0
- package/core/DropdownMenuPreview/component.js +6 -0
- package/core/DropdownMenuPreview.jsx +6 -0
- package/core/FeaturedLink.jsx +10 -116
- package/core/Flash.jsx +149 -1531
- package/core/Footer/component.css +20 -0
- package/core/Footer.jsx +152 -167
- package/core/Icon.jsx +9 -114
- package/core/Loader.jsx +9 -114
- package/core/Logo.jsx +36 -226
- package/core/Meganav/component.js +1 -2
- package/core/Meganav/component.json +1 -1
- package/core/Meganav.jsx +2202 -9546
- package/core/MeganavBlogPostsList/component.js +1 -1
- package/core/MeganavBlogPostsList.jsx +11 -118
- package/core/MeganavContentCompany.jsx +31 -124
- package/core/MeganavContentDevelopers.jsx +31 -125
- package/core/MeganavContentPlatform.jsx +11 -118
- package/core/MeganavContentUseCases.jsx +11 -117
- package/core/MeganavControl.jsx +10 -116
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.jsx +10 -116
- package/core/MeganavControlMobilePanelClose.jsx +10 -116
- package/core/MeganavControlMobilePanelOpen.jsx +10 -116
- package/core/MeganavItemsDesktop.jsx +13 -121
- package/core/MeganavItemsMobile.jsx +18 -132
- package/core/MeganavItemsSignedIn.jsx +16 -129
- package/core/MeganavSearch.jsx +13 -123
- package/core/MeganavSearchAutocomplete/component.js +1 -2
- package/core/MeganavSearchPanel.jsx +12 -121
- package/core/MeganavSearchSuggestions.jsx +11 -118
- package/core/Notice/component.js +1 -2
- package/core/Notice.jsx +183 -2185
- package/core/SignOutLink.jsx +9 -114
- package/core/Slider/component.js +1 -1
- package/core/Slider.jsx +25 -582
- package/core/Uptime.jsx +15 -118
- package/core/images/ably-logo.png +0 -0
- package/core/images/high-performer-2022.png +0 -0
- package/core/images/highest-user-adoption-2022.png +0 -0
- package/core/images/users-love-us-2022.png +0 -0
- package/core/scripts.js +1 -1
- package/core/sprites.svg +45 -1
- package/core/styles.css +4 -3
- package/package.json +4 -4
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Code/component.css +1 -67
- package/src/core/Code/component.js +11 -46
- package/src/core/Code/component.jsx +7 -3
- package/src/core/CustomerLogos/component.html.erb +2 -2
- package/src/core/CustomerLogos/component.jsx +3 -2
- package/src/core/CustomerLogos/component.rb +2 -1
- package/src/core/DropdownMenu/component.js +0 -0
- package/src/core/DropdownMenu/component.jsx +112 -0
- package/src/core/FeatureFooter/component.html.erb +4 -4
- package/src/core/Flash/component.jsx +40 -14
- package/src/core/Footer/component.css +20 -0
- package/src/core/Footer/component.html.erb +116 -54
- package/src/core/Footer/component.jsx +124 -49
- package/src/core/Logo/component.html.erb +2 -27
- package/src/core/Logo/component.jsx +7 -40
- package/src/core/Logo/component.rb +15 -6
- package/src/core/Meganav/component.html.erb +1 -1
- package/src/core/Meganav/component.json +1 -1
- package/src/core/Meganav/component.jsx +1 -1
- package/src/core/Meganav/component.rb +3 -2
- package/src/core/MeganavContentDevelopers/component.html.erb +17 -8
- package/src/core/MeganavContentDevelopers/component.jsx +17 -8
- package/src/core/MeganavContentUseCases/component.html.erb +1 -1
- package/src/core/MeganavContentUseCases/component.jsx +1 -1
- package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
- package/src/core/core.rb +12 -4
- package/src/core/icons/github.svg +1 -1
- package/src/core/icons/google.svg +3 -0
- package/src/core/icons/icon-display-chat-col.svg +4 -0
- package/src/core/icons/icon-display-integrations-col.svg +8 -0
- package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
- package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
- package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
- package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
- package/src/core/icons/icon-gui-link.svg +4 -0
- package/src/core/icons/icon-gui-resources.svg +3 -0
- package/src/core/icons/stackoverflow.svg +3 -0
- package/src/core/icons/youtube.svg +11 -0
- package/src/core/images/ably-logo.png +0 -0
- package/src/core/images/high-performer-2022.png +0 -0
- package/src/core/images/highest-user-adoption-2022.png +0 -0
- package/src/core/images/users-love-us-2022.png +0 -0
- package/src/core/styles/properties.css +2 -0
- package/src/core/styles/text.css +2 -3
- package/src/core/utils/syntax-highlighter-registry.js +61 -0
- package/src/core/utils/syntax-highlighter.css +69 -0
- package/src/core/utils/syntax-highlighter.js +98 -0
- package/tailwind.config.js +1 -0
- package/core/MeganavContentWhyAbly/component.js +0 -22
- package/core/MeganavContentWhyAbly.jsx +0 -3279
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/core/styles/text.css
CHANGED
|
@@ -148,15 +148,14 @@
|
|
|
148
148
|
|
|
149
149
|
.ui-link {
|
|
150
150
|
@apply text-gui-default;
|
|
151
|
-
@apply visited:text-gui-default;
|
|
152
151
|
@apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
|
|
153
152
|
@apply focus:text-gui-default focus:outline-gui-focus;
|
|
153
|
+
@apply no-underline;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ui-link-neutral {
|
|
157
|
-
@apply visited:text-dark-grey;
|
|
158
157
|
@apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
|
|
159
|
-
@apply focus:text-
|
|
158
|
+
@apply focus:text-charcoal-grey focus:outline-gui-focus-neutral;
|
|
160
159
|
@apply underline;
|
|
161
160
|
}
|
|
162
161
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// This file can be used in the browser, but because of the weight of all the language
|
|
2
|
+
// definitions, preferably it should be used on the server.
|
|
3
|
+
|
|
4
|
+
import bash from "highlight.js/lib/languages/bash";
|
|
5
|
+
import cpp from "highlight.js/lib/languages/cpp";
|
|
6
|
+
import csharp from "highlight.js/lib/languages/csharp";
|
|
7
|
+
import css from "highlight.js/lib/languages/css";
|
|
8
|
+
import dart from "highlight.js/lib/languages/dart";
|
|
9
|
+
import dos from "highlight.js/lib/languages/dos";
|
|
10
|
+
import diff from "highlight.js/lib/languages/diff";
|
|
11
|
+
import erlang from "highlight.js/lib/languages/erlang";
|
|
12
|
+
import elixir from "highlight.js/lib/languages/elixir";
|
|
13
|
+
import plaintext from "highlight.js/lib/languages/plaintext";
|
|
14
|
+
import go from "highlight.js/lib/languages/go";
|
|
15
|
+
import http from "highlight.js/lib/languages/http";
|
|
16
|
+
import java from "highlight.js/lib/languages/java";
|
|
17
|
+
import javascript from "highlight.js/lib/languages/javascript";
|
|
18
|
+
import typescript from "highlight.js/lib/languages/typescript";
|
|
19
|
+
import json from "highlight.js/lib/languages/json";
|
|
20
|
+
import objectivec from "highlight.js/lib/languages/objectivec";
|
|
21
|
+
import php from "highlight.js/lib/languages/php";
|
|
22
|
+
import python from "highlight.js/lib/languages/python";
|
|
23
|
+
import ruby from "highlight.js/lib/languages/ruby";
|
|
24
|
+
import swift from "highlight.js/lib/languages/swift";
|
|
25
|
+
import sql from "highlight.js/lib/languages/sql";
|
|
26
|
+
import xml from "highlight.js/lib/languages/xml";
|
|
27
|
+
import yaml from "highlight.js/lib/languages/yaml";
|
|
28
|
+
import curl from "highlightjs-curl/src/languages/curl";
|
|
29
|
+
|
|
30
|
+
const registry = [
|
|
31
|
+
{ label: "Text", key: "text", module: plaintext },
|
|
32
|
+
{ label: "JS", key: "javascript", module: javascript },
|
|
33
|
+
{ label: "TS", key: "typescript", module: typescript },
|
|
34
|
+
{ label: "Java", key: "java", module: java },
|
|
35
|
+
{ label: "Ruby", key: "ruby", module: ruby },
|
|
36
|
+
{ label: "Python", key: "python", module: python },
|
|
37
|
+
{ label: "PHP", key: "php", module: php },
|
|
38
|
+
{ label: "Shell", key: "bash", module: bash },
|
|
39
|
+
{ label: "C#", key: "cs", module: csharp },
|
|
40
|
+
{ label: "CSS", key: "css", module: css },
|
|
41
|
+
{ label: "Go", key: "go", module: go },
|
|
42
|
+
{ label: "HTML", key: "xml", module: xml },
|
|
43
|
+
{ label: "HTTP", key: "http", module: http },
|
|
44
|
+
{ label: "C++", key: "cpp", module: cpp },
|
|
45
|
+
{ label: "Dart", key: "dart", module: dart },
|
|
46
|
+
{ label: "Swift", key: "swift", module: swift },
|
|
47
|
+
{ label: "Objective C", key: "objectivec", module: objectivec },
|
|
48
|
+
{ label: "Node.js", key: "javascript", module: javascript },
|
|
49
|
+
{ label: "JSON", key: "json", module: json },
|
|
50
|
+
{ label: "DOS", key: "dos", module: dos },
|
|
51
|
+
{ label: "YAML", key: "yaml", module: yaml },
|
|
52
|
+
{ label: "Erlang", key: "erlang", module: erlang },
|
|
53
|
+
{ label: "Elixir", key: "elixir", module: elixir },
|
|
54
|
+
{ label: "Diff", key: "diff", module: diff },
|
|
55
|
+
{ label: "SQL", key: "sql", module: sql },
|
|
56
|
+
{ label: "cURL", key: "curl", module: curl },
|
|
57
|
+
{ label: "HTML", key: "html", module: xml },
|
|
58
|
+
{ label: "XML", key: "xml", module: xml },
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
export default registry;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,600;0,700;1,600;1,700&display=swap");
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
.hljs {
|
|
7
|
+
background: var(--syntax-black);
|
|
8
|
+
color: var(--syntax-light-grey);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.hljs-emphasis {
|
|
12
|
+
@apply italic;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.hljs-strong {
|
|
16
|
+
@apply font-bold;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.hljs-comment,
|
|
20
|
+
.hljs-quote {
|
|
21
|
+
color: var(--syntax-dark-grey);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.hljs-variable,
|
|
25
|
+
.hljs-template-variable,
|
|
26
|
+
.hljs-tag,
|
|
27
|
+
.hljs-name,
|
|
28
|
+
.hljs-selector-id,
|
|
29
|
+
.hljs-selector-class,
|
|
30
|
+
.hljs-regexp,
|
|
31
|
+
.hljs-deletion {
|
|
32
|
+
color: var(--syntax-red);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.hljs-number,
|
|
36
|
+
.hljs-built_in,
|
|
37
|
+
.hljs-literal,
|
|
38
|
+
.hljs-type,
|
|
39
|
+
.hljs-params,
|
|
40
|
+
.hljs-meta,
|
|
41
|
+
.hljs-link {
|
|
42
|
+
color: var(--syntax-orange);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.hljs-attribute {
|
|
46
|
+
color: var(--syntax-yellow);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.hljs-string,
|
|
50
|
+
.hljs-symbol,
|
|
51
|
+
.hljs-bullet,
|
|
52
|
+
.hljs-addition {
|
|
53
|
+
color: var(--syntax-green);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.hljs-title,
|
|
57
|
+
.hljs-section {
|
|
58
|
+
color: var(--syntax-blue);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.hljs-keyword,
|
|
62
|
+
.hljs-selector-tag {
|
|
63
|
+
color: var(--syntax-lilac);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.hljs-subst {
|
|
67
|
+
color: var(--syntax-mid-grey);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import hljs from "highlight.js/lib/core";
|
|
2
|
+
|
|
3
|
+
// Map certain frameworks, protocols etc to available langauage packs
|
|
4
|
+
const languageToHighlightKey = (lang) => {
|
|
5
|
+
let id;
|
|
6
|
+
|
|
7
|
+
if (!lang) {
|
|
8
|
+
lang = "text";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
switch (lang.toLowerCase()) {
|
|
12
|
+
case "android":
|
|
13
|
+
id = "java";
|
|
14
|
+
break;
|
|
15
|
+
|
|
16
|
+
case ".net":
|
|
17
|
+
case "net":
|
|
18
|
+
case "dotnet":
|
|
19
|
+
case "csharp":
|
|
20
|
+
case "c#":
|
|
21
|
+
id = "cs";
|
|
22
|
+
break;
|
|
23
|
+
|
|
24
|
+
case "objc":
|
|
25
|
+
case "objective c":
|
|
26
|
+
id = "objectivec";
|
|
27
|
+
break;
|
|
28
|
+
|
|
29
|
+
case "laravel":
|
|
30
|
+
id = "php";
|
|
31
|
+
break;
|
|
32
|
+
|
|
33
|
+
case "flutter":
|
|
34
|
+
id = "dart";
|
|
35
|
+
break;
|
|
36
|
+
|
|
37
|
+
case "node.js":
|
|
38
|
+
case "js":
|
|
39
|
+
id = "javascript";
|
|
40
|
+
break;
|
|
41
|
+
|
|
42
|
+
case "ts":
|
|
43
|
+
id = "typescript";
|
|
44
|
+
break;
|
|
45
|
+
|
|
46
|
+
case "shell":
|
|
47
|
+
case "fh":
|
|
48
|
+
case "sh":
|
|
49
|
+
id = "bash";
|
|
50
|
+
break;
|
|
51
|
+
|
|
52
|
+
case "https":
|
|
53
|
+
case "http":
|
|
54
|
+
case "txt":
|
|
55
|
+
case "plaintext":
|
|
56
|
+
id = "text";
|
|
57
|
+
break;
|
|
58
|
+
|
|
59
|
+
case "cmd":
|
|
60
|
+
case "bat":
|
|
61
|
+
id = "dos";
|
|
62
|
+
break;
|
|
63
|
+
|
|
64
|
+
case "yml":
|
|
65
|
+
id = "yaml";
|
|
66
|
+
break;
|
|
67
|
+
|
|
68
|
+
case "erl":
|
|
69
|
+
id = "erlang";
|
|
70
|
+
break;
|
|
71
|
+
|
|
72
|
+
case "patch":
|
|
73
|
+
id = "diff";
|
|
74
|
+
break;
|
|
75
|
+
|
|
76
|
+
case "svg":
|
|
77
|
+
id = "xml";
|
|
78
|
+
break;
|
|
79
|
+
|
|
80
|
+
default:
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return id || lang;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const registerDefaultLanguages = (register) => {
|
|
88
|
+
register.forEach(({ key, module }) => hljs.registerLanguage(key, module));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const highlightSnippet = (languageKeyword, snippet) => {
|
|
92
|
+
const language = languageToHighlightKey(languageKeyword);
|
|
93
|
+
if (typeof snippet !== "string" || !snippet || !language) return;
|
|
94
|
+
|
|
95
|
+
return hljs.highlight(snippet, { language }).value;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export { highlightSnippet, languageToHighlightKey, registerDefaultLanguages };
|
package/tailwind.config.js
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory();
|
|
4
|
-
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define([], factory);
|
|
6
|
-
else if(typeof exports === 'object')
|
|
7
|
-
exports["AblyUi"] = factory();
|
|
8
|
-
else
|
|
9
|
-
root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["MeganavContentWhyAbly"] = factory();
|
|
10
|
-
})(this, function() {
|
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
|
12
|
-
var __webpack_exports__ = {};
|
|
13
|
-
/*!*****************************************************!*\
|
|
14
|
-
!*** ./src/core/MeganavContentWhyAbly/component.js ***!
|
|
15
|
-
\*****************************************************/
|
|
16
|
-
|
|
17
|
-
__webpack_exports__ = __webpack_exports__.default;
|
|
18
|
-
/******/ return __webpack_exports__;
|
|
19
|
-
/******/ })()
|
|
20
|
-
;
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9BYmx5VWkuQ29yZS5bbmFtZV0vd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1Q0FBdUMsdURBQXVEO0FBQzlGLENBQUM7QUFDRCxPIiwiZmlsZSI6ImNvcmUvTWVnYW5hdkNvbnRlbnRXaHlBYmx5L2NvbXBvbmVudC5qcyIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiB3ZWJwYWNrVW5pdmVyc2FsTW9kdWxlRGVmaW5pdGlvbihyb290LCBmYWN0b3J5KSB7XG5cdGlmKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0JyAmJiB0eXBlb2YgbW9kdWxlID09PSAnb2JqZWN0Jylcblx0XHRtb2R1bGUuZXhwb3J0cyA9IGZhY3RvcnkoKTtcblx0ZWxzZSBpZih0eXBlb2YgZGVmaW5lID09PSAnZnVuY3Rpb24nICYmIGRlZmluZS5hbWQpXG5cdFx0ZGVmaW5lKFtdLCBmYWN0b3J5KTtcblx0ZWxzZSBpZih0eXBlb2YgZXhwb3J0cyA9PT0gJ29iamVjdCcpXG5cdFx0ZXhwb3J0c1tcIkFibHlVaVwiXSA9IGZhY3RvcnkoKTtcblx0ZWxzZVxuXHRcdHJvb3RbXCJBYmx5VWlcIl0gPSByb290W1wiQWJseVVpXCJdIHx8IHt9LCByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXSA9IHJvb3RbXCJBYmx5VWlcIl1bXCJDb3JlXCJdIHx8IHt9LCByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXVtcIk1lZ2FuYXZDb250ZW50V2h5QWJseVwiXSA9IGZhY3RvcnkoKTtcbn0pKHRoaXMsIGZ1bmN0aW9uKCkge1xucmV0dXJuICJdLCJzb3VyY2VSb290IjoiIn0=
|