@aliyun-sls/utils
Advanced tools
Comparing version
import { History, BrowserHistoryBuildOptions } from 'history'; | ||
import * as _alifd_next_types_balloon from '@alifd/next/types/balloon'; | ||
import React from 'react'; | ||
@@ -156,2 +158,3 @@ declare namespace domUtil { | ||
function getMax(arr: number[]): number; | ||
function getMin(arr: number[]): number; | ||
} | ||
@@ -263,2 +266,5 @@ | ||
interface ProjectList { | ||
projectName: string; | ||
} | ||
declare namespace urlUtil { | ||
@@ -271,2 +277,3 @@ function getQueryString(name: string): string | null; | ||
function getParentUrl(): string; | ||
function getProjectLinkObj(list?: ProjectList[]): {}; | ||
} | ||
@@ -1576,5 +1583,64 @@ | ||
declare type EqualityFn<TFunc extends (...args: any[]) => any> = (newArgs: Parameters<TFunc>, lastArgs: Parameters<TFunc>) => boolean; | ||
declare type MemoizedFn<TFunc extends (this: any, ...args: any[]) => any> = { | ||
clear: () => void; | ||
(this: ThisParameterType<TFunc>, ...args: Parameters<TFunc>): ReturnType<TFunc>; | ||
}; | ||
declare function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>(resultFn: TFunc, cacheKeyConfig?: string | ((...newArgs: any[]) => string), isEqual?: EqualityFn<TFunc>): MemoizedFn<TFunc>; | ||
declare function getPopupStyleCfg(): { | ||
padding: string; | ||
boxShadow: string; | ||
background: string; | ||
color: string; | ||
} | { | ||
padding: string; | ||
boxShadow: string; | ||
background: string; | ||
color?: undefined; | ||
}; | ||
declare function getPluginDescStyleCfg(): { | ||
background: string; | ||
border: string; | ||
} | { | ||
background: string; | ||
border?: undefined; | ||
}; | ||
declare const createRichTextUtils: () => { | ||
text(...args: any): React.DetailedReactHTMLElement<{}, HTMLElement>; | ||
link(text: any, href: string, target: string): React.ReactElement<{ | ||
href: string; | ||
target: string; | ||
}, string | React.JSXElementConstructor<any>>; | ||
gray(text: any): React.DetailedReactHTMLElement<{ | ||
style: { | ||
color: "gray"; | ||
margin: string; | ||
}; | ||
}, HTMLElement>; | ||
red(text: any): React.DetailedReactHTMLElement<{ | ||
style: { | ||
color: "red"; | ||
margin: string; | ||
}; | ||
}, HTMLElement>; | ||
pluginDes(text: any, url: string, target?: string): JSX.Element; | ||
help(text: any, offset?: number): React.CElement<_alifd_next_types_balloon.TooltipProps, _alifd_next_types_balloon.Tooltip>; | ||
tips(text: any, tips: any): React.CElement<_alifd_next_types_balloon.TooltipProps, _alifd_next_types_balloon.Tooltip>; | ||
}; | ||
declare function AnyElement({ children }: { | ||
children: any; | ||
}): any; | ||
declare const VirtualAnyElement: React.FC<{ | ||
name?: string | undefined; | ||
visible?: boolean | undefined; | ||
display?: boolean | undefined; | ||
}>; | ||
declare function getRndInteger(min: number, max: number): number; | ||
declare function getRndString(len: number): string; | ||
declare function addRUMLog(log: Record<string, any>): void; | ||
declare function addRUMError(error: Error): void; | ||
export { _default as AliLogTracker, CloudEnvEmnu, Confirm, GraySwitchItem, ICloudEnv, absoluteTime, addMetricIndex, addRUMError, addRUMLog, addStubForSearch, addStubForUrl, alertAbsoluteAdapter, algorithmUtil, blReport, cancelRequestAnimationFrame, canvasUtil, cleanName, clzClassNameFatory, clzWrapperClassFatory, colorUtil, compareTimeFormat, componentUtil, dateObj2Str, dateObj2StrM, diamondUtil, domUtil, figureConfig, filterDashboardList, formatDate, formateBasicLink, getAlertTimeCon, getAliyunLang, getAppConfig, getConfig, getGraySwitchConfig, getGraySwitchItem, getGraySwitchValue, getHelpDocLink, getHttpsLinksAchor, getIsOpenProjectAlertEnter, getLatestTimeInfo, getLinks, getLocaleMsg, getMd, getOperationLogShipStatus, getRegionName, getRegions, getRequestAnimationFrame, getSlsHost, getStatus, getStatusByKey, history, isDescriptionGrayShow, isFeatureEnable, isFeatureUidEnable, isOpenByGraySwitch, isPrivateEnv, isValidStoreType, logDisplayUtil, matchImgAddress, parseDate, parseDateEnglish, parseDateM, parseDateMEnglish, parseTimeQuery, privateExcluedProps, resetHistory, setConsoleBaseAttr, slsDataHost, start2Text, start2Time, storeTypeToTelemetryType, stringUtil, themeUtil, throttleByAnimationFrame, throttleByAnimationFrameDecorator, timeCon, timeSign2stamp, timeStamp2Chart, timeStamp2showTime, timeUtil, unitUtil, urlUtil, versionTrack, widgetHost }; | ||
export { _default as AliLogTracker, AnyElement, CloudEnvEmnu, Confirm, GraySwitchItem, ICloudEnv, VirtualAnyElement, absoluteTime, addMetricIndex, addRUMError, addRUMLog, addStubForSearch, addStubForUrl, alertAbsoluteAdapter, algorithmUtil, blReport, cancelRequestAnimationFrame, canvasUtil, cleanName, clzClassNameFatory, clzWrapperClassFatory, colorUtil, compareTimeFormat, componentUtil, createRichTextUtils, dateObj2Str, dateObj2StrM, diamondUtil, domUtil, figureConfig, filterDashboardList, formatDate, formateBasicLink, getAlertTimeCon, getAliyunLang, getAppConfig, getConfig, getGraySwitchConfig, getGraySwitchItem, getGraySwitchValue, getHelpDocLink, getHttpsLinksAchor, getIsOpenProjectAlertEnter, getLatestTimeInfo, getLinks, getLocaleMsg, getMd, getOperationLogShipStatus, getPluginDescStyleCfg, getPopupStyleCfg, getRegionName, getRegions, getRequestAnimationFrame, getRndInteger, getRndString, getSlsHost, getStatus, getStatusByKey, history, isDescriptionGrayShow, isFeatureEnable, isFeatureUidEnable, isOpenByGraySwitch, isPrivateEnv, isValidStoreType, logDisplayUtil, matchImgAddress, memoizeOne, parseDate, parseDateEnglish, parseDateM, parseDateMEnglish, parseTimeQuery, privateExcluedProps, resetHistory, setConsoleBaseAttr, slsDataHost, start2Text, start2Time, storeTypeToTelemetryType, stringUtil, themeUtil, throttleByAnimationFrame, throttleByAnimationFrameDecorator, timeCon, timeSign2stamp, timeStamp2Chart, timeStamp2showTime, timeUtil, unitUtil, urlUtil, versionTrack, widgetHost }; |
{ | ||
"name": "@aliyun-sls/utils", | ||
"version": "0.3.10-dev-1", | ||
"version": "0.3.10-dev-10", | ||
"description": "", | ||
@@ -12,5 +12,5 @@ "main": "dist/utils.cjs.js", | ||
"dependencies": { | ||
"@aliyun-sls/cons": "0.3.10-dev-1", | ||
"@aliyun-sls/i18n": "0.3.10-dev-1", | ||
"@aliyun-sls/runtime": "0.3.10-dev-1", | ||
"@aliyun-sls/cons": "0.3.10-dev-10", | ||
"@aliyun-sls/i18n": "0.3.10-dev-10", | ||
"@aliyun-sls/runtime": "0.3.10-dev-10", | ||
"highlight.js": "^10.6.0", | ||
@@ -17,0 +17,0 @@ "history": "^4.9.0", |
Sorry, the diff of this file is too big to display
211533
4.5%6708
4.05%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed