@porsche-design-system/components-js
Advanced tools
Comparing version 2.17.0 to 2.18.0-rc.0
@@ -12,2 +12,21 @@ # Changelog | ||
### [2.18.0-rc.0] - 2022-11-17 | ||
#### Added | ||
- SSR/SSG ready components using Declarative Shadow DOM for Next JS are shipped via | ||
`@porsche-design-system/components-react/ssr`. To use it simply change your imports: | ||
```diff | ||
- import { PorscheDesignSystemProvider, PButton, ... } from '@porsche-design-system/components-react'; | ||
+ import { PorscheDesignSystemProvider, PButton, ... } from '@porsche-design-system/components-react/ssr'; | ||
``` | ||
#### Changed | ||
- Improve height calculation for `Accordion` | ||
- Slotted anchor support for `Link Pure` is stricter (In case slotted `<a>` is used it must be a direct child of | ||
`Link Pure`) | ||
- `getFontLinks()` partial now has `{ weights: ['regular', 'semi-bold'] }` for a default | ||
### [2.17.0] - 2022-10-31 | ||
@@ -14,0 +33,0 @@ |
@@ -1,1 +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.porscheDesignSystem=t():e.porscheDesignSystem=t()}("undefined"!=typeof self?self:this,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(e){if("noModule"in HTMLScriptElement.prototype){const t=("script",document.createElement("script"));t.src=e,t.setAttribute("crossorigin",""),document.body.appendChild(t)}}e.r(t),e.d(t,{componentsReady:()=>r,load:()=>s});const n="porscheDesignSystem";const s=(e={prefix:""})=>{!function({script:e,version:t,prefix:s}){var r;const c=null!==(r=function(e){const t=(document[n]||(document[n]={}),document[n]),{[e]:o=null}=t;if(null===o){const o={isLoaded:!1,prefixes:[],registerCustomElements:null};t[e]=o}return t[e]}(t))&&void 0!==r?r:{},{isLoaded:i,prefixes:d,registerCustomElements:p}=c;i||(o(e),c.isLoaded=!0),d.includes(s)||(d.push(s),p&&p(s))}(Object.assign(Object.assign({},{version:"2.17.0",script:(typeof window!=='undefined'&&window.PORSCHE_DESIGN_SYSTEM_CDN==='cn'?'https://cdn.ui.porsche.cn':'https://cdn.ui.porsche.com')+"/porsche-design-system/components/porsche-design-system.v2.17.0.9a579f8ff7708b1885a9.js"}),e))},r=(e=document.body)=>{let t;const o=new Promise((e=>t=e));if(c())i(e,t);else{const o="readystatechange",n=()=>{c()&&(document.removeEventListener(o,n),i(e,t))};document.addEventListener(o,n)}return o},c=()=>"complete"===document.readyState,i=(e,t)=>{const o=d(e);Promise.all(o).then((e=>t(e.length))).catch(console.error)},d=e=>{let t=[];return 1===(null==e?void 0:e.nodeType)&&Array.from(e.children).forEach((e=>{l(e)&&t.push(e.componentOnReady()),t=t.concat(d(e))})),t},p=/^(.*-)?P-(.*)$/,l=e=>p.exec(e.tagName)&&"function"==typeof e.componentOnReady;return t})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.porscheDesignSystem=t():e.porscheDesignSystem=t()}("undefined"!=typeof self?self:this,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(e){if("noModule"in HTMLScriptElement.prototype){const t=("script",document.createElement("script"));t.src=e,t.setAttribute("crossorigin",""),document.body.appendChild(t)}}e.r(t),e.d(t,{componentsReady:()=>r,load:()=>s});const n="porscheDesignSystem";const s=(e={prefix:""})=>{!function({script:e,version:t,prefix:s}){var r;const c=null!==(r=function(e){const t=(document[n]||(document[n]={}),document[n]),{[e]:o=null}=t;if(null===o){const o={isLoaded:!1,prefixes:[],registerCustomElements:null};t[e]=o}return t[e]}(t))&&void 0!==r?r:{},{isLoaded:i,prefixes:d,registerCustomElements:p}=c;i||(o(e),c.isLoaded=!0),d.includes(s)||(d.push(s),p&&p(s))}(Object.assign(Object.assign({},{version:"2.18.0-rc.0",script:(typeof window!=='undefined'&&window.PORSCHE_DESIGN_SYSTEM_CDN==='cn'?'https://cdn.ui.porsche.cn':'https://cdn.ui.porsche.com')+"/porsche-design-system/components/porsche-design-system.v2.18.0-rc.0.55c1a1aafefdb3dc2510.js"}),e))},r=(e=document.body)=>{let t;const o=new Promise((e=>t=e));if(c())i(e,t);else{const o="readystatechange",n=()=>{c()&&(document.removeEventListener(o,n),i(e,t))};document.addEventListener(o,n)}return o},c=()=>"complete"===document.readyState,i=(e,t)=>{const o=d(e);Promise.all(o).then((e=>t(e.length))).catch(console.error)},d=e=>{let t=[];return 1===(null==e?void 0:e.nodeType)&&Array.from(e.children).forEach((e=>{l(e)&&t.push(e.componentOnReady()),t=t.concat(d(e))})),t},p=/^(.*-)?P-(.*)$/,l=e=>p.exec(e.tagName)&&"function"==typeof e.componentOnReady;return t})())); |
{ | ||
"name": "@porsche-design-system/components-js", | ||
"version": "2.17.0", | ||
"version": "2.18.0-rc.0", | ||
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -52,3 +52,4 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime'; | ||
function getInitialStyles(opts) { | ||
var _a = __assign({ prefix: '', withoutTags: false, format: 'html' }, opts), prefix = _a.prefix, withoutTags = _a.withoutTags, format = _a.format; | ||
var _a; | ||
var _b = __assign({ prefix: '', withoutTags: false, format: 'html' }, opts), prefix = _b.prefix, withoutTags = _b.withoutTags, format = _b.format; | ||
var tagNames = ['p-accordion', 'p-banner', 'p-button', 'p-button-group', 'p-button-pure', 'p-carousel', 'p-checkbox-wrapper', 'p-content-wrapper', 'p-divider', 'p-fieldset-wrapper', 'p-flex', 'p-flex-item', 'p-grid', 'p-grid-item', 'p-headline', 'p-icon', 'p-inline-notification', 'p-link', 'p-link-pure', 'p-link-social', 'p-link-tile', 'p-marque', 'p-modal', 'p-pagination', 'p-popover', 'p-radio-button-wrapper', 'p-scroller', 'p-segmented-control', 'p-segmented-control-item', 'p-select-wrapper', 'p-spinner', 'p-stepper-horizontal', 'p-stepper-horizontal-item', 'p-switch', 'p-table', 'p-table-body', 'p-table-cell', 'p-table-head', 'p-table-head-cell', 'p-table-head-row', 'p-table-row', 'p-tabs', 'p-tabs-bar', 'p-tabs-item', 'p-tag', 'p-tag-dismissible', 'p-text', 'p-text-field-wrapper', 'p-text-list', 'p-text-list-item', 'p-textarea-wrapper', 'p-toast']; | ||
@@ -58,4 +59,4 @@ var prefixedTagNames = getPrefixedTagNames(tagNames, prefix); | ||
var styleAttributes = 'pds-initial-styles'; | ||
var styleProps = { 'pds-initial-styles': 'true' }; | ||
var styles = prefixedTagNames.join(',') + '{visibility:hidden}.hydrated{visibility:inherit}'; | ||
var styleProps = (_a = {}, _a[styleAttributes] = 'true', _a); | ||
var styles = prefixedTagNames.join() + '{visibility:hidden}.hydrated,.ssr{visibility:inherit}'; | ||
var markup = format === 'html' | ||
@@ -72,3 +73,3 @@ ? "<style ".concat(styleAttributes, ">").concat(styles, "</style>") | ||
function getFontLinks(opts) { | ||
var _a = __assign({ subset: 'latin', weights: ['regular'], cdn: 'auto', withoutTags: false, format: 'html' }, opts), subset = _a.subset, weights = _a.weights, cdn = _a.cdn, withoutTags = _a.withoutTags, format = _a.format; | ||
var _a = __assign({ subset: 'latin', weights: ['regular', 'semi-bold'], cdn: 'auto', withoutTags: false, format: 'html' }, opts), subset = _a.subset, weights = _a.weights, cdn = _a.cdn, withoutTags = _a.withoutTags, format = _a.format; | ||
throwIfRunInBrowser('getFontLinks'); | ||
@@ -124,3 +125,3 @@ if (opts === null || opts === void 0 ? void 0 : opts['weight']) { | ||
var cdnBaseUrl = getCdnBaseUrl(cdn); | ||
var manifest = { "core": "porsche-design-system.v2.17.0.9a579f8ff7708b1885a9.js", "accordion": "porsche-design-system.accordion.672e1be1ea3640e24667.js", "banner": "porsche-design-system.banner.41722b8017de0b5d246f.js", "button-pure": "porsche-design-system.button-pure.30ccbf3af509e4f1444b.js", "button": "porsche-design-system.button.1302204116d894125d63.js", "carousel": "porsche-design-system.carousel.7bb34355be1533f6d219.js", "checkbox-wrapper": "porsche-design-system.checkbox-wrapper.0af31d3a2a11adbc1ae4.js", "content-wrapper": "porsche-design-system.content-wrapper.d9162b397da063884674.js", "divider": "porsche-design-system.divider.e9d7d5a7b1ca8e4d5e2a.js", "fieldset-wrapper": "porsche-design-system.fieldset-wrapper.4d758de2835b1fcb09d0.js", "flex": "porsche-design-system.flex.4093bb8b443bc49aa49c.js", "grid": "porsche-design-system.grid.f471d5944c4c0bc0bcb5.js", "headline": "porsche-design-system.headline.92aaf8194ac8f192fdf7.js", "icon": "porsche-design-system.icon.8e3a3734f69eb6533c66.js", "link-pure": "porsche-design-system.link-pure.b8e683a1a1a69ddf74fc.js", "link-social": "porsche-design-system.link-social.c427ef5338d238b9c406.js", "link-tile": "porsche-design-system.link-tile.db163722a7e770a85f45.js", "link": "porsche-design-system.link.ad83794849f270307099.js", "marque": "porsche-design-system.marque.15c9d0da4a73516566d8.js", "modal": "porsche-design-system.modal.6382d8f585232c4b4120.js", "pagination": "porsche-design-system.pagination.1b5362bc59b91b296644.js", "popover": "porsche-design-system.popover.b9015a3d8ffa9b3dc529.js", "radio-button-wrapper": "porsche-design-system.radio-button-wrapper.d516c4f3e943bd84e926.js", "scroller": "porsche-design-system.scroller.5079d0bd819b3a58c31a.js", "segmented-control": "porsche-design-system.segmented-control.3e0a64a358afea901217.js", "select-wrapper": "porsche-design-system.select-wrapper.6f8719e84241b2b08909.js", "spinner": "porsche-design-system.spinner.537b7347ce9998a458ed.js", "stepper-horizontal": "porsche-design-system.stepper-horizontal.71f7b8ef9e4703bb45ce.js", "switch": "porsche-design-system.switch.9a4262d17747468b33a1.js", "table": "porsche-design-system.table.c386b11a1a32f6902e79.js", "tabs-bar": "porsche-design-system.tabs-bar.afd66e89a8aafc67b326.js", "tabs": "porsche-design-system.tabs.3eb4aa2f6dee90fe4e7d.js", "tag": "porsche-design-system.tag.b744c98e72d000d02825.js", "text-field-wrapper": "porsche-design-system.text-field-wrapper.5b90b22b64b058d2f329.js", "text-list": "porsche-design-system.text-list.e7fee3013c5730c1f34a.js", "text": "porsche-design-system.text.6c494c2050a87f393ea4.js", "textarea-wrapper": "porsche-design-system.textarea-wrapper.8c1cb14711df00cdcfaf.js", "toast": "porsche-design-system.toast.5cfb4408583fffba8a67.js" }; | ||
var manifest = { "core": "porsche-design-system.v2.18.0-rc.0.55c1a1aafefdb3dc2510.js", "accordion": "porsche-design-system.accordion.a9a56a5c60de8a876a39.js", "banner": "porsche-design-system.banner.b31624d91678341df686.js", "button-pure": "porsche-design-system.button-pure.8f03d1e2b864f94a1e59.js", "button": "porsche-design-system.button.065ac9c401ab15556ce0.js", "carousel": "porsche-design-system.carousel.719a2e5da3f68f233430.js", "checkbox-wrapper": "porsche-design-system.checkbox-wrapper.4e285cc78111dbb415a8.js", "content-wrapper": "porsche-design-system.content-wrapper.764aa4f600ddea31574c.js", "divider": "porsche-design-system.divider.3ae5b021cac91ad39e3e.js", "fieldset-wrapper": "porsche-design-system.fieldset-wrapper.4dd9cfbe2272fd1aaf9a.js", "flex": "porsche-design-system.flex.4a6dd873d358affd0847.js", "grid": "porsche-design-system.grid.e91ed88731d822d2d1a4.js", "headline": "porsche-design-system.headline.571471dcab79516811ed.js", "icon": "porsche-design-system.icon.0b75ff5c2d64614d9541.js", "link-pure": "porsche-design-system.link-pure.6d70266aeef23f957a6b.js", "link-social": "porsche-design-system.link-social.b09e428f9543349a66e2.js", "link-tile": "porsche-design-system.link-tile.f34ca8f62b6e86f7e4a2.js", "link": "porsche-design-system.link.a63fcccaa83994b454fc.js", "marque": "porsche-design-system.marque.2e177e910e76d0b05da7.js", "modal": "porsche-design-system.modal.abddab634251e7900f69.js", "pagination": "porsche-design-system.pagination.f2dd1b9f8fa5b8f9fb7e.js", "popover": "porsche-design-system.popover.2fdf208f574f8c660de3.js", "radio-button-wrapper": "porsche-design-system.radio-button-wrapper.45428d28f23e427bd15e.js", "scroller": "porsche-design-system.scroller.d784faf877ba89cbaefb.js", "segmented-control": "porsche-design-system.segmented-control.2e3ebaa32deea260f9bd.js", "select-wrapper": "porsche-design-system.select-wrapper.0eefd9256552fe644543.js", "spinner": "porsche-design-system.spinner.49da232a966431699714.js", "stepper-horizontal": "porsche-design-system.stepper-horizontal.6130f8c55fee48b123f5.js", "switch": "porsche-design-system.switch.b10368b4456408243f4f.js", "table": "porsche-design-system.table.8bd2af937a2dd83aef6c.js", "tabs-bar": "porsche-design-system.tabs-bar.48ac02c3f566ec322b57.js", "tabs": "porsche-design-system.tabs.4662f9f95feb49d5658b.js", "tag": "porsche-design-system.tag.d66687c11982a564e60f.js", "text-field-wrapper": "porsche-design-system.text-field-wrapper.ce776dc5d03841e0e2fb.js", "text-list": "porsche-design-system.text-list.0d016d64a4e0a535bba1.js", "text": "porsche-design-system.text.da69ebab92cc13df41a1.js", "textarea-wrapper": "porsche-design-system.textarea-wrapper.b292ae0dac0705f4ad47.js", "toast": "porsche-design-system.toast.b92b18889ce0f1a645f3.js" }; | ||
var urls = ['core'].concat(components).map(function (cmp) { return "".concat(cdnBaseUrl, "/porsche-design-system/components/").concat(manifest[cmp]); }); | ||
@@ -174,3 +175,3 @@ var linksHtml = urls | ||
: 'porscheDesignSystem.load()'; | ||
var scriptContent = "var porscheDesignSystem;(()=>{\"use strict\";var e={d:(t,s)=>{for(var o in s)e.o(s,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:s[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})}},t={};function s(e){if(\"noModule\"in HTMLScriptElement.prototype){const t=(\"script\",document.createElement(\"script\"));t.src=e,t.setAttribute(\"crossorigin\",\"\"),document.body.appendChild(t)}}e.r(t),e.d(t,{load:()=>n});const o=\"porscheDesignSystem\";const n=(e={prefix:\"\"})=>{!function({script:e,version:t,prefix:n}){var r;const i=null!==(r=function(e){const t=(document[o]||(document[o]={}),document[o]),{[e]:s=null}=t;if(null===s){const s={isLoaded:!1,prefixes:[],registerCustomElements:null};t[e]=s}return t[e]}(t))&&void 0!==r?r:{},{isLoaded:c,prefixes:d,registerCustomElements:p}=i;c||(s(e),i.isLoaded=!0),d.includes(n)||(d.push(n),p&&p(n))}(Object.assign(Object.assign({},{version:\"2.17.0\",script:(typeof window!=='undefined'&&window.PORSCHE_DESIGN_SYSTEM_CDN==='cn'?'https://cdn.ui.porsche.cn':'https://cdn.ui.porsche.com')+\"/porsche-design-system/components/porsche-design-system.v2.17.0.9a579f8ff7708b1885a9.js\"}),e))};porscheDesignSystem=t})();" + loadCalls; | ||
var scriptContent = "var porscheDesignSystem;(()=>{\"use strict\";var e={d:(t,s)=>{for(var o in s)e.o(s,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:s[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})}},t={};function s(e){if(\"noModule\"in HTMLScriptElement.prototype){const t=(\"script\",document.createElement(\"script\"));t.src=e,t.setAttribute(\"crossorigin\",\"\"),document.body.appendChild(t)}}e.r(t),e.d(t,{load:()=>n});const o=\"porscheDesignSystem\";const n=(e={prefix:\"\"})=>{!function({script:e,version:t,prefix:n}){var r;const i=null!==(r=function(e){const t=(document[o]||(document[o]={}),document[o]),{[e]:s=null}=t;if(null===s){const s={isLoaded:!1,prefixes:[],registerCustomElements:null};t[e]=s}return t[e]}(t))&&void 0!==r?r:{},{isLoaded:c,prefixes:d,registerCustomElements:p}=i;c||(s(e),i.isLoaded=!0),d.includes(n)||(d.push(n),p&&p(n))}(Object.assign(Object.assign({},{version:\"2.18.0-rc.0\",script:(typeof window!=='undefined'&&window.PORSCHE_DESIGN_SYSTEM_CDN==='cn'?'https://cdn.ui.porsche.cn':'https://cdn.ui.porsche.com')+\"/porsche-design-system/components/porsche-design-system.v2.18.0-rc.0.55c1a1aafefdb3dc2510.js\"}),e))};porscheDesignSystem=t})();" + loadCalls; | ||
// there is no other solution than using dangerouslySetInnerHTML since JSX elements are rendered by the createElement() function | ||
@@ -185,3 +186,3 @@ // https://stackoverflow.com/a/64815699 | ||
var cdnBaseUrl = getCdnBaseUrl(cdn); | ||
var scriptContent = "!function(){if([\"IntersectionObserver\",\"MutationObserver\",\"customElements\"].some((function(e){return!(e in window)}))){var e=document.createElement(\"script\");e.src=\"".concat(cdnBaseUrl, "/porsche-design-system/fallbacks/browser-support.dda0cf184ba60c9440989e4cb83ef32f.js\",document.body.appendChild(e)}}();"); | ||
var scriptContent = "!function(){if([\"IntersectionObserver\",\"MutationObserver\",\"customElements\"].some((function(e){return!(e in window)}))){var e=document.createElement(\"script\");e.src=\"".concat(cdnBaseUrl, "/porsche-design-system/fallbacks/browser-support.9a849b7f35a9bc27873f901e72735be5.js\",document.body.appendChild(e)}}();"); | ||
// there is no other solution than using dangerouslySetInnerHTML since JSX elements are rendered by the createElement() function | ||
@@ -195,3 +196,3 @@ // https://stackoverflow.com/a/64815699 | ||
var cdnBaseUrl = getCdnBaseUrl(cdn); | ||
var scriptContent = "!function(){if(!(window.navigator||navigator).cookieEnabled){var n=document.createElement(\"script\");n.src=\"".concat(cdnBaseUrl, "/porsche-design-system/fallbacks/cookies.42029c6077c0d10cb356807d47e69538.js\",document.body.appendChild(n)}}();"); | ||
var scriptContent = "!function(){if(!(window.navigator||navigator).cookieEnabled){var n=document.createElement(\"script\");n.src=\"".concat(cdnBaseUrl, "/porsche-design-system/fallbacks/cookies.39311f0cadf8a65b2795f05a13e72350.js\",document.body.appendChild(n)}}();"); | ||
// there is no other solution than using dangerouslySetInnerHTML since JSX elements are rendered by the createElement() function | ||
@@ -201,3 +202,10 @@ // https://stackoverflow.com/a/64815699 | ||
} | ||
function getDSRPonyfill(opts) { | ||
var format = __assign({ format: 'html' }, opts).format; | ||
throwIfRunInBrowser('getDSRPonyfill'); | ||
var scriptContent = "!function(){\"use strict\";const e=e=>null===e.parentElement,t=e=>e.nodeType===Node.ELEMENT_NODE;HTMLTemplateElement.prototype.hasOwnProperty(\"shadowRoot\")||(n=>{var l;const o=[];let i=n.firstElementChild;for(;i!==n&&null!==i;)if(\"TEMPLATE\"===i.tagName)o.push(i),i=i.content;else if(null!==i.firstElementChild)i=i.firstElementChild;else if(t(i)&&null!==i.nextElementSibling)i=i.nextElementSibling;else{let t;for(;i!==n&&null!==i;)if(e(i)){t=o.pop();const e=t.parentElement,n=t.getAttribute(\"shadowroot\");if(i=t,\"open\"===n||\"closed\"===n){const l=t.hasAttribute(\"shadowrootdelegatesfocus\");try{e.attachShadow({mode:n,delegatesFocus:l}).append(t.content)}catch{}}else t=void 0}else{const e=i.nextElementSibling;if(null!=e){i=e,void 0!==t&&t.parentElement.removeChild(t);break}const n=null===(l=i.parentElement)||void 0===l?void 0:l.nextElementSibling;if(null!=n){i=n,void 0!==t&&t.parentElement.removeChild(t);break}i=i.parentElement,void 0!==t&&(t.parentElement.removeChild(t),t=void 0)}}})(document.body)}();"; | ||
var markup = format === 'html' ? "<script>".concat(scriptContent, "</script>") : jsx("script", { dangerouslySetInnerHTML: { __html: scriptContent } }); | ||
return markup; | ||
} | ||
export { getBrowserSupportFallbackScript, getComponentChunkLinks, getCookiesFallbackScript, getFontFaceStylesheet, getFontLinks, getIconLinks, getInitialStyles, getLoaderScript, getMetaTagsAndIconLinks }; | ||
export { getBrowserSupportFallbackScript, getComponentChunkLinks, getCookiesFallbackScript, getDSRPonyfill, getFontFaceStylesheet, getFontLinks, getIconLinks, getInitialStyles, getLoaderScript, getMetaTagsAndIconLinks }; |
@@ -144,2 +144,11 @@ /// <reference types="react" /> | ||
export declare function getCookiesFallbackScript(opts?: GetCookiesFallbackScriptOptionsFormatJsx): JSX.Element; | ||
declare type GetDSRPonyfillOptions = { | ||
format?: Format; | ||
}; | ||
export declare function getDSRPonyfill(opts?: GetDSRPonyfillOptions & { | ||
format: 'html'; | ||
}): string; | ||
export declare function getDSRPonyfill(opts?: GetDSRPonyfillOptions & { | ||
format: 'jsx'; | ||
}): JSX.Element; | ||
export {}; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1369664
135
5617
1