@moda/om 19.6.0 → 19.7.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.
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import { PromptProps } from 'react-router-dom';
2
3
  interface Props {
3
- message?: string;
4
+ message?: PromptProps['message'];
4
5
  enabled: boolean | undefined;
5
6
  }
6
7
  export declare const NavigationPreventer: React.FC<Props>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda/om",
3
- "version": "19.6.0",
3
+ "version": "19.7.1",
4
4
  "description": "Moda Operandi design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -31,7 +31,7 @@
31
31
  "lint-staged": "lint-staged",
32
32
  "postpublish": "pinst --enable",
33
33
  "predeploy:documentation": "NODE_ENV=production npm run build && cd documentation && npm install && npm run build",
34
- "prepare": "husky install && echo ''",
34
+ "prepare": "husky && echo ''",
35
35
  "prepublishOnly": "npm run clean && npm run build && pinst --disable",
36
36
  "scaffold:component": "node scripts/scaffold/react Components",
37
37
  "scaffold:function": "node scripts/scaffold/sass Functions",
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { Prompt } from 'react-router-dom';
2
+ import { Prompt, PromptProps } from 'react-router-dom';
3
3
  import { usePreventNavigation } from './usePreventNavigation';
4
4
 
5
5
  interface Props {
6
- message?: string;
6
+ message?: PromptProps['message'];
7
7
  enabled: boolean | undefined;
8
8
  }
9
9