@atlaskit/editor-common 103.1.3 → 103.3.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/annotation/index.js +16 -1
- package/dist/cjs/annotation/manager.js +243 -0
- package/dist/cjs/hooks/usePluginStateEffect.js +12 -3
- package/dist/cjs/hooks/useSharedPluginState.js +9 -5
- package/dist/cjs/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +9 -3
- package/dist/cjs/i18n/cs.js +9 -24
- package/dist/cjs/i18n/da.js +9 -24
- package/dist/cjs/i18n/de.js +8 -24
- package/dist/cjs/i18n/en.js +9 -24
- package/dist/cjs/i18n/en_GB.js +9 -24
- package/dist/cjs/i18n/en_ZZ.js +9 -24
- package/dist/cjs/i18n/es.js +9 -24
- package/dist/cjs/i18n/fi.js +9 -24
- package/dist/cjs/i18n/fr.js +8 -24
- package/dist/cjs/i18n/hu.js +7 -24
- package/dist/cjs/i18n/it.js +9 -24
- package/dist/cjs/i18n/ja.js +9 -24
- package/dist/cjs/i18n/ko.js +10 -25
- package/dist/cjs/i18n/nb.js +9 -24
- package/dist/cjs/i18n/nl.js +9 -24
- package/dist/cjs/i18n/pl.js +8 -24
- package/dist/cjs/i18n/pt_BR.js +9 -24
- package/dist/cjs/i18n/ru.js +9 -24
- package/dist/cjs/i18n/sv.js +9 -24
- package/dist/cjs/i18n/th.js +9 -24
- package/dist/cjs/i18n/tr.js +9 -24
- package/dist/cjs/i18n/uk.js +9 -24
- package/dist/cjs/i18n/vi.js +10 -24
- package/dist/cjs/i18n/zh.js +9 -24
- package/dist/cjs/i18n/zh_TW.js +9 -24
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/annotation/index.js +22 -0
- package/dist/es2019/annotation/manager.js +196 -0
- package/dist/es2019/hooks/usePluginStateEffect.js +12 -5
- package/dist/es2019/hooks/useSharedPluginState.js +9 -6
- package/dist/es2019/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +9 -5
- package/dist/es2019/i18n/cs.js +9 -24
- package/dist/es2019/i18n/da.js +9 -24
- package/dist/es2019/i18n/de.js +8 -24
- package/dist/es2019/i18n/en.js +9 -24
- package/dist/es2019/i18n/en_GB.js +9 -24
- package/dist/es2019/i18n/en_ZZ.js +9 -24
- package/dist/es2019/i18n/es.js +9 -24
- package/dist/es2019/i18n/fi.js +9 -24
- package/dist/es2019/i18n/fr.js +8 -24
- package/dist/es2019/i18n/hu.js +7 -24
- package/dist/es2019/i18n/it.js +9 -24
- package/dist/es2019/i18n/ja.js +9 -24
- package/dist/es2019/i18n/ko.js +10 -25
- package/dist/es2019/i18n/nb.js +9 -24
- package/dist/es2019/i18n/nl.js +9 -24
- package/dist/es2019/i18n/pl.js +8 -24
- package/dist/es2019/i18n/pt_BR.js +9 -24
- package/dist/es2019/i18n/ru.js +9 -24
- package/dist/es2019/i18n/sv.js +9 -24
- package/dist/es2019/i18n/th.js +9 -24
- package/dist/es2019/i18n/tr.js +9 -24
- package/dist/es2019/i18n/uk.js +9 -24
- package/dist/es2019/i18n/vi.js +10 -24
- package/dist/es2019/i18n/zh.js +9 -24
- package/dist/es2019/i18n/zh_TW.js +9 -24
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/annotation/index.js +23 -1
- package/dist/esm/annotation/manager.js +236 -0
- package/dist/esm/hooks/usePluginStateEffect.js +12 -3
- package/dist/esm/hooks/useSharedPluginState.js +9 -5
- package/dist/esm/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +9 -3
- package/dist/esm/i18n/cs.js +9 -24
- package/dist/esm/i18n/da.js +9 -24
- package/dist/esm/i18n/de.js +8 -24
- package/dist/esm/i18n/en.js +9 -24
- package/dist/esm/i18n/en_GB.js +9 -24
- package/dist/esm/i18n/en_ZZ.js +9 -24
- package/dist/esm/i18n/es.js +9 -24
- package/dist/esm/i18n/fi.js +9 -24
- package/dist/esm/i18n/fr.js +8 -24
- package/dist/esm/i18n/hu.js +7 -24
- package/dist/esm/i18n/it.js +9 -24
- package/dist/esm/i18n/ja.js +9 -24
- package/dist/esm/i18n/ko.js +10 -25
- package/dist/esm/i18n/nb.js +9 -24
- package/dist/esm/i18n/nl.js +9 -24
- package/dist/esm/i18n/pl.js +8 -24
- package/dist/esm/i18n/pt_BR.js +9 -24
- package/dist/esm/i18n/ru.js +9 -24
- package/dist/esm/i18n/sv.js +9 -24
- package/dist/esm/i18n/th.js +9 -24
- package/dist/esm/i18n/tr.js +9 -24
- package/dist/esm/i18n/uk.js +9 -24
- package/dist/esm/i18n/vi.js +10 -24
- package/dist/esm/i18n/zh.js +9 -24
- package/dist/esm/i18n/zh_TW.js +9 -24
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/annotation/index.d.ts +132 -0
- package/dist/types/annotation/manager.d.ts +32 -0
- package/dist/types/hooks/usePluginStateEffect.d.ts +4 -1
- package/dist/types/hooks/useSharedPluginState.d.ts +6 -1
- package/dist/types/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.d.ts +5 -1
- package/dist/types/i18n/cs.d.ts +9 -24
- package/dist/types/i18n/da.d.ts +9 -24
- package/dist/types/i18n/de.d.ts +8 -24
- package/dist/types/i18n/en.d.ts +9 -24
- package/dist/types/i18n/en_GB.d.ts +9 -24
- package/dist/types/i18n/en_ZZ.d.ts +9 -24
- package/dist/types/i18n/es.d.ts +9 -24
- package/dist/types/i18n/fi.d.ts +9 -24
- package/dist/types/i18n/fr.d.ts +8 -24
- package/dist/types/i18n/hu.d.ts +7 -24
- package/dist/types/i18n/it.d.ts +9 -24
- package/dist/types/i18n/ja.d.ts +9 -24
- package/dist/types/i18n/ko.d.ts +9 -24
- package/dist/types/i18n/nb.d.ts +9 -24
- package/dist/types/i18n/nl.d.ts +9 -24
- package/dist/types/i18n/pl.d.ts +8 -24
- package/dist/types/i18n/pt_BR.d.ts +9 -24
- package/dist/types/i18n/ru.d.ts +9 -24
- package/dist/types/i18n/sv.d.ts +9 -24
- package/dist/types/i18n/th.d.ts +9 -24
- package/dist/types/i18n/tr.d.ts +9 -24
- package/dist/types/i18n/uk.d.ts +9 -24
- package/dist/types/i18n/vi.d.ts +10 -24
- package/dist/types/i18n/zh.d.ts +9 -24
- package/dist/types/i18n/zh_TW.d.ts +9 -24
- package/dist/types/types/annotation/index.d.ts +2 -0
- package/dist/types/types/floating-toolbar.d.ts +9 -0
- package/dist/types-ts4.5/annotation/index.d.ts +132 -0
- package/dist/types-ts4.5/annotation/manager.d.ts +32 -0
- package/dist/types-ts4.5/hooks/usePluginStateEffect.d.ts +4 -1
- package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +6 -1
- package/dist/types-ts4.5/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.d.ts +5 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +9 -24
- package/dist/types-ts4.5/i18n/da.d.ts +9 -24
- package/dist/types-ts4.5/i18n/de.d.ts +8 -24
- package/dist/types-ts4.5/i18n/en.d.ts +9 -24
- package/dist/types-ts4.5/i18n/en_GB.d.ts +9 -24
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +9 -24
- package/dist/types-ts4.5/i18n/es.d.ts +9 -24
- package/dist/types-ts4.5/i18n/fi.d.ts +9 -24
- package/dist/types-ts4.5/i18n/fr.d.ts +8 -24
- package/dist/types-ts4.5/i18n/hu.d.ts +7 -24
- package/dist/types-ts4.5/i18n/it.d.ts +9 -24
- package/dist/types-ts4.5/i18n/ja.d.ts +9 -24
- package/dist/types-ts4.5/i18n/ko.d.ts +9 -24
- package/dist/types-ts4.5/i18n/nb.d.ts +9 -24
- package/dist/types-ts4.5/i18n/nl.d.ts +9 -24
- package/dist/types-ts4.5/i18n/pl.d.ts +8 -24
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +9 -24
- package/dist/types-ts4.5/i18n/ru.d.ts +9 -24
- package/dist/types-ts4.5/i18n/sv.d.ts +9 -24
- package/dist/types-ts4.5/i18n/th.d.ts +9 -24
- package/dist/types-ts4.5/i18n/tr.d.ts +9 -24
- package/dist/types-ts4.5/i18n/uk.d.ts +9 -24
- package/dist/types-ts4.5/i18n/vi.d.ts +10 -24
- package/dist/types-ts4.5/i18n/zh.d.ts +9 -24
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +9 -24
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137860](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137860)
|
|
8
|
+
[`04e753d1ba0f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04e753d1ba0f4) -
|
|
9
|
+
Created a new Annotation manager implementation and interface and updated CCFE to create and share
|
|
10
|
+
this instance around
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 103.2.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [#139035](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139035)
|
|
21
|
+
[`12b5ec79724e4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/12b5ec79724e4) -
|
|
22
|
+
Add disabled option to useSharedPluginState, useSharedPluginStateSelector and usePluginStateEffect
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#139053](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139053)
|
|
27
|
+
[`c1c6278a78c4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1c6278a78c4a) -
|
|
28
|
+
[ux] Adds a new temporary floating toolbar's config option to hide any toolbars when any table's
|
|
29
|
+
menu is opend.
|
|
30
|
+
|
|
3
31
|
## 103.1.3
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.AnnotationUpdateEmitter = void 0;
|
|
8
|
+
exports.createAnnotationManager = createAnnotationManager;
|
|
8
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
@@ -12,6 +13,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
12
13
|
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
13
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
15
|
var _events = require("events");
|
|
16
|
+
var _manager = require("./manager");
|
|
15
17
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
16
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
19
|
function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
@@ -32,4 +34,17 @@ var AnnotationUpdateEmitter = exports.AnnotationUpdateEmitter = /*#__PURE__*/fun
|
|
|
32
34
|
return _superPropGet(AnnotationUpdateEmitter, "removeListener", this, 3)([event, listener]);
|
|
33
35
|
}
|
|
34
36
|
}]);
|
|
35
|
-
}(_events.EventEmitter);
|
|
37
|
+
}(_events.EventEmitter); // type ActionResult = { step: Step; doc: JSONDocNode } | false;
|
|
38
|
+
// } & AnnotationByMatches)
|
|
39
|
+
// | false;
|
|
40
|
+
// ### Events
|
|
41
|
+
// ### Hook Results
|
|
42
|
+
/**
|
|
43
|
+
* This is the list of methods which exist on the Manager interface. These are the methods that can be hooked into.
|
|
44
|
+
*/
|
|
45
|
+
/*
|
|
46
|
+
* This is the public interface for the AnnotationManager. It provides methods for interacting with the manager.
|
|
47
|
+
*/
|
|
48
|
+
function createAnnotationManager() {
|
|
49
|
+
return new _manager.SharedAnnotationManager();
|
|
50
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SharedAnnotationManager = void 0;
|
|
8
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _events = require("events");
|
|
12
|
+
var SharedAnnotationManager = exports.SharedAnnotationManager = /*#__PURE__*/function () {
|
|
13
|
+
function SharedAnnotationManager() {
|
|
14
|
+
(0, _classCallCheck2.default)(this, SharedAnnotationManager);
|
|
15
|
+
/**
|
|
16
|
+
* This is the event emitter that is used to emit events from the manager. It is used to communicate with
|
|
17
|
+
* other parts of the application.
|
|
18
|
+
*/
|
|
19
|
+
(0, _defineProperty2.default)(this, "emitter", new _events.EventEmitter());
|
|
20
|
+
/**
|
|
21
|
+
* This is the map of hooks that can be added to the manager. Hooks are a 1:1 mapping of methods that can be
|
|
22
|
+
* called on the manager. They are used to extend the functionality of the manager.
|
|
23
|
+
*/
|
|
24
|
+
(0, _defineProperty2.default)(this, "hooks", new Map());
|
|
25
|
+
(0, _defineProperty2.default)(this, "preemptiveGate", function () {
|
|
26
|
+
return Promise.resolve(true);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return (0, _createClass2.default)(SharedAnnotationManager, [{
|
|
30
|
+
key: "setPreemptiveGate",
|
|
31
|
+
value: function setPreemptiveGate(handler) {
|
|
32
|
+
this.preemptiveGate = handler;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
key: "checkPreemptiveGate",
|
|
37
|
+
value: function checkPreemptiveGate() {
|
|
38
|
+
return this.preemptiveGate();
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
key: "onDraftAnnotationStarted",
|
|
42
|
+
value: function onDraftAnnotationStarted(handler) {
|
|
43
|
+
this.emitter.on('draftAnnotationStarted', handler);
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "offDraftAnnotationStarted",
|
|
48
|
+
value: function offDraftAnnotationStarted(handler) {
|
|
49
|
+
this.emitter.off('draftAnnotationStarted', handler);
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
key: "onAnnotationSelectionChange",
|
|
54
|
+
value: function onAnnotationSelectionChange(handler) {
|
|
55
|
+
this.emitter.on('annotationSelectionChanged', handler);
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
key: "offAnnotationSelectionChange",
|
|
60
|
+
value: function offAnnotationSelectionChange(handler) {
|
|
61
|
+
this.emitter.off('annotationSelectionChanged', handler);
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "emit",
|
|
66
|
+
value: function emit(event) {
|
|
67
|
+
this.emitter.emit(event.name, event.data);
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "hook",
|
|
72
|
+
value: function hook(method, handler) {
|
|
73
|
+
this.hooks.set(method, handler);
|
|
74
|
+
return this;
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
key: "unhook",
|
|
78
|
+
value: function unhook(method, handler) {
|
|
79
|
+
if (!this.hooks.has(method) || this.hooks.get(method) !== handler) {
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
this.hooks.delete(method);
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
}, {
|
|
86
|
+
key: "allowAnnotation",
|
|
87
|
+
value: function allowAnnotation() {
|
|
88
|
+
var fn = this.hooks.get('allowAnnotation');
|
|
89
|
+
if (!fn) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
try {
|
|
93
|
+
return fn();
|
|
94
|
+
} catch (error) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
key: "startDraft",
|
|
100
|
+
value: function startDraft() {
|
|
101
|
+
var fn = this.hooks.get('startDraft');
|
|
102
|
+
if (!fn) {
|
|
103
|
+
return {
|
|
104
|
+
success: false,
|
|
105
|
+
reason: 'manager-not-initialized'
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
var result = fn();
|
|
110
|
+
if (result.success) {
|
|
111
|
+
this.emitter.emit('draftAnnotationStarted', {
|
|
112
|
+
targetElement: result.targetElement,
|
|
113
|
+
inlineNodeTypes: result.inlineNodeTypes,
|
|
114
|
+
actionResult: result.actionResult
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return result;
|
|
118
|
+
} catch (error) {
|
|
119
|
+
return {
|
|
120
|
+
success: false,
|
|
121
|
+
reason: 'hook-execution-error'
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
key: "clearDraft",
|
|
127
|
+
value: function clearDraft() {
|
|
128
|
+
var fn = this.hooks.get('clearDraft');
|
|
129
|
+
if (!fn) {
|
|
130
|
+
return {
|
|
131
|
+
success: false,
|
|
132
|
+
reason: 'manager-not-initialized'
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
try {
|
|
136
|
+
return fn();
|
|
137
|
+
} catch (error) {
|
|
138
|
+
return {
|
|
139
|
+
success: false,
|
|
140
|
+
reason: 'hook-execution-error'
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, {
|
|
145
|
+
key: "applyDraft",
|
|
146
|
+
value: function applyDraft(id) {
|
|
147
|
+
var fn = this.hooks.get('applyDraft');
|
|
148
|
+
if (!fn) {
|
|
149
|
+
return {
|
|
150
|
+
success: false,
|
|
151
|
+
reason: 'manager-not-initialized'
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
return fn(id);
|
|
156
|
+
} catch (error) {
|
|
157
|
+
return {
|
|
158
|
+
success: false,
|
|
159
|
+
reason: 'hook-execution-error'
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
key: "getDraft",
|
|
165
|
+
value: function getDraft() {
|
|
166
|
+
var fn = this.hooks.get('getDraft');
|
|
167
|
+
if (!fn) {
|
|
168
|
+
return {
|
|
169
|
+
success: false,
|
|
170
|
+
reason: 'manager-not-initialized'
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
try {
|
|
174
|
+
return fn();
|
|
175
|
+
} catch (error) {
|
|
176
|
+
return {
|
|
177
|
+
success: false,
|
|
178
|
+
reason: 'hook-execution-error'
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "setIsAnnotationSelected",
|
|
184
|
+
value: function setIsAnnotationSelected(id, isSelected) {
|
|
185
|
+
var fn = this.hooks.get('setIsAnnotationSelected');
|
|
186
|
+
if (!fn) {
|
|
187
|
+
return {
|
|
188
|
+
success: false,
|
|
189
|
+
reason: 'manager-not-initialized'
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
try {
|
|
193
|
+
// NOTE: The hook needs to manage the firing the annotationSelectionChanged event when a change is made. This is
|
|
194
|
+
// because the hook is responsible for the state of the selection. The manager is not responsible for the state of
|
|
195
|
+
// the selection.
|
|
196
|
+
return fn(id, isSelected);
|
|
197
|
+
} catch (error) {
|
|
198
|
+
return {
|
|
199
|
+
success: false,
|
|
200
|
+
reason: 'hook-execution-error'
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
key: "setIsAnnotationHovered",
|
|
206
|
+
value: function setIsAnnotationHovered(id, isHovered) {
|
|
207
|
+
var fn = this.hooks.get('setIsAnnotationHovered');
|
|
208
|
+
if (!fn) {
|
|
209
|
+
return {
|
|
210
|
+
success: false,
|
|
211
|
+
reason: 'manager-not-initialized'
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
try {
|
|
215
|
+
return fn(id, isHovered);
|
|
216
|
+
} catch (error) {
|
|
217
|
+
return {
|
|
218
|
+
success: false,
|
|
219
|
+
reason: 'hook-execution-error'
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}, {
|
|
224
|
+
key: "clearAnnotation",
|
|
225
|
+
value: function clearAnnotation(id) {
|
|
226
|
+
var fn = this.hooks.get('clearAnnotation');
|
|
227
|
+
if (!fn) {
|
|
228
|
+
return {
|
|
229
|
+
success: false,
|
|
230
|
+
reason: 'manager-not-initialized'
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
try {
|
|
234
|
+
return fn(id);
|
|
235
|
+
} catch (error) {
|
|
236
|
+
return {
|
|
237
|
+
success: false,
|
|
238
|
+
reason: 'hook-execution-error'
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}]);
|
|
243
|
+
}();
|
|
@@ -86,6 +86,7 @@ function useStaticPlugins(plugins) {
|
|
|
86
86
|
* You can return a function from your effect to call any cleanup activities which will be called on unmount and when `editorApi` changes.
|
|
87
87
|
*/
|
|
88
88
|
function usePluginStateEffect(injectionApi, plugins, effect) {
|
|
89
|
+
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
89
90
|
var pluginNames = useStaticPlugins(plugins);
|
|
90
91
|
|
|
91
92
|
// Create a memoized object containing the named plugins
|
|
@@ -94,9 +95,10 @@ function usePluginStateEffect(injectionApi, plugins, effect) {
|
|
|
94
95
|
return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, "".concat(String(pluginName), "State"), injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]));
|
|
95
96
|
}, {});
|
|
96
97
|
}, [injectionApi, pluginNames]);
|
|
97
|
-
usePluginStateEffectInternal(namedExternalPlugins, effect);
|
|
98
|
+
usePluginStateEffectInternal(namedExternalPlugins, effect, options);
|
|
98
99
|
}
|
|
99
100
|
function usePluginStateEffectInternal(externalPlugins, effect) {
|
|
101
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
100
102
|
var refStates = (0, _react.useRef)();
|
|
101
103
|
var cleanup = (0, _react.useRef)();
|
|
102
104
|
var latestEffect = (0, _react.useRef)(effect);
|
|
@@ -104,13 +106,20 @@ function usePluginStateEffectInternal(externalPlugins, effect) {
|
|
|
104
106
|
// We should store the latest effect in a reference so it is more intuitive to the user
|
|
105
107
|
// and we are not causing a memory leak by having references to old state.
|
|
106
108
|
(0, _react.useEffect)(function () {
|
|
109
|
+
if (options.disabled) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
107
112
|
latestEffect.current = (0, _debounce.default)(effect);
|
|
108
113
|
return function () {
|
|
109
114
|
latestEffect.current = undefined;
|
|
110
115
|
};
|
|
111
|
-
}, [effect]);
|
|
116
|
+
}, [effect, options.disabled]);
|
|
112
117
|
(0, _react.useLayoutEffect)(function () {
|
|
113
118
|
var _latestEffect$current;
|
|
119
|
+
if (options.disabled) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
|
|
114
123
|
// Update the reference for this plugin and activate the effect
|
|
115
124
|
refStates.current = mapValues(externalPlugins, function (value) {
|
|
116
125
|
return value === null || value === void 0 ? void 0 : value.sharedState.currentState();
|
|
@@ -141,5 +150,5 @@ function usePluginStateEffectInternal(externalPlugins, effect) {
|
|
|
141
150
|
};
|
|
142
151
|
// Do not re-run if the `effect` changes - this is not expected with `useEffect` or similar hooks
|
|
143
152
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
144
|
-
}, [externalPlugins]);
|
|
153
|
+
}, [externalPlugins, options.disabled]);
|
|
145
154
|
}
|
|
@@ -41,7 +41,6 @@ function useStaticPlugins(plugins) {
|
|
|
41
41
|
return plugins;
|
|
42
42
|
}, []);
|
|
43
43
|
}
|
|
44
|
-
|
|
45
44
|
/**
|
|
46
45
|
*
|
|
47
46
|
* NOTE: Generally you may want to use `usePluginStateSelector` over this which behaves similarly
|
|
@@ -103,10 +102,11 @@ function useStaticPlugins(plugins) {
|
|
|
103
102
|
*
|
|
104
103
|
* @param injectionApi Plugin injection API from `NextEditorPlugin`
|
|
105
104
|
* @param plugins Plugin names to get the shared plugin state for
|
|
105
|
+
* @param options The useSharedPluginState options
|
|
106
106
|
* @returns A corresponding object, the keys are names of the plugin with `State` appended,
|
|
107
107
|
* the values are the shared state exposed by that plugin.
|
|
108
108
|
*/
|
|
109
|
-
function useSharedPluginState(injectionApi, plugins) {
|
|
109
|
+
function useSharedPluginState(injectionApi, plugins, options) {
|
|
110
110
|
var pluginNames = useStaticPlugins(plugins);
|
|
111
111
|
|
|
112
112
|
// Create a memoized object containing the named plugins
|
|
@@ -115,11 +115,12 @@ function useSharedPluginState(injectionApi, plugins) {
|
|
|
115
115
|
return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, "".concat(String(pluginName), "State"), injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]));
|
|
116
116
|
}, {});
|
|
117
117
|
}, [injectionApi, pluginNames]);
|
|
118
|
-
return useSharedPluginStateInternal(namedExternalPlugins);
|
|
118
|
+
return useSharedPluginStateInternal(namedExternalPlugins, options);
|
|
119
119
|
}
|
|
120
120
|
function useSharedPluginStateInternal(externalPlugins) {
|
|
121
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
121
122
|
var _useState = (0, _react.useState)(mapValues(externalPlugins, function (value) {
|
|
122
|
-
return value === null || value === void 0 ? void 0 : value.sharedState.currentState();
|
|
123
|
+
return options.disabled ? undefined : value === null || value === void 0 ? void 0 : value.sharedState.currentState();
|
|
123
124
|
})),
|
|
124
125
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
125
126
|
pluginStates = _useState2[0],
|
|
@@ -127,6 +128,9 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
127
128
|
var refStates = (0, _react.useRef)({});
|
|
128
129
|
var mounted = (0, _react.useRef)(false);
|
|
129
130
|
(0, _react.useLayoutEffect)(function () {
|
|
131
|
+
if (options.disabled) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
130
134
|
var debouncedPluginStateUpdate = (0, _debounce.default)(function () {
|
|
131
135
|
setPluginState(function (currentPluginStates) {
|
|
132
136
|
return _objectSpread(_objectSpread({}, currentPluginStates), refStates.current);
|
|
@@ -166,6 +170,6 @@ function useSharedPluginStateInternal(externalPlugins) {
|
|
|
166
170
|
// Do not re-render due to state changes, we only need to check this when
|
|
167
171
|
// setting up the initial subscription.
|
|
168
172
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
169
|
-
}, [externalPlugins]);
|
|
173
|
+
}, [externalPlugins, options.disabled]);
|
|
170
174
|
return pluginStates;
|
|
171
175
|
}
|
|
@@ -81,9 +81,11 @@ var _usePluginStateEffect = require("../usePluginStateEffect");
|
|
|
81
81
|
*
|
|
82
82
|
* @param api
|
|
83
83
|
* @param plugin
|
|
84
|
+
* @param options
|
|
84
85
|
* @returns
|
|
85
86
|
*/
|
|
86
87
|
function useSharedPluginStateSelector(api, plugin) {
|
|
88
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
87
89
|
var transformer = (0, _react.useCallback)(function (pluginState) {
|
|
88
90
|
var _plugin$split = plugin.split('.'),
|
|
89
91
|
_plugin$split2 = (0, _toArray2.default)(_plugin$split),
|
|
@@ -102,14 +104,18 @@ function useSharedPluginStateSelector(api, plugin) {
|
|
|
102
104
|
}, [plugin]);
|
|
103
105
|
var initialState = (0, _react.useMemo)(function () {
|
|
104
106
|
var _api$pluginName;
|
|
107
|
+
if (options.disabled) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
105
110
|
var _plugin$split5 = plugin.split('.'),
|
|
106
111
|
_plugin$split6 = (0, _slicedToArray2.default)(_plugin$split5, 1),
|
|
107
112
|
pluginName = _plugin$split6[0];
|
|
108
113
|
return transformer((0, _defineProperty2.default)({}, "".concat(pluginName, "State"), api === null || api === void 0 || (_api$pluginName = api[pluginName]) === null || _api$pluginName === void 0 ? void 0 : _api$pluginName.sharedState.currentState()));
|
|
109
|
-
}, [plugin, api, transformer]);
|
|
110
|
-
return useSharedPluginStateSelectorInternal(api, pluginNameArray, transformer, initialState);
|
|
114
|
+
}, [plugin, api, options.disabled, transformer]);
|
|
115
|
+
return useSharedPluginStateSelectorInternal(api, pluginNameArray, transformer, initialState, options);
|
|
111
116
|
}
|
|
112
117
|
function useSharedPluginStateSelectorInternal(api, plugins, transformer, initialState) {
|
|
118
|
+
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
113
119
|
var _useState = (0, _react.useState)(initialState),
|
|
114
120
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
115
121
|
selectedPluginState = _useState2[0],
|
|
@@ -120,6 +126,6 @@ function useSharedPluginStateSelectorInternal(api, plugins, transformer, initial
|
|
|
120
126
|
if (!(0, _isEqual.default)(transformedValue, selectedPluginState)) {
|
|
121
127
|
setSelectedPluginState(transformedValue);
|
|
122
128
|
}
|
|
123
|
-
});
|
|
129
|
+
}, options);
|
|
124
130
|
return selectedPluginState;
|
|
125
131
|
}
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -38,6 +38,7 @@ var _default = exports.default = {
|
|
|
38
38
|
'fabric.editor.ai.atlas-prebuilt.atlasGenerateContentConfigItemDescription': 'Generuje obsah, který má být vložen do aktualizace.',
|
|
39
39
|
'fabric.editor.ai.atlas-prebuilt.atlasSummarizePageConfigItemDescription': 'Shrne obsah aktualizace.',
|
|
40
40
|
'fabric.editor.ai.commandPalette.promptBuilderForm.buttons.submit': 'Generovat',
|
|
41
|
+
'fabric.editor.ai.commandPalette.promptBuilderForm.generateContent.ariaLabel': 'Zeptejte se Atlassian Intelligence.',
|
|
41
42
|
'fabric.editor.ai.config.item.action.insert': 'Vložit',
|
|
42
43
|
'fabric.editor.ai.config.item.action.insertAtTop': 'Vložit nahoru',
|
|
43
44
|
'fabric.editor.ai.config.item.action.insertBelow': 'Vložit pod',
|
|
@@ -45,29 +46,6 @@ var _default = exports.default = {
|
|
|
45
46
|
'fabric.editor.ai.config.item.action.replaceTitle': 'Nahradit název',
|
|
46
47
|
'fabric.editor.ai.config.item.action.replaceTitleTooLongDisabledTooltip': 'Název nesmí mít více znaků než {maxLength}.',
|
|
47
48
|
'fabric.editor.ai.config.item.action.rovoAgents.continueInChatLabel': 'Otevřít v chatu',
|
|
48
|
-
'fabric.editor.ai.config.item.advanced-prompt.form.instructions.label': 'Pokyny',
|
|
49
|
-
'fabric.editor.ai.config.item.advancedPrompt.description': 'Upřesněte úkol, pokyny a pravidla',
|
|
50
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.label': 'Kreativita',
|
|
51
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.high': 'Vysoká',
|
|
52
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.low': 'Nízká',
|
|
53
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.medium': 'Střední',
|
|
54
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.instructions.helperMessage': 'Příklad: 1. Na začátku dokumentu uveďte stručný přehled cílů naší společnosti. 2. Vytvořte seznam klíčových členů týmu, se kterými se během prvního týdne setkají.',
|
|
55
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.instructions.placeholder': 'Zajistěte pokyny k úkolům, které pomohou generovat konkrétní výstupy.',
|
|
56
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.rules.helperMessage': 'Příklad: Výstup musí být v souladu s pokyny společnosti pro styl a nesmějí používat neověřené údaje.',
|
|
57
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.rules.label': 'Pravidla',
|
|
58
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.rules.placeholder': 'Uveďte pravidla, která mají dodržovat.',
|
|
59
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.error.required': 'Zadejte úkol',
|
|
60
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.helperMessage': 'Příklad: Vytvořte nástupní dokumentaci pro nové zaměstnance, kteří se připojují k týmu.',
|
|
61
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.label': 'Úkol',
|
|
62
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.placeholder': 'Popište úkol, který je třeba dokončit.',
|
|
63
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.label': 'Tón',
|
|
64
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.casual': 'Neformální',
|
|
65
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.educational': 'Vzdělávací',
|
|
66
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.empathetic': 'Empatický',
|
|
67
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.neutral': 'Neutrální',
|
|
68
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.professional': 'Profesionální',
|
|
69
|
-
'fabric.editor.ai.config.item.advancedPrompt.promptLabel': 'Vytvořte pokročilou výzvu',
|
|
70
|
-
'fabric.editor.ai.config.item.advancedPrompt.title': 'Vytvořte pokročilou výzvu',
|
|
71
49
|
'fabric.editor.ai.config.item.agent.title': 'Atlassian Intelligence – Agent Rovo',
|
|
72
50
|
'fabric.editor.ai.config.item.atlas-shorten-update.description': 'Zkrátí obsah, aby byl stručnější.',
|
|
73
51
|
'fabric.editor.ai.config.item.atlas-shorten-update.title': 'Zkrátit aktualizaci',
|
|
@@ -230,7 +208,6 @@ var _default = exports.default = {
|
|
|
230
208
|
'fabric.editor.ai.experience.suggestionGroupHeading.knowledgeSource': 'Zdroj znalostí',
|
|
231
209
|
'fabric.editor.ai.experience.suggestionGroupHeading.rovoAgents': 'Agenti Rovo',
|
|
232
210
|
'fabric.editor.ai.experience.suggestionGroupHeading.rovoAgentsCount': 'Agenti Rovo ({numberOfAgents})',
|
|
233
|
-
'fabric.editor.ai.experience.suggestionGroupHeading.studio': 'Studio',
|
|
234
211
|
'fabric.editor.ai.experience.suggestionGroupHeading.useRovoAgentsCount': 'Použijte agenta Rovo ({numberOfAgents})',
|
|
235
212
|
'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel': 'Použít obecné znalosti',
|
|
236
213
|
'fabric.editor.ai.experience.useRovoOrganisationKnowledgeLabel': 'Použít znalosti z vaší organizace',
|
|
@@ -427,6 +404,7 @@ var _default = exports.default = {
|
|
|
427
404
|
'fabric.editor.errorPanel.description': 'Chyby zobrazit v barevném panelu',
|
|
428
405
|
'fabric.editor.expand': 'Rozbalení',
|
|
429
406
|
'fabric.editor.expand.description': 'Vložit rozbalení',
|
|
407
|
+
'fabric.editor.expandAriaLabel': 'Dejte rozbalenému obsahu název.',
|
|
430
408
|
'fabric.editor.expandDefaultTitle': 'Klikněte sem pro rozbalení...',
|
|
431
409
|
'fabric.editor.expandNode': 'Rozbalit obsah',
|
|
432
410
|
'fabric.editor.expandPlaceholder': 'Dejte rozbalenému obsahu název...',
|
|
@@ -436,6 +414,7 @@ var _default = exports.default = {
|
|
|
436
414
|
'fabric.editor.extension.deleteElementTitle': 'Odstranit prvek',
|
|
437
415
|
'fabric.editor.extension.sourceNoTitledName': 'tento prvek',
|
|
438
416
|
'fabric.editor.extensions.config-panel.save-indicator': 'Všechny změny jsou vždy automaticky ukládány',
|
|
417
|
+
'fabric.editor.externalExtensionsHeading': 'Aplikace',
|
|
439
418
|
'fabric.editor.externalMediaFile': 'Externí multimediální soubor',
|
|
440
419
|
'fabric.editor.failed_to_upload': 'Nahrání se nezdařilo',
|
|
441
420
|
'fabric.editor.feedbackDialog': 'Poskytnout zpětnou vazbu',
|
|
@@ -547,6 +526,7 @@ var _default = exports.default = {
|
|
|
547
526
|
'fabric.editor.lists': 'Seznamy',
|
|
548
527
|
'fabric.editor.listsFormat': 'Formátování seznamu',
|
|
549
528
|
'fabric.editor.lockColumns': 'Pevné šířky sloupců',
|
|
529
|
+
'fabric.editor.longEmptyNodePlaceholderText': 'Zadáním znaku / můžete vkládat prvky.',
|
|
550
530
|
'fabric.editor.markdown': 'Snížení',
|
|
551
531
|
'fabric.editor.matchCase': 'Rozlišovat malá a velká písmena',
|
|
552
532
|
'fabric.editor.media.DefaultMediaWidthDecreased': '{newMediaWidth, plural, one {Šířka multimédia byla snížena na {newMediaWidth,number} pixel.} few {Šířka multimédia byla snížena na {newMediaWidth,number} pixely.} many {Šířka multimédia byla snížena na {newMediaWidth,number} pixelu.} other {Šířka multimédia byla snížena na {newMediaWidth,number} pixelů.}}',
|
|
@@ -615,6 +595,7 @@ var _default = exports.default = {
|
|
|
615
595
|
'fabric.editor.orderedList.description': 'Vytvořit seřazený seznam',
|
|
616
596
|
'fabric.editor.other': 'Jiné…',
|
|
617
597
|
'fabric.editor.outdent': 'Zmenšit odsazení',
|
|
598
|
+
'fabric.editor.overflowMenuViewMore': 'Zobrazit více',
|
|
618
599
|
'fabric.editor.pageActionsLabel': 'Akce stránky',
|
|
619
600
|
'fabric.editor.panel': 'Panel',
|
|
620
601
|
'fabric.editor.panel.backgroundColor': 'Barva pozadí',
|
|
@@ -664,6 +645,7 @@ var _default = exports.default = {
|
|
|
664
645
|
'fabric.editor.selectTableRow': 'Vybrat řádek tabulky',
|
|
665
646
|
'fabric.editor.selectionExtensionDropdownButtonLabel': 'Vybrat aplikaci',
|
|
666
647
|
'fabric.editor.settingsLinks': 'Přejít do předvoleb odkazů',
|
|
648
|
+
'fabric.editor.shortEmptyNodePlaceholderText': '/ pro vložení',
|
|
667
649
|
'fabric.editor.shortcut': 'Textový zástupce',
|
|
668
650
|
'fabric.editor.single': 'Rozvržení jediného sloupce',
|
|
669
651
|
'fabric.editor.singleColumns': 'Rozvržení 1 sloupce',
|
|
@@ -727,8 +709,11 @@ var _default = exports.default = {
|
|
|
727
709
|
'fabric.editor.time.ago': 'zpět',
|
|
728
710
|
'fabric.editor.time.updated': 'Aktualizováno',
|
|
729
711
|
'fabric.editor.time.viewed': 'Zobrazeno',
|
|
712
|
+
'fabric.editor.toolbarAppears': 'Zobrazí se panel nástrojů',
|
|
730
713
|
'fabric.editor.toolbarLabel': 'Editor',
|
|
731
714
|
'fabric.editor.toolbarMediaTitle': 'Přidat obrázek, video nebo soubor',
|
|
715
|
+
'fabric.editor.toolbarPositionFixedAtTop': 'Uchyceno nahoře',
|
|
716
|
+
'fabric.editor.toolbarPositionInline': 'Zarovnáno s textem',
|
|
732
717
|
'fabric.editor.tooltip.blockPanel': 'panel',
|
|
733
718
|
'fabric.editor.tooltip.bulletList': 'seznam',
|
|
734
719
|
'fabric.editor.tooltip.decisionList': 'seznam rozhodnutí',
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -38,6 +38,7 @@ var _default = exports.default = {
|
|
|
38
38
|
'fabric.editor.ai.atlas-prebuilt.atlasGenerateContentConfigItemDescription': 'Genererer indhold, der skal sættes ind i opdateringen',
|
|
39
39
|
'fabric.editor.ai.atlas-prebuilt.atlasSummarizePageConfigItemDescription': 'Opsummerer opdateringens indhold',
|
|
40
40
|
'fabric.editor.ai.commandPalette.promptBuilderForm.buttons.submit': 'Generér',
|
|
41
|
+
'fabric.editor.ai.commandPalette.promptBuilderForm.generateContent.ariaLabel': 'Spørg Atlassian Intelligence',
|
|
41
42
|
'fabric.editor.ai.config.item.action.insert': 'Indsæt',
|
|
42
43
|
'fabric.editor.ai.config.item.action.insertAtTop': 'Indsæt foroven',
|
|
43
44
|
'fabric.editor.ai.config.item.action.insertBelow': 'Indsæt nedenfor',
|
|
@@ -45,29 +46,6 @@ var _default = exports.default = {
|
|
|
45
46
|
'fabric.editor.ai.config.item.action.replaceTitle': 'Erstat titel',
|
|
46
47
|
'fabric.editor.ai.config.item.action.replaceTitleTooLongDisabledTooltip': 'Titlen må højst indeholde {maxLength} tegn',
|
|
47
48
|
'fabric.editor.ai.config.item.action.rovoAgents.continueInChatLabel': 'Åbn i chat',
|
|
48
|
-
'fabric.editor.ai.config.item.advanced-prompt.form.instructions.label': 'Instruktioner',
|
|
49
|
-
'fabric.editor.ai.config.item.advancedPrompt.description': 'Angiv opgave, instruktioner og regler',
|
|
50
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.label': 'Kreativitet',
|
|
51
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.high': 'Høj',
|
|
52
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.low': 'Lav',
|
|
53
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.medium': 'Middel',
|
|
54
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.instructions.helperMessage': 'For eksempel: 1. Start dokumentet med et kort overblik over vores virksomheds mål. 2. Opret en liste over vigtige teammedlemmer, som de skal møde i deres første uge.',
|
|
55
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.instructions.placeholder': 'Giv opgaveinstruktioner for at hjælpe med at generere specifikke output.',
|
|
56
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.rules.helperMessage': 'For eksempel: Outputtet skal følge retningslinjerne for virksomhedens stil og må ikke bruge ubekræftede data.',
|
|
57
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.rules.label': 'Regler',
|
|
58
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.rules.placeholder': 'Beskriv eventuelle regler, du vil have skal følges.',
|
|
59
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.error.required': 'Angiv opgave',
|
|
60
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.helperMessage': 'For eksempel: Opret onboarding-dokumentation for nye medarbejdere, der slutter sig til teamet.',
|
|
61
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.label': 'Opgave',
|
|
62
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.task.placeholder': 'Beskriv den opgave, der skal udføres.',
|
|
63
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.label': 'Tone',
|
|
64
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.casual': 'Afslappet',
|
|
65
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.educational': 'Pædagogisk',
|
|
66
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.empathetic': 'Empatisk',
|
|
67
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.neutral': 'Neutral',
|
|
68
|
-
'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.professional': 'Professionel',
|
|
69
|
-
'fabric.editor.ai.config.item.advancedPrompt.promptLabel': 'Generér en avanceret prompt',
|
|
70
|
-
'fabric.editor.ai.config.item.advancedPrompt.title': 'Generér en avanceret prompt',
|
|
71
49
|
'fabric.editor.ai.config.item.agent.title': 'Atlassian Intelligence Rovo-medarbejder',
|
|
72
50
|
'fabric.editor.ai.config.item.atlas-shorten-update.description': 'Forkorter indholdet for at gøre det mere kortfattet',
|
|
73
51
|
'fabric.editor.ai.config.item.atlas-shorten-update.title': 'Forkort opdateringen',
|
|
@@ -229,7 +207,6 @@ var _default = exports.default = {
|
|
|
229
207
|
'fabric.editor.ai.experience.suggestionGroupHeading.knowledgeSource': 'Videnskilde',
|
|
230
208
|
'fabric.editor.ai.experience.suggestionGroupHeading.rovoAgents': 'Rovo-medarbejdere',
|
|
231
209
|
'fabric.editor.ai.experience.suggestionGroupHeading.rovoAgentsCount': 'Rovo-medarbejdere ({numberOfAgents})',
|
|
232
|
-
'fabric.editor.ai.experience.suggestionGroupHeading.studio': 'Studio',
|
|
233
210
|
'fabric.editor.ai.experience.suggestionGroupHeading.useRovoAgentsCount': 'Brug en Rovo-medarbejder ({numberOfAgents})',
|
|
234
211
|
'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel': 'Brug generel viden',
|
|
235
212
|
'fabric.editor.ai.experience.useRovoOrganisationKnowledgeLabel': 'Brug viden fra din organisation',
|
|
@@ -426,6 +403,7 @@ var _default = exports.default = {
|
|
|
426
403
|
'fabric.editor.errorPanel.description': 'Vis fejl i et farvel panel',
|
|
427
404
|
'fabric.editor.expand': 'Udvid',
|
|
428
405
|
'fabric.editor.expand.description': 'Indsæt en udvidelse',
|
|
406
|
+
'fabric.editor.expandAriaLabel': 'Giv denne udvidelse en titel',
|
|
429
407
|
'fabric.editor.expandDefaultTitle': 'Klik her for at udvide...',
|
|
430
408
|
'fabric.editor.expandNode': 'Udvid indhold',
|
|
431
409
|
'fabric.editor.expandPlaceholder': 'Giv denne udvidelse en titel...',
|
|
@@ -435,6 +413,7 @@ var _default = exports.default = {
|
|
|
435
413
|
'fabric.editor.extension.deleteElementTitle': 'Slet element',
|
|
436
414
|
'fabric.editor.extension.sourceNoTitledName': 'dette element',
|
|
437
415
|
'fabric.editor.extensions.config-panel.save-indicator': 'Alle ændringer gemmes altid automatisk',
|
|
416
|
+
'fabric.editor.externalExtensionsHeading': 'Apps',
|
|
438
417
|
'fabric.editor.externalMediaFile': 'Ekstern mediefil',
|
|
439
418
|
'fabric.editor.failed_to_upload': 'Upload mislykkedes',
|
|
440
419
|
'fabric.editor.feedbackDialog': 'Giv feedback',
|
|
@@ -546,6 +525,7 @@ var _default = exports.default = {
|
|
|
546
525
|
'fabric.editor.lists': 'Liste',
|
|
547
526
|
'fabric.editor.listsFormat': 'Listeformatering',
|
|
548
527
|
'fabric.editor.lockColumns': 'Faste søjlebredder',
|
|
528
|
+
'fabric.editor.longEmptyNodePlaceholderText': 'Skriv / for at indsætte elementer',
|
|
549
529
|
'fabric.editor.markdown': 'Markdown',
|
|
550
530
|
'fabric.editor.matchCase': 'Match store/små bogstaver',
|
|
551
531
|
'fabric.editor.media.DefaultMediaWidthDecreased': '{newMediaWidth, plural, one {Mediebredde reduceret til {newMediaWidth,number} pixel.} other {Mediebredde reduceret til {newMediaWidth,number} pixels.}}',
|
|
@@ -614,6 +594,7 @@ var _default = exports.default = {
|
|
|
614
594
|
'fabric.editor.orderedList.description': 'Opret en sorteret liste',
|
|
615
595
|
'fabric.editor.other': 'Andet …',
|
|
616
596
|
'fabric.editor.outdent': 'Ryk ud',
|
|
597
|
+
'fabric.editor.overflowMenuViewMore': 'Vis mere',
|
|
617
598
|
'fabric.editor.pageActionsLabel': 'Sidehandlinger',
|
|
618
599
|
'fabric.editor.panel': 'Panel',
|
|
619
600
|
'fabric.editor.panel.backgroundColor': 'Baggrundsfarve',
|
|
@@ -663,6 +644,7 @@ var _default = exports.default = {
|
|
|
663
644
|
'fabric.editor.selectTableRow': 'Vælg tabelrække',
|
|
664
645
|
'fabric.editor.selectionExtensionDropdownButtonLabel': 'Vælg app',
|
|
665
646
|
'fabric.editor.settingsLinks': 'Gå til Indstillinger for links',
|
|
647
|
+
'fabric.editor.shortEmptyNodePlaceholderText': '/ for at indsætte',
|
|
666
648
|
'fabric.editor.shortcut': 'Genvej til tekst',
|
|
667
649
|
'fabric.editor.single': 'Layout med én kolonne',
|
|
668
650
|
'fabric.editor.singleColumns': 'Layout med en kolonne',
|
|
@@ -726,8 +708,11 @@ var _default = exports.default = {
|
|
|
726
708
|
'fabric.editor.time.ago': 'siden',
|
|
727
709
|
'fabric.editor.time.updated': 'Opdateret',
|
|
728
710
|
'fabric.editor.time.viewed': 'Vist',
|
|
711
|
+
'fabric.editor.toolbarAppears': 'Værktøjslinjen vises',
|
|
729
712
|
'fabric.editor.toolbarLabel': 'Editor',
|
|
730
713
|
'fabric.editor.toolbarMediaTitle': 'Tilføj billede, video eller fil',
|
|
714
|
+
'fabric.editor.toolbarPositionFixedAtTop': 'Fastgjort øverst',
|
|
715
|
+
'fabric.editor.toolbarPositionInline': 'På linje med tekst',
|
|
731
716
|
'fabric.editor.tooltip.blockPanel': 'et panel',
|
|
732
717
|
'fabric.editor.tooltip.bulletList': 'en liste',
|
|
733
718
|
'fabric.editor.tooltip.decisionList': 'en beslutningsliste',
|