@forge/react 10.8.0-next.3 → 10.9.0-next.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 +20 -0
- package/out/__test__/components/utils/replaceUnsupportedDocumentNodes.test.d.ts +2 -0
- package/out/__test__/components/utils/replaceUnsupportedDocumentNodes.test.d.ts.map +1 -0
- package/out/__test__/components/utils/replaceUnsupportedDocumentNodes.test.js +367 -0
- package/out/components/adf-renderer.d.ts +8 -0
- package/out/components/adf-renderer.d.ts.map +1 -0
- package/out/components/adf-renderer.js +12 -0
- package/out/components/index.d.ts +1 -0
- package/out/components/index.d.ts.map +1 -1
- package/out/components/index.js +3 -1
- package/out/components/ui-kit-components.d.ts +0 -1
- package/out/components/ui-kit-components.d.ts.map +1 -1
- package/out/components/utils/replaceUnsupportedDocumentNodes.d.ts +4 -0
- package/out/components/utils/replaceUnsupportedDocumentNodes.d.ts.map +1 -0
- package/out/components/utils/replaceUnsupportedDocumentNodes.js +45 -0
- package/out/index.d.ts +1 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +3 -1
- package/package.json +6 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @forge/react
|
|
2
2
|
|
|
3
|
+
## 10.9.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3759a9d: Add AdfRenderer component.
|
|
8
|
+
|
|
9
|
+
## 10.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- d0d17d4: Changes to Heading component props type. The color prop now accepts colors represented as tokens: color.text (default), color.text.inverse and color.text.warning.inverse.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 366b7d0: Allow forge react reconciler to forward errors to integration for better handling
|
|
18
|
+
- Updated dependencies [746d528]
|
|
19
|
+
- Updated dependencies [47501f7]
|
|
20
|
+
- @forge/bridge@4.1.1
|
|
21
|
+
- @forge/i18n@0.0.2
|
|
22
|
+
|
|
3
23
|
## 10.8.0-next.3
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replaceUnsupportedDocumentNodes.test.d.ts","sourceRoot":"","sources":["../../../../src/__test__/components/utils/replaceUnsupportedDocumentNodes.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const replaceUnsupportedDocumentNodes_1 = require("../../../components/utils/replaceUnsupportedDocumentNodes");
|
|
4
|
+
const emojiDocumentExample = {
|
|
5
|
+
type: 'doc',
|
|
6
|
+
version: 1,
|
|
7
|
+
content: [
|
|
8
|
+
{
|
|
9
|
+
type: 'paragraph',
|
|
10
|
+
content: [
|
|
11
|
+
{
|
|
12
|
+
type: 'emoji',
|
|
13
|
+
attrs: {
|
|
14
|
+
shortName: ':awthanks:',
|
|
15
|
+
id: 'atlassian-awthanks',
|
|
16
|
+
text: ':awthanks:'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: 'emoji',
|
|
21
|
+
attrs: {
|
|
22
|
+
shortName: ':customer-hello:',
|
|
23
|
+
id: '2b851998-539e-443d-9b50-e4a210a3bf79',
|
|
24
|
+
text: ':hello:'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
};
|
|
31
|
+
const mediaDocumentExample = {
|
|
32
|
+
type: 'doc',
|
|
33
|
+
version: 1,
|
|
34
|
+
content: [
|
|
35
|
+
{
|
|
36
|
+
type: 'mediaSingle',
|
|
37
|
+
content: [
|
|
38
|
+
{
|
|
39
|
+
type: 'media',
|
|
40
|
+
attrs: {
|
|
41
|
+
id: '4478e39c-cf9b-41d1-ba92-68589487cd75',
|
|
42
|
+
type: 'file',
|
|
43
|
+
collection: 'MediaServicesSample',
|
|
44
|
+
alt: 'moon.jpeg',
|
|
45
|
+
width: 225,
|
|
46
|
+
height: 225
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'mediaGroup',
|
|
53
|
+
content: [
|
|
54
|
+
{
|
|
55
|
+
type: 'media',
|
|
56
|
+
attrs: {
|
|
57
|
+
id: '4478e39c-cf9b-41d1-ba92-68589487cd75',
|
|
58
|
+
type: 'file',
|
|
59
|
+
collection: 'MediaServicesSample',
|
|
60
|
+
alt: 'moon.jpeg',
|
|
61
|
+
width: 225,
|
|
62
|
+
height: 225
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: 'media',
|
|
67
|
+
attrs: {
|
|
68
|
+
id: '4478e39c-cf9b-41d1-ba92-68589487cd75',
|
|
69
|
+
type: 'file',
|
|
70
|
+
collection: 'MediaServicesSample',
|
|
71
|
+
alt: 'moon.jpeg',
|
|
72
|
+
width: 225,
|
|
73
|
+
height: 225
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
};
|
|
80
|
+
const extensionDocumentExample = {
|
|
81
|
+
type: 'doc',
|
|
82
|
+
version: 1,
|
|
83
|
+
content: [
|
|
84
|
+
{
|
|
85
|
+
type: 'extension',
|
|
86
|
+
attrs: {
|
|
87
|
+
extensionType: 'com.atlassian.fabric',
|
|
88
|
+
extensionKey: 'clock'
|
|
89
|
+
},
|
|
90
|
+
content: [
|
|
91
|
+
{
|
|
92
|
+
type: 'paragraph',
|
|
93
|
+
content: [
|
|
94
|
+
{
|
|
95
|
+
type: 'text',
|
|
96
|
+
text: 'This is the default content of the extension'
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'inlineExtension',
|
|
104
|
+
attrs: {
|
|
105
|
+
extensionType: 'com.atlassian.fabric',
|
|
106
|
+
extensionKey: 'clock'
|
|
107
|
+
},
|
|
108
|
+
content: [
|
|
109
|
+
{
|
|
110
|
+
type: 'paragraph',
|
|
111
|
+
content: [
|
|
112
|
+
{
|
|
113
|
+
type: 'text',
|
|
114
|
+
text: 'This is the default content of the extension'
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: 'bodiedExtension',
|
|
122
|
+
attrs: {
|
|
123
|
+
extensionType: 'com.atlassian.fabric',
|
|
124
|
+
extensionKey: 'clock'
|
|
125
|
+
},
|
|
126
|
+
content: [
|
|
127
|
+
{
|
|
128
|
+
type: 'paragraph',
|
|
129
|
+
content: [
|
|
130
|
+
{
|
|
131
|
+
type: 'text',
|
|
132
|
+
text: 'This is the default content of the extension'
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
};
|
|
140
|
+
describe('replaceUnsupportedDocumentNodes', () => {
|
|
141
|
+
describe('replacing unsupported nodes with supported ones', () => {
|
|
142
|
+
const replaceUnsupportedNode = (node) => {
|
|
143
|
+
return {
|
|
144
|
+
type: 'paragraph',
|
|
145
|
+
content: [
|
|
146
|
+
{
|
|
147
|
+
type: 'text',
|
|
148
|
+
text: `Unsupported content: ${node.type}`
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
it('should replace unsupported emoji with supported nodes', () => {
|
|
154
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(emojiDocumentExample, replaceUnsupportedNode);
|
|
155
|
+
const expectedDocument = {
|
|
156
|
+
content: [
|
|
157
|
+
{
|
|
158
|
+
content: [
|
|
159
|
+
{
|
|
160
|
+
content: [
|
|
161
|
+
{
|
|
162
|
+
text: 'Unsupported content: emoji',
|
|
163
|
+
type: 'text'
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
type: 'paragraph'
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
content: [
|
|
170
|
+
{
|
|
171
|
+
text: 'Unsupported content: emoji',
|
|
172
|
+
type: 'text'
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
type: 'paragraph'
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
type: 'paragraph'
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
type: 'doc',
|
|
182
|
+
version: 1
|
|
183
|
+
};
|
|
184
|
+
expect(replacedDocument).toEqual(expectedDocument);
|
|
185
|
+
});
|
|
186
|
+
it('should replace unsupported media with supported nodes', () => {
|
|
187
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(mediaDocumentExample, replaceUnsupportedNode);
|
|
188
|
+
const expectedDocument = {
|
|
189
|
+
type: 'doc',
|
|
190
|
+
version: 1,
|
|
191
|
+
content: [
|
|
192
|
+
{
|
|
193
|
+
content: [
|
|
194
|
+
{
|
|
195
|
+
content: [
|
|
196
|
+
{
|
|
197
|
+
text: 'Unsupported content: media',
|
|
198
|
+
type: 'text'
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
type: 'paragraph'
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
type: 'mediaSingle'
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
content: [
|
|
208
|
+
{
|
|
209
|
+
content: [
|
|
210
|
+
{
|
|
211
|
+
text: 'Unsupported content: media',
|
|
212
|
+
type: 'text'
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
type: 'paragraph'
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
content: [
|
|
219
|
+
{
|
|
220
|
+
text: 'Unsupported content: media',
|
|
221
|
+
type: 'text'
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
type: 'paragraph'
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
type: 'mediaGroup'
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
};
|
|
231
|
+
expect(replacedDocument).toEqual(expectedDocument);
|
|
232
|
+
});
|
|
233
|
+
it('should replace unsupported extension with supported nodes', () => {
|
|
234
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(extensionDocumentExample, replaceUnsupportedNode);
|
|
235
|
+
const expectedDocument = {
|
|
236
|
+
type: 'doc',
|
|
237
|
+
version: 1,
|
|
238
|
+
content: [
|
|
239
|
+
{
|
|
240
|
+
content: [
|
|
241
|
+
{
|
|
242
|
+
text: 'Unsupported content: extension',
|
|
243
|
+
type: 'text'
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
type: 'paragraph'
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
content: [
|
|
250
|
+
{
|
|
251
|
+
text: 'Unsupported content: inlineExtension',
|
|
252
|
+
type: 'text'
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
type: 'paragraph'
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
content: [
|
|
259
|
+
{
|
|
260
|
+
text: 'Unsupported content: bodiedExtension',
|
|
261
|
+
type: 'text'
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
type: 'paragraph'
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
};
|
|
268
|
+
expect(replacedDocument).toEqual(expectedDocument);
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
it('should not change document when it only has supported nodes', () => {
|
|
272
|
+
const replaceUnsupportedNode = (node) => {
|
|
273
|
+
return {
|
|
274
|
+
type: 'paragraph',
|
|
275
|
+
content: [
|
|
276
|
+
{
|
|
277
|
+
type: 'text',
|
|
278
|
+
text: `Unsupported content: ${node.type}`
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
const documentToRender = {
|
|
284
|
+
type: 'doc',
|
|
285
|
+
version: 1,
|
|
286
|
+
content: [
|
|
287
|
+
{
|
|
288
|
+
type: 'paragraph',
|
|
289
|
+
content: [
|
|
290
|
+
{
|
|
291
|
+
type: 'text',
|
|
292
|
+
text: 'Supported node'
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
type: 'emoji',
|
|
296
|
+
attrs: {
|
|
297
|
+
shortName: ':grinning:',
|
|
298
|
+
text: '😀'
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
};
|
|
305
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(documentToRender, replaceUnsupportedNode);
|
|
306
|
+
expect(replacedDocument).toEqual(documentToRender);
|
|
307
|
+
});
|
|
308
|
+
describe('drop unsupported nodes when Visitor returns false', () => {
|
|
309
|
+
const replaceUnsupportedNode = () => false;
|
|
310
|
+
it('should drop unsupported emoji nodes', () => {
|
|
311
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(emojiDocumentExample, replaceUnsupportedNode);
|
|
312
|
+
const expectedDocument = {
|
|
313
|
+
content: [
|
|
314
|
+
{
|
|
315
|
+
content: [],
|
|
316
|
+
type: 'paragraph'
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
type: 'doc',
|
|
320
|
+
version: 1
|
|
321
|
+
};
|
|
322
|
+
expect(replacedDocument).toEqual(expectedDocument);
|
|
323
|
+
});
|
|
324
|
+
it('should drop unsupported media node', () => {
|
|
325
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(mediaDocumentExample, replaceUnsupportedNode);
|
|
326
|
+
const expectedDocument = {
|
|
327
|
+
type: 'doc',
|
|
328
|
+
version: 1,
|
|
329
|
+
content: [
|
|
330
|
+
{
|
|
331
|
+
content: [],
|
|
332
|
+
type: 'mediaSingle'
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
content: [],
|
|
336
|
+
type: 'mediaGroup'
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
};
|
|
340
|
+
expect(replacedDocument).toEqual(expectedDocument);
|
|
341
|
+
});
|
|
342
|
+
it('should drop unsupported extension nodes', () => {
|
|
343
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(extensionDocumentExample, replaceUnsupportedNode);
|
|
344
|
+
const expectedDocument = {
|
|
345
|
+
type: 'doc',
|
|
346
|
+
version: 1,
|
|
347
|
+
content: []
|
|
348
|
+
};
|
|
349
|
+
expect(replacedDocument).toEqual(expectedDocument);
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
describe('Keep original nodes when Visitor returns undefined', () => {
|
|
353
|
+
const replaceUnsupportedNode = () => undefined;
|
|
354
|
+
it('should use original emoji nodes', () => {
|
|
355
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(emojiDocumentExample, replaceUnsupportedNode);
|
|
356
|
+
expect(replacedDocument).toEqual(emojiDocumentExample);
|
|
357
|
+
});
|
|
358
|
+
it('should use original media node', () => {
|
|
359
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(mediaDocumentExample, replaceUnsupportedNode);
|
|
360
|
+
expect(replacedDocument).toEqual(mediaDocumentExample);
|
|
361
|
+
});
|
|
362
|
+
it('should use original extension nodes', () => {
|
|
363
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(extensionDocumentExample, replaceUnsupportedNode);
|
|
364
|
+
expect(replacedDocument).toEqual(extensionDocumentExample);
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AdfRendererProps as PlatformAdfRendererProps } from '@atlaskit/forge-react-types';
|
|
2
|
+
import type { Visitor } from '@atlaskit/adf-utils/types/index';
|
|
3
|
+
declare type AdfRendererProps = PlatformAdfRendererProps & {
|
|
4
|
+
replaceUnsupportedNode?: Visitor;
|
|
5
|
+
};
|
|
6
|
+
export declare const AdfRenderer: (props: AdfRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=adf-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adf-renderer.d.ts","sourceRoot":"","sources":["../../src/components/adf-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG/D,aAAK,gBAAgB,GAAG,wBAAwB,GAAG;IACjD,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAIF,eAAO,MAAM,WAAW,UAAW,gBAAgB,4CAMlD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdfRenderer = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const replaceUnsupportedDocumentNodes_1 = require("./utils/replaceUnsupportedDocumentNodes");
|
|
6
|
+
const PlatformAdfRenderer = 'AdfRenderer';
|
|
7
|
+
const AdfRenderer = (props) => {
|
|
8
|
+
const { replaceUnsupportedNode, document, ...adfRendererProps } = props;
|
|
9
|
+
const replacedDocument = (0, replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes)(document, replaceUnsupportedNode);
|
|
10
|
+
return (0, jsx_runtime_1.jsx)(PlatformAdfRenderer, { ...adfRendererProps, document: replacedDocument });
|
|
11
|
+
};
|
|
12
|
+
exports.AdfRenderer = AdfRenderer;
|
|
@@ -2,6 +2,7 @@ import { ForgeElement, MarkupProps, NativeImageProps as ImageProps, NativeLinkPr
|
|
|
2
2
|
import { CheckboxGroupProps as UIKitCheckboxGroupProps } from '@atlaskit/forge-react-types';
|
|
3
3
|
export { InlineEdit } from './inline-edit';
|
|
4
4
|
export { Popup } from './popup';
|
|
5
|
+
export { AdfRenderer } from './adf-renderer';
|
|
5
6
|
export { UserPickerValue } from '../types/index';
|
|
6
7
|
export declare const Image: (props: ImageProps) => ForgeElement;
|
|
7
8
|
export declare const Link: (props: LinkProps) => ForgeElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,IAAI,UAAU,EAC9B,eAAe,IAAI,SAAS,EAC5B,eAAe,IAAI,SAAS,EAC5B,qBAAqB,IAAI,eAAe,EACxC,cAAc,EACd,SAAS,EACT,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,KAAK,UAAiC,UAAU,KAAK,YAAY,CAAC;AAC/E,eAAO,MAAM,IAAI,UAAgC,SAAS,KAAK,YAAY,CAAC;AAC5E,eAAO,MAAM,IAAI,UAAgC,SAAS,KAAK,YAAY,CAAC;AAC5E,eAAO,MAAM,UAAU,UAAsC,eAAe,KAAK,YAAY,CAAC;AAC9F,eAAO,MAAM,IAAI,UAAgC,SAAS,KAAK,YAAY,CAAC;AAC5E,eAAO,MA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/components/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CheckboxGroup = exports.createFrame = exports.Frame = exports.Strong = exports.Strike = exports.Em = exports.UserGroup = exports.User = exports.UserPicker = exports.Text = exports.Link = exports.Image = exports.Popup = exports.InlineEdit = void 0;
|
|
3
|
+
exports.CheckboxGroup = exports.createFrame = exports.Frame = exports.Strong = exports.Strike = exports.Em = exports.UserGroup = exports.User = exports.UserPicker = exports.Text = exports.Link = exports.Image = exports.AdfRenderer = exports.Popup = exports.InlineEdit = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var inline_edit_1 = require("./inline-edit");
|
|
6
6
|
Object.defineProperty(exports, "InlineEdit", { enumerable: true, get: function () { return inline_edit_1.InlineEdit; } });
|
|
7
7
|
var popup_1 = require("./popup");
|
|
8
8
|
Object.defineProperty(exports, "Popup", { enumerable: true, get: function () { return popup_1.Popup; } });
|
|
9
|
+
var adf_renderer_1 = require("./adf-renderer");
|
|
10
|
+
Object.defineProperty(exports, "AdfRenderer", { enumerable: true, get: function () { return adf_renderer_1.AdfRenderer; } });
|
|
9
11
|
exports.Image = 'Image';
|
|
10
12
|
exports.Link = 'Link';
|
|
11
13
|
exports.Text = 'Text';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ForgeElement } from '../types/index';
|
|
3
2
|
import type { BadgeProps, BarChartProps, BoxProps, ButtonProps, ButtonGroupProps, CalendarProps, CheckboxProps, CodeProps, CodeBlockProps, DatePickerProps, DynamicTableProps, ErrorMessageProps, HeadingProps, HelperMessageProps, HorizontalBarChartProps, HorizontalStackBarChartProps, InlineProps, LabelProps, ListProps, ListItemProps, LozengeProps, LineChartProps, LinkButtonProps, ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps, ModalTitleProps, ModalTransitionProps, PieChartProps, ProgressBarProps, ProgressTrackerProps, RadioProps, RadioGroupProps, RangeProps, SectionMessageProps, SectionMessageActionProps, SingleValueChartProps, SpinnerProps, StackProps, StackBarChartProps, TabsProps, TabProps, TabListProps, TabPanelProps, TagProps, TagGroupProps, TimePickerProps, FormProps, FormHeaderProps, FormFooterProps, FormSectionProps, TooltipProps, TextAreaProps, TextfieldProps, ToggleProps, ValidMessageProps, LoadingButtonProps, SelectProps, IconProps, EmptyStateProps } from '@atlaskit/forge-react-types';
|
|
4
3
|
export declare const Badge: (props: BadgeProps) => ForgeElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-kit-components.d.ts","sourceRoot":"","sources":["../../src/components/ui-kit-components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-kit-components.d.ts","sourceRoot":"","sources":["../../src/components/ui-kit-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,WAAW,EACX,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACZ,cAAc,EACd,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,aAAa,EACb,eAAe,EACf,SAAS,EACT,eAAe,EACf,eAAe,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|
|
1
|
+
import { type DocNode } from '@atlaskit/adf-schema';
|
|
2
|
+
import { type Visitor } from '@atlaskit/adf-utils/types/index';
|
|
3
|
+
export declare const replaceUnsupportedDocumentNodes: (document: DocNode, replaceUnsupportedNode?: Visitor) => DocNode;
|
|
4
|
+
//# sourceMappingURL=replaceUnsupportedDocumentNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replaceUnsupportedDocumentNodes.d.ts","sourceRoot":"","sources":["../../../src/components/utils/replaceUnsupportedDocumentNodes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAA0B,KAAK,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAEvF,eAAO,MAAM,+BAA+B,aAAc,OAAO,2BAA2B,OAAO,YA4ClG,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.replaceUnsupportedDocumentNodes = void 0;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
const traverse_1 = require("@atlaskit/adf-utils/traverse");
|
|
6
|
+
const replaceUnsupportedDocumentNodes = (document, replaceUnsupportedNode) => {
|
|
7
|
+
if (!replaceUnsupportedNode) {
|
|
8
|
+
return document;
|
|
9
|
+
}
|
|
10
|
+
const visitors = {
|
|
11
|
+
// Partially supported nodes
|
|
12
|
+
media: (node, parent, index, depth) => {
|
|
13
|
+
if (!node?.attrs?.url) {
|
|
14
|
+
return replaceUnsupportedNode(node, parent, index, depth);
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emoji: (node, parent, index, depth) => {
|
|
18
|
+
if (node?.attrs?.id) {
|
|
19
|
+
// Custom Atlassian generated emoji
|
|
20
|
+
if (node.attrs.id.includes('atlassian')) {
|
|
21
|
+
return replaceUnsupportedNode(node, parent, index, depth);
|
|
22
|
+
}
|
|
23
|
+
// Custom user generated emoji
|
|
24
|
+
const isIdGuid = (0, uuid_1.validate)(node.attrs.id);
|
|
25
|
+
if (isIdGuid) {
|
|
26
|
+
return replaceUnsupportedNode(node, parent, index, depth);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
// Fully unsupported nodes
|
|
31
|
+
extension: replaceUnsupportedNode,
|
|
32
|
+
bodiedExtension: replaceUnsupportedNode,
|
|
33
|
+
inlineExtension: replaceUnsupportedNode,
|
|
34
|
+
// Nodes shown when a bad node is passed
|
|
35
|
+
confluenceUnsupportedBlock: replaceUnsupportedNode,
|
|
36
|
+
confluenceUnsupportedInline: replaceUnsupportedNode,
|
|
37
|
+
confluenceJiraIssue: replaceUnsupportedNode,
|
|
38
|
+
unsupportedBlock: replaceUnsupportedNode,
|
|
39
|
+
unsupportedInline: replaceUnsupportedNode,
|
|
40
|
+
unknownBlock: replaceUnsupportedNode
|
|
41
|
+
};
|
|
42
|
+
const updatedDoc = (0, traverse_1.traverse)(document, visitors);
|
|
43
|
+
return updatedDoc ? { ...updatedDoc, version: document.version } : document;
|
|
44
|
+
};
|
|
45
|
+
exports.replaceUnsupportedDocumentNodes = replaceUnsupportedDocumentNodes;
|
package/out/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { useContentProperty } from './hooks/useContentProperty';
|
|
|
6
6
|
export { useSpaceProperty } from './hooks/useSpaceProperty';
|
|
7
7
|
export { useIssueProperty } from './hooks/useIssueProperty';
|
|
8
8
|
export { useTranslation, I18nProvider } from './hooks/useTranslation';
|
|
9
|
+
export { replaceUnsupportedDocumentNodes } from './components/utils/replaceUnsupportedDocumentNodes';
|
|
9
10
|
export { useForm } from './hooks/useForm';
|
|
10
11
|
export * from './package-types';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1D,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1D,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,cAAc,iBAAiB,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useForm = exports.I18nProvider = exports.useTranslation = exports.useIssueProperty = exports.useSpaceProperty = exports.useContentProperty = exports.default = exports.useConfig = exports.useProductContext = void 0;
|
|
3
|
+
exports.useForm = exports.replaceUnsupportedDocumentNodes = exports.I18nProvider = exports.useTranslation = exports.useIssueProperty = exports.useSpaceProperty = exports.useContentProperty = exports.default = exports.useConfig = exports.useProductContext = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var useProductContext_1 = require("./hooks/useProductContext");
|
|
6
6
|
Object.defineProperty(exports, "useProductContext", { enumerable: true, get: function () { return useProductContext_1.useProductContext; } });
|
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "useIssueProperty", { enumerable: true, get: func
|
|
|
18
18
|
var useTranslation_1 = require("./hooks/useTranslation");
|
|
19
19
|
Object.defineProperty(exports, "useTranslation", { enumerable: true, get: function () { return useTranslation_1.useTranslation; } });
|
|
20
20
|
Object.defineProperty(exports, "I18nProvider", { enumerable: true, get: function () { return useTranslation_1.I18nProvider; } });
|
|
21
|
+
var replaceUnsupportedDocumentNodes_1 = require("./components/utils/replaceUnsupportedDocumentNodes");
|
|
22
|
+
Object.defineProperty(exports, "replaceUnsupportedDocumentNodes", { enumerable: true, get: function () { return replaceUnsupportedDocumentNodes_1.replaceUnsupportedDocumentNodes; } });
|
|
21
23
|
var useForm_1 = require("./hooks/useForm");
|
|
22
24
|
Object.defineProperty(exports, "useForm", { enumerable: true, get: function () { return useForm_1.useForm; } });
|
|
23
25
|
tslib_1.__exportStar(require("./package-types"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.9.0-next.0",
|
|
4
4
|
"description": "Forge React reconciler",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
"./jira": "./out/components/jira/index.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@atlaskit/
|
|
21
|
-
"@
|
|
22
|
-
"@forge
|
|
20
|
+
"@atlaskit/adf-schema": "^46.0.0",
|
|
21
|
+
"@atlaskit/adf-utils": "^19.12.0",
|
|
22
|
+
"@atlaskit/forge-react-types": "^0.30.0",
|
|
23
|
+
"@forge/bridge": "^4.1.1",
|
|
24
|
+
"@forge/i18n": "0.0.2",
|
|
23
25
|
"@types/react-reconciler": "^0.28.8",
|
|
24
26
|
"lodash": "^4.17.21",
|
|
25
27
|
"react": "^18.2.0",
|