@kaizen/components 1.70.23 → 1.70.24
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/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +0 -1
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/LinkManager.cjs +0 -1
- package/dist/cjs/index.cjs +0 -2
- package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +0 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/LinkManager.mjs +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/styles.css +8508 -8508
- package/dist/types/RichTextEditor/utils/commands/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/RichTextEditor/utils/commands/index.ts +0 -1
- package/dist/cjs/RichTextEditor/utils/commands/fixtures/mockRangeForBoundingRect.cjs +0 -40
- package/dist/esm/RichTextEditor/utils/commands/fixtures/mockRangeForBoundingRect.mjs +0 -38
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var vitest = require('vitest');
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
|
-
/*
|
|
7
|
-
** This is used handle the JSDom type error issue you may encounter in testing
|
|
8
|
-
** See https://github.com/jsdom/jsdom/issues/3002
|
|
9
|
-
*/
|
|
10
|
-
var mockRangeForBoundingRect = function () {
|
|
11
|
-
vitest.vi.spyOn(document, 'createRange').mockImplementation(function () {
|
|
12
|
-
var range = new Range();
|
|
13
|
-
range.getBoundingClientRect = function () {
|
|
14
|
-
return {
|
|
15
|
-
x: 0,
|
|
16
|
-
y: 0,
|
|
17
|
-
bottom: 0,
|
|
18
|
-
height: 0,
|
|
19
|
-
left: 0,
|
|
20
|
-
right: 0,
|
|
21
|
-
top: 0,
|
|
22
|
-
width: 0,
|
|
23
|
-
toJSON: function () {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
range.getClientRects = function () {
|
|
29
|
-
var _a;
|
|
30
|
-
return _a = {
|
|
31
|
-
item: function () {
|
|
32
|
-
return null;
|
|
33
|
-
},
|
|
34
|
-
length: 0
|
|
35
|
-
}, _a[Symbol.iterator] = vitest.vi.fn(), _a;
|
|
36
|
-
};
|
|
37
|
-
return range;
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
exports.mockRangeForBoundingRect = mockRangeForBoundingRect;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { vi } from 'vitest';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
4
|
-
/*
|
|
5
|
-
** This is used handle the JSDom type error issue you may encounter in testing
|
|
6
|
-
** See https://github.com/jsdom/jsdom/issues/3002
|
|
7
|
-
*/
|
|
8
|
-
var mockRangeForBoundingRect = function () {
|
|
9
|
-
vi.spyOn(document, 'createRange').mockImplementation(function () {
|
|
10
|
-
var range = new Range();
|
|
11
|
-
range.getBoundingClientRect = function () {
|
|
12
|
-
return {
|
|
13
|
-
x: 0,
|
|
14
|
-
y: 0,
|
|
15
|
-
bottom: 0,
|
|
16
|
-
height: 0,
|
|
17
|
-
left: 0,
|
|
18
|
-
right: 0,
|
|
19
|
-
top: 0,
|
|
20
|
-
width: 0,
|
|
21
|
-
toJSON: function () {
|
|
22
|
-
return undefined;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
range.getClientRects = function () {
|
|
27
|
-
var _a;
|
|
28
|
-
return _a = {
|
|
29
|
-
item: function () {
|
|
30
|
-
return null;
|
|
31
|
-
},
|
|
32
|
-
length: 0
|
|
33
|
-
}, _a[Symbol.iterator] = vi.fn(), _a;
|
|
34
|
-
};
|
|
35
|
-
return range;
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
export { mockRangeForBoundingRect };
|