@rsmax/toutiao 1.3.14 → 2.0.0-canary.91
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.
- package/cjs/hostComponents/Input/index.d.ts +1 -1
- package/cjs/hostComponents/node.js +17 -7
- package/cjs/index.d.ts +2 -3
- package/cjs/index.js +25 -6
- package/cjs/node/index.js +17 -7
- package/cjs/types/component.d.ts +12 -1
- package/esm/hostComponents/Input/index.d.ts +1 -1
- package/esm/index.d.ts +2 -3
- package/esm/index.js +2 -3
- package/esm/types/component.d.ts +12 -1
- package/package.json +24 -7
- package/cjs/api/index.d.ts +0 -3281
- package/cjs/api/index.js +0 -350
- package/esm/api/index.d.ts +0 -3281
- package/esm/api/index.js +0 -343
|
@@ -16,7 +16,7 @@ export interface InputProps extends BaseProps {
|
|
|
16
16
|
placeholderClassName?: string;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
cursorSpacing?: number;
|
|
19
|
-
onInput?: (e: any) => void
|
|
19
|
+
onInput?: (e: any) => void;
|
|
20
20
|
onClick?: (e: any) => void;
|
|
21
21
|
onFocus?: (e: any) => void;
|
|
22
22
|
onBlur?: (e: any) => void;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
const ad = __importStar(require("./Ad/node"));
|
|
27
37
|
const button = __importStar(require("./Button/node"));
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './hostComponents';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * as component from './hostComponents';
|
|
2
|
+
export * as type from './types';
|
package/cjs/index.js
CHANGED
|
@@ -10,10 +10,29 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
}
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
16
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
exports.type = exports.component = void 0;
|
|
37
|
+
exports.component = __importStar(require("./hostComponents"));
|
|
38
|
+
exports.type = __importStar(require("./types"));
|
package/cjs/node/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
package/cjs/types/component.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import type { BaseEvent } from '@rsmax/wechat/esm/types/component';
|
|
2
1
|
import type * as React from 'react';
|
|
2
|
+
interface Target {
|
|
3
|
+
id: string;
|
|
4
|
+
dataset: any;
|
|
5
|
+
}
|
|
6
|
+
export interface BaseEvent {
|
|
7
|
+
type: string;
|
|
8
|
+
timeStamp: number;
|
|
9
|
+
target: Target;
|
|
10
|
+
currentTarget: Target;
|
|
11
|
+
mark: any;
|
|
12
|
+
}
|
|
3
13
|
/**
|
|
4
14
|
* 头条内置共有属性
|
|
5
15
|
* https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/component/introduction/basic-componen
|
|
@@ -26,3 +36,4 @@ export interface TouchEvent<T = Touch> extends BaseEvent {
|
|
|
26
36
|
/** 触摸事件,当前变化的触摸点信息的数组 */
|
|
27
37
|
changedTouches: T[];
|
|
28
38
|
}
|
|
39
|
+
export {};
|
|
@@ -16,7 +16,7 @@ export interface InputProps extends BaseProps {
|
|
|
16
16
|
placeholderClassName?: string;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
cursorSpacing?: number;
|
|
19
|
-
onInput?: (e: any) => void
|
|
19
|
+
onInput?: (e: any) => void;
|
|
20
20
|
onClick?: (e: any) => void;
|
|
21
21
|
onFocus?: (e: any) => void;
|
|
22
22
|
onBlur?: (e: any) => void;
|
package/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './hostComponents';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * as component from './hostComponents';
|
|
2
|
+
export * as type from './types';
|
package/esm/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './hostComponents';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * as component from './hostComponents';
|
|
2
|
+
export * as type from './types';
|
package/esm/types/component.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import type { BaseEvent } from '@rsmax/wechat/esm/types/component';
|
|
2
1
|
import type * as React from 'react';
|
|
2
|
+
interface Target {
|
|
3
|
+
id: string;
|
|
4
|
+
dataset: any;
|
|
5
|
+
}
|
|
6
|
+
export interface BaseEvent {
|
|
7
|
+
type: string;
|
|
8
|
+
timeStamp: number;
|
|
9
|
+
target: Target;
|
|
10
|
+
currentTarget: Target;
|
|
11
|
+
mark: any;
|
|
12
|
+
}
|
|
3
13
|
/**
|
|
4
14
|
* 头条内置共有属性
|
|
5
15
|
* https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/component/introduction/basic-componen
|
|
@@ -26,3 +36,4 @@ export interface TouchEvent<T = Touch> extends BaseEvent {
|
|
|
26
36
|
/** 触摸事件,当前变化的触摸点信息的数组 */
|
|
27
37
|
changedTouches: T[];
|
|
28
38
|
}
|
|
39
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsmax/toutiao",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-canary.91+5982cbe",
|
|
4
4
|
"description": "Rsmax for Toutiao",
|
|
5
5
|
"repository": "git+https://github.com/remaxjs/remax.git",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
"./types": {
|
|
10
|
+
"types": "./esm/types/index.d.ts",
|
|
11
|
+
"import": "./esm/types/index.js",
|
|
12
|
+
"require": "./cjs/types/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./component": {
|
|
15
|
+
"types": "./esm/hostComponents/index.d.ts",
|
|
16
|
+
"import": "./esm/hostComponents/index.js",
|
|
17
|
+
"require": "./cjs/hostComponents/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./node": {
|
|
20
|
+
"types": "./esm/node/index.d.ts",
|
|
21
|
+
"import": "./esm/node/index.js",
|
|
22
|
+
"require": "./cjs/node/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
7
25
|
"main": "./cjs/index.js",
|
|
8
26
|
"module": "./esm/index.js",
|
|
9
27
|
"typings": "./esm/index.d.ts",
|
|
@@ -15,15 +33,14 @@
|
|
|
15
33
|
"test": "rstest run"
|
|
16
34
|
},
|
|
17
35
|
"dependencies": {
|
|
18
|
-
"@rsmax/shared": "
|
|
36
|
+
"@rsmax/shared": "2.0.0-canary.91+5982cbe",
|
|
19
37
|
"lodash": "^4.17.21"
|
|
20
38
|
},
|
|
21
39
|
"devDependencies": {
|
|
22
40
|
"@douyin-microapp/typings": "^1.3.1",
|
|
23
|
-
"@rsmax/framework-shared": "
|
|
24
|
-
"@rsmax/runtime": "
|
|
25
|
-
"@rsmax/types": "
|
|
26
|
-
"@rsmax/wechat": "1.3.14",
|
|
41
|
+
"@rsmax/framework-shared": "2.0.0-canary.91+5982cbe",
|
|
42
|
+
"@rsmax/runtime": "2.0.0-canary.91+5982cbe",
|
|
43
|
+
"@rsmax/types": "2.0.0-canary.91+5982cbe",
|
|
27
44
|
"@types/react": "^18.3.0",
|
|
28
45
|
"@types/react-test-renderer": "^18.3.0",
|
|
29
46
|
"react": "^18.3.0",
|
|
@@ -33,5 +50,5 @@
|
|
|
33
50
|
"access": "public"
|
|
34
51
|
},
|
|
35
52
|
"esnext": "./esm/index.js",
|
|
36
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5982cbe3e1e3a3bf52fa41d0c31bfb043277f669"
|
|
37
54
|
}
|