@atlaskit/editor-plugin-find-replace 1.2.10 → 1.3.1
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/CHANGELOG.md +18 -0
- package/dist/cjs/styles.js +2 -8
- package/dist/cjs/ui/Find.js +29 -80
- package/dist/cjs/ui/FindReplace.js +50 -54
- package/dist/cjs/ui/FindReplaceToolbarButton.js +8 -11
- package/dist/cjs/ui/Replace.js +15 -39
- package/dist/cjs/ui/styles.js +43 -0
- package/dist/es2019/styles.js +3 -9
- package/dist/es2019/ui/Find.js +31 -80
- package/dist/es2019/ui/FindReplace.js +51 -53
- package/dist/es2019/ui/FindReplaceToolbarButton.js +9 -11
- package/dist/es2019/ui/Replace.js +16 -38
- package/dist/es2019/ui/styles.js +43 -0
- package/dist/esm/styles.js +3 -9
- package/dist/esm/ui/Find.js +31 -80
- package/dist/esm/ui/FindReplace.js +51 -53
- package/dist/esm/ui/FindReplaceToolbarButton.js +9 -11
- package/dist/esm/ui/Replace.js +16 -38
- package/dist/esm/ui/styles.js +43 -0
- package/package.json +107 -114
package/dist/esm/ui/styles.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
2
2
|
/* eslint-disable @repo/internal/styles/no-exported-styles */
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css } from '@emotion/react';
|
|
5
6
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
7
|
import { N30A } from '@atlaskit/theme/colors';
|
|
@@ -9,6 +10,8 @@ import { fontSize as getFontSize,
|
|
|
9
10
|
gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
10
11
|
var fontSize = getFontSize();
|
|
11
12
|
var gridSize = getGridSize();
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
15
|
export var ruleStyles = css({
|
|
13
16
|
width: '100%',
|
|
14
17
|
border: 'none',
|
|
@@ -17,67 +20,99 @@ export var ruleStyles = css({
|
|
|
17
20
|
height: '1px',
|
|
18
21
|
borderRadius: '1px'
|
|
19
22
|
});
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
20
25
|
export var wrapperStyles = css({
|
|
21
26
|
display: 'flex',
|
|
22
27
|
flexDirection: 'column',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
29
|
'> *:not(#replace-hr-element)': {
|
|
24
30
|
margin: "0px ".concat("var(--ds-space-050, 4px)")
|
|
25
31
|
}
|
|
26
32
|
});
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
27
35
|
export var wrapperPaddingStyles = css({
|
|
28
36
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
29
37
|
});
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
30
40
|
export var sectionWrapperStyles = css({
|
|
31
41
|
display: 'flex',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
43
|
'& > *': {
|
|
33
44
|
display: 'inline-flex',
|
|
34
45
|
height: '32px',
|
|
35
46
|
flex: '0 0 auto'
|
|
36
47
|
},
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
49
|
'& > [data-ds--text-field--container]': {
|
|
38
50
|
display: 'flex',
|
|
39
51
|
flex: '1 1 auto'
|
|
40
52
|
}
|
|
41
53
|
});
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
42
56
|
export var sectionWrapperStylesAlternate = css({
|
|
43
57
|
display: 'flex',
|
|
44
58
|
padding: "var(--ds-space-100, 8px)",
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
60
|
'& > *': {
|
|
46
61
|
height: 'unset'
|
|
47
62
|
}
|
|
48
63
|
});
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
49
66
|
export var sectionWrapperJustified = css({
|
|
50
67
|
justifyContent: 'space-between',
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
69
|
fontSize: relativeFontSizeToBase16(14)
|
|
52
70
|
});
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
53
73
|
export var textFieldWrapper = css({
|
|
54
74
|
flex: '1 100%',
|
|
55
75
|
flexWrap: 'wrap',
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
56
77
|
'#find-text-field, #replace-text-field': {
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
57
79
|
height: "".concat(gridSize * 4.5 / fontSize, "em")
|
|
58
80
|
},
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
82
|
label: {
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
60
84
|
fontSize: relativeFontSizeToBase16(14),
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
86
|
lineHeight: "".concat(gridSize * 2, "px")
|
|
62
87
|
}
|
|
63
88
|
});
|
|
89
|
+
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
64
91
|
export var afterInputSection = css({
|
|
65
92
|
display: 'flex',
|
|
66
93
|
flex: '0 0 auto',
|
|
67
94
|
alignItems: 'center'
|
|
68
95
|
});
|
|
96
|
+
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
69
98
|
export var matchCaseSection = css({
|
|
70
99
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
71
101
|
button: {
|
|
72
102
|
width: '20px',
|
|
73
103
|
height: '20px'
|
|
74
104
|
}
|
|
75
105
|
});
|
|
106
|
+
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
76
108
|
export var nextPreviousItemStyles = css({
|
|
77
109
|
padding: "0px ".concat("var(--ds-space-025, 2px)")
|
|
78
110
|
});
|
|
111
|
+
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
79
113
|
export var countStyles = css({
|
|
80
114
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
81
116
|
fontSize: "".concat(relativeFontSizeToBase16(12)),
|
|
82
117
|
flex: '0 0 auto',
|
|
83
118
|
justifyContent: 'center',
|
|
@@ -85,17 +120,25 @@ export var countStyles = css({
|
|
|
85
120
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
86
121
|
marginRight: "var(--ds-space-100, 8px)"
|
|
87
122
|
});
|
|
123
|
+
|
|
124
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
88
125
|
export var countStylesAlternateStyles = css({
|
|
89
126
|
display: 'inline-flex',
|
|
90
127
|
height: '32px'
|
|
91
128
|
});
|
|
129
|
+
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
92
131
|
export var countWrapperStyles = css({
|
|
93
132
|
alignItems: 'center'
|
|
94
133
|
});
|
|
134
|
+
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
95
136
|
export var orderZeroStyles = css({
|
|
96
137
|
order: '0',
|
|
97
138
|
marginInline: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-025, 2px)")
|
|
98
139
|
});
|
|
140
|
+
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
99
142
|
export var orderOneStyles = css({
|
|
100
143
|
order: '1'
|
|
101
144
|
});
|
package/package.json
CHANGED
|
@@ -1,115 +1,108 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-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
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"no-unused-dependencies": {
|
|
110
|
-
"exclude": [
|
|
111
|
-
"@atlaskit/editor-plugin-analytics"
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
+
"version": "1.3.1",
|
|
4
|
+
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"inPublicMirror": false,
|
|
13
|
+
"releaseModel": "continuous"
|
|
14
|
+
},
|
|
15
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
|
+
"main": "dist/cjs/index.js",
|
|
17
|
+
"module": "dist/esm/index.js",
|
|
18
|
+
"module:es2019": "dist/es2019/index.js",
|
|
19
|
+
"types": "dist/types/index.d.ts",
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
">=4.5 <4.9": {
|
|
22
|
+
"*": [
|
|
23
|
+
"dist/types-ts4.5/*",
|
|
24
|
+
"dist/types-ts4.5/index.d.ts"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"*.compiled.css"
|
|
30
|
+
],
|
|
31
|
+
"atlaskit:src": "src/index.ts",
|
|
32
|
+
"af:exports": {
|
|
33
|
+
".": "./src/index.ts",
|
|
34
|
+
"./styles": "./src/styles.ts"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@atlaskit/button": "^17.22.0",
|
|
38
|
+
"@atlaskit/editor-common": "^82.9.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
41
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
42
|
+
"@atlaskit/form": "^10.4.0",
|
|
43
|
+
"@atlaskit/icon": "^22.4.0",
|
|
44
|
+
"@atlaskit/primitives": "^8.0.0",
|
|
45
|
+
"@atlaskit/textfield": "^6.4.0",
|
|
46
|
+
"@atlaskit/theme": "^12.10.0",
|
|
47
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
48
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
49
|
+
"@babel/runtime": "^7.0.0",
|
|
50
|
+
"@emotion/react": "^11.7.1",
|
|
51
|
+
"lodash": "^4.17.21",
|
|
52
|
+
"raf-schd": "^4.0.3"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@af/visual-regression": "*",
|
|
56
|
+
"@atlaskit/editor-plugin-block-type": "^3.6.0",
|
|
57
|
+
"@atlaskit/editor-plugin-text-formatting": "^1.7.0",
|
|
58
|
+
"@testing-library/react": "^12.1.5",
|
|
59
|
+
"@testing-library/user-event": "^14.4.3",
|
|
60
|
+
"mockdate": "^3.0.5",
|
|
61
|
+
"raf-stub": "^2.0.1",
|
|
62
|
+
"react-dom": "^16.8.0"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"react": "^16.8.0",
|
|
66
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
67
|
+
},
|
|
68
|
+
"techstack": {
|
|
69
|
+
"@atlassian/frontend": {
|
|
70
|
+
"import-structure": [
|
|
71
|
+
"atlassian-conventions"
|
|
72
|
+
],
|
|
73
|
+
"circular-dependencies": [
|
|
74
|
+
"file-and-folder-level"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"@repo/internal": {
|
|
78
|
+
"dom-events": "use-bind-event-listener",
|
|
79
|
+
"analytics": [
|
|
80
|
+
"analytics-next"
|
|
81
|
+
],
|
|
82
|
+
"design-tokens": [
|
|
83
|
+
"color"
|
|
84
|
+
],
|
|
85
|
+
"theming": [
|
|
86
|
+
"react-context"
|
|
87
|
+
],
|
|
88
|
+
"ui-components": [
|
|
89
|
+
"lite-mode"
|
|
90
|
+
],
|
|
91
|
+
"deprecation": "no-deprecated-imports",
|
|
92
|
+
"styling": [
|
|
93
|
+
"emotion",
|
|
94
|
+
"emotion"
|
|
95
|
+
],
|
|
96
|
+
"imports": [
|
|
97
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"stricter": {
|
|
102
|
+
"no-unused-dependencies": {
|
|
103
|
+
"exclude": [
|
|
104
|
+
"@atlaskit/editor-plugin-analytics"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|