@atlaskit/editor-common 60.1.0 → 61.0.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 +80 -0
- package/card/package.json +7 -0
- package/dist/cjs/card/cardOptions.js +5 -0
- package/dist/cjs/emoji.js +23 -0
- package/dist/cjs/extensions/extension-fields-helpers.js +1 -1
- package/dist/cjs/extensions/index.js +46 -40
- package/dist/cjs/extensions/manifest-helpers.js +3 -1
- package/dist/cjs/extensions/module-helpers.js +3 -1
- package/dist/cjs/extensions/types/field-definitions.js +7 -1
- package/dist/cjs/extensions/types/index.js +14 -8
- package/dist/cjs/extensions.js +38 -32
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/index.js +26 -26
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/in-product.js +14 -14
- package/dist/cjs/index.js +314 -302
- package/dist/cjs/mention.js +23 -0
- package/dist/cjs/messages/codeBidiWarning.js +21 -0
- package/dist/cjs/messages/index.js +8 -0
- package/dist/cjs/provider-factory/context.js +1 -1
- package/dist/cjs/provider-factory.js +6 -6
- package/dist/cjs/provider-helpers/promise-helpers.js +1 -1
- package/dist/cjs/styles/index.js +86 -80
- package/dist/cjs/styles/shared/annotation.js +1 -1
- package/dist/cjs/styles/shared/block-marks.js +1 -1
- package/dist/cjs/styles/shared/media-single.js +1 -1
- package/dist/cjs/styles/shared/panel.js +90 -37
- package/dist/cjs/styles/shared/table.js +3 -3
- package/dist/cjs/type-ahead/index.js +1 -1
- package/dist/cjs/types/annotation/emitter.js +1 -1
- package/dist/cjs/ufo/experience-store.js +160 -0
- package/dist/cjs/ufo/index.js +25 -0
- package/dist/cjs/ui/BaseTheme/index.js +2 -2
- package/dist/cjs/ui/Expand/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/grid.js +2 -2
- package/dist/cjs/ui/MediaSingle/index.js +2 -1
- package/dist/cjs/ui/MediaSingle/styled.js +1 -1
- package/dist/cjs/ui/Messages/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +1 -1
- package/dist/cjs/ui/Popup/utils.js +5 -5
- package/dist/cjs/ui/WidthProvider/index.js +2 -2
- package/dist/cjs/ui/index.js +72 -72
- package/dist/cjs/utils/analytics.js +6 -5
- package/dist/cjs/utils/breakout.js +1 -1
- package/dist/cjs/utils/compareNodes.js +6 -0
- package/dist/cjs/utils/date.js +1 -1
- package/dist/cjs/utils/index.js +129 -107
- package/dist/cjs/utils/performance/measure-tti.js +2 -2
- package/dist/cjs/utils/performance/measure.js +1 -1
- package/dist/cjs/utils/profiler/render-count.js +135 -0
- package/dist/cjs/utils/table.js +1 -1
- package/dist/cjs/utils/validate-using-spec.js +1 -1
- package/dist/cjs/utils/validator.js +47 -27
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/card/cardOptions.js +1 -0
- package/dist/es2019/emoji.js +2 -0
- package/dist/es2019/extensions/index.js +1 -1
- package/dist/es2019/extensions/types/field-definitions.js +3 -0
- package/dist/es2019/extensions/types/index.js +1 -1
- package/dist/es2019/extensions.js +1 -1
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -1
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/index.js +26 -8
- package/dist/es2019/mention.js +2 -0
- package/dist/es2019/messages/codeBidiWarning.js +12 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/styles/index.js +4 -2
- package/dist/es2019/styles/shared/block-marks.js +1 -2
- package/dist/es2019/styles/shared/media-single.js +10 -0
- package/dist/es2019/styles/shared/panel.js +99 -45
- package/dist/es2019/styles/shared/table.js +2 -1
- package/dist/es2019/ufo/experience-store.js +116 -0
- package/dist/es2019/ufo/index.js +1 -0
- package/dist/es2019/ui/index.js +8 -3
- package/dist/es2019/utils/compareNodes.js +6 -0
- package/dist/es2019/utils/index.js +3 -1
- package/dist/es2019/utils/profiler/render-count.js +107 -0
- package/dist/es2019/utils/validator.js +36 -13
- package/dist/es2019/version.json +1 -1
- package/dist/esm/card/cardOptions.js +1 -0
- package/dist/esm/emoji.js +2 -0
- package/dist/esm/extensions/index.js +1 -1
- package/dist/esm/extensions/types/field-definitions.js +3 -0
- package/dist/esm/extensions/types/index.js +1 -1
- package/dist/esm/extensions.js +1 -1
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -1
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/index.js +26 -8
- package/dist/esm/mention.js +2 -0
- package/dist/esm/messages/codeBidiWarning.js +12 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/styles/index.js +4 -2
- package/dist/esm/styles/shared/block-marks.js +1 -1
- package/dist/esm/styles/shared/media-single.js +1 -1
- package/dist/esm/styles/shared/panel.js +84 -37
- package/dist/esm/styles/shared/table.js +2 -2
- package/dist/esm/ufo/experience-store.js +144 -0
- package/dist/esm/ufo/index.js +1 -0
- package/dist/esm/ui/index.js +8 -3
- package/dist/esm/utils/compareNodes.js +6 -0
- package/dist/esm/utils/index.js +3 -1
- package/dist/esm/utils/profiler/render-count.js +123 -0
- package/dist/esm/utils/validator.js +46 -26
- package/dist/esm/version.json +1 -1
- package/dist/types/card/cardOptions.d.ts +9 -0
- package/dist/types/card/index.d.ts +1 -9
- package/dist/types/collab.d.ts +1 -1
- package/dist/types/emoji.d.ts +3 -0
- package/dist/types/extensions/index.d.ts +1 -1
- package/dist/types/extensions/types/extension-handler.d.ts +6 -2
- package/dist/types/extensions/types/extension-parameters.d.ts +1 -0
- package/dist/types/extensions/types/field-definitions.d.ts +2 -0
- package/dist/types/extensions/types/index.d.ts +1 -1
- package/dist/types/extensions.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/mention.d.ts +2 -0
- package/dist/types/messages/codeBidiWarning.d.ts +11 -0
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/provider-factory.d.ts +1 -0
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +2 -0
- package/dist/types/ufo/experience-store.d.ts +33 -0
- package/dist/types/ufo/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/profiler/render-count.d.ts +50 -0
- package/emoji/package.json +7 -0
- package/mention/package.json +7 -0
- package/package.json +29 -17
- package/provider-helpers/package.json +7 -0
- package/types/package.json +7 -0
- package/ufo/package.json +7 -0
- package/ui/package.json +7 -0
- package/utils/package.json +7 -0
- package/dist/cjs/ui/Caption/index.test.js +0 -82
- package/dist/cjs/utils/performance/measure-tti.test.js +0 -183
- package/dist/es2019/ui/Caption/index.test.js +0 -73
- package/dist/es2019/utils/performance/measure-tti.test.js +0 -124
- package/dist/esm/ui/Caption/index.test.js +0 -73
- package/dist/esm/utils/performance/measure-tti.test.js +0 -174
package/dist/esm/ui/index.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
// TODO: ED-13875 Remove Emoji & EmojiProps exports once root entry point for editor-common has been removed
|
|
2
|
+
export { default as Emoji } from './Emoji'; //exported from ./src/emoji.ts
|
|
3
|
+
|
|
4
|
+
//exported from ./src/emoji.ts
|
|
2
5
|
export { default as Caption } from './Caption';
|
|
3
6
|
export { default as MediaSingle, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, shouldAddDefaultWrappedWidth } from './MediaSingle';
|
|
4
7
|
export { MediaSingleDimensionHelper } from './MediaSingle/styled';
|
|
5
8
|
export { layoutSupportsWidth, calcPxFromColumns, calcPctFromPx, calcPxFromPct, calcColumnsFromPx, snapToGrid } from './MediaSingle/grid';
|
|
6
|
-
export { MediaLink } from './MediaSingle/link';
|
|
7
|
-
|
|
9
|
+
export { MediaLink } from './MediaSingle/link'; // TODO: ED-13875 Remove Mention export once root entry point for editor-common has been removed
|
|
10
|
+
|
|
11
|
+
export { default as Mention } from './Mention'; //exported from ./src/mention.ts
|
|
12
|
+
|
|
8
13
|
export { default as Popup, findOverflowScrollParent } from './Popup';
|
|
9
14
|
export { default as UnsupportedBlock } from './UnsupportedBlock';
|
|
10
15
|
export { default as UnsupportedInline } from './UnsupportedInline';
|
|
@@ -135,6 +135,12 @@ function compareValue(valueA, valueB) {
|
|
|
135
135
|
return 0;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
if (typeof valueA === 'string' && typeof valueB === 'string') {
|
|
139
|
+
return valueA.localeCompare(valueB, window.navigator.language, {
|
|
140
|
+
caseFirst: 'upper'
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
|
|
138
144
|
return valueA > valueB ? 1 : -1;
|
|
139
145
|
}
|
|
140
146
|
/**
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -21,4 +21,6 @@ export { compose } from './compose';
|
|
|
21
21
|
export { ZERO_WIDTH_SPACE } from './whitespace';
|
|
22
22
|
export { shouldForceTracking } from './should-force-tracking';
|
|
23
23
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
24
|
-
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
24
|
+
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
25
|
+
export { RenderCountProfiler } from './profiler/render-count';
|
|
26
|
+
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
|
+
|
|
9
|
+
export var PROFILER_KEY = '__editorRenderCountProfiler';
|
|
10
|
+
export var RenderCountProfiler = /*#__PURE__*/function () {
|
|
11
|
+
/**
|
|
12
|
+
* The singleton/cached instance of RenderCountProfiler that will be shared
|
|
13
|
+
* betweenRenderCountProfiler.getInstance() calls
|
|
14
|
+
*/
|
|
15
|
+
function RenderCountProfiler(_ref) {
|
|
16
|
+
var store = _ref.store;
|
|
17
|
+
|
|
18
|
+
_classCallCheck(this, RenderCountProfiler);
|
|
19
|
+
|
|
20
|
+
this.store = store;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns the singleton/cached instance of RenderCountProfiler that
|
|
24
|
+
* currently exists. If it hasn't been instantiated yet, the singleton
|
|
25
|
+
* instance will be created using the given params. Returns the latest
|
|
26
|
+
* singleton/instance.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
_createClass(RenderCountProfiler, [{
|
|
31
|
+
key: "getData",
|
|
32
|
+
value: function getData(profilerKey) {
|
|
33
|
+
var _this$store;
|
|
34
|
+
|
|
35
|
+
return (_this$store = this.store) === null || _this$store === void 0 ? void 0 : _this$store[profilerKey];
|
|
36
|
+
}
|
|
37
|
+
}, {
|
|
38
|
+
key: "enable",
|
|
39
|
+
value: function enable() {
|
|
40
|
+
this.store[PROFILER_KEY] = _objectSpread(_objectSpread({}, this.store[PROFILER_KEY]), {}, {
|
|
41
|
+
enabled: true
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
key: "remove",
|
|
46
|
+
value: function remove() {
|
|
47
|
+
delete this.store[PROFILER_KEY];
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "isEnabled",
|
|
51
|
+
value: function isEnabled() {
|
|
52
|
+
var _this$store2, _this$store2$PROFILER;
|
|
53
|
+
|
|
54
|
+
return Boolean((_this$store2 = this.store) === null || _this$store2 === void 0 ? void 0 : (_this$store2$PROFILER = _this$store2[PROFILER_KEY]) === null || _this$store2$PROFILER === void 0 ? void 0 : _this$store2$PROFILER.enabled);
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
key: "setRenderCount",
|
|
58
|
+
value: function setRenderCount(_ref2) {
|
|
59
|
+
var componentId = _ref2.componentId,
|
|
60
|
+
renderCount = _ref2.renderCount,
|
|
61
|
+
instanceId = _ref2.instanceId;
|
|
62
|
+
var profilerData = this.store[PROFILER_KEY];
|
|
63
|
+
var instance = {
|
|
64
|
+
count: renderCount
|
|
65
|
+
};
|
|
66
|
+
var existingComponents = profilerData === null || profilerData === void 0 ? void 0 : profilerData.components;
|
|
67
|
+
var existingInstances = existingComponents === null || existingComponents === void 0 ? void 0 : existingComponents[componentId];
|
|
68
|
+
|
|
69
|
+
var updatedComponent = _objectSpread(_objectSpread({}, existingInstances), {}, _defineProperty({}, instanceId, instance));
|
|
70
|
+
|
|
71
|
+
this.store[PROFILER_KEY] = _objectSpread(_objectSpread({}, profilerData), {}, {
|
|
72
|
+
components: _objectSpread(_objectSpread({}, existingComponents), {}, _defineProperty({}, componentId, updatedComponent))
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
key: "getInstanceRenderCounters",
|
|
77
|
+
value: function getInstanceRenderCounters(_ref3) {
|
|
78
|
+
var _this$store$PROFILER_, _this$store3, _this$store3$PROFILER, _this$store3$PROFILER2;
|
|
79
|
+
|
|
80
|
+
var componentId = _ref3.componentId;
|
|
81
|
+
var component = (_this$store$PROFILER_ = (_this$store3 = this.store) === null || _this$store3 === void 0 ? void 0 : (_this$store3$PROFILER = _this$store3[PROFILER_KEY]) === null || _this$store3$PROFILER === void 0 ? void 0 : (_this$store3$PROFILER2 = _this$store3$PROFILER.components) === null || _this$store3$PROFILER2 === void 0 ? void 0 : _this$store3$PROFILER2[componentId]) !== null && _this$store$PROFILER_ !== void 0 ? _this$store$PROFILER_ : {};
|
|
82
|
+
var counters = [];
|
|
83
|
+
|
|
84
|
+
for (var _instanceId in component) {
|
|
85
|
+
var counter = {
|
|
86
|
+
instanceId: _instanceId,
|
|
87
|
+
count: component[_instanceId].count
|
|
88
|
+
};
|
|
89
|
+
counters.push(counter);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return counters;
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
key: "getRenderCount",
|
|
96
|
+
value: function getRenderCount(_ref4) {
|
|
97
|
+
var _this$store$PROFILER_2, _this$store4, _this$store4$PROFILER, _this$store4$PROFILER2;
|
|
98
|
+
|
|
99
|
+
var componentId = _ref4.componentId;
|
|
100
|
+
var component = (_this$store$PROFILER_2 = (_this$store4 = this.store) === null || _this$store4 === void 0 ? void 0 : (_this$store4$PROFILER = _this$store4[PROFILER_KEY]) === null || _this$store4$PROFILER === void 0 ? void 0 : (_this$store4$PROFILER2 = _this$store4$PROFILER.components) === null || _this$store4$PROFILER2 === void 0 ? void 0 : _this$store4$PROFILER2[componentId]) !== null && _this$store$PROFILER_2 !== void 0 ? _this$store$PROFILER_2 : {};
|
|
101
|
+
var total = 0;
|
|
102
|
+
|
|
103
|
+
for (var _instanceId2 in component) {
|
|
104
|
+
total += component[_instanceId2].count;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return total;
|
|
108
|
+
}
|
|
109
|
+
}], [{
|
|
110
|
+
key: "getInstance",
|
|
111
|
+
value: function getInstance(params) {
|
|
112
|
+
if (!RenderCountProfiler.instance) {
|
|
113
|
+
RenderCountProfiler.instance = new RenderCountProfiler({
|
|
114
|
+
store: params.store
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return RenderCountProfiler.instance;
|
|
119
|
+
}
|
|
120
|
+
}]);
|
|
121
|
+
|
|
122
|
+
return RenderCountProfiler;
|
|
123
|
+
}();
|
|
@@ -15,7 +15,7 @@ export var ADFStages = {
|
|
|
15
15
|
* It's important that this order follows the marks rank defined here:
|
|
16
16
|
* https://product-fabric.atlassian.net/wiki/spaces/E/pages/11174043/Document+structure#Documentstructure-Rank
|
|
17
17
|
*/
|
|
18
|
-
export var markOrder = ['link', 'em', 'strong', 'textColor', 'strike', 'subsup', 'underline', 'code', 'confluenceInlineComment', 'annotation', 'dataConsumer'];
|
|
18
|
+
export var markOrder = ['fragment', 'link', 'em', 'strong', 'textColor', 'strike', 'subsup', 'underline', 'code', 'confluenceInlineComment', 'annotation', 'dataConsumer'];
|
|
19
19
|
export var isSubSupType = function isSubSupType(type) {
|
|
20
20
|
return type === 'sub' || type === 'sup';
|
|
21
21
|
};
|
|
@@ -348,7 +348,7 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
348
348
|
|
|
349
349
|
case 'caption':
|
|
350
350
|
{
|
|
351
|
-
if (content
|
|
351
|
+
if (content) {
|
|
352
352
|
return {
|
|
353
353
|
type: type,
|
|
354
354
|
content: content
|
|
@@ -358,21 +358,44 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
case '
|
|
361
|
+
case 'mediaInline':
|
|
362
362
|
{
|
|
363
363
|
var mediaId = '';
|
|
364
|
-
var mediaType = '';
|
|
365
364
|
var mediaCollection = [];
|
|
366
|
-
var mediaUrl = '';
|
|
367
365
|
|
|
368
366
|
if (attrs) {
|
|
369
367
|
var id = attrs.id,
|
|
370
|
-
collection = attrs.collection
|
|
368
|
+
collection = attrs.collection;
|
|
369
|
+
mediaId = id;
|
|
370
|
+
mediaCollection = collection;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
if (mediaId && mediaCollection && adfStage === 'stage0') {
|
|
374
|
+
return {
|
|
375
|
+
type: type,
|
|
376
|
+
attrs: attrs,
|
|
377
|
+
marks: marks
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
case 'media':
|
|
385
|
+
{
|
|
386
|
+
var _mediaId = '';
|
|
387
|
+
var mediaType = '';
|
|
388
|
+
var _mediaCollection = [];
|
|
389
|
+
var mediaUrl = '';
|
|
390
|
+
|
|
391
|
+
if (attrs) {
|
|
392
|
+
var _id = attrs.id,
|
|
393
|
+
_collection = attrs.collection,
|
|
371
394
|
_type = attrs.type,
|
|
372
395
|
url = attrs.url;
|
|
373
|
-
|
|
396
|
+
_mediaId = _id;
|
|
374
397
|
mediaType = _type;
|
|
375
|
-
|
|
398
|
+
_mediaCollection = _collection;
|
|
376
399
|
mediaUrl = url;
|
|
377
400
|
}
|
|
378
401
|
|
|
@@ -392,11 +415,11 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
392
415
|
type: type,
|
|
393
416
|
attrs: mediaAttrs
|
|
394
417
|
};
|
|
395
|
-
} else if (
|
|
418
|
+
} else if (_mediaId && mediaType) {
|
|
396
419
|
var _mediaAttrs = {
|
|
397
420
|
type: mediaType,
|
|
398
|
-
id:
|
|
399
|
-
collection:
|
|
421
|
+
id: _mediaId,
|
|
422
|
+
collection: _mediaCollection
|
|
400
423
|
};
|
|
401
424
|
|
|
402
425
|
if (attrs.width) {
|
|
@@ -465,10 +488,10 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
465
488
|
if (attrs) {
|
|
466
489
|
var _text = attrs.text,
|
|
467
490
|
displayName = attrs.displayName,
|
|
468
|
-
|
|
491
|
+
_id2 = attrs.id,
|
|
469
492
|
accessLevel = attrs.accessLevel;
|
|
470
493
|
mentionText = _text || displayName;
|
|
471
|
-
mentionId =
|
|
494
|
+
mentionId = _id2;
|
|
472
495
|
mentionAccess = accessLevel;
|
|
473
496
|
}
|
|
474
497
|
|
|
@@ -617,23 +640,12 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
617
640
|
case 'panel':
|
|
618
641
|
{
|
|
619
642
|
if (attrs && content) {
|
|
620
|
-
var panelType = attrs.panelType
|
|
621
|
-
panelIcon = attrs.panelIcon,
|
|
622
|
-
panelColor = attrs.panelColor;
|
|
643
|
+
var panelType = attrs.panelType;
|
|
623
644
|
|
|
624
645
|
if (Object.values(PanelType).includes(panelType)) {
|
|
625
|
-
// TODO: ED-10445 remove stage0 check
|
|
626
|
-
var _attrs = adfStage === 'stage0' ? {
|
|
627
|
-
panelType: panelType,
|
|
628
|
-
panelIcon: panelIcon,
|
|
629
|
-
panelColor: panelColor
|
|
630
|
-
} : {
|
|
631
|
-
panelType: panelType
|
|
632
|
-
};
|
|
633
|
-
|
|
634
646
|
return {
|
|
635
647
|
type: type,
|
|
636
|
-
attrs:
|
|
648
|
+
attrs: attrs,
|
|
637
649
|
content: content
|
|
638
650
|
};
|
|
639
651
|
}
|
|
@@ -968,6 +980,14 @@ export var getValidMark = function getValidMark(mark) {
|
|
|
968
980
|
attrs: attrs
|
|
969
981
|
};
|
|
970
982
|
}
|
|
983
|
+
|
|
984
|
+
case 'fragment':
|
|
985
|
+
{
|
|
986
|
+
return {
|
|
987
|
+
type: type,
|
|
988
|
+
attrs: attrs
|
|
989
|
+
};
|
|
990
|
+
}
|
|
971
991
|
}
|
|
972
992
|
}
|
|
973
993
|
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Providers } from '../provider-factory';
|
|
2
|
+
export interface CardOptions {
|
|
3
|
+
provider?: Providers['cardProvider'];
|
|
4
|
+
resolveBeforeMacros?: string[];
|
|
5
|
+
allowBlockCards?: boolean;
|
|
6
|
+
allowEmbeds?: boolean;
|
|
7
|
+
allowResizing?: boolean;
|
|
8
|
+
useAlternativePreloader?: boolean;
|
|
9
|
+
}
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface CardOptions {
|
|
3
|
-
provider?: Providers['cardProvider'];
|
|
4
|
-
resolveBeforeMacros?: string[];
|
|
5
|
-
allowBlockCards?: boolean;
|
|
6
|
-
allowEmbeds?: boolean;
|
|
7
|
-
allowResizing?: boolean;
|
|
8
|
-
useAlternativePreloader?: boolean;
|
|
9
|
-
}
|
|
1
|
+
export type { CardOptions } from './cardOptions';
|
package/dist/types/collab.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { CollabEditProvider, CollabEventPresenceData, CollabEvent, CollabEventConnectionData, CollabEventData, CollabEventInitData, CollabEventRemoteData, CollabEventTelepointerData, CollabParticipant, CollabSendableSelection, } from './collab/types';
|
|
1
|
+
export type { CollabEditProvider, CollabEventPresenceData, CollabEvent, CollabEventConnectionData, CollabEventData, CollabEventInitData, CollabEventRemoteData, CollabEventTelepointerData, CollabParticipant, CollabSendableSelection, CollabEventLocalStepData, } from './collab/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { isFieldset, isTabGroup, isExpand, isDateRange } from './types';
|
|
1
|
+
export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './types';
|
|
2
2
|
export type { Extension, ExtensionAutoConvertHandler, ExtensionComponentProps, ExtensionHandler, ExtensionHandlers, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleNode, ExtensionModuleNodes, ExtensionModules, ExtensionParams, ExtensionProvider, ExtensionQuickInsertModule, ExtensionType, ExtensionToolbarButton, ContextualToolbar, ToolbarItem, Icon, MaybeADFEntity, MenuItem, MenuItemMap, UpdateExtension, Parameters, ParametersWithDuplicateFields, BooleanField, CustomField, CustomFieldResolver, UserFieldContext, UserField, UserFieldContextProvider, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, DynamicFieldDefinitions, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, FieldHandlerLink, OnSaveCallback, ExtensionAPI, TransformBefore, TransformAfter, ReferenceEntity, ParametersGetter, AsyncParametersGetter, } from './types';
|
|
3
3
|
export { getExtensionKeyAndNodeKey, resolveImport } from './manifest-helpers';
|
|
4
4
|
export { default as DefaultExtensionProvider } from './default-extension-provider';
|
|
@@ -16,7 +16,9 @@ export declare type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
|
16
16
|
editInContextPanel: (transformBefore: TransformBefore<T>, transformAfter: TransformAfter<T>) => void;
|
|
17
17
|
_editInLegacyMacroBrowser: () => void;
|
|
18
18
|
doc: {
|
|
19
|
-
insertAfter: (localId: string, adf: ADFEntity
|
|
19
|
+
insertAfter: (localId: string, adf: ADFEntity, options?: {
|
|
20
|
+
allowSelectionToNewNode?: boolean;
|
|
21
|
+
}) => void;
|
|
20
22
|
scrollTo: (localId: string) => void;
|
|
21
23
|
};
|
|
22
24
|
};
|
|
@@ -28,6 +30,8 @@ export interface Extension<T extends Parameters = Parameters> {
|
|
|
28
30
|
export interface ExtensionHandlers<T extends Parameters = any> {
|
|
29
31
|
[key: string]: Extension<T> | ExtensionHandler<T>;
|
|
30
32
|
}
|
|
31
|
-
export declare type ReferenceEntity =
|
|
33
|
+
export declare type ReferenceEntity = {
|
|
34
|
+
[prop: string]: ADFEntity | Object;
|
|
35
|
+
};
|
|
32
36
|
export declare type ParametersGetter<T extends Parameters = Parameters> = TransformBefore<T>;
|
|
33
37
|
export declare type AsyncParametersGetter<T extends Parameters = Parameters> = TransformAfter<T>;
|
|
@@ -147,10 +147,12 @@ export interface Fieldset extends BaseFieldDefinition {
|
|
|
147
147
|
export declare type FieldDefinition = NestedFieldDefinition | Fieldset | GroupingField;
|
|
148
148
|
export declare const isFieldset: (field: FieldDefinition) => field is Fieldset;
|
|
149
149
|
export declare const isTabGroup: (field: FieldDefinition) => field is TabGroupField;
|
|
150
|
+
export declare const isTabField: (field: any) => field is TabField;
|
|
150
151
|
export declare const isExpand: (field: FieldDefinition) => field is ExpandField;
|
|
151
152
|
export declare const isDateRange: (value: any) => value is DateRangeResult;
|
|
152
153
|
export interface GroupedField extends BaseFieldDefinition {
|
|
153
154
|
fields: NestedFieldDefinition[];
|
|
155
|
+
hasGroupedValues?: boolean;
|
|
154
156
|
}
|
|
155
157
|
export interface ExpandField extends GroupedField {
|
|
156
158
|
type: 'expand';
|
|
@@ -4,5 +4,5 @@ export type { ExtensionAutoConvertHandler, ExtensionComponentProps, ExtensionKey
|
|
|
4
4
|
export type { ContextualToolbar, ToolbarItem, ExtensionToolbarButton, } from './extension-manifest-toolbar-item';
|
|
5
5
|
export type { Parameters, ParametersWithDuplicateFields, } from './extension-parameters';
|
|
6
6
|
export type { MenuItem, MenuItemMap } from './utils';
|
|
7
|
-
export { isFieldset, isTabGroup, isExpand, isDateRange, } from './field-definitions';
|
|
7
|
+
export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './field-definitions';
|
|
8
8
|
export type { BooleanField, CustomField, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, UserField, UserFieldContext, FieldHandlerLink, } from './field-definitions';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DefaultExtensionProvider, combineExtensionProviders, createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getExtensionKeyAndNodeKey, getExtensionModuleNode, getQuickInsertItemsFromModule, getNodeRenderer, getExtensionModuleNodePrivateProps, getContextualToolbarItemsFromModule, resolveImport, getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, isFieldset, isTabGroup, isExpand, isDateRange, getUserFieldContextProvider, buildMenuItem, } from './extensions/index';
|
|
1
|
+
export { DefaultExtensionProvider, combineExtensionProviders, createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getExtensionKeyAndNodeKey, getExtensionModuleNode, getQuickInsertItemsFromModule, getNodeRenderer, getExtensionModuleNodePrivateProps, getContextualToolbarItemsFromModule, resolveImport, getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, isFieldset, isTabGroup, isTabField, isExpand, isDateRange, getUserFieldContextProvider, buildMenuItem, } from './extensions/index';
|
|
2
2
|
export type { ExtensionAutoConvertHandler, Extension, ExtensionComponentProps, ExtensionHandler, ExtensionHandlers, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleNode, ExtensionModuleNodes, ExtensionQuickInsertModule, ExtensionModules, ExtensionParams, ExtensionProvider, ExtensionType, ExtensionToolbarButton, ToolbarItem, ContextualToolbar, Icon, MaybeADFEntity, MenuItem, MenuItemMap, UpdateExtension, Parameters, ParametersWithDuplicateFields, BooleanField, CustomField, CustomFieldResolver, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, DynamicFieldDefinitions, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, UserField, UserFieldContext, UserFieldContextProvider, FieldHandlerLink, OnSaveCallback, ExtensionAPI, TransformBefore, TransformAfter, ReferenceEntity, ParametersGetter, AsyncParametersGetter, } from './extensions/index';
|
package/dist/types/i18n/cs.d.ts
CHANGED
package/dist/types/i18n/da.d.ts
CHANGED
package/dist/types/i18n/de.d.ts
CHANGED
package/dist/types/i18n/es.d.ts
CHANGED
package/dist/types/i18n/fi.d.ts
CHANGED
package/dist/types/i18n/fr.d.ts
CHANGED
package/dist/types/i18n/hu.d.ts
CHANGED
package/dist/types/i18n/it.d.ts
CHANGED
package/dist/types/i18n/ja.d.ts
CHANGED
package/dist/types/i18n/ko.d.ts
CHANGED
package/dist/types/i18n/nb.d.ts
CHANGED
package/dist/types/i18n/nl.d.ts
CHANGED
package/dist/types/i18n/pl.d.ts
CHANGED
package/dist/types/i18n/ru.d.ts
CHANGED
package/dist/types/i18n/sv.d.ts
CHANGED
package/dist/types/i18n/th.d.ts
CHANGED
package/dist/types/i18n/tr.d.ts
CHANGED
package/dist/types/i18n/uk.d.ts
CHANGED
package/dist/types/i18n/vi.d.ts
CHANGED
package/dist/types/i18n/zh.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ADFTraversor, ErrorReporter, ZERO_WIDTH_SPACE, absoluteBreakoutWidth, browser, calcBreakoutWidth, breakoutConsts, calcTableColumnWidths, calcWideWidth, clearMeasure, compose, convertProsemirrorTableNodeToArrayOfRows, createCompareNodes, findAndTrackUnsupportedContentNodes, getAnalyticsAppearance, analyticsEventKey, getAnalyticsEventSeverity, getUnsupportedContentLevelData, UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS, getExtensionLozengeData, getExtensionRenderer, getMarksByOrder, getModeFromTheme, getResponseEndTime, getValidContent, getValidDocument, getValidMark, getValidNode, getValidUnknownNode, hasMergedCell, isPastDate, isPerformanceAPIAvailable, isPerformanceObserverAvailable, isSameMark, isSubSupType, markOrder, measureRender, startMeasure, stopMeasure, measureTTI, getTTISeverity, TTI_SEVERITY_THRESHOLD_DEFAULTS, TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC, withImageLoader, canApplyAnnotationOnRange, getAnnotationIdsFromRange, SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY, shouldForceTracking, sniffUserBrowserExtensions, } from './utils';
|
|
1
|
+
export { ADFTraversor, ErrorReporter, ZERO_WIDTH_SPACE, absoluteBreakoutWidth, browser, calcBreakoutWidth, breakoutConsts, calcTableColumnWidths, calcWideWidth, clearMeasure, compose, convertProsemirrorTableNodeToArrayOfRows, createCompareNodes, findAndTrackUnsupportedContentNodes, getAnalyticsAppearance, analyticsEventKey, getAnalyticsEventSeverity, getUnsupportedContentLevelData, UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS, getExtensionLozengeData, getExtensionRenderer, getMarksByOrder, getModeFromTheme, getResponseEndTime, getValidContent, getValidDocument, getValidMark, getValidNode, getValidUnknownNode, hasMergedCell, isPastDate, isPerformanceAPIAvailable, isPerformanceObserverAvailable, isSameMark, isSubSupType, markOrder, measureRender, startMeasure, stopMeasure, measureTTI, getTTISeverity, TTI_SEVERITY_THRESHOLD_DEFAULTS, TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC, withImageLoader, canApplyAnnotationOnRange, getAnnotationIdsFromRange, SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY, shouldForceTracking, sniffUserBrowserExtensions, RenderCountProfiler, } from './utils';
|
|
2
2
|
export type { ADDoc, ADFStage, ADFStages, ADMark, ADMarkSimple, ADNode, Date, Diff, ErrorReportingHandler, ImageLoaderProps, ImageLoaderState, ImageStatus, Params, UnsupportedContentPayload, UnsupportedContentTooltipPayload, UnsupportedContentLevelsTracking, UserBrowserExtensionResults, } from './utils';
|
|
3
3
|
export { SortOrder, AnnotationUpdateEmitter, AnnotationUpdateEvent, } from './types';
|
|
4
4
|
export type { Transformer, AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './types';
|
|
@@ -10,8 +10,12 @@ export type { ContextIdentifierProvider } from './provider-factory/context-ident
|
|
|
10
10
|
export { ProviderFactory, WithProviders } from './provider-factory';
|
|
11
11
|
export type { Providers, MediaProvider, SearchProvider, LinkContentType, QuickSearchResult, } from './provider-factory';
|
|
12
12
|
export { combineProviders } from './provider-helpers';
|
|
13
|
-
export { TableSharedCssClassName, blockMarksSharedStyles, blockquoteSharedStyles, calcTableWidth, codeMarkSharedStyles, columnLayoutSharedStyle, dateSharedStyle, DateSharedCssClassName, annotationSharedStyles, AnnotationSharedCSSByState, AnnotationSharedClassNames, headingsSharedStyles, indentationSharedStyles, inlineNodeSharedStyle, linkSharedStyle, listsSharedStyles, richMediaClassName, mediaSingleSharedStyle, getPanelTypeBackground, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, paragraphSharedStyles, ruleSharedStyles, shadowSharedStyle, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginBottom, tableMarginSides, tableMarginTop, tableNewColumnMinWidth, tableResizeHandleWidth, tableSharedStyle, tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, whitespaceSharedStyles, MentionSharedCssClassName,
|
|
14
|
-
|
|
13
|
+
export { TableSharedCssClassName, blockMarksSharedStyles, blockquoteSharedStyles, calcTableWidth, codeMarkSharedStyles, columnLayoutSharedStyle, dateSharedStyle, DateSharedCssClassName, annotationSharedStyles, AnnotationSharedCSSByState, AnnotationSharedClassNames, headingsSharedStyles, indentationSharedStyles, inlineNodeSharedStyle, linkSharedStyle, listsSharedStyles, richMediaClassName, mediaSingleSharedStyle, getPanelTypeBackground, getPanelBackgroundDarkModeColors, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, paragraphSharedStyles, ruleSharedStyles, shadowSharedStyle, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginBottom, tableMarginSides, tableMarginTop, tableNewColumnMinWidth, tableResizeHandleWidth, tableSharedStyle, tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, whitespaceSharedStyles, MentionSharedCssClassName, //exported from ./src/mention.ts
|
|
14
|
+
EmojiSharedCssClassName, //exported from ./src/emoji.ts
|
|
15
|
+
StatusSharedCssClassName, smartCardSharedStyles, SmartCardSharedCssClassName, } from './styles';
|
|
16
|
+
export { BaseTheme, Caption, ClearNextSiblingMarginTop, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, Emoji, //exported from ./src/emoji.ts
|
|
17
|
+
ErrorMessage, ExpandIconWrapper, ExpandLayoutWrapper, HelperMessage, MediaSingle, MediaSingleDimensionHelper, Mention, //exported from ./src/mention.ts
|
|
18
|
+
Popup, UnsupportedBlock, UnsupportedInline, ValidMessage, WidthConsumer, WidthProvider, WithCreateAnalyticsEvent, calcColumnsFromPx, calcPctFromPx, calcPxFromColumns, calcPxFromPct, expandMessages, findOverflowScrollParent, getBreakpoint, layoutSupportsWidth, mapBreakpointToLayoutMaxWidth, overflowShadow, shadowClassNames, sharedExpandStyles, snapToGrid, withOuterListeners, MediaLink, wrappedLayouts, shouldAddDefaultWrappedWidth, } from './ui';
|
|
15
19
|
export type { CardEventClickHandler, CardSurroundings, EmojiProps, EventHandlers, LinkEventClickHandler, MediaSingleDimensionHelperProps, MediaSingleProps, MentionEventHandler, MentionEventHandlers, OverflowShadowOptions, OverflowShadowProps, OverflowShadowState, PopupPosition, PopupProps, SmartCardEventClickHandler, WidthConsumerContext, ExpandStyleProps, } from './ui';
|
|
16
20
|
export { linkMessages } from './messages/link';
|
|
17
21
|
export { validateADFEntity, validationErrorHandler, } from './utils/validate-using-spec';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const codeBidiWarningMessages: {
|
|
2
|
+
/**
|
|
3
|
+
* Message taken from
|
|
4
|
+
* https://hello.atlassian.net/wiki/spaces/~tswan/pages/1366555782/PSHELP-2943+Investigate+Trojan+Source+Attack+Vulnerability+design
|
|
5
|
+
*/
|
|
6
|
+
label: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -10,3 +10,4 @@ export type { CardProvider, CardAppearance, CardAdf, } from './provider-factory/
|
|
|
10
10
|
export type { QuickInsertItem, QuickInsertItemId, QuickInsertActionInsert, QuickInsertProvider, } from './provider-factory/quick-insert-provider';
|
|
11
11
|
export type { TypeAheadItem, TypeAheadItemRenderProps, } from './types/type-ahead';
|
|
12
12
|
export type { AutoformatReplacement, AutoformattingProvider, AutoformatHandler, AutoformatRuleset, } from './provider-factory/autoformatting-provider';
|
|
13
|
+
export type { ContextIdentifierProvider } from './provider-factory/context-identifier-provider';
|