@redocly/reference-docs 3.0.0-alpha.7 → 3.0.0-alpha.8

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShareLink=exports.Link=exports.linkifyMixin=exports.userIsForcingNavigation=void 0;var tslib_1=require("tslib"),react_1=(0,tslib_1.__importStar)(require("react")),styled_components_1=(0,tslib_1.__importStar)(require("styled-components")),StoreBuilder_1=require("../components/StoreBuilder"),icons_1=require("./icons");function userIsForcingNavigation(n){return 0!==n.button||n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}exports.userIsForcingNavigation=userIsForcingNavigation;var linkifyMixin=function(n,e){return(0,styled_components_1.css)(templateObject_1||(templateObject_1=(0,tslib_1.__makeTemplateObject)(["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"],["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"])),n,n,icons_1.LinkIcon,e,e,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon)};function Link(n){var e,i,t,o,r=(0,react_1.useCallback)((function(e,i){i.defaultPrevented||userIsForcingNavigation(i)||(i.preventDefault(),e.replace(encodeURI(n.to)))}),[n.to]),l=(0,StoreBuilder_1.useStore)();if(n.security){var s=null===(e=null==l?void 0:l.options.hooks)||void 0===e?void 0:e.replaceSecurityLink;o=s&&s({securityRequirementId:n.to})}else o=null===(t=null==l?void 0:(i=l.menu.history).linkForId)||void 0===t?void 0:t.call(i,n.to);return o?react_1.default.createElement("a",{className:n.className,href:o,onClick:r.bind(this,null==l?void 0:l.menu.history),"aria-label":n.to},n.children):n.children?react_1.default.createElement("span",{className:n.className}," ",n.children," "):null}exports.linkifyMixin=linkifyMixin,exports.Link=Link;var templateObject_1,templateObject_2,StyledShareLink=(0,styled_components_1.default)(Link)(templateObject_2||(templateObject_2=(0,tslib_1.__makeTemplateObject)(["\n ",";\n"],["\n ",";\n"])),(0,exports.linkifyMixin)("&","18px"));function ShareLink(n){return react_1.default.createElement(StyledShareLink,{to:n.to},react_1.default.createElement(icons_1.LinkIcon,null))}exports.ShareLink=ShareLink;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShareLink=exports.Link=exports.linkifyMixin=exports.userIsForcingNavigation=void 0;var tslib_1=require("tslib"),react_1=(0,tslib_1.__importStar)(require("react")),styled_components_1=(0,tslib_1.__importStar)(require("styled-components")),StoreBuilder_1=require("../components/StoreBuilder"),icons_1=require("./icons");function userIsForcingNavigation(n){return 0!==n.button||n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}exports.userIsForcingNavigation=userIsForcingNavigation;var linkifyMixin=function(n,e){return(0,styled_components_1.css)(templateObject_1||(templateObject_1=(0,tslib_1.__makeTemplateObject)(["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n\n background-image: var(--heading-anchor-icon);\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"],["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n\n background-image: var(--heading-anchor-icon);\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"])),n,n,icons_1.LinkIcon,e,e,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon,n,icons_1.LinkIcon)};function Link(n){var e,i,t,o,r=(0,react_1.useCallback)((function(e,i){i.defaultPrevented||userIsForcingNavigation(i)||(i.preventDefault(),e.replace(encodeURI(n.to)))}),[n.to]),a=(0,StoreBuilder_1.useStore)();if(n.security){var l=null===(e=null==a?void 0:a.options.hooks)||void 0===e?void 0:e.replaceSecurityLink;o=l&&l({securityRequirementId:n.to})}else o=null===(t=null==a?void 0:(i=a.menu.history).linkForId)||void 0===t?void 0:t.call(i,n.to);return o?react_1.default.createElement("a",{className:n.className,href:o,onClick:r.bind(this,null==a?void 0:a.menu.history),"aria-label":n.to},n.children):n.children?react_1.default.createElement("span",{className:n.className}," ",n.children," "):null}exports.linkifyMixin=linkifyMixin,exports.Link=Link;var templateObject_1,templateObject_2,StyledShareLink=(0,styled_components_1.default)(Link)(templateObject_2||(templateObject_2=(0,tslib_1.__makeTemplateObject)(["\n ",";\n"],["\n ",";\n"])),(0,exports.linkifyMixin)("&","18px"));function ShareLink(n){return react_1.default.createElement(StyledShareLink,{to:n.to},react_1.default.createElement(icons_1.LinkIcon,null))}exports.ShareLink=ShareLink;
2
2
  //# sourceMappingURL=linkify.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject}from"tslib";import React,{useCallback}from"react";import styled,{css}from"styled-components";import{useStore}from"../components/StoreBuilder";import{LinkIcon}from"./icons";export function userIsForcingNavigation(n){return 0!==n.button||n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}export var linkifyMixin=function(n,e){return css(templateObject_1||(templateObject_1=__makeTemplateObject(["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"],["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"])),n,n,LinkIcon,e,e,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon)};export function Link(n){var e,i,t,o,l=useCallback((function(e,i){i.defaultPrevented||userIsForcingNavigation(i)||(i.preventDefault(),e.replace(encodeURI(n.to)))}),[n.to]),r=useStore();if(n.security){var a=null===(e=null==r?void 0:r.options.hooks)||void 0===e?void 0:e.replaceSecurityLink;o=a&&a({securityRequirementId:n.to})}else o=null===(t=null==r?void 0:(i=r.menu.history).linkForId)||void 0===t?void 0:t.call(i,n.to);return o?React.createElement("a",{className:n.className,href:o,onClick:l.bind(this,null==r?void 0:r.menu.history),"aria-label":n.to},n.children):n.children?React.createElement("span",{className:n.className}," ",n.children," "):null}var templateObject_1,templateObject_2,StyledShareLink=styled(Link)(templateObject_2||(templateObject_2=__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),linkifyMixin("&","18px"));export function ShareLink(n){return React.createElement(StyledShareLink,{to:n.to},React.createElement(LinkIcon,null))}
