Skip to content

Commit

Permalink
chore(release): 1.0.0-alpha.5
Browse files Browse the repository at this point in the history
# [1.0.0-alpha.5](v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-11-07)

### Features

* allow nonce on server style tag ([92e527a](92e527a))
  • Loading branch information
semantic-release-bot committed Nov 7, 2021
1 parent 92e527a commit a8edc83
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (https://jaredLunde.com)",
Expand Down
13 changes: 11 additions & 2 deletions server/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any>): React.ReactElement;
export declare function toComponent(html: string, styles?: Styles<any, any>, 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'
Expand All @@ -36,7 +41,7 @@ export declare function toComponent(html: string, styles?: Styles<any, any>): Re
* }
* }
*/
export declare function Style({ html, styles }: StyleProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
export declare function Style({ html, styles, nonce }: StyleProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
export interface StyleProps {
/**
* The HTML generated by Next.js, `renderToStaticMarkup()` or `renderToString()`
Expand All @@ -46,6 +51,10 @@ export interface StyleProps {
* An instance of `styles()`. Defaults to the default styles instance in `@dash-ui/styles`.
*/
styles?: Styles<any, any>;
/**
* A nonce for the `<style>` tag.
*/
nonce?: Styles<any, any>["dash"]["sheet"]["nonce"];
}
/**
* Creates a Gatsby replaceRenderer for injecting styles generated by Dash on
Expand Down

0 comments on commit a8edc83

Please sign in to comment.