wargerm 0.6.13 → 0.6.14
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/dist/index.esm.js +12 -13
- package/dist/index.js +20 -21
- package/dist/src/components/wTracing/index.d.ts +4 -20
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -925,7 +925,7 @@ function getSessionId() {
|
|
925
925
|
|
926
926
|
refreshSession(); // 初始化
|
927
927
|
|
928
|
-
var version = "0.6.
|
928
|
+
var version = "0.6.14";
|
929
929
|
|
930
930
|
var pageId = uuid(); // 与一般业务上理解的sessionId做区分,此session与业务无关,单纯就是浏览器端和后端直接的联系
|
931
931
|
|
@@ -2127,7 +2127,6 @@ var methods = {
|
|
2127
2127
|
traceCustomEvent: event.traceCustomEvent,
|
2128
2128
|
tracePageView: pv.tracePageView
|
2129
2129
|
};
|
2130
|
-
|
2131
2130
|
var init$6 = function init() {
|
2132
2131
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
2133
2132
|
var _options = {
|
@@ -2212,7 +2211,7 @@ var transitionOptions = function transitionOptions(_options, options) {
|
|
2212
2211
|
}
|
2213
2212
|
};
|
2214
2213
|
|
2215
|
-
var
|
2214
|
+
var wTracing = _objectSpread2({
|
2216
2215
|
init: init$6
|
2217
2216
|
}, methods);
|
2218
2217
|
|
@@ -2257,7 +2256,7 @@ WButton.defaultProps = {};
|
|
2257
2256
|
// import IconFont from '@/components/IconFont';
|
2258
2257
|
// <IconFont type='icon-demo' className='xxx-xxx' />
|
2259
2258
|
|
2260
|
-
var index
|
2259
|
+
var index = createFromIconfontCN({
|
2261
2260
|
scriptUrl: '//at.alicdn.com/t/font_3425259_s93peuz62an.js'
|
2262
2261
|
});
|
2263
2262
|
|
@@ -4723,7 +4722,7 @@ function Table(_ref) {
|
|
4723
4722
|
Table.defaultProps = {
|
4724
4723
|
rowKey: 'key'
|
4725
4724
|
};
|
4726
|
-
var index$
|
4725
|
+
var index$1 = /*#__PURE__*/memo(Table);
|
4727
4726
|
|
4728
4727
|
var _excluded$b = ["height", "width", "count", "style", "numberStyle"],
|
4729
4728
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
@@ -5827,7 +5826,7 @@ var Index$d = function Index(_ref, ref) {
|
|
5827
5826
|
}))));
|
5828
5827
|
};
|
5829
5828
|
|
5830
|
-
var index$
|
5829
|
+
var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$d));
|
5831
5830
|
|
5832
5831
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
5833
5832
|
f1(value);
|
@@ -7517,7 +7516,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7517
7516
|
}, extraProps)));
|
7518
7517
|
};
|
7519
7518
|
|
7520
|
-
var index$
|
7519
|
+
var index$3 = /*#__PURE__*/React.forwardRef(TabelCard);
|
7521
7520
|
|
7522
7521
|
var YEAER_MONTH_FORMAT_EN = 'YYYY-MM';
|
7523
7522
|
|
@@ -7890,7 +7889,7 @@ function Calendar(_ref, ref) {
|
|
7890
7889
|
})))));
|
7891
7890
|
}
|
7892
7891
|
|
7893
|
-
var index$
|
7892
|
+
var index$4 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Calendar));
|
7894
7893
|
|
7895
7894
|
var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
7896
7895
|
var _this = this;
|
@@ -8341,7 +8340,7 @@ function VideoPlayer(_ref, ref) {
|
|
8341
8340
|
})) : null));
|
8342
8341
|
}
|
8343
8342
|
|
8344
|
-
var index$
|
8343
|
+
var index$5 = /*#__PURE__*/forwardRef(VideoPlayer);
|
8345
8344
|
|
8346
8345
|
var _excluded$l = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
8347
8346
|
|
@@ -8350,7 +8349,7 @@ var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字
|
|
8350
8349
|
var DEFAULT_LAST_PLAY_TIME_DELAY = 5; // 默认音量大小
|
8351
8350
|
|
8352
8351
|
var DEFAULT_VOLUME = 0.6;
|
8353
|
-
var index$
|
8352
|
+
var index$6 = (function (_ref) {
|
8354
8353
|
var id = _ref.id,
|
8355
8354
|
_ref$videoUrls = _ref.videoUrls,
|
8356
8355
|
videoUrls = _ref$videoUrls === void 0 ? [] : _ref$videoUrls,
|
@@ -9183,7 +9182,7 @@ function NtTable(_ref) {
|
|
9183
9182
|
NtTable.defaultProps = {
|
9184
9183
|
rowKey: 'key'
|
9185
9184
|
};
|
9186
|
-
var index$
|
9185
|
+
var index$7 = /*#__PURE__*/memo(NtTable);
|
9187
9186
|
|
9188
9187
|
/*
|
9189
9188
|
* @Author: lijin
|
@@ -9967,7 +9966,7 @@ function WaterLevelCharts(config) {
|
|
9967
9966
|
/*
|
9968
9967
|
* @Author: lijin
|
9969
9968
|
* @Date: 2021-09-09 11:02:54
|
9970
|
-
* @LastEditTime: 2022-12-13
|
9969
|
+
* @LastEditTime: 2022-12-13 19:29:01
|
9971
9970
|
* @LastEditors: lijin
|
9972
9971
|
* @Description:
|
9973
9972
|
* @FilePath: \wargerm-components\src\index.ts
|
@@ -9980,4 +9979,4 @@ if (REACT_APP_ENV == 'development') {
|
|
9980
9979
|
document.documentElement.setAttribute(COLOR_ATTR_NAME, 'nt');
|
9981
9980
|
}
|
9982
9981
|
|
9983
|
-
export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, index$
|
9982
|
+
export { Index$a as AutoScroll, Index$c as Breadcrumb, WButton as Button, index$4 as Calendar, index$2 as Card, WCascader as Cascader, Index$4 as Checkbox, Index$9 as CountUp, Index$2 as DatePicker, DragBox, index as IconFont, Index as Input, WInputNumber as InputNumber, LineEcharts, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, index$7 as NtTable, Index$8 as Number, NumericInput, Index$3 as Radio, Select, Index$b as Swiper, WSwitch as Switch, index$3 as TabelCard, index$1 as Table, Index$7 as TreeSelect, Upload, index$6 as Video, index$5 as VideoPlayer, Index$6 as WDatePicker, WForm$1 as WForm, WaterLevelCharts, WebsocketHeart, useEventEmitter, wTracing, create as whox, wmox };
|
package/dist/index.js
CHANGED
@@ -990,7 +990,7 @@ function getSessionId() {
|
|
990
990
|
|
991
991
|
refreshSession(); // 初始化
|
992
992
|
|
993
|
-
var version = "0.6.
|
993
|
+
var version = "0.6.14";
|
994
994
|
|
995
995
|
var pageId = uuid(); // 与一般业务上理解的sessionId做区分,此session与业务无关,单纯就是浏览器端和后端直接的联系
|
996
996
|
|
@@ -2192,7 +2192,6 @@ var methods = {
|
|
2192
2192
|
traceCustomEvent: event.traceCustomEvent,
|
2193
2193
|
tracePageView: pv.tracePageView
|
2194
2194
|
};
|
2195
|
-
|
2196
2195
|
var init$6 = function init() {
|
2197
2196
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
2198
2197
|
var _options = {
|
@@ -2277,7 +2276,7 @@ var transitionOptions = function transitionOptions(_options, options) {
|
|
2277
2276
|
}
|
2278
2277
|
};
|
2279
2278
|
|
2280
|
-
var
|
2279
|
+
var wTracing = _objectSpread2({
|
2281
2280
|
init: init$6
|
2282
2281
|
}, methods);
|
2283
2282
|
|
@@ -2322,7 +2321,7 @@ WButton.defaultProps = {};
|
|
2322
2321
|
// import IconFont from '@/components/IconFont';
|
2323
2322
|
// <IconFont type='icon-demo' className='xxx-xxx' />
|
2324
2323
|
|
2325
|
-
var index
|
2324
|
+
var index = icons.createFromIconfontCN({
|
2326
2325
|
scriptUrl: '//at.alicdn.com/t/font_3425259_s93peuz62an.js'
|
2327
2326
|
});
|
2328
2327
|
|
@@ -4788,7 +4787,7 @@ function Table(_ref) {
|
|
4788
4787
|
Table.defaultProps = {
|
4789
4788
|
rowKey: 'key'
|
4790
4789
|
};
|
4791
|
-
var index$
|
4790
|
+
var index$1 = /*#__PURE__*/React.memo(Table);
|
4792
4791
|
|
4793
4792
|
var _excluded$b = ["height", "width", "count", "style", "numberStyle"],
|
4794
4793
|
_excluded2$2 = ["count", "numberCount", "width", "height", "marginRight"];
|
@@ -5892,7 +5891,7 @@ var Index$d = function Index(_ref, ref) {
|
|
5892
5891
|
}))));
|
5893
5892
|
};
|
5894
5893
|
|
5895
|
-
var index$
|
5894
|
+
var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$d));
|
5896
5895
|
|
5897
5896
|
var controlShow = function controlShow(f1, f2, value, timer) {
|
5898
5897
|
f1(value);
|
@@ -7582,7 +7581,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
7582
7581
|
}, extraProps)));
|
7583
7582
|
};
|
7584
7583
|
|
7585
|
-
var index$
|
7584
|
+
var index$3 = /*#__PURE__*/React__default['default'].forwardRef(TabelCard);
|
7586
7585
|
|
7587
7586
|
var YEAER_MONTH_FORMAT_EN = 'YYYY-MM';
|
7588
7587
|
|
@@ -7955,7 +7954,7 @@ function Calendar(_ref, ref) {
|
|
7955
7954
|
})))));
|
7956
7955
|
}
|
7957
7956
|
|
7958
|
-
var index$
|
7957
|
+
var index$4 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Calendar));
|
7959
7958
|
|
7960
7959
|
var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
|
7961
7960
|
var _this = this;
|
@@ -8406,7 +8405,7 @@ function VideoPlayer(_ref, ref) {
|
|
8406
8405
|
})) : null));
|
8407
8406
|
}
|
8408
8407
|
|
8409
|
-
var index$
|
8408
|
+
var index$5 = /*#__PURE__*/React.forwardRef(VideoPlayer);
|
8410
8409
|
|
8411
8410
|
var _excluded$l = ["id", "videoUrls", "definitionList", "isLoop", "muted", "currentIndex", "setCurrentIndex", "className", "style", "visible", "autoplay", "videoInit", "enableMemory", "lastPlayTimeHideDelay"];
|
8412
8411
|
|
@@ -8415,7 +8414,7 @@ var DEFAULT_PLAY_BACK_RATE = [0.5, 0.75, 1, 1.5, 2]; // 默认记忆提示文字
|
|
8415
8414
|
var DEFAULT_LAST_PLAY_TIME_DELAY = 5; // 默认音量大小
|
8416
8415
|
|
8417
8416
|
var DEFAULT_VOLUME = 0.6;
|
8418
|
-
var index$
|
8417
|
+
var index$6 = (function (_ref) {
|
8419
8418
|
var id = _ref.id,
|
8420
8419
|
_ref$videoUrls = _ref.videoUrls,
|
8421
8420
|
videoUrls = _ref$videoUrls === void 0 ? [] : _ref$videoUrls,
|
@@ -9248,7 +9247,7 @@ function NtTable(_ref) {
|
|
9248
9247
|
NtTable.defaultProps = {
|
9249
9248
|
rowKey: 'key'
|
9250
9249
|
};
|
9251
|
-
var index$
|
9250
|
+
var index$7 = /*#__PURE__*/React.memo(NtTable);
|
9252
9251
|
|
9253
9252
|
/*
|
9254
9253
|
* @Author: lijin
|
@@ -10032,7 +10031,7 @@ function WaterLevelCharts(config) {
|
|
10032
10031
|
/*
|
10033
10032
|
* @Author: lijin
|
10034
10033
|
* @Date: 2021-09-09 11:02:54
|
10035
|
-
* @LastEditTime: 2022-12-13
|
10034
|
+
* @LastEditTime: 2022-12-13 19:29:01
|
10036
10035
|
* @LastEditors: lijin
|
10037
10036
|
* @Description:
|
10038
10037
|
* @FilePath: \wargerm-components\src\index.ts
|
@@ -10048,38 +10047,38 @@ if (REACT_APP_ENV == 'development') {
|
|
10048
10047
|
exports.AutoScroll = Index$a;
|
10049
10048
|
exports.Breadcrumb = Index$c;
|
10050
10049
|
exports.Button = WButton;
|
10051
|
-
exports.Calendar = index$
|
10052
|
-
exports.Card = index$
|
10050
|
+
exports.Calendar = index$4;
|
10051
|
+
exports.Card = index$2;
|
10053
10052
|
exports.Cascader = WCascader;
|
10054
10053
|
exports.Checkbox = Index$4;
|
10055
10054
|
exports.CountUp = Index$9;
|
10056
10055
|
exports.DatePicker = Index$2;
|
10057
10056
|
exports.DragBox = DragBox;
|
10058
|
-
exports.IconFont = index
|
10057
|
+
exports.IconFont = index;
|
10059
10058
|
exports.Input = Index;
|
10060
10059
|
exports.InputNumber = WInputNumber;
|
10061
10060
|
exports.LineEcharts = LineEcharts;
|
10062
10061
|
exports.Modal = Modal;
|
10063
10062
|
exports.ModalForm = ModalForm$1;
|
10064
10063
|
exports.ModalTips = Modal$1;
|
10065
|
-
exports.NtTable = index$
|
10064
|
+
exports.NtTable = index$7;
|
10066
10065
|
exports.Number = Index$8;
|
10067
10066
|
exports.NumericInput = NumericInput;
|
10068
10067
|
exports.Radio = Index$3;
|
10069
10068
|
exports.Select = Select;
|
10070
10069
|
exports.Swiper = Index$b;
|
10071
10070
|
exports.Switch = WSwitch;
|
10072
|
-
exports.TabelCard = index$
|
10073
|
-
exports.Table = index$
|
10071
|
+
exports.TabelCard = index$3;
|
10072
|
+
exports.Table = index$1;
|
10074
10073
|
exports.TreeSelect = Index$7;
|
10075
10074
|
exports.Upload = Upload;
|
10076
|
-
exports.Video = index$
|
10077
|
-
exports.VideoPlayer = index$
|
10075
|
+
exports.Video = index$6;
|
10076
|
+
exports.VideoPlayer = index$5;
|
10078
10077
|
exports.WDatePicker = Index$6;
|
10079
10078
|
exports.WForm = WForm$1;
|
10080
10079
|
exports.WaterLevelCharts = WaterLevelCharts;
|
10081
10080
|
exports.WebsocketHeart = WebsocketHeart;
|
10082
10081
|
exports.useEventEmitter = useEventEmitter;
|
10083
|
-
exports.wTracing =
|
10082
|
+
exports.wTracing = wTracing;
|
10084
10083
|
exports.whox = create;
|
10085
10084
|
exports.wmox = wmox;
|
@@ -1,20 +1,4 @@
|
|
1
|
-
declare const methods:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
tracePerformance: (eventId: any, options: any) => void;
|
6
|
-
traceCustomEvent: (eventId: any, title: any, params?: {}) => void;
|
7
|
-
tracePageView: (option?: any) => void;
|
8
|
-
};
|
9
|
-
declare const init: (options?: {}) => void;
|
10
|
-
declare const _default: {
|
11
|
-
setCustomerId: (id: any) => void;
|
12
|
-
setUserUuid: (id: any) => void;
|
13
|
-
traceError: (eventId: any, message: any, options?: {}) => void;
|
14
|
-
tracePerformance: (eventId: any, options: any) => void;
|
15
|
-
traceCustomEvent: (eventId: any, title: any, params?: {}) => void;
|
16
|
-
tracePageView: (option?: any) => void;
|
17
|
-
init: (options?: {}) => void;
|
18
|
-
};
|
19
|
-
export default _default;
|
20
|
-
export { init, methods };
|
1
|
+
export declare const methods: any;
|
2
|
+
export declare const init: any;
|
3
|
+
declare const wTracing: any;
|
4
|
+
export default wTracing;
|
package/dist/src/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ import './styles/index-nt.less';
|
|
5
5
|
export { default as useEventEmitter } from '@/hooks/useEventEmitter';
|
6
6
|
export { default as whox } from '@/hooks/whox';
|
7
7
|
export { default as wmox } from '@/hooks/wmox';
|
8
|
-
export { default as wTracing } from '
|
8
|
+
export { default as wTracing } from './components/wTracing';
|
9
9
|
export { default as Button } from './components/Button';
|
10
10
|
export { default as IconFont } from './components/IconFont';
|
11
11
|
export { default as Input } from './components/Input';
|