@ainias42/react-bootstrap-mobile 0.1.19 → 0.1.20

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.
@@ -3,6 +3,9 @@ import { ComponentRef, DOMAttributes, ReactElement, RefAttributes } from 'react'
3
3
  import { ViewProps } from './View';
4
4
  export type ViewWithoutListenersProps<AsType extends keyof JSX.IntrinsicElements> = Omit<ViewProps<AsType>, keyof DOMAttributes<AsType>> & {
5
5
  children?: React.ReactNode;
6
+ dangerouslySetInnerHTML?: {
7
+ __html: string | TrustedHTML;
8
+ } | undefined;
6
9
  };
7
10
  declare const ViewWithoutListenersMemo: <AsType extends keyof JSX.IntrinsicElements>(props: ViewWithoutListenersProps<AsType> & RefAttributes<ComponentRef<AsType>>) => ReactElement | null;
8
11
  export { ViewWithoutListenersMemo as ViewWithoutListeners };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainias42/react-bootstrap-mobile",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Mobile React Components using Bootstrap",
5
5
  "main": "dist/bootstrapReactMobile",
6
6
  "scripts": {
@@ -5,7 +5,11 @@ import { View, ViewProps } from './View';
5
5
  export type ViewWithoutListenersProps<AsType extends keyof JSX.IntrinsicElements> = Omit<
6
6
  ViewProps<AsType>,
7
7
  keyof DOMAttributes<AsType>
8
- > & { children?: React.ReactNode };
8
+ > & { children?: React.ReactNode, dangerouslySetInnerHTML?: {
9
+ // Should be InnerHTML['innerHTML'].
10
+ // But unfortunately we're mixing renderer-specific type declarations.
11
+ __html: string | TrustedHTML;
12
+ } | undefined; };
9
13
 
10
14
  function ViewWithoutListeners<AsType extends keyof JSX.IntrinsicElements>(
11
15
  { children, ...props }: ViewWithoutListenersProps<AsType>,