@atlaskit/renderer 89.0.0 → 92.0.0
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 +28 -0
- package/dist/cjs/analytics/enums.js +1 -0
- package/dist/cjs/i18n/cs.js +9 -3
- package/dist/cjs/i18n/da.js +9 -3
- package/dist/cjs/i18n/de.js +9 -3
- package/dist/cjs/i18n/en_ZZ.js +28 -0
- package/dist/cjs/i18n/es.js +9 -3
- package/dist/cjs/i18n/fi.js +9 -3
- package/dist/cjs/i18n/fr.js +9 -3
- package/dist/cjs/i18n/hu.js +9 -3
- package/dist/cjs/i18n/it.js +9 -3
- package/dist/cjs/i18n/ja.js +9 -3
- package/dist/cjs/i18n/ko.js +9 -3
- package/dist/cjs/i18n/nb.js +9 -3
- package/dist/cjs/i18n/nl.js +9 -3
- package/dist/cjs/i18n/pl.js +2 -2
- package/dist/cjs/i18n/pt_BR.js +9 -3
- package/dist/cjs/i18n/ru.js +9 -3
- package/dist/cjs/i18n/sv.js +9 -3
- package/dist/cjs/i18n/th.js +9 -3
- package/dist/cjs/i18n/tr.js +9 -3
- package/dist/cjs/i18n/uk.js +9 -3
- package/dist/cjs/i18n/vi.js +9 -3
- package/dist/cjs/i18n/zh.js +9 -3
- package/dist/cjs/i18n/zh_TW.js +9 -3
- package/dist/cjs/react/nodes/codeBlock.js +17 -16
- package/dist/cjs/react/nodes/heading.js +4 -2
- package/dist/cjs/react/nodes/layoutColumn.js +7 -2
- package/dist/cjs/react/nodes/media.js +7 -6
- package/dist/cjs/react/nodes/table/sticky.js +13 -2
- package/dist/cjs/react/utils/inject-props.js +33 -0
- package/dist/cjs/ui/Expand.js +15 -11
- package/dist/cjs/ui/Renderer/index.js +44 -25
- package/dist/cjs/ui/Renderer/style.js +19 -7
- package/dist/cjs/ui/annotations/draft/component.js +22 -12
- package/dist/cjs/ui/annotations/element/mark.js +9 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/i18n/cs.js +9 -3
- package/dist/es2019/i18n/da.js +9 -3
- package/dist/es2019/i18n/de.js +9 -3
- package/dist/es2019/i18n/en_ZZ.js +20 -0
- package/dist/es2019/i18n/es.js +9 -3
- package/dist/es2019/i18n/fi.js +9 -3
- package/dist/es2019/i18n/fr.js +9 -3
- package/dist/es2019/i18n/hu.js +9 -3
- package/dist/es2019/i18n/it.js +9 -3
- package/dist/es2019/i18n/ja.js +9 -3
- package/dist/es2019/i18n/ko.js +9 -3
- package/dist/es2019/i18n/nb.js +9 -3
- package/dist/es2019/i18n/nl.js +9 -3
- package/dist/es2019/i18n/pl.js +2 -2
- package/dist/es2019/i18n/pt_BR.js +9 -3
- package/dist/es2019/i18n/ru.js +9 -3
- package/dist/es2019/i18n/sv.js +9 -3
- package/dist/es2019/i18n/th.js +9 -3
- package/dist/es2019/i18n/tr.js +9 -3
- package/dist/es2019/i18n/uk.js +9 -3
- package/dist/es2019/i18n/vi.js +9 -3
- package/dist/es2019/i18n/zh.js +9 -3
- package/dist/es2019/i18n/zh_TW.js +9 -3
- package/dist/es2019/react/nodes/codeBlock.js +25 -23
- package/dist/es2019/react/nodes/heading.js +4 -2
- package/dist/es2019/react/nodes/layoutColumn.js +7 -3
- package/dist/es2019/react/nodes/media.js +9 -5
- package/dist/es2019/react/nodes/table/sticky.js +16 -5
- package/dist/es2019/react/utils/inject-props.js +24 -0
- package/dist/es2019/ui/Expand.js +17 -12
- package/dist/es2019/ui/Renderer/index.js +45 -25
- package/dist/es2019/ui/Renderer/style.js +40 -24
- package/dist/es2019/ui/annotations/draft/component.js +18 -12
- package/dist/es2019/ui/annotations/element/mark.js +12 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/i18n/cs.js +9 -3
- package/dist/esm/i18n/da.js +9 -3
- package/dist/esm/i18n/de.js +9 -3
- package/dist/esm/i18n/en_ZZ.js +20 -0
- package/dist/esm/i18n/es.js +9 -3
- package/dist/esm/i18n/fi.js +9 -3
- package/dist/esm/i18n/fr.js +9 -3
- package/dist/esm/i18n/hu.js +9 -3
- package/dist/esm/i18n/it.js +9 -3
- package/dist/esm/i18n/ja.js +9 -3
- package/dist/esm/i18n/ko.js +9 -3
- package/dist/esm/i18n/nb.js +9 -3
- package/dist/esm/i18n/nl.js +9 -3
- package/dist/esm/i18n/pl.js +2 -2
- package/dist/esm/i18n/pt_BR.js +9 -3
- package/dist/esm/i18n/ru.js +9 -3
- package/dist/esm/i18n/sv.js +9 -3
- package/dist/esm/i18n/th.js +9 -3
- package/dist/esm/i18n/tr.js +9 -3
- package/dist/esm/i18n/uk.js +9 -3
- package/dist/esm/i18n/vi.js +9 -3
- package/dist/esm/i18n/zh.js +9 -3
- package/dist/esm/i18n/zh_TW.js +9 -3
- package/dist/esm/react/nodes/codeBlock.js +18 -14
- package/dist/esm/react/nodes/heading.js +4 -2
- package/dist/esm/react/nodes/layoutColumn.js +7 -3
- package/dist/esm/react/nodes/media.js +8 -5
- package/dist/esm/react/nodes/table/sticky.js +12 -2
- package/dist/esm/react/utils/inject-props.js +24 -0
- package/dist/esm/ui/Expand.js +16 -12
- package/dist/esm/ui/Renderer/index.js +46 -25
- package/dist/esm/ui/Renderer/style.js +16 -8
- package/dist/esm/ui/annotations/draft/component.js +18 -11
- package/dist/esm/ui/annotations/element/mark.js +11 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/enums.d.ts +1 -0
- package/dist/types/analytics/events.d.ts +6 -1
- package/dist/types/i18n/cs.d.ts +7 -1
- package/dist/types/i18n/da.d.ts +7 -1
- package/dist/types/i18n/de.d.ts +7 -1
- package/dist/types/i18n/en_ZZ.d.ts +20 -0
- package/dist/types/i18n/es.d.ts +7 -1
- package/dist/types/i18n/fi.d.ts +7 -1
- package/dist/types/i18n/fr.d.ts +7 -1
- package/dist/types/i18n/hu.d.ts +7 -1
- package/dist/types/i18n/it.d.ts +7 -1
- package/dist/types/i18n/ja.d.ts +7 -1
- package/dist/types/i18n/ko.d.ts +7 -1
- package/dist/types/i18n/nb.d.ts +7 -1
- package/dist/types/i18n/nl.d.ts +7 -1
- package/dist/types/i18n/pl.d.ts +1 -1
- package/dist/types/i18n/pt_BR.d.ts +7 -1
- package/dist/types/i18n/ru.d.ts +7 -1
- package/dist/types/i18n/sv.d.ts +7 -1
- package/dist/types/i18n/th.d.ts +7 -1
- package/dist/types/i18n/tr.d.ts +7 -1
- package/dist/types/i18n/uk.d.ts +7 -1
- package/dist/types/i18n/vi.d.ts +7 -1
- package/dist/types/i18n/zh.d.ts +7 -1
- package/dist/types/i18n/zh_TW.d.ts +7 -1
- package/dist/types/react/nodes/codeBlock.d.ts +4 -14
- package/dist/types/react/nodes/heading.d.ts +1 -0
- package/dist/types/react/nodes/index.d.ts +1 -13
- package/dist/types/react/nodes/layoutColumn.d.ts +3 -1
- package/dist/types/react/nodes/media.d.ts +3 -1
- package/dist/types/react/utils/inject-props.d.ts +6 -0
- package/dist/types/ui/Expand.d.ts +1 -0
- package/dist/types/ui/Renderer/index.d.ts +5 -3
- package/dist/types/ui/Renderer/style.d.ts +3 -1
- package/dist/types/ui/annotations/draft/component.d.ts +1 -0
- package/dist/types/ui/annotations/element/mark.d.ts +1 -0
- package/package.json +14 -13
|
@@ -15,13 +15,15 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
15
15
|
|
|
16
16
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
17
|
|
|
18
|
+
/** @jsx jsx */
|
|
18
19
|
import React, { useContext, useLayoutEffect, useRef } from 'react';
|
|
20
|
+
import { jsx } from '@emotion/react';
|
|
19
21
|
import { PureComponent } from 'react';
|
|
20
22
|
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema';
|
|
21
23
|
import { reduce } from '@atlaskit/adf-utils';
|
|
22
24
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
23
25
|
import { UnsupportedBlock, BaseTheme, WidthProvider, WithCreateAnalyticsEvent, LegacyToNextIntlProvider, IntlLegacyFallbackProvider, IntlNextErrorBoundary } from '@atlaskit/editor-common/ui';
|
|
24
|
-
import { getAnalyticsAppearance, getAnalyticsEventSeverity, getResponseEndTime, startMeasure, stopMeasure, shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
26
|
+
import { getAnalyticsAppearance, getAnalyticsEventSeverity, getResponseEndTime, startMeasure, stopMeasure, shouldForceTracking, measureTTI } from '@atlaskit/editor-common/utils';
|
|
25
27
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
26
28
|
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
27
29
|
import { IframeWidthObserverFallbackWrapper, IframeWrapperConsumer } from '@atlaskit/width-detector';
|
|
@@ -29,7 +31,7 @@ import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
|
29
31
|
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
30
32
|
import uuid from 'uuid/v4';
|
|
31
33
|
import { ReactSerializer, renderDocument } from '../../';
|
|
32
|
-
import {
|
|
34
|
+
import { DeprecatedWrapper, rendererStyles } from './style';
|
|
33
35
|
import { TruncatedWrapper } from './truncated-wrapper';
|
|
34
36
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics/enums';
|
|
35
37
|
import { PLATFORM, MODE } from '../../analytics/events';
|
|
@@ -102,6 +104,24 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
102
104
|
_this.editorRef = props.innerRef || /*#__PURE__*/React.createRef();
|
|
103
105
|
_this.id = uuid();
|
|
104
106
|
startMeasure("Renderer Render Time: ".concat(_this.id));
|
|
107
|
+
|
|
108
|
+
var _featureFlags = _this.featureFlags(_this.props.featureFlags).featureFlags;
|
|
109
|
+
|
|
110
|
+
if (_featureFlags !== null && _featureFlags !== void 0 && _featureFlags.rendererTtiTracking) {
|
|
111
|
+
measureTTI(function (tti, ttiFromInvocation, canceled) {
|
|
112
|
+
_this.fireAnalyticsEvent({
|
|
113
|
+
action: ACTION.RENDERER_TTI,
|
|
114
|
+
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
115
|
+
attributes: {
|
|
116
|
+
tti: tti,
|
|
117
|
+
ttiFromInvocation: ttiFromInvocation,
|
|
118
|
+
canceled: canceled
|
|
119
|
+
},
|
|
120
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
105
125
|
return _this;
|
|
106
126
|
}
|
|
107
127
|
|
|
@@ -295,17 +315,17 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
295
315
|
onComplete(stat);
|
|
296
316
|
}
|
|
297
317
|
|
|
298
|
-
var rendererOutput =
|
|
318
|
+
var rendererOutput = jsx(RendererContextProvider, {
|
|
299
319
|
value: this.featureFlags(this.props.featureFlags)
|
|
300
|
-
},
|
|
320
|
+
}, jsx(CopyTextProvider, null, jsx(ActiveHeaderIdProvider, {
|
|
301
321
|
value: getActiveHeadingId(allowHeadingAnchorLinks)
|
|
302
|
-
},
|
|
322
|
+
}, jsx(LegacyToNextIntlProvider, null, jsx(IntlLegacyFallbackProvider, null, jsx(AnalyticsContext.Provider, {
|
|
303
323
|
value: {
|
|
304
324
|
fireAnalyticsEvent: function fireAnalyticsEvent(event) {
|
|
305
325
|
return _this3.fireAnalyticsEvent(event);
|
|
306
326
|
}
|
|
307
327
|
}
|
|
308
|
-
},
|
|
328
|
+
}, jsx(SmartCardStorageProvider, null, jsx(RendererWrapper, {
|
|
309
329
|
appearance: appearance,
|
|
310
330
|
dynamicTextSizing: !!allowDynamicTextSizing,
|
|
311
331
|
allowNestedHeaderLinks: allowNestedHeaderLinks,
|
|
@@ -316,14 +336,14 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
316
336
|
innerRef: this.editorRef,
|
|
317
337
|
onClick: handleWrapperOnClick,
|
|
318
338
|
onMouseDown: this.onMouseDownEditView
|
|
319
|
-
}, enableSsrInlineScripts ?
|
|
339
|
+
}, enableSsrInlineScripts ? jsx(BreakoutSSRInlineScript, {
|
|
320
340
|
allowDynamicTextSizing: !!allowDynamicTextSizing
|
|
321
|
-
}) : null,
|
|
341
|
+
}) : null, jsx(RendererActionsInternalUpdater, {
|
|
322
342
|
doc: pmDoc,
|
|
323
343
|
schema: schema,
|
|
324
344
|
onAnalyticsEvent: this.fireAnalyticsEvent
|
|
325
345
|
}, result)))))))));
|
|
326
|
-
return truncated ?
|
|
346
|
+
return truncated ? jsx(TruncatedWrapper, {
|
|
327
347
|
height: maxHeight,
|
|
328
348
|
fadeHeight: fadeOutHeight
|
|
329
349
|
}, rendererOutput) : rendererOutput;
|
|
@@ -332,7 +352,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
332
352
|
onError(e);
|
|
333
353
|
}
|
|
334
354
|
|
|
335
|
-
return
|
|
355
|
+
return jsx(RendererWrapper, {
|
|
336
356
|
appearance: appearance,
|
|
337
357
|
dynamicTextSizing: !!allowDynamicTextSizing,
|
|
338
358
|
allowCopyToClipboard: allowCopyToClipboard,
|
|
@@ -340,7 +360,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
340
360
|
allowColumnSorting: allowColumnSorting,
|
|
341
361
|
allowNestedHeaderLinks: allowNestedHeaderLinks,
|
|
342
362
|
onClick: handleWrapperOnClick
|
|
343
|
-
},
|
|
363
|
+
}, jsx(UnsupportedBlock, null));
|
|
344
364
|
}
|
|
345
365
|
}
|
|
346
366
|
}, {
|
|
@@ -363,7 +383,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
363
383
|
return Renderer;
|
|
364
384
|
}(PureComponent);
|
|
365
385
|
var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
366
|
-
return
|
|
386
|
+
return jsx(FabricEditorAnalyticsContext, {
|
|
367
387
|
data: {
|
|
368
388
|
appearance: getAnalyticsAppearance(props.appearance),
|
|
369
389
|
packageName: name,
|
|
@@ -371,15 +391,15 @@ var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
|
371
391
|
componentName: 'renderer',
|
|
372
392
|
editorSessionId: uuid()
|
|
373
393
|
}
|
|
374
|
-
},
|
|
394
|
+
}, jsx(WithCreateAnalyticsEvent, {
|
|
375
395
|
render: function render(createAnalyticsEvent) {
|
|
376
396
|
// `IntlNextErrorBoundary` only captures Internationalisation errors, leaving others for `ErrorBoundary`.
|
|
377
|
-
return
|
|
397
|
+
return jsx(ErrorBoundary, {
|
|
378
398
|
component: ACTION_SUBJECT.RENDERER,
|
|
379
399
|
rethrowError: true,
|
|
380
400
|
fallbackComponent: null,
|
|
381
401
|
createAnalyticsEvent: createAnalyticsEvent
|
|
382
|
-
},
|
|
402
|
+
}, jsx(IntlNextErrorBoundary, null, jsx(Renderer, _extends({}, props, {
|
|
383
403
|
createAnalyticsEvent: createAnalyticsEvent
|
|
384
404
|
}))));
|
|
385
405
|
}
|
|
@@ -395,22 +415,23 @@ var RendererWithIframeFallbackWrapper = /*#__PURE__*/React.memo(function (props)
|
|
|
395
415
|
subscribe = props.subscribe,
|
|
396
416
|
onClick = props.onClick,
|
|
397
417
|
onMouseDown = props.onMouseDown;
|
|
398
|
-
var renderer =
|
|
418
|
+
var renderer = jsx(WidthProvider, {
|
|
399
419
|
className: "ak-renderer-wrapper"
|
|
400
|
-
},
|
|
420
|
+
}, jsx(BaseTheme, {
|
|
401
421
|
dynamicTextSizing: dynamicTextSizing,
|
|
402
422
|
baseFontSize: !dynamicTextSizing && appearance && appearance !== 'comment' ? akEditorFullPageDefaultFontSize : undefined
|
|
403
|
-
},
|
|
423
|
+
}, jsx(DeprecatedWrapper, {
|
|
404
424
|
innerRef: innerRef,
|
|
405
425
|
appearance: appearance,
|
|
406
426
|
allowNestedHeaderLinks: allowNestedHeaderLinks,
|
|
407
427
|
allowColumnSorting: !!allowColumnSorting,
|
|
408
428
|
onClick: onClick,
|
|
409
|
-
onMouseDown: onMouseDown
|
|
429
|
+
onMouseDown: onMouseDown,
|
|
430
|
+
css: rendererStyles
|
|
410
431
|
}, children)));
|
|
411
432
|
|
|
412
433
|
if (!subscribe) {
|
|
413
|
-
return
|
|
434
|
+
return jsx(IframeWidthObserverFallbackWrapper, null, renderer);
|
|
414
435
|
}
|
|
415
436
|
|
|
416
437
|
return renderer;
|
|
@@ -424,9 +445,9 @@ var RendererWithIframeFallbackWrapper = /*#__PURE__*/React.memo(function (props)
|
|
|
424
445
|
*/
|
|
425
446
|
|
|
426
447
|
export function RendererWrapper(props) {
|
|
427
|
-
return
|
|
448
|
+
return jsx(IframeWrapperConsumer, null, function (_ref) {
|
|
428
449
|
var subscribe = _ref.subscribe;
|
|
429
|
-
return
|
|
450
|
+
return jsx(RendererWithIframeFallbackWrapper, _extends({}, props, {
|
|
430
451
|
subscribe: subscribe
|
|
431
452
|
}));
|
|
432
453
|
});
|
|
@@ -460,16 +481,16 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
|
|
|
460
481
|
var innerRef = props.innerRef || localRef;
|
|
461
482
|
|
|
462
483
|
if (!allowAnnotations) {
|
|
463
|
-
return
|
|
484
|
+
return jsx(RendererWithAnalytics, _extends({
|
|
464
485
|
innerRef: innerRef
|
|
465
486
|
}, props));
|
|
466
487
|
}
|
|
467
488
|
|
|
468
|
-
return
|
|
489
|
+
return jsx(RendererActionsContext, null, jsx(AnnotationsWrapper, {
|
|
469
490
|
rendererRef: innerRef,
|
|
470
491
|
adfDocument: adfDocument,
|
|
471
492
|
annotationProvider: props.annotationProvider
|
|
472
|
-
},
|
|
493
|
+
}, jsx(RendererWithAnalytics, _extends({
|
|
473
494
|
innerRef: innerRef
|
|
474
495
|
}, props))));
|
|
475
496
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
|
-
import styled, { css } from 'styled-components';
|
|
5
|
+
import styled, { css as deprecatedCss } from 'styled-components';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
6
7
|
import { themed } from '@atlaskit/theme/components';
|
|
7
8
|
import { gridSize, fontFamily, fontSize, borderRadius } from '@atlaskit/theme/constants';
|
|
8
9
|
import * as colors from '@atlaskit/theme/colors';
|
|
@@ -40,7 +41,7 @@ export var headingSizes = {
|
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
var headingAnchorStyle = function headingAnchorStyle(headingTag) {
|
|
43
|
-
return
|
|
44
|
+
return deprecatedCss(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /**\n * The copy link button doesn't reserve space in the DOM so that\n * the text alignment isn't impacted by the button/icon's space.\n */\n .", " {\n position: absolute;\n height: ", "em;\n\n margin-left: 6px;\n\n button {\n padding-left: 0;\n padding-right: 0;\n }\n }\n\n /**\n * Applies hover effects to the heading anchor link button\n * to fade in when the user rolls over the heading.\n *\n * The link is persistent on mobile, so we use feature detection\n * to enable hover effects for systems that support it (desktop).\n *\n * @see https://caniuse.com/mdn-css_at-rules_media_hover\n */\n @media (hover: hover) and (pointer: fine) {\n .", " {\n > button {\n opacity: 0;\n transform: translate(-8px, 0px);\n transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;\n }\n }\n\n &:hover {\n .", " > button {\n opacity: 1;\n transform: none !important;\n }\n }\n }\n "])), HeadingAnchorWrapperClassName, headingSizes[headingTag].lineHeight, HeadingAnchorWrapperClassName, HeadingAnchorWrapperClassName);
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
var alignedHeadingAnchorStyle = function alignedHeadingAnchorStyle(_ref) {
|
|
@@ -89,19 +90,26 @@ var fullWidthStyles = function fullWidthStyles(_ref4) {
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
return "\n max-width: ".concat(akEditorFullWidthLayoutWidth, "px;\n margin: 0 auto;\n\n .fabric-editor-breakout-mark,\n .pm-table-container,\n .ak-renderer-extension {\n width: 100% !important;\n }\n ");
|
|
92
|
-
};
|
|
93
|
+
};
|
|
93
94
|
|
|
95
|
+
export var rendererStyles = function rendererStyles(theme) {
|
|
96
|
+
// This is required to be compatible with styled-components prop structure.
|
|
97
|
+
var props = {
|
|
98
|
+
theme: theme
|
|
99
|
+
};
|
|
100
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n\n ", ";\n ", ";\n ", ";\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n /* plugin styles*/\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n ", ";\n "])), tableSharedStyle(props), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(props), paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(props), shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, mediaSingleSharedStyle, columnLayoutSharedStyle);
|
|
101
|
+
}; // prettier-ignore
|
|
94
102
|
|
|
95
|
-
export var
|
|
103
|
+
export var DeprecatedWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n\n\n\n /* Breakout for tables and extensions */\n .", " > {\n * .", " {\n width: 100% !important;\n left: 0 !important;\n }\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n\n\n .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after, &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-child {\n height: 100%;\n\n td, th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid ", ";\n border-bottom: 1px solid ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th, .sticky td {\n box-shadow: 0px 1px ", ", 0px -0.5px ", ", inset -1px 0px ", ", 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", "px;\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n\n &:hover button.copy-to-clipboard, .copy-to-clipboard:focus{\n opacity: 1;\n position: absolute;\n height: 32px;\n width: 32px;\n right: 6px;\n top: 4px;\n padding: 2px;\n }\n }\n\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n }\n"])), editorFontSize, themed({
|
|
96
104
|
light: colors.N800,
|
|
97
105
|
dark: '#B8C7E0'
|
|
98
|
-
}), fullPageStyles, fullWidthStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText,
|
|
106
|
+
}), fullPageStyles, fullWidthStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText, panelSharedStyles, ruleSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
|
|
99
107
|
light: colors.N30A,
|
|
100
108
|
dark: colors.DN70
|
|
101
109
|
}), borderRadius(), themed({
|
|
102
110
|
light: colors.N800,
|
|
103
111
|
dark: colors.DN600
|
|
104
|
-
}), colors.R50, colors.R500, gridSize() * 3, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, alignedHeadingAnchorStyle,
|
|
112
|
+
}), colors.R50, colors.R500, gridSize() * 3, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, alignedHeadingAnchorStyle, RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, tableSortableColumnStyle, RendererCssClassName.NUMBER_COLUMN, themed({
|
|
105
113
|
light: akEditorTableToolbar,
|
|
106
114
|
dark: akEditorTableToolbarDark
|
|
107
115
|
}), themed({
|
|
@@ -128,4 +136,4 @@ export var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedT
|
|
|
128
136
|
}), themed({
|
|
129
137
|
light: akEditorTableToolbar,
|
|
130
138
|
dark: akEditorTableToolbarDark
|
|
131
|
-
}), borderRadius(), blockNodesVerticalMargin,
|
|
139
|
+
}), borderRadius(), blockNodesVerticalMargin, gridSize() * 2.5, gridSize() * 4, gridMediumMaxWidth);
|
|
@@ -3,21 +3,28 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
|
|
4
4
|
var _templateObject;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/** @jsx jsx */
|
|
7
|
+
import React, { Fragment } from 'react';
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import { InsertDraftPosition } from '../types';
|
|
8
10
|
import { AnnotationsDraftContext } from '../context';
|
|
9
11
|
import { splitText, calcTextSplitOffset } from './text';
|
|
10
12
|
import { calcInsertDraftPositionOnText } from './position';
|
|
11
13
|
import { dataAttributes } from './dom';
|
|
12
|
-
import styled from 'styled-components';
|
|
13
14
|
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
var markStyles = function markStyles(props) {
|
|
17
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n ", ";\n"])), AnnotationSharedCSSByState(props).focus);
|
|
18
|
+
};
|
|
19
|
+
|
|
15
20
|
export var AnnotationDraft = function AnnotationDraft(_ref) {
|
|
16
21
|
var draftPosition = _ref.draftPosition,
|
|
17
22
|
children = _ref.children;
|
|
18
|
-
return
|
|
23
|
+
return jsx("mark", _extends({
|
|
19
24
|
"data-renderer-mark": true
|
|
20
|
-
}, dataAttributes(draftPosition)
|
|
25
|
+
}, dataAttributes(draftPosition), {
|
|
26
|
+
css: markStyles
|
|
27
|
+
}), children);
|
|
21
28
|
};
|
|
22
29
|
export var getAnnotationIndex = function getAnnotationIndex(annotationPosition, fragmentCount) {
|
|
23
30
|
if (annotationPosition === InsertDraftPosition.START) {
|
|
@@ -41,13 +48,13 @@ export var applyAnnotationOnText = function applyAnnotationOnText(_ref2) {
|
|
|
41
48
|
var annotateIndex = getAnnotationIndex(shouldApplyAnnotationAt, texts.length);
|
|
42
49
|
return texts.map(function (value, index) {
|
|
43
50
|
if (annotateIndex === index) {
|
|
44
|
-
return
|
|
51
|
+
return jsx(AnnotationDraft, {
|
|
45
52
|
key: index,
|
|
46
53
|
draftPosition: draftPosition
|
|
47
54
|
}, value);
|
|
48
55
|
}
|
|
49
56
|
|
|
50
|
-
return
|
|
57
|
+
return jsx(React.Fragment, {
|
|
51
58
|
key: index
|
|
52
59
|
}, value);
|
|
53
60
|
});
|
|
@@ -72,11 +79,11 @@ export var TextWithAnnotationDraft = function TextWithAnnotationDraft(_ref3) {
|
|
|
72
79
|
}, [nextDraftPosition, textPosition]);
|
|
73
80
|
|
|
74
81
|
if (shouldApplyAnnotationAt === false || !nextDraftPosition) {
|
|
75
|
-
return
|
|
82
|
+
return jsx(Fragment, null, children);
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
if (shouldApplyAnnotationAt === InsertDraftPosition.AROUND_TEXT) {
|
|
79
|
-
return
|
|
86
|
+
return jsx(AnnotationDraft, {
|
|
80
87
|
key: 0,
|
|
81
88
|
draftPosition: nextDraftPosition
|
|
82
89
|
}, children);
|
|
@@ -86,7 +93,7 @@ export var TextWithAnnotationDraft = function TextWithAnnotationDraft(_ref3) {
|
|
|
86
93
|
var texts = splitText(children, offsets);
|
|
87
94
|
|
|
88
95
|
if (!texts) {
|
|
89
|
-
return
|
|
96
|
+
return jsx(Fragment, null, children);
|
|
90
97
|
}
|
|
91
98
|
|
|
92
99
|
var components = applyAnnotationOnText({
|
|
@@ -94,5 +101,5 @@ export var TextWithAnnotationDraft = function TextWithAnnotationDraft(_ref3) {
|
|
|
94
101
|
shouldApplyAnnotationAt: shouldApplyAnnotationAt,
|
|
95
102
|
draftPosition: nextDraftPosition
|
|
96
103
|
});
|
|
97
|
-
return
|
|
104
|
+
return jsx(Fragment, null, components);
|
|
98
105
|
};
|
|
@@ -9,11 +9,16 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
9
9
|
|
|
10
10
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
11
|
|
|
12
|
+
/** @jsx jsx */
|
|
12
13
|
import React, { useMemo, useCallback } from 'react';
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
13
15
|
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
14
16
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
+
|
|
18
|
+
var markStyles = function markStyles(props) {
|
|
19
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState(props).blur, AnnotationSharedCSSByState(props).focus);
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
export var MarkComponent = function MarkComponent(_ref) {
|
|
18
23
|
var annotationParentIds = _ref.annotationParentIds,
|
|
19
24
|
children = _ref.children,
|
|
@@ -47,8 +52,10 @@ export var MarkComponent = function MarkComponent(_ref) {
|
|
|
47
52
|
} : {
|
|
48
53
|
'aria-details': annotationIds.join(', ')
|
|
49
54
|
};
|
|
50
|
-
return
|
|
55
|
+
return jsx("mark", _extends({
|
|
51
56
|
id: id,
|
|
52
57
|
onClick: onMarkClick
|
|
53
|
-
}, accessibility, overriddenData
|
|
58
|
+
}, accessibility, overriddenData, {
|
|
59
|
+
css: markStyles
|
|
60
|
+
}), children);
|
|
54
61
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -7,6 +7,7 @@ export declare enum EVENT_TYPE {
|
|
|
7
7
|
export declare enum ACTION {
|
|
8
8
|
STARTED = "started",
|
|
9
9
|
RENDERED = "rendered",
|
|
10
|
+
RENDERER_TTI = "tti",
|
|
10
11
|
CRASHED = "unhandledErrorCaught",
|
|
11
12
|
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
12
13
|
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
@@ -97,5 +97,10 @@ export declare enum RESOLVE_METHOD {
|
|
|
97
97
|
}
|
|
98
98
|
export declare type AnnotationAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
99
99
|
declare type MediaLnkTransformedAEP = AEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
100
|
-
|
|
100
|
+
declare type RendererTTIAEP = AEP<ACTION.RENDERER_TTI, ACTION_SUBJECT.RENDERER, undefined, {
|
|
101
|
+
tti: number;
|
|
102
|
+
ttiFromInvocation: number;
|
|
103
|
+
canceled: boolean;
|
|
104
|
+
}, EVENT_TYPE.OPERATIONAL>;
|
|
105
|
+
export declare type AnalyticsEventPayload = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | RendererTTIAEP;
|
|
101
106
|
export {};
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
|
+
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
6
|
+
'fabric.editor.headingLink.copied': string;
|
|
7
|
+
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
10
|
+
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* NOTE:
|
|
16
|
+
*
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
18
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
19
|
+
*/
|
|
20
|
+
export default _default;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
package/dist/types/i18n/hu.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|
package/dist/types/i18n/it.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
3
3
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
4
|
+
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
5
|
+
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
4
6
|
'fabric.editor.headingLink.copied': string;
|
|
5
7
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
8
|
+
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
9
|
+
'fabric.editor.headingLink.descOrderLabel': string;
|
|
6
10
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
11
|
+
'fabric.editor.headingLink.noOrderLabel': string;
|
|
12
|
+
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
7
13
|
};
|
|
8
14
|
/**
|
|
9
15
|
* NOTE:
|
|
10
16
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
17
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
18
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
19
|
*/
|
|
14
20
|
export default _default;
|