From a8edc8357665553e41fe5b970bc725eeef7e6d98 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 7 Nov 2021 20:05:31 +0000 Subject: [PATCH] chore(release): 1.0.0-alpha.5 # [1.0.0-alpha.5](https://github.com/dash-ui/react/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-11-07) ### Features * allow nonce on server style tag ([92e527a](https://github.com/dash-ui/react/commit/92e527a05eb4e07423faf04b1cd0b29ce3a28b95)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- server/types/index.d.ts | 13 +++++++++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00effc9..f96bc5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.0.0-alpha.5](https://github.com/dash-ui/react/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-11-07) + + +### Features + +* allow nonce on server style tag ([92e527a](https://github.com/dash-ui/react/commit/92e527a05eb4e07423faf04b1cd0b29ce3a28b95)) + # [1.0.0-alpha.4](https://github.com/dash-ui/react/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-11-06) diff --git a/package.json b/package.json index d069ade..580821e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dash-ui/react", - "version": "1.0.0-alpha.4", + "version": "1.0.0-alpha.5", "description": "React components and hooks for dash-ui", "license": "MIT", "author": "Jared Lunde (https://jaredLunde.com)", diff --git a/server/types/index.d.ts b/server/types/index.d.ts index 36056e1..eb15e7d 100644 --- a/server/types/index.d.ts +++ b/server/types/index.d.ts @@ -7,14 +7,19 @@ import * as React from "react"; * @param html - The HTML generated by `renderToStaticMarkup()` or `renderToString()` * @param styles - An instance of `styles()`. Defaults to the default styles instance * in `@dash-ui/styles`. + * @param options + * @param options.nonce */ -export declare function toComponent(html: string, styles?: Styles): React.ReactElement; +export declare function toComponent(html: string, styles?: Styles, options?: { + nonce?: string; +}): React.ReactElement; /** * A React component for injecting SSR CSS styles into Next.js documents * * @param root0 * @param root0.html * @param root0.styles + * @param root0.nonce * @example * // _document.js * import React from 'react' @@ -36,7 +41,7 @@ export declare function toComponent(html: string, styles?: Styles): Re * } * } */ -export declare function Style({ html, styles }: StyleProps): React.ReactElement>; +export declare function Style({ html, styles, nonce }: StyleProps): React.ReactElement>; export interface StyleProps { /** * The HTML generated by Next.js, `renderToStaticMarkup()` or `renderToString()` @@ -46,6 +51,10 @@ export interface StyleProps { * An instance of `styles()`. Defaults to the default styles instance in `@dash-ui/styles`. */ styles?: Styles; + /** + * A nonce for the `