1
+ import{__makeTemplateObject}from"tslib";import React,{useCallback}from"react";import styled,{css}from"styled-components";import{useStore}from"../components/StoreBuilder";import{LinkIcon}from"./icons";export function userIsForcingNavigation(n){return 0!==n.button||n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}export var linkifyMixin=function(n,e){return css(templateObject_1||(templateObject_1=__makeTemplateObject(["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n\n background-image: var(--heading-anchor-icon);\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"],["\n "," {\n cursor: pointer;\n line-height: inherit;\n display: inline-block;\n outline: 0;\n position: absolute;\n padding-right: 4px;\n transform: translateX(-100%);\n }\n\n "," "," {\n width: ",";\n height: ",";\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n color: var(--heading-anchor-color);\n\n background-image: var(--heading-anchor-icon);\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n }\n\n h1:hover\n > ","\n ",",\n h2:hover\n > ","\n ",",\n h3:hover\n > ","\n ",",\n h4:hover\n > ","\n ",",\n h5:hover\n > ","\n ",",\n h6:hover\n > ","\n ",",\n ",":hover\n "," {\n visibility: visible;\n }\n\n ",":focus "," {\n visibility: visible;\n }\n"])),n,n,LinkIcon,e,e,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon,n,LinkIcon)};export function Link(n){var e,i,t,o,r=useCallback((function(e,i){i.defaultPrevented||userIsForcingNavigation(i)||(i.preventDefault(),e.replace(encodeURI(n.to)))}),[n.to]),a=useStore();if(n.security){var l=null===(e=null==a?void 0:a.options.hooks)||void 0===e?void 0:e.replaceSecurityLink;o=l&&l({securityRequirementId:n.to})}else o=null===(t=null==a?void 0:(i=a.menu.history).linkForId)||void 0===t?void 0:t.call(i,n.to);return o?React.createElement("a",{className:n.className,href:o,onClick:r.bind(this,null==a?void 0:a.menu.history),"aria-label":n.to},n.children):n.children?React.createElement("span",{className:n.className}," ",n.children," "):null}var templateObject_1,templateObject_2,StyledShareLink=styled(Link)(templateObject_2||(templateObject_2=__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),linkifyMixin("&","18px"));export function ShareLink(n){return React.createElement(StyledShareLink,{to:n.to},React.createElement(LinkIcon,null))}
2
2
  //# sourceMappingURL=linkify.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/reference-docs",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "Redocly Reference Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",