@preply/ds-web-core
Advanced tools
Comparing version 0.6.1-beta.2af03dcf88007ad52f947b48bd393f6bbe18bbbf.46 to 0.6.1-beta.4030f5af6dd6bd8177eecaa5897981110aa4d410.45
@@ -18,3 +18,2 @@ export { VERSION } from './version.js'; | ||
export { useLayoutGridStyles } from './layout/hooks/useLayoutGridStyles.js'; | ||
export { ServerStyleSheet } from './ssr/classes/ServerStyleSheet.js'; | ||
export { StyleExtractContext, StyleExtractProvider } from './ssr/contexts/StyleExtractContext.js'; | ||
@@ -30,2 +29,2 @@ export { useStyleExtract } from './ssr/hooks/useStyleExtract.js'; | ||
export { withTheme } from './theme/hocs/withTheme.js'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== |
@@ -1,7 +0,8 @@ | ||
import { FC } from 'react'; | ||
import type { CSSModule, CSSModuleContent, CSSModuleId } from '../../css-module/types'; | ||
export declare class ServerStyleSheet { | ||
styles: Record<CSSModuleId, CSSModuleContent>; | ||
import { ReactNode } from 'react'; | ||
import type { CSSModule } from '../../css-module/types'; | ||
import type { ServerStyleSheetInterface } from '../types'; | ||
export declare class ServerStyleSheet implements ServerStyleSheetInterface { | ||
styles: Record<string, string>; | ||
addStyle({ __id: id, __css: css }: CSSModule): void; | ||
getStyleElement: FC; | ||
getStyleElement: () => ReactNode; | ||
} |
@@ -7,3 +7,2 @@ import React from 'react'; | ||
this.getStyleElement = () => { | ||
console.warn('ServerStyleSheet::getStyleElement', this.styles); | ||
const styles = Object.values(this.styles).join(''); | ||
@@ -19,3 +18,2 @@ const html = `/* @preply/ds-web-root critical CSS: */ ${styles}`; | ||
addStyle({ __id: id, __css: css }) { | ||
console.warn('ServerStyleSheet::addStyle', { id, css }); | ||
this.styles[id] = css; | ||
@@ -26,2 +24,2 @@ } | ||
export { ServerStyleSheet }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VydmVyU3R5bGVTaGVldC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Nzci9jbGFzc2VzL1NlcnZlclN0eWxlU2hlZXQudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBGQyB9IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHR5cGUgeyBDU1NNb2R1bGUsIENTU01vZHVsZUNvbnRlbnQsIENTU01vZHVsZUlkIH0gZnJvbSAnLi4vLi4vY3NzLW1vZHVsZS90eXBlcyc7XG5cbmV4cG9ydCBjbGFzcyBTZXJ2ZXJTdHlsZVNoZWV0IHtcbiAgICBzdHlsZXM6IFJlY29yZDxDU1NNb2R1bGVJZCwgQ1NTTW9kdWxlQ29udGVudD4gPSB7fTtcblxuICAgIGFkZFN0eWxlKHsgX19pZDogaWQsIF9fY3NzOiBjc3MgfTogQ1NTTW9kdWxlKTogdm9pZCB7XG4gICAgICAgIGNvbnNvbGUud2FybignU2VydmVyU3R5bGVTaGVldDo6YWRkU3R5bGUnLCB7IGlkLCBjc3MgfSk7XG4gICAgICAgIHRoaXMuc3R5bGVzW2lkXSA9IGNzcztcbiAgICB9XG5cbiAgICBnZXRTdHlsZUVsZW1lbnQ6IEZDID0gKCkgPT4ge1xuICAgICAgICBjb25zb2xlLndhcm4oJ1NlcnZlclN0eWxlU2hlZXQ6OmdldFN0eWxlR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IEBwcmVwbHkvZHMtd2ViLXJvb3QgY3JpdGljYWwgQ1NTOiAqLyAke3N0eWxlc31gO1xuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPHN0eWxlXG4gICAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIHJlYWN0L25vLWRhbmdlclxuICAgICAgICAgICAgICAgIGRhbmdlcm91c2x5U2V0SW5uZXJIVE1MPXt7XG4gICAgICAgICAgICAgICAgICAgIF9faHRtbDogaHRtbCxcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgLz5cbiAgICAgICAgKTtcbiAgICB9O1xufVxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O01BS2EsZ0JBQWdCO0lBQTdCO1FBQ0ksV0FBTSxHQUEyQixFQUFFLENBQUM7UUFNcEMsb0JBQWUsR0FBRztZQUNkLE1BQU0sTUFBTSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztZQUNuRCxNQUFNLElBQUksR0FBRywyQ0FBMkMsTUFBTSxFQUFFLENBQUM7WUFDakUsUUFDSTs7Z0JBRUksdUJBQXVCLEVBQUU7b0JBQ3JCLE1BQU0sRUFBRSxJQUFJO2lCQUNmLEdBQ0gsRUFDSjtTQUNMLENBQUM7S0FDTDtJQWhCRyxRQUFRLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQWE7UUFDeEMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsR0FBRyxHQUFHLENBQUM7S0FDekI7Ozs7OyJ9 |
import React, { FC } from 'react'; | ||
import { ServerStyleSheet } from '../classes/ServerStyleSheet'; | ||
export declare type StyleExtractContextState = ServerStyleSheet; | ||
export declare const StyleExtractContext: React.Context<ServerStyleSheet>; | ||
import { ServerStyleSheetInterface } from '../types'; | ||
export declare type StyleExtractContextState = ServerStyleSheetInterface; | ||
export declare const StyleExtractContext: React.Context<ServerStyleSheetInterface>; | ||
interface StyleExtractProviderProps { | ||
stylesheet: ServerStyleSheet; | ||
stylesheet: ServerStyleSheetInterface; | ||
} | ||
export declare const StyleExtractProvider: FC<StyleExtractProviderProps>; | ||
export {}; |
@@ -9,2 +9,2 @@ import React, { createContext } from 'react'; | ||
export { StyleExtractContext, StyleExtractProvider }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3R5bGVFeHRyYWN0Q29udGV4dC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Nzci9jb250ZXh0cy9TdHlsZUV4dHJhY3RDb250ZXh0LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRkMsIGNyZWF0ZUNvbnRleHQgfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IFNlcnZlclN0eWxlU2hlZXQgfSBmcm9tICcuLi9jbGFzc2VzL1NlcnZlclN0eWxlU2hlZXQnO1xuXG5leHBvcnQgdHlwZSBTdHlsZUV4dHJhY3RDb250ZXh0U3RhdGUgPSBTZXJ2ZXJTdHlsZVNoZWV0O1xuXG5leHBvcnQgY29uc3QgU3R5bGVFeHRyYWN0Q29udGV4dCA9IGNyZWF0ZUNvbnRleHQ8U3R5bGVFeHRyYWN0Q29udGV4dFN0YXRlPih7fSBhcyBTZXJ2ZXJTdHlsZVNoZWV0KTtcblxuaW50ZXJmYWNlIFN0eWxlRXh0cmFjdFByb3ZpZGVyUHJvcHMge1xuICAgIHN0eWxlc2hlZXQ6IFNlcnZlclN0eWxlU2hlZXQ7XG59XG5cbmV4cG9ydCBjb25zdCBTdHlsZUV4dHJhY3RQcm92aWRlcjogRkM8U3R5bGVFeHRyYWN0UHJvdmlkZXJQcm9wcz4gPSAoeyBjaGlsZHJlbiwgc3R5bG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uXG5pbnRlcmZhY2UgU3R5bGVFeHRyYWN0UHJvdmlkZXJQcm9wcyB7XG4gICAgc3R5bGVzaGVldDogU2VydmVyU3R5bGVTaGVldEludGVyZmFjZTtcbn1cblxuZXhwb3J0IGNvbnN0IFN0eWxlRXh0cmFjdFByb3ZpZGVyOiBGQzxTdHlsZUV4dHJhY3RQcm92aWRlclByb3BzPiA9ICh7IGNoaWxkcmVuLCBzdHlsZXNoZWV0IH0pID0+IHtcbiAgICByZXR1cm4gKFxuICAgICAgICA8U3R5bGVFeHRyYWN0Q29udGV4dC5Qcm92aWRlciB2YWx1ZT17c3R5bGVzaGVldH0+e2NoaWxkcmVufTwvU3R5bGVFeHRyYWN0Q29udGV4dC5Qcm92aWRlcj5cbiAgICApO1xufTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztNQU1hLG1CQUFtQixHQUFHLGFBQWEsQ0FDNUMsRUFBK0IsRUFDakM7TUFNVyxvQkFBb0IsR0FBa0MsQ0FBQyxFQUFFLFFBQVEsRUFBRSxVQUFVLEVBQUU7SUFDeEYsUUFDSSxvQkFBQyxtQkFBbUIsQ0FBQyxRQUFRLElBQUMsS0FBSyxFQUFFLFVBQVUsSUFBRyxRQUFRLENBQWdDLEVBQzVGO0FBQ047Ozs7In0= |
@@ -11,7 +11,4 @@ import React from 'react'; | ||
function withStyleExtract(Component, styles) { | ||
const Wrapper = (props) => (React.createElement(StyleExtractContext.Consumer, null, stylesheet => { | ||
console.warn('withStyleExtract', stylesheet); | ||
return (React.createElement(CSSExtract, { stylesheet: stylesheet, styles: styles }, | ||
React.createElement(Component, Object.assign({}, props)))); | ||
})); | ||
const Wrapper = (props) => (React.createElement(StyleExtractContext.Consumer, null, stylesheet => (React.createElement(CSSExtract, { stylesheet: stylesheet, styles: styles }, | ||
React.createElement(Component, Object.assign({}, props)))))); | ||
Wrapper.displayName = `withCSSExtract(${Component.displayName})`; | ||
@@ -22,2 +19,2 @@ return Wrapper; | ||
export { CSSExtract, withStyleExtract }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aFN0eWxlRXh0cmFjdC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3Nzci9ob2NzL3dpdGhTdHlsZUV4dHJhY3QudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBDb21wb25lbnRUeXBlLCBGQyB9IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsgQ1NTTW9kdWxlIH0gZnJvbSAnLi4vLi4vY3NzLW1vZHVsZS90eXBlcyc7XG5pbXBvcnQgeyBTdHlsZUV4dHJhY3RDb250ZXh0LCBTdHlsZUV4dHJhY3RDb250ZXh0U3RhdGUgfSBmcm9tICcuLi9jb250ZXh0cy9TdHlsZUV4dHJhY3RDb250ZXh0JztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgICBzdHlsZXNoZWV0OiBTdHlsZUV4dHJhY3RDb250ZXh0U3RhdGU7XG4gICAgc3R5bGVzOiBDU1NNb2R1bGU7XG59XG5cbmV4cG9ydCBjb25zdCBDU1NFeHRyYWN0OiBGQzxQcm9wcz4gPSAoeyBzdHlsZXNoZWV0LCBzdHlsZXMsIGNoaWxkcmVuIH0pID0+IHtcbiAgICBpZiAoc3R5bGVzaGVldC5hZGRTdHlsZSkge1xuICAgICAgICBzdHlsZXNoZWV0LmFkZFN0eWxlKHN0eWxlcyk7XG4gICAgfVxuICAgIHJldHVybiA8PntjaGlsZHJlbn08Lz47XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gd2l0aFN0eWxlRXh0cmFjdDxQPihDb21wb25lbnQ6IENvbXBvbmVudFR5cGU8UD4sIHN0eWxlczogQ1NTTW9kdWxlKTogRkM8UD4ge1xuICAgIGNvbnN0IFdyYXBwZXIgPSAocHJvcHM6IFApID0+IChcbiAgICAgICAgPFN0eWxlRXh0cmFjdENvbnRleHQuQ29uc3VtZXI+XG4g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QUcsQ0FBQyxLQUFRLE1BQ3JCLG9CQUFDLG1CQUFtQixDQUFDLFFBQVEsUUFDeEIsVUFBVSxLQUNQLG9CQUFDLFVBQVUsSUFBQyxVQUFVLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNO1FBQzlDLG9CQUFDLFNBQVMsb0JBQUssS0FBSyxFQUFJLENBQ2YsQ0FDaEIsQ0FDMEIsQ0FDbEMsQ0FBQztJQUVGLE9BQU8sQ0FBQyxXQUFXLEdBQUcsa0JBQWtCLFNBQVMsQ0FBQyxXQUFXLEdBQUcsQ0FBQztJQUNqRSxPQUFPLE9BQU8sQ0FBQztBQUNuQjs7OzsifQ== |
@@ -1,4 +0,4 @@ | ||
export { ServerStyleSheet } from './classes/ServerStyleSheet'; | ||
export type { ServerStyleSheetInterface } from './types'; | ||
export { StyleExtractContext, StyleExtractProvider } from './contexts/StyleExtractContext'; | ||
export { useStyleExtract } from './hooks/useStyleExtract'; | ||
export { withStyleExtract } from './hocs/withStyleExtract'; |
@@ -1,5 +0,4 @@ | ||
export { ServerStyleSheet } from './classes/ServerStyleSheet.js'; | ||
export { StyleExtractContext, StyleExtractProvider } from './contexts/StyleExtractContext.js'; | ||
export { useStyleExtract } from './hooks/useStyleExtract.js'; | ||
export { withStyleExtract } from './hocs/withStyleExtract.js'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7In0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzsifQ== |
{ | ||
"name": "@preply/ds-web-core", | ||
"version": "0.6.1-beta.2af03dcf88007ad52f947b48bd393f6bbe18bbbf.46+2af03dc", | ||
"version": "0.6.1-beta.4030f5af6dd6bd8177eecaa5897981110aa4d410.45+4030f5a", | ||
"publishConfig": { | ||
@@ -22,3 +22,3 @@ "access": "public" | ||
"dependencies": { | ||
"@preply/ds-core": "^0.6.1-beta.2af03dcf88007ad52f947b48bd393f6bbe18bbbf.46+2af03dc" | ||
"@preply/ds-core": "^0.6.1-beta.4030f5af6dd6bd8177eecaa5897981110aa4d410.45+4030f5a" | ||
}, | ||
@@ -30,3 +30,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "2af03dcf88007ad52f947b48bd393f6bbe18bbbf" | ||
"gitHead": "4030f5af6dd6bd8177eecaa5897981110aa4d410" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
103
110898
1058