component-shipinlv 0.1.21 → 0.1.22

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,5 +1,5 @@
1
1
  import PostMessage from "../lib/postMessage";
2
2
  var Login = function Login() {
3
- PostMessage('login');
3
+ PostMessage('need-login');
4
4
  };
5
5
  export default Login;
@@ -163,7 +163,7 @@ declare const Tool: {
163
163
  setTimeOffset(serverTime: number): void;
164
164
  getTime(): number;
165
165
  h5Pay(query: Pay.H5PayQuery): void;
166
- notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
+ notification(type: "info" | "error" | "success" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
168
168
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
169
169
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
package/dist/lib/Tool.js CHANGED
@@ -1053,7 +1053,7 @@ var Tool = _objectSpread(_objectSpread({
1053
1053
  });
1054
1054
  },
1055
1055
  onLogin: function onLogin() {
1056
- return PostMessage('login');
1056
+ return PostMessage('need-login');
1057
1057
  },
1058
1058
  getObjectURL: function getObjectURL(file) {
1059
1059
  var _window5, _window6;
@@ -2,7 +2,7 @@ import PostMessage from "./postMessage";
2
2
  export default function goAuth() {
3
3
  var authType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
4
4
  // Tool.go(`${ authType }/auth`);
5
- return PostMessage('login');
5
+ return PostMessage('need-login');
6
6
  // return;
7
7
  // if( window._openAuth_ ){
8
8
  // return Promise.reject( false );
@@ -1,3 +1,3 @@
1
- type PostMessage = 'login' | 'menu';
1
+ type PostMessage = 'need-login' | 'menu';
2
2
  declare const PostMessage: (type: PostMessage, data?: any) => void;
3
3
  export default PostMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",