@ax-design/reveal-highlight 0.4.2 → 0.5.3
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/LICENSE +21 -21
- package/README.md +75 -75
- package/build/BaseConfig.d.ts +5 -1
- package/build/BaseConfig.d.ts.map +1 -1
- package/build/CanvasConfig.d.ts +7 -1
- package/build/CanvasConfig.d.ts.map +1 -1
- package/build/ComputedStyleStorage.d.ts.map +1 -1
- package/build/CustomElements.d.ts +20 -4
- package/build/CustomElements.d.ts.map +1 -1
- package/build/RevealBoundryStore.d.ts +4 -0
- package/build/RevealBoundryStore.d.ts.map +1 -1
- package/build/RevealStateManager.d.ts +5 -1
- package/build/RevealStateManager.d.ts.map +1 -1
- package/build/main.js +113 -82
- package/build/utils/types.d.ts +2 -10
- package/build/utils/types.d.ts.map +1 -1
- package/es/BaseConfig.d.ts +46 -42
- package/es/BaseConfig.d.ts.map +1 -1
- package/es/BaseConfig.js +241 -219
- package/es/BaseConfig.js.map +1 -1
- package/es/CanvasConfig.d.ts +21 -15
- package/es/CanvasConfig.d.ts.map +1 -1
- package/es/CanvasConfig.js +332 -320
- package/es/CanvasConfig.js.map +1 -1
- package/es/ComputedStyleStorage.d.ts +8 -8
- package/es/ComputedStyleStorage.d.ts.map +1 -1
- package/es/ComputedStyleStorage.js +68 -58
- package/es/ComputedStyleStorage.js.map +1 -1
- package/es/CustomElements.d.ts +75 -59
- package/es/CustomElements.d.ts.map +1 -1
- package/es/CustomElements.js +296 -233
- package/es/CustomElements.js.map +1 -1
- package/es/Profiler.d.ts +12 -12
- package/es/Profiler.js +31 -31
- package/es/RevealBoundryStore.d.ts +80 -76
- package/es/RevealBoundryStore.d.ts.map +1 -1
- package/es/RevealBoundryStore.js +269 -248
- package/es/RevealBoundryStore.js.map +1 -1
- package/es/RevealStateManager.d.ts +19 -15
- package/es/RevealStateManager.d.ts.map +1 -1
- package/es/RevealStateManager.js +99 -73
- package/es/RevealStateManager.js.map +1 -1
- package/es/SvgConfig.d.ts +16 -16
- package/es/SvgConfig.js +345 -345
- package/es/config.d.ts +4 -4
- package/es/config.js +21 -21
- package/es/index.d.ts +5 -5
- package/es/index.js +205 -205
- package/es/tsconfig.tsbuildinfo +1 -1
- package/es/utils/extractRGBValue.d.ts +1 -1
- package/es/utils/extractRGBValue.js +47 -47
- package/es/utils/isValidateBorderDecorationType.d.ts +2 -2
- package/es/utils/isValidateBorderDecorationType.js +9 -9
- package/es/utils/types.d.ts +94 -102
- package/es/utils/types.d.ts.map +1 -1
- package/es/utils/types.js +1 -1
- package/es/variables.d.ts +1 -1
- package/es/variables.js +1 -1
- package/package.json +35 -34
- package/src/BaseConfig.ts +332 -310
- package/src/CanvasConfig.ts +420 -415
- package/src/ComputedStyleStorage.ts +102 -89
- package/src/CustomElements.ts +344 -272
- package/src/Profiler.ts +44 -44
- package/src/RevealBoundryStore.ts +315 -291
- package/src/RevealStateManager.ts +109 -86
- package/src/SvgConfig.ts +422 -422
- package/src/config.ts +26 -26
- package/src/cssTypedOM.d.ts +52 -52
- package/src/index.ts +219 -219
- package/src/utils/extractRGBValue.ts +58 -58
- package/src/utils/isValidateBorderDecorationType.ts +8 -8
- package/src/utils/types.ts +97 -105
- package/src/variables.ts +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export const extractRGBValue = (x) => {
|
|
2
|
-
if (x === '') {
|
|
3
|
-
return '';
|
|
4
|
-
}
|
|
5
|
-
if (x[0] === '#') {
|
|
6
|
-
// Thanks bro:
|
|
7
|
-
// https://stackoverflow.com/a/11508164/3931936
|
|
8
|
-
const hexVal = parseInt(x.substring(1), 16);
|
|
9
|
-
var r = (hexVal >> 16) & 255;
|
|
10
|
-
var g = (hexVal >> 8) & 255;
|
|
11
|
-
var b = hexVal & 255;
|
|
12
|
-
return r + ',' + g + ',' + b;
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
let result = '';
|
|
16
|
-
let beginSearch = false;
|
|
17
|
-
let numberPointer = 0;
|
|
18
|
-
for (let i = 0; i < x.length; i++) {
|
|
19
|
-
const char = x[i];
|
|
20
|
-
const charCode = char.charCodeAt(0) - 48;
|
|
21
|
-
const charIsNumber = charCode >= 0 && charCode < 10;
|
|
22
|
-
if (char === ' ') {
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
if (beginSearch && !charIsNumber && char !== ',' && char !== ')') {
|
|
26
|
-
throw new SyntaxError(`${x} is not a validate color value!`);
|
|
27
|
-
}
|
|
28
|
-
if (!beginSearch && char === '(') {
|
|
29
|
-
beginSearch = true;
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
if (numberPointer < 2 && char === ')') {
|
|
33
|
-
throw new SyntaxError(`${x} should have at least three color channel`);
|
|
34
|
-
}
|
|
35
|
-
if (char === ',') {
|
|
36
|
-
numberPointer++;
|
|
37
|
-
}
|
|
38
|
-
if (char === ')') {
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
if (beginSearch) {
|
|
42
|
-
result += char;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return result;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
1
|
+
export const extractRGBValue = (x) => {
|
|
2
|
+
if (x === '') {
|
|
3
|
+
return '';
|
|
4
|
+
}
|
|
5
|
+
if (x[0] === '#') {
|
|
6
|
+
// Thanks bro:
|
|
7
|
+
// https://stackoverflow.com/a/11508164/3931936
|
|
8
|
+
const hexVal = parseInt(x.substring(1), 16);
|
|
9
|
+
var r = (hexVal >> 16) & 255;
|
|
10
|
+
var g = (hexVal >> 8) & 255;
|
|
11
|
+
var b = hexVal & 255;
|
|
12
|
+
return r + ',' + g + ',' + b;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
let result = '';
|
|
16
|
+
let beginSearch = false;
|
|
17
|
+
let numberPointer = 0;
|
|
18
|
+
for (let i = 0; i < x.length; i++) {
|
|
19
|
+
const char = x[i];
|
|
20
|
+
const charCode = char.charCodeAt(0) - 48;
|
|
21
|
+
const charIsNumber = charCode >= 0 && charCode < 10;
|
|
22
|
+
if (char === ' ') {
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
if (beginSearch && !charIsNumber && char !== ',' && char !== ')') {
|
|
26
|
+
throw new SyntaxError(`${x} is not a validate color value!`);
|
|
27
|
+
}
|
|
28
|
+
if (!beginSearch && char === '(') {
|
|
29
|
+
beginSearch = true;
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (numberPointer < 2 && char === ')') {
|
|
33
|
+
throw new SyntaxError(`${x} should have at least three color channel`);
|
|
34
|
+
}
|
|
35
|
+
if (char === ',') {
|
|
36
|
+
numberPointer++;
|
|
37
|
+
}
|
|
38
|
+
if (char === ')') {
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
if (beginSearch) {
|
|
42
|
+
result += char;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
48
|
//# sourceMappingURL=extractRGBValue.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BorderDecoration } from './types.js';
|
|
2
|
-
export declare const isValidateBorderDecorationType: (x: string) => x is BorderDecoration;
|
|
1
|
+
import type { BorderDecoration } from './types.js';
|
|
2
|
+
export declare const isValidateBorderDecorationType: (x: string) => x is BorderDecoration;
|
|
3
3
|
//# sourceMappingURL=isValidateBorderDecorationType.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export const isValidateBorderDecorationType = (x) => {
|
|
2
|
-
if (x === 'round')
|
|
3
|
-
return true;
|
|
4
|
-
if (x === 'bevel')
|
|
5
|
-
return true;
|
|
6
|
-
if (x === 'miter')
|
|
7
|
-
return true;
|
|
8
|
-
return false;
|
|
9
|
-
};
|
|
1
|
+
export const isValidateBorderDecorationType = (x) => {
|
|
2
|
+
if (x === 'round')
|
|
3
|
+
return true;
|
|
4
|
+
if (x === 'bevel')
|
|
5
|
+
return true;
|
|
6
|
+
if (x === 'miter')
|
|
7
|
+
return true;
|
|
8
|
+
return false;
|
|
9
|
+
};
|
|
10
10
|
//# sourceMappingURL=isValidateBorderDecorationType.js.map
|
package/es/utils/types.d.ts
CHANGED
|
@@ -1,103 +1,95 @@
|
|
|
1
|
-
export declare type BorderDecoration = 'round' | 'bevel' | 'miter';
|
|
2
|
-
export interface CachedBoundingRect {
|
|
3
|
-
top: number;
|
|
4
|
-
left: number;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}
|
|
8
|
-
export interface CachedStyle {
|
|
9
|
-
color: string;
|
|
10
|
-
opacity: number;
|
|
11
|
-
trueFillRadius: [number, number];
|
|
12
|
-
borderColor: string;
|
|
13
|
-
borderFillRadius: number;
|
|
14
|
-
borderDecorationType: BorderDecoration;
|
|
15
|
-
borderDecorationRadius: number;
|
|
16
|
-
topLeftBorderDecorationRadius: number;
|
|
17
|
-
topRightBorderDecorationRadius: number;
|
|
18
|
-
bottomLeftBorderDecorationRadius: number;
|
|
19
|
-
bottomRightBorderDecorationRadius: number;
|
|
20
|
-
/**
|
|
21
|
-
* @param withLeftBorderFactor
|
|
22
|
-
* If the left border is shown, this value is 1, or the value is 0.
|
|
23
|
-
*/
|
|
24
|
-
withLeftBorderFactor: number;
|
|
25
|
-
/**
|
|
26
|
-
* @param withRightBorderFactor
|
|
27
|
-
* If the right border is shown, this value is 1, or the value is 0.
|
|
28
|
-
*/
|
|
29
|
-
withRightBorderFactor: number;
|
|
30
|
-
/**
|
|
31
|
-
* @param withTopBorderFactor
|
|
32
|
-
* If the top border is shown, this value is 1, or the value is 0.
|
|
33
|
-
*/
|
|
34
|
-
withTopBorderFactor: number;
|
|
35
|
-
/**
|
|
36
|
-
* @param withBottomBorderFactor
|
|
37
|
-
* If the bottom border is shown, this value is 1, or the value is 0.
|
|
38
|
-
*/
|
|
39
|
-
withBottomBorderFactor: number;
|
|
40
|
-
borderWidth: number;
|
|
41
|
-
hoverLight: boolean;
|
|
42
|
-
hoverLightColor: string;
|
|
43
|
-
hoverLightFillMode: string;
|
|
44
|
-
hoverLightFillRadius: number;
|
|
45
|
-
diffuse: boolean;
|
|
46
|
-
pressAnimation: boolean;
|
|
47
|
-
pressAnimationFillMode: string;
|
|
48
|
-
pressAnimationColor: string;
|
|
49
|
-
pressAnimationSpeed: number;
|
|
50
|
-
releaseAnimationAccelerateRate: number;
|
|
51
|
-
}
|
|
52
|
-
interface CachedReveal {
|
|
53
|
-
radius: number;
|
|
54
|
-
radiusFactor: number;
|
|
55
|
-
color: string;
|
|
56
|
-
opacity: number;
|
|
57
|
-
pattern:
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Cached border and body
|
|
61
|
-
* @interface CachedRevealBitmap
|
|
62
|
-
*/
|
|
63
|
-
export interface CachedRevealBitmap {
|
|
64
|
-
cachedReveal: {
|
|
65
|
-
borderReveal: CachedReveal;
|
|
66
|
-
fillReveal: CachedReveal;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
readonly
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
readonly
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
96
|
-
cachedGradientStop: {
|
|
97
|
-
readonly borderReveal: Readonly<[SVGStopElement, SVGStopElement]>;
|
|
98
|
-
readonly fillReveal: Readonly<[SVGStopElement, SVGStopElement]>;
|
|
99
|
-
readonly rippleReveal: Readonly<[SVGStopElement, SVGStopElement, SVGStopElement]>;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
export {};
|
|
1
|
+
export declare type BorderDecoration = 'round' | 'bevel' | 'miter';
|
|
2
|
+
export interface CachedBoundingRect {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export interface CachedStyle {
|
|
9
|
+
color: string;
|
|
10
|
+
opacity: number;
|
|
11
|
+
trueFillRadius: [number, number];
|
|
12
|
+
borderColor: string;
|
|
13
|
+
borderFillRadius: number;
|
|
14
|
+
borderDecorationType: BorderDecoration;
|
|
15
|
+
borderDecorationRadius: number;
|
|
16
|
+
topLeftBorderDecorationRadius: number;
|
|
17
|
+
topRightBorderDecorationRadius: number;
|
|
18
|
+
bottomLeftBorderDecorationRadius: number;
|
|
19
|
+
bottomRightBorderDecorationRadius: number;
|
|
20
|
+
/**
|
|
21
|
+
* @param withLeftBorderFactor
|
|
22
|
+
* If the left border is shown, this value is 1, or the value is 0.
|
|
23
|
+
*/
|
|
24
|
+
withLeftBorderFactor: number;
|
|
25
|
+
/**
|
|
26
|
+
* @param withRightBorderFactor
|
|
27
|
+
* If the right border is shown, this value is 1, or the value is 0.
|
|
28
|
+
*/
|
|
29
|
+
withRightBorderFactor: number;
|
|
30
|
+
/**
|
|
31
|
+
* @param withTopBorderFactor
|
|
32
|
+
* If the top border is shown, this value is 1, or the value is 0.
|
|
33
|
+
*/
|
|
34
|
+
withTopBorderFactor: number;
|
|
35
|
+
/**
|
|
36
|
+
* @param withBottomBorderFactor
|
|
37
|
+
* If the bottom border is shown, this value is 1, or the value is 0.
|
|
38
|
+
*/
|
|
39
|
+
withBottomBorderFactor: number;
|
|
40
|
+
borderWidth: number;
|
|
41
|
+
hoverLight: boolean;
|
|
42
|
+
hoverLightColor: string;
|
|
43
|
+
hoverLightFillMode: string;
|
|
44
|
+
hoverLightFillRadius: number;
|
|
45
|
+
diffuse: boolean;
|
|
46
|
+
pressAnimation: boolean;
|
|
47
|
+
pressAnimationFillMode: string;
|
|
48
|
+
pressAnimationColor: string;
|
|
49
|
+
pressAnimationSpeed: number;
|
|
50
|
+
releaseAnimationAccelerateRate: number;
|
|
51
|
+
}
|
|
52
|
+
interface CachedReveal {
|
|
53
|
+
radius: number;
|
|
54
|
+
radiusFactor: number;
|
|
55
|
+
color: string;
|
|
56
|
+
opacity: number;
|
|
57
|
+
pattern: CanvasGradient | null;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Cached border and body gradient, for faster painting on the canvas.
|
|
61
|
+
* @interface CachedRevealBitmap
|
|
62
|
+
*/
|
|
63
|
+
export interface CachedRevealBitmap {
|
|
64
|
+
cachedReveal: {
|
|
65
|
+
borderReveal: CachedReveal;
|
|
66
|
+
fillReveal: CachedReveal;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Cached border and body pattern, just to store something in similar way.
|
|
71
|
+
* @interface CachedRevealPath
|
|
72
|
+
*/
|
|
73
|
+
export interface CachedRevealPath {
|
|
74
|
+
cachedReveal: {
|
|
75
|
+
readonly borderReveal: CachedReveal;
|
|
76
|
+
readonly fillReveal: CachedReveal;
|
|
77
|
+
};
|
|
78
|
+
cachedPath: {
|
|
79
|
+
readonly borderReveal: SVGPathElement;
|
|
80
|
+
readonly fillReveal: SVGPathElement;
|
|
81
|
+
readonly rippleReveal: SVGPathElement;
|
|
82
|
+
};
|
|
83
|
+
cachedGradient: {
|
|
84
|
+
readonly borderReveal: SVGRadialGradientElement;
|
|
85
|
+
readonly fillReveal: SVGRadialGradientElement;
|
|
86
|
+
readonly rippleReveal: SVGRadialGradientElement;
|
|
87
|
+
};
|
|
88
|
+
cachedGradientStop: {
|
|
89
|
+
readonly borderReveal: Readonly<[SVGStopElement, SVGStopElement]>;
|
|
90
|
+
readonly fillReveal: Readonly<[SVGStopElement, SVGStopElement]>;
|
|
91
|
+
readonly rippleReveal: Readonly<[SVGStopElement, SVGStopElement, SVGStopElement]>;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
103
95
|
//# sourceMappingURL=types.d.ts.map
|
package/es/utils/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,gBAAgB,CAAC;IACvC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,6BAA6B,EAAE,MAAM,CAAC;IACtC,8BAA8B,EAAE,MAAM,CAAC;IACvC,gCAAgC,EAAE,MAAM,CAAC;IACzC,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,mBAAmB,EAAE,MAA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C;QAChE,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC;KACrF,CAAC;CACL"}
|
package/es/utils/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=types.js.map
|
package/es/variables.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const MAGIC_DEFAULT_COLOR = "magic";
|
|
1
|
+
export declare const MAGIC_DEFAULT_COLOR = "magic";
|
|
2
2
|
//# sourceMappingURL=variables.d.ts.map
|
package/es/variables.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const MAGIC_DEFAULT_COLOR = 'magic';
|
|
1
|
+
export const MAGIC_DEFAULT_COLOR = 'magic';
|
|
2
2
|
//# sourceMappingURL=variables.js.map
|
package/package.json
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
"name": "@ax-design/reveal-highlight",
|
|
3
|
+
"version": "0.5.3",
|
|
4
|
+
"description": "Web component that implement Reveal Highlight of Axiom Design System.",
|
|
5
|
+
"main": "build/main.js",
|
|
6
|
+
"module": "es/index.js",
|
|
7
|
+
"typings": "es/index.d.ts",
|
|
8
|
+
"repository": "https://github.com/ax-design/reveal-highlight",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"npm-run-all": "^4.1.5",
|
|
13
|
+
"prettier": "2.5.1",
|
|
14
|
+
"rimraf": "^3.0.2",
|
|
15
|
+
"rollup": "^2.62.0",
|
|
16
|
+
"rollup-plugin-babel-minify": "^10.0.0",
|
|
17
|
+
"rollup-plugin-typescript2": "^0.31.1",
|
|
18
|
+
"typescript": "^4.5.4"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"start": "npm-run-all --parallel start-tsc start-rollup",
|
|
22
|
+
"start-tsc": "tsc --watch",
|
|
23
|
+
"start-rollup": "rollup -c -w",
|
|
24
|
+
"build": "npm-run-all clean --parallel build-tsc build-rollup",
|
|
25
|
+
"build-tsc": "tsc",
|
|
26
|
+
"build-rollup": "rollup -c",
|
|
27
|
+
"clean": "rimraf ./es ./build",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"build",
|
|
32
|
+
"es",
|
|
33
|
+
"src"
|
|
34
|
+
],
|
|
35
|
+
"packageManager": "yarn@3.8.7"
|
|
36
|
+
}
|