@epam/ai-dial-modulify-ui 0.38.0-rc.9 → 0.38.1

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.
Files changed (2) hide show
  1. package/index.esm.js +3 -1
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -16296,6 +16296,7 @@ var Document = /*@__PURE__*/getDefaultExportFromCjs(document$1);
16296
16296
  const SERVER_SIDE_JSS_STYLES_ID = 'server-side-jss-styles';
16297
16297
  function documentWithJss(DocumentComponent) {
16298
16298
  DocumentComponent.getInitialProps = (ctx) => __awaiter(this, void 0, void 0, function* () {
16299
+ var _a, _b;
16299
16300
  const registry = new SheetsRegistry();
16300
16301
  const generateId = createGenerateId();
16301
16302
  const originalRenderPage = ctx.renderPage;
@@ -16304,7 +16305,8 @@ function documentWithJss(DocumentComponent) {
16304
16305
  });
16305
16306
  const initialProps = yield Document.getInitialProps(ctx);
16306
16307
  const styles = registry.toString();
16307
- return Object.assign(Object.assign({}, initialProps), { styles: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [initialProps.styles, jsxRuntimeExports.jsx("style", { id: SERVER_SIDE_JSS_STYLES_ID,
16308
+ const nonce = (_b = (_a = ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b['x-nonce'];
16309
+ return Object.assign(Object.assign({}, initialProps), { nonce, styles: (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [initialProps.styles, jsxRuntimeExports.jsx("style", { id: SERVER_SIDE_JSS_STYLES_ID,
16308
16310
  // use dangerouslySetInnerHTML to avoid escaping
16309
16311
  dangerouslySetInnerHTML: { __html: styles } })] })) });
16310
16312
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@epam/ai-dial-modulify-ui",
3
3
  "description": "Modulify Toolkit (UI) for turning a monolith-like project into a modular one",
4
4
  "homepage": "https://epam-rail.com",
5
- "version": "0.38.0-rc.9",
5
+ "version": "0.38.1",
6
6
  "dependencies": {},
7
7
  "type": "module",
8
8
  "bugs": {