@jpmorganchase/mosaic-content-editor-plugin 0.1.0-beta.71 → 0.1.0-beta.73

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.
Files changed (92) hide show
  1. package/dist/chunk-55WG3HBR.js +1 -0
  2. package/dist/chunk-HIIAB4W2.js +1 -0
  3. package/dist/{chunk-7O2SLISS.js → chunk-JLXXPRWJ.js} +1 -1
  4. package/dist/{chunk-CBQZGN4Y.js → chunk-U52GJYI4.js} +1 -1
  5. package/dist/chunk-UFRXMSJP.js +1 -0
  6. package/dist/{chunk-WOLMNJ7G.js → chunk-X5M73NRM.js} +1 -1
  7. package/dist/chunk-YDLF23AQ.js +1 -0
  8. package/dist/components/Dialog.d.ts +1 -1
  9. package/dist/components/Dialog.js +1 -1
  10. package/dist/components/Editor.js +1 -1
  11. package/dist/components/PersistEditDialog/index.js +1 -1
  12. package/dist/components/Toolbar/InsertImage.js +1 -1
  13. package/dist/components/Toolbar/InsertLink.js +1 -1
  14. package/dist/components/Toolbar/Toolbar.js +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/plugins/FloatingToolbarPlugin.js +1 -1
  17. package/dist/plugins/MarkdownLinkPlugin.js +1 -1
  18. package/dist/plugins/PreviewPlugin.js +1 -1
  19. package/package.json +9 -6
  20. package/.turbo/turbo-build.log +0 -4
  21. package/CHANGELOG.md +0 -673
  22. package/dist/chunk-CXTIKD2Y.js +0 -1
  23. package/dist/chunk-EPOQVSZ5.js +0 -1
  24. package/dist/chunk-LQBKKB6A.js +0 -1
  25. package/dist/chunk-XSZUCLBY.js +0 -1
  26. package/src/components/ActionMenu/ActionMenu.css.ts +0 -9
  27. package/src/components/ActionMenu/ActionMenu.tsx +0 -26
  28. package/src/components/BaseToolbar/BaseToolbar.css.ts +0 -21
  29. package/src/components/BaseToolbar/BaseToolbar.tsx +0 -13
  30. package/src/components/BaseTooltray/BaseTooltray.css.ts +0 -31
  31. package/src/components/BaseTooltray/BaseTooltray.tsx +0 -22
  32. package/src/components/ContentEditor.tsx +0 -14
  33. package/src/components/Dialog.css.ts +0 -7
  34. package/src/components/Dialog.tsx +0 -12
  35. package/src/components/Editor.css.ts +0 -64
  36. package/src/components/Editor.tsx +0 -145
  37. package/src/components/EditorControls.css.ts +0 -6
  38. package/src/components/EditorControls.tsx +0 -37
  39. package/src/components/LinkEditor/EditLinkButton.tsx +0 -9
  40. package/src/components/LinkEditor/LinkEditor.css.ts +0 -15
  41. package/src/components/LinkEditor/LinkEditor.tsx +0 -136
  42. package/src/components/LinkEditor/SaveAdornment.tsx +0 -17
  43. package/src/components/PersistEditDialog/PersistStatus.css.ts +0 -21
  44. package/src/components/PersistEditDialog/PersistStatus.tsx +0 -57
  45. package/src/components/PersistEditDialog/__tests__/index.test.tsx +0 -90
  46. package/src/components/PersistEditDialog/index.css.ts +0 -14
  47. package/src/components/PersistEditDialog/index.tsx +0 -150
  48. package/src/components/Popper/Popper.css.ts +0 -12
  49. package/src/components/Popper/Popper.tsx +0 -36
  50. package/src/components/SaveButton.tsx +0 -23
  51. package/src/components/ScrollableSection/ScrollableSection.css.ts +0 -10
  52. package/src/components/ScrollableSection/ScrollableSection.tsx +0 -20
  53. package/src/components/StatusBanner.tsx +0 -16
  54. package/src/components/Toolbar/InsertBlockDropdown.tsx +0 -134
  55. package/src/components/Toolbar/InsertHorizontalRule.tsx +0 -18
  56. package/src/components/Toolbar/InsertImage.css.ts +0 -7
  57. package/src/components/Toolbar/InsertImage.tsx +0 -130
  58. package/src/components/Toolbar/InsertLink.css.ts +0 -7
  59. package/src/components/Toolbar/InsertLink.tsx +0 -140
  60. package/src/components/Toolbar/InsertTable.css.ts +0 -52
  61. package/src/components/Toolbar/InsertTable.tsx +0 -196
  62. package/src/components/Toolbar/TextFormatTooltray.css.ts +0 -22
  63. package/src/components/Toolbar/TextFormatTooltray.tsx +0 -113
  64. package/src/components/Toolbar/Toolbar.tsx +0 -52
  65. package/src/components/Toolbar/ToolbarButton.css.ts +0 -11
  66. package/src/components/Toolbar/ToolbarButton.tsx +0 -41
  67. package/src/components/Toolbar/ToolbarSeparator.css.ts +0 -28
  68. package/src/components/Toolbar/ToolbarSepartor.tsx +0 -13
  69. package/src/components/__tests__/EditorControls.test.tsx +0 -69
  70. package/src/components/__tests__/StatusBanner.test.tsx +0 -33
  71. package/src/hooks/useEditHistory.ts +0 -49
  72. package/src/hooks/useWorkflowFeed.ts +0 -69
  73. package/src/index.ts +0 -5
  74. package/src/nodes/index.ts +0 -23
  75. package/src/plugins/FloatingToolbarPlugin.css.ts +0 -14
  76. package/src/plugins/FloatingToolbarPlugin.tsx +0 -101
  77. package/src/plugins/HorizontalRulePlugin.tsx +0 -39
  78. package/src/plugins/MarkdownImagePlugin.tsx +0 -58
  79. package/src/plugins/MarkdownLinkPlugin.tsx +0 -69
  80. package/src/plugins/PreviewPlugin.tsx +0 -71
  81. package/src/plugins/TableActionMenuPlugin.css.ts +0 -29
  82. package/src/plugins/TableActionMenuPlugin.tsx +0 -274
  83. package/src/store/__tests__/index.test.ts +0 -171
  84. package/src/store/index.ts +0 -84
  85. package/src/theme/index.css.ts +0 -39
  86. package/src/theme/index.ts +0 -22
  87. package/src/transformers/horizontalRule.ts +0 -25
  88. package/src/transformers/index.ts +0 -6
  89. package/src/transformers/link.ts +0 -3
  90. package/src/transformers/tableRule.ts +0 -193
  91. package/src/utils/getSelectedNode.ts +0 -16
  92. package/tsconfig.json +0 -8
package/CHANGELOG.md DELETED
@@ -1,673 +0,0 @@
1
- # @jpmorganchase/mosaic-content-editor-plugin
2
-
3
- ## 0.1.0-beta.71
4
-
5
- ### Patch Changes
6
-
7
- - @jpmorganchase/mosaic-components@0.1.0-beta.71
8
- - @jpmorganchase/mosaic-theme@0.1.0-beta.71
9
-
10
- ## 0.1.0-beta.70
11
-
12
- ### Patch Changes
13
-
14
- - @jpmorganchase/mosaic-components@0.1.0-beta.70
15
- - @jpmorganchase/mosaic-theme@0.1.0-beta.70
16
-
17
- ## 0.1.0-beta.69
18
-
19
- ### Patch Changes
20
-
21
- - @jpmorganchase/mosaic-components@0.1.0-beta.69
22
- - @jpmorganchase/mosaic-theme@0.1.0-beta.69
23
-
24
- ## 0.1.0-beta.68
25
-
26
- ### Patch Changes
27
-
28
- - @jpmorganchase/mosaic-components@0.1.0-beta.68
29
- - @jpmorganchase/mosaic-theme@0.1.0-beta.68
30
-
31
- ## 0.1.0-beta.67
32
-
33
- ### Patch Changes
34
-
35
- - @jpmorganchase/mosaic-components@0.1.0-beta.67
36
- - @jpmorganchase/mosaic-theme@0.1.0-beta.67
37
-
38
- ## 0.1.0-beta.66
39
-
40
- ### Patch Changes
41
-
42
- - @jpmorganchase/mosaic-components@0.1.0-beta.66
43
- - @jpmorganchase/mosaic-theme@0.1.0-beta.66
44
-
45
- ## 0.1.0-beta.65
46
-
47
- ### Patch Changes
48
-
49
- - abe4f6c8: Fix: Content Editor Websocket
50
-
51
- Reduce the risk of the websocket connection from closing due to editing/reviewing for a long period.
52
-
53
- The websocket connection is now established when the _save_ button is clicked rather than the _edit_ button.
54
-
55
- - @jpmorganchase/mosaic-components@0.1.0-beta.65
56
- - @jpmorganchase/mosaic-theme@0.1.0-beta.65
57
-
58
- ## 0.1.0-beta.64
59
-
60
- ### Patch Changes
61
-
62
- - @jpmorganchase/mosaic-components@0.1.0-beta.64
63
- - @jpmorganchase/mosaic-theme@0.1.0-beta.64
64
-
65
- ## 0.1.0-beta.63
66
-
67
- ### Patch Changes
68
-
69
- - Updated dependencies [680eb0eb]
70
- - @jpmorganchase/mosaic-components@0.1.0-beta.63
71
- - @jpmorganchase/mosaic-theme@0.1.0-beta.63
72
-
73
- ## 0.1.0-beta.62
74
-
75
- ### Patch Changes
76
-
77
- - @jpmorganchase/mosaic-components@0.1.0-beta.62
78
- - @jpmorganchase/mosaic-theme@0.1.0-beta.62
79
-
80
- ## 0.1.0-beta.61
81
-
82
- ### Patch Changes
83
-
84
- - cec89401: add `pluginTimeout` (20 secs) to fastify to prevent loading timeout
85
- - Updated dependencies [cec89401]
86
- - @jpmorganchase/mosaic-components@0.1.0-beta.61
87
- - @jpmorganchase/mosaic-theme@0.1.0-beta.61
88
-
89
- ## 0.1.0-beta.60
90
-
91
- ### Patch Changes
92
-
93
- - a3da0830: New Readme Source
94
-
95
- This source pulls a single Readme.md from a remote Source repo.
96
- Typically used for third-party repos which exist already or don't want to
97
- create a full document hierachy and use `@jpmorganchase/mosaic-source-git-repo`.
98
- By pulling a single page, we can add metadata to that page via the source's config.
99
- It's also more performant as we do not need to pull a whole source repo.
100
-
101
- - Updated dependencies [a3da0830]
102
- - @jpmorganchase/mosaic-components@0.1.0-beta.60
103
- - @jpmorganchase/mosaic-theme@0.1.0-beta.60
104
-
105
- ## 0.1.0-beta.59
106
-
107
- ### Patch Changes
108
-
109
- - @jpmorganchase/mosaic-components@0.1.0-beta.59
110
- - @jpmorganchase/mosaic-theme@0.1.0-beta.59
111
-
112
- ## 0.1.0-beta.58
113
-
114
- ### Patch Changes
115
-
116
- - @jpmorganchase/mosaic-components@0.1.0-beta.58
117
- - @jpmorganchase/mosaic-theme@0.1.0-beta.58
118
-
119
- ## 0.1.0-beta.57
120
-
121
- ### Patch Changes
122
-
123
- - d214d112: Add catch-all default exports for
124
-
125
- - `@jpmorganchase/mosaic-store`
126
- - `@jpmorganchase/mosaic-theme`
127
- - `@jpmorganchase/mosaic-workflows`
128
-
129
- This resolves an issue when running tests from an external repo which depends on these packages
130
-
131
- - Updated dependencies [d214d112]
132
- - @jpmorganchase/mosaic-theme@0.1.0-beta.57
133
- - @jpmorganchase/mosaic-components@0.1.0-beta.57
134
-
135
- ## 0.1.0-beta.56
136
-
137
- ### Patch Changes
138
-
139
- - 6d30e29f: Add new Storybook source
140
-
141
- Storybook stories can be extracted from Storybook and embedded into Mosaic pages.
142
-
143
- The stories are extracted based on a configured filter or matching tags.
144
-
145
- With a page created for each Story, the author can create a dynamic index of matching stories.
146
-
147
- eg. An index of patterns which match a specific tag
148
-
149
- - Updated dependencies [6d30e29f]
150
- - @jpmorganchase/mosaic-components@0.1.0-beta.56
151
- - @jpmorganchase/mosaic-theme@0.1.0-beta.56
152
-
153
- ## 0.1.0-beta.55
154
-
155
- ### Minor Changes
156
-
157
- - 3dd27378: Upgraded Salt packages to:
158
-
159
- @salt-ds/core@1.11.0
160
- @salt-ds/lab@1.0.0-alpha.20
161
- @salt-ds/icons@1.7.0
162
- @salt-ds/theme@1.9.0
163
-
164
- ### Patch Changes
165
-
166
- - Updated dependencies [3dd27378]
167
- - @jpmorganchase/mosaic-components@0.1.0-beta.55
168
- - @jpmorganchase/mosaic-theme@0.1.0-beta.55
169
-
170
- ## 0.1.0-beta.54
171
-
172
- ### Patch Changes
173
-
174
- - @jpmorganchase/mosaic-components@0.1.0-beta.54
175
- - @jpmorganchase/mosaic-theme@0.1.0-beta.54
176
-
177
- ## 0.1.0-beta.53
178
-
179
- ### Patch Changes
180
-
181
- - @jpmorganchase/mosaic-components@0.1.0-beta.53
182
- - @jpmorganchase/mosaic-theme@0.1.0-beta.53
183
-
184
- ## 0.1.0-beta.52
185
-
186
- ### Patch Changes
187
-
188
- - 9ad7418c: Use a websocket for workflows
189
- - @jpmorganchase/mosaic-components@0.1.0-beta.52
190
- - @jpmorganchase/mosaic-theme@0.1.0-beta.52
191
-
192
- ## 0.1.0-beta.51
193
-
194
- ### Patch Changes
195
-
196
- - Updated dependencies [56bbad4b]
197
- - @jpmorganchase/mosaic-components@0.1.0-beta.51
198
- - @jpmorganchase/mosaic-theme@0.1.0-beta.51
199
-
200
- ## 0.1.0-beta.50
201
-
202
- ### Patch Changes
203
-
204
- - @jpmorganchase/mosaic-components@0.1.0-beta.50
205
- - @jpmorganchase/mosaic-theme@0.1.0-beta.50
206
-
207
- ## 0.1.0-beta.49
208
-
209
- ### Patch Changes
210
-
211
- - @jpmorganchase/mosaic-components@0.1.0-beta.49
212
- - @jpmorganchase/mosaic-theme@0.1.0-beta.49
213
-
214
- ## 0.1.0-beta.48
215
-
216
- ### Patch Changes
217
-
218
- - eb085d3d: ### Fix
219
-
220
- The insert/edit link dialog no longer closes when its contents are clicked.
221
-
222
- ### Refactor
223
-
224
- The forms used to insert/edit links and insert images in the content editor plugin have been updated to use the latest version of `FormField` and `Input` from Salt-ds.
225
-
226
- - @jpmorganchase/mosaic-components@0.1.0-beta.48
227
- - @jpmorganchase/mosaic-theme@0.1.0-beta.48
228
-
229
- ## 0.1.0-beta.47
230
-
231
- ### Patch Changes
232
-
233
- - Updated dependencies [5abe7fdf]
234
- - Updated dependencies [19b4e49a]
235
- - @jpmorganchase/mosaic-components@0.1.0-beta.47
236
- - @jpmorganchase/mosaic-theme@0.1.0-beta.47
237
-
238
- ## 0.1.0-beta.46
239
-
240
- ### Patch Changes
241
-
242
- - @jpmorganchase/mosaic-components@0.1.0-beta.46
243
- - @jpmorganchase/mosaic-theme@0.1.0-beta.46
244
-
245
- ## 0.1.0-beta.45
246
-
247
- ### Patch Changes
248
-
249
- - Updated dependencies [020ae58d]
250
- - @jpmorganchase/mosaic-components@0.1.0-beta.45
251
- - @jpmorganchase/mosaic-theme@0.1.0-beta.45
252
-
253
- ## 0.1.0-beta.44
254
-
255
- ### Patch Changes
256
-
257
- - Updated dependencies [cc5183e]
258
- - Updated dependencies [36896ac]
259
- - @jpmorganchase/mosaic-components@0.1.0-beta.44
260
- - @jpmorganchase/mosaic-theme@0.1.0-beta.44
261
-
262
- ## 0.1.0-beta.43
263
-
264
- ### Patch Changes
265
-
266
- - Updated dependencies [0dc621d]
267
- - Updated dependencies [4e69178]
268
- - @jpmorganchase/mosaic-components@0.1.0-beta.43
269
- - @jpmorganchase/mosaic-theme@0.1.0-beta.43
270
-
271
- ## 0.1.0-beta.42
272
-
273
- ### Patch Changes
274
-
275
- - Updated dependencies [3491f29]
276
- - @jpmorganchase/mosaic-components@0.1.0-beta.42
277
- - @jpmorganchase/mosaic-theme@0.1.0-beta.42
278
-
279
- ## 0.1.0-beta.41
280
-
281
- ### Patch Changes
282
-
283
- - @jpmorganchase/mosaic-components@0.1.0-beta.41
284
- - @jpmorganchase/mosaic-theme@0.1.0-beta.41
285
-
286
- ## 0.1.0-beta.40
287
-
288
- ### Patch Changes
289
-
290
- - @jpmorganchase/mosaic-components@0.1.0-beta.40
291
- - @jpmorganchase/mosaic-theme@0.1.0-beta.40
292
-
293
- ## 0.1.0-beta.39
294
-
295
- ### Patch Changes
296
-
297
- - @jpmorganchase/mosaic-components@0.1.0-beta.39
298
- - @jpmorganchase/mosaic-theme@0.1.0-beta.39
299
-
300
- ## 0.1.0-beta.38
301
-
302
- ### Patch Changes
303
-
304
- - dc993df: Styling and API changes for In-Browser Content Editor (IBCE)
305
- - Updated dependencies [18f7a0b]
306
- - @jpmorganchase/mosaic-theme@0.1.0-beta.38
307
- - @jpmorganchase/mosaic-components@0.1.0-beta.38
308
-
309
- ## 0.1.0-beta.37
310
-
311
- ### Patch Changes
312
-
313
- - @jpmorganchase/mosaic-components@0.1.0-beta.37
314
- - @jpmorganchase/mosaic-theme@0.1.0-beta.37
315
-
316
- ## 0.1.0-beta.36
317
-
318
- ### Patch Changes
319
-
320
- - @jpmorganchase/mosaic-components@0.1.0-beta.36
321
- - @jpmorganchase/mosaic-theme@0.1.0-beta.36
322
-
323
- ## 0.1.0-beta.35
324
-
325
- ### Patch Changes
326
-
327
- - @jpmorganchase/mosaic-components@0.1.0-beta.35
328
- - @jpmorganchase/mosaic-theme@0.1.0-beta.35
329
-
330
- ## 0.1.0-beta.34
331
-
332
- ### Patch Changes
333
-
334
- - 3d117d3: Upgrade to latest Salt libraries
335
- - Updated dependencies [3d117d3]
336
- - @jpmorganchase/mosaic-components@0.1.0-beta.34
337
- - @jpmorganchase/mosaic-theme@0.1.0-beta.34
338
-
339
- ## 0.1.0-beta.33
340
-
341
- ### Patch Changes
342
-
343
- - @jpmorganchase/mosaic-components@0.1.0-beta.33
344
- - @jpmorganchase/mosaic-theme@0.1.0-beta.33
345
-
346
- ## 0.1.0-beta.32
347
-
348
- ### Patch Changes
349
-
350
- - 6265b19: Upgrade to latest Salt libraries
351
- - Updated dependencies [6265b19]
352
- - @jpmorganchase/mosaic-components@0.1.0-beta.32
353
- - @jpmorganchase/mosaic-theme@0.1.0-beta.32
354
-
355
- ## 0.1.0-beta.31
356
-
357
- ### Patch Changes
358
-
359
- - b609fd0: Added support for containerization of the site and cli as well as providing config for kubernetes development (skaffold)
360
-
361
- ## @jpmorganchase/mosaic-cli
362
-
363
- The cli package has been updated to support containerization.
364
-
365
- - Updated dependencies [b609fd0]
366
- - Updated dependencies [d04fb1e]
367
- - @jpmorganchase/mosaic-components@0.1.0-beta.31
368
- - @jpmorganchase/mosaic-theme@0.1.0-beta.31
369
-
370
- ## 0.1.0-beta.30
371
-
372
- ### Patch Changes
373
-
374
- - 18ef436: The git repo source no longer generates a double slash between the repo host and repo path.
375
- - Updated dependencies [18ef436]
376
- - @jpmorganchase/mosaic-components@0.1.0-beta.30
377
- - @jpmorganchase/mosaic-theme@0.1.0-beta.30
378
-
379
- ## 0.1.0-beta.29
380
-
381
- ### Minor Changes
382
-
383
- - c78deb4: Flatten Sidebar
384
- Search Optimisation
385
- Public Assets Plugin
386
- TOC Indentation
387
-
388
- ### Patch Changes
389
-
390
- - Updated dependencies [c78deb4]
391
- - @jpmorganchase/mosaic-components@0.1.0-beta.29
392
- - @jpmorganchase/mosaic-theme@0.1.0-beta.29
393
-
394
- ## 0.1.0-beta.28
395
-
396
- ### Patch Changes
397
-
398
- - 27ac914: 1. Layout improvements. 2. Fix: if a user hits a url that lands on a directory, the index file within that directory is resolved as the content. 3. Fix: improve Table of Contents component highlighting.
399
- - Updated dependencies [27ac914]
400
- - @jpmorganchase/mosaic-components@0.1.0-beta.28
401
- - @jpmorganchase/mosaic-theme@0.1.0-beta.28
402
-
403
- ## 0.1.0-beta.27
404
-
405
- ### Patch Changes
406
-
407
- - 0a672d4: Pin @salt-ds/lab to 1.0.0-alpha.1
408
- - b465413: Improvements to vercel deployments
409
- - Updated dependencies [0a672d4]
410
- - Updated dependencies [b465413]
411
- - @jpmorganchase/mosaic-components@0.1.0-beta.27
412
- - @jpmorganchase/mosaic-theme@0.1.0-beta.27
413
-
414
- ## 0.1.0-beta.26
415
-
416
- ### Minor Changes
417
-
418
- - 531c87a: ## Mosaic Theme
419
-
420
- The theme variables are now globally scoped and prefixed with `mosaic`.
421
-
422
- ## BrokenLinksPlugin
423
-
424
- The `BrokenLinksPlugin` uses a running instance of mosaic to verify that all links in the source pages are alive.
425
-
426
- If mosaic is running behind a corporate proxy, the `proxyEndpoint` option is required to fetch external URLs.
427
-
428
- Configuration:
429
-
430
- ```json
431
- {
432
- modulePath: '@jpmorganchase/mosaic-plugins/BrokenLinksPlugin',
433
- priority: -1,
434
- // Exclude this plugin in builds
435
- runTimeOnly: true,
436
- options: {
437
- baseUrl: process.env.MOSAIC_ACTIVE_MODE_URL || 'http://localhost:8080',
438
- proxyEndpoint: 'http://some-proxy-url'
439
- }
440
- }
441
- ```
442
-
443
- ## Next/Prev button
444
-
445
- The next and prev buttons are visible again on pages that have a layout that uses these buttons.
446
-
447
- ### Patch Changes
448
-
449
- - Updated dependencies [531c87a]
450
- - @jpmorganchase/mosaic-theme@0.1.0-beta.26
451
- - @jpmorganchase/mosaic-components@0.1.0-beta.26
452
-
453
- ## 0.1.0-beta.25
454
-
455
- ### Minor Changes
456
-
457
- - 93e9b07: The theme contract provided by the `@jpmorganchase/mosaic-theme` package now uses locally scoped variable names via a Vanilla Extract [Theme Contract](https://vanilla-extract.style/documentation/api/create-theme-contract/). Previously the theme variables were globally scoped resulting in conflicts with other design systems.
458
-
459
- ### Patch Changes
460
-
461
- - a36219c: - Next/Prev page buttons were not appearing at the bottom of a page sequence
462
- - Removed redundant snapshot page api
463
- - Updated dependencies [a36219c]
464
- - Updated dependencies [93e9b07]
465
- - @jpmorganchase/mosaic-components@0.1.0-beta.25
466
- - @jpmorganchase/mosaic-theme@0.1.0-beta.25
467
-
468
- ## 0.1.0-beta.24
469
-
470
- ### Patch Changes
471
-
472
- - 049d9af: 1. Pip Salt version 2. Issues 155, make 500 error more specific 3. button and sidebar styles 4. search opt-out
473
- - Updated dependencies [049d9af]
474
- - @jpmorganchase/mosaic-components@0.1.0-beta.24
475
- - @jpmorganchase/mosaic-theme@0.1.0-beta.24
476
-
477
- ## 0.1.0-beta.23
478
-
479
- ### Patch Changes
480
-
481
- - 513d45f: Sidebar behavior and styling changes.
482
- Add Client-side search feature.
483
- Relax node engine requirements.
484
- Removal of patches from the site package.
485
- Update site generator templates.
486
- - Updated dependencies [513d45f]
487
- - @jpmorganchase/mosaic-components@0.1.0-beta.23
488
- - @jpmorganchase/mosaic-theme@0.1.0-beta.23
489
-
490
- ## 0.1.0-beta.22
491
-
492
- ### Patch Changes
493
-
494
- - be89e4f: fix markdown tables and update generator's Salt patches
495
-
496
- - Salt patches in generator were out of sync with Mosaic repo
497
- - Markdown now support github flavoured markdown, such as Tables
498
-
499
- - Updated dependencies [be89e4f]
500
- - @jpmorganchase/mosaic-components@0.1.0-beta.22
501
- - @jpmorganchase/mosaic-theme@0.1.0-beta.22
502
-
503
- ## 0.1.0-beta.21
504
-
505
- ### Patch Changes
506
-
507
- - f75fd5e: fix sidebar which was generated after `beforeSend` had completed
508
- - Updated dependencies [f75fd5e]
509
- - @jpmorganchase/mosaic-components@0.1.0-beta.21
510
- - @jpmorganchase/mosaic-theme@0.1.0-beta.21
511
-
512
- ## 0.1.0-beta.20
513
-
514
- ### Patch Changes
515
-
516
- - 9c7b8ff: pip to beta.20
517
- - Updated dependencies [9c7b8ff]
518
- - @jpmorganchase/mosaic-components@0.1.0-beta.20
519
- - @jpmorganchase/mosaic-theme@0.1.0-beta.20
520
-
521
- ## 0.1.0-beta.19
522
-
523
- ### Patch Changes
524
-
525
- - ad06d4c: ensure spinner is removed after page has loaded
526
- - Updated dependencies [ad06d4c]
527
- - @jpmorganchase/mosaic-components@0.1.0-beta.19
528
- - @jpmorganchase/mosaic-theme@0.1.0-beta.19
529
-
530
- ## 0.1.0-beta.18
531
-
532
- ### Patch Changes
533
-
534
- - 066efed: Update docs with quick-start guide
535
-
536
- Sample docs now include a 'quick-start' guide to onboarding to AWS.
537
-
538
- Also
539
-
540
- - generator default directory is the current directory
541
- - after generating a site, it will run `yarn` in the created directory. This simplifies the generator call to just `yarn mosaic-create-site`
542
-
543
- - Updated dependencies [066efed]
544
- - @jpmorganchase/mosaic-components@0.1.0-beta.18
545
- - @jpmorganchase/mosaic-theme@0.1.0-beta.18
546
-
547
- ## 0.1.0-beta.17
548
-
549
- ### Patch Changes
550
-
551
- - b2f6d52: Fix `pre` block code block rendering
552
- - Updated dependencies [b2f6d52]
553
- - @jpmorganchase/mosaic-components@0.1.0-beta.17
554
- - @jpmorganchase/mosaic-theme@0.1.0-beta.17
555
-
556
- ## 0.1.0-beta.16
557
-
558
- ### Patch Changes
559
-
560
- - 3a5c88a: add missing `@types/node` dependency for generator
561
- - Updated dependencies [3a5c88a]
562
- - @jpmorganchase/mosaic-components@0.1.0-beta.16
563
- - @jpmorganchase/mosaic-theme@0.1.0-beta.16
564
-
565
- ## 0.1.0-beta.15
566
-
567
- ### Patch Changes
568
-
569
- - aaaf255: initial release of HTTP Source package.
570
-
571
- An HTTP source accepts a collection of endpoints and a path to a transformer module.
572
- The response from fetching is transformed and merged together into 1 single collection of pages.
573
- Should 1 of the endpoints request fail then it will have no impact on the other requests.
574
-
575
- - Updated dependencies [aaaf255]
576
- - @jpmorganchase/mosaic-components@0.1.0-beta.15
577
- - @jpmorganchase/mosaic-theme@0.1.0-beta.15
578
-
579
- ## 0.1.0-beta.14
580
-
581
- ### Patch Changes
582
-
583
- - dde3b5a: Feature release
584
-
585
- - Enhanced generators now have defaults.
586
- With one command (`yarn mosaic-create-site create`) it will generate a fully working site with both local and remote sources
587
- - Fix an issue where we could not clone from the master branch of git repos
588
- - Migrate to Next 13 image
589
-
590
- - Updated dependencies [dde3b5a]
591
- - @jpmorganchase/mosaic-components@0.1.0-beta.14
592
- - @jpmorganchase/mosaic-theme@0.1.0-beta.14
593
-
594
- ## 0.1.0-beta.13
595
-
596
- ### Patch Changes
597
-
598
- - d4da1df: incremental improvements
599
-
600
- - move colormode into store
601
- - ensure breadcrumbs and sidebar data is only added to frontmatter for pages which use a layout that has breadcrumbs or a sidebar
602
- - improve changeset so it can work standalone without a monorepo
603
- - resolev json5 vulnerability
604
-
605
- - Updated dependencies [d4da1df]
606
- - @jpmorganchase/mosaic-components@0.1.0-beta.13
607
- - @jpmorganchase/mosaic-theme@0.1.0-beta.13
608
-
609
- ## 0.1.0-beta.12
610
-
611
- ### Patch Changes
612
-
613
- - 9ec358b: Upgrade React to version 18 and NextJs to version 13
614
- - 3eb35bf: initial work to enable generators to run outside of the repo
615
- - Updated dependencies [9ec358b]
616
- - Updated dependencies [3eb35bf]
617
- - @jpmorganchase/mosaic-components@0.1.0-beta.12
618
- - @jpmorganchase/mosaic-theme@0.1.0-beta.12
619
-
620
- ## 0.1.0-beta.11
621
-
622
- ### Patch Changes
623
-
624
- - 146a4bb: fix SSR Initial render
625
-
626
- removed Salt Core patch
627
- added Salt Labs patch (Cascading Menu) to support SSR
628
-
629
- - fc5d7b5: Generators can now interactively add sources
630
-
631
- Previously we were making local edits to our own site or examples to implement new features.
632
- What we wanted was the ability to create a local rig, A local rig can be used for development purposes,
633
- without touching our site code.
634
-
635
- We have added Mosaic repo commands, to enable us to generates local rigs (`yarn gen:rig`) and deploy our own
636
- tech docs via snapshot (`yarn gen`)
637
-
638
- To generate a site+snapshot from sources defined in `mosaic-generators.js`, run `yarn gen`
639
- To generate a dynamic site from sources defined in `mosaic-generators.js`, run `yarn gen:site`
640
- To generate a rig `yarn gen:rig`
641
-
642
- Equally these changes can be used to generate sites in other repos via the `mosaic-create-site` command.
643
-
644
- `yarn mosaic-create-site init` will create a `mosaic.generators.js`.
645
-
646
- Configure the `mosaic.generators.js` with your generator and sources, then run.
647
-
648
- `yarn mosaic-create-site create -i -o path/to/my-site`
649
-
650
- When this command is run, it will present an interactive menu of generators and output the site to `path/to/my-site`.
651
-
652
- - Updated dependencies [146a4bb]
653
- - Updated dependencies [fc5d7b5]
654
- - @jpmorganchase/mosaic-components@0.1.0-beta.11
655
- - @jpmorganchase/mosaic-theme@0.1.0-beta.11
656
-
657
- ## 0.1.0-beta.10
658
-
659
- ### Patch Changes
660
-
661
- - af2f579: Converted repo to ESM and Salt DS nomenclature
662
-
663
- - Switch UITK nomenclature to Salt DS
664
- Upgraded to first stable version of Salt DS version 1.0.0
665
- - CommonJS code switched to ESM and upgraded to Node 16
666
- - Removed example-nextjs-ssr package as un-required, can be replaced by documentation
667
- - Sites can now generate immutable snapshots of content that loads content like a SGS (statically generated site)
668
- Snapshots can be used as a serverless solution when deployed to Vercel.
669
- - New Middleware package `@jpmorganchase/mosaic-site-middleware`
670
-
671
- - Updated dependencies [af2f579]
672
- - @jpmorganchase/mosaic-components@0.1.0-beta.10
673
- - @jpmorganchase/mosaic-theme@0.1.0-beta.10
@@ -1 +0,0 @@
1
- import{a as b}from"./chunk-KZXCNQER.js";import{a as I}from"./chunk-YBFKG74H.js";import{a as h}from"./chunk-XSZUCLBY.js";import{a as v}from"./chunk-3QIETKQW.js";import e,{useState as i}from"react";import{useLexicalComposerContext as M}from"@lexical/react/LexicalComposerContext";import{Button as c,Icon as P}from"@jpmorganchase/mosaic-components";import{string as C,object as V}from"yup";import{Input as S,FormField as D,FormFieldLabel as y,FormFieldHelperText as A}from"@salt-ds/core";import{ButtonBar as q,DialogTitle as w,DialogContent as L,DialogActions as N}from"@salt-ds/lab";var B=V({alt:C().required("Alternative Information is a required field").max(100,"Alternative Information must be fewer than 100 characters"),url:C().required("Url is required").url("Must be a valid Url")}),E={url:"https://"},Y=()=>{let[T]=M(),[s,m]=i(!1),[r,u]=i(E),[n,d]=i(),f=t=>{m(t),t||u(E)},x=()=>m(!0),p=()=>{f(!1)},g=t=>{let o=t.inner.reduce((l,{path:a,message:O})=>({...l,[a]:O}),{});d(o)},F=t=>{let{name:o,value:l}=t.target,a={...r,[o]:l};B.validateAt(o,a,{abortEarly:!1}).then(()=>{d({...n,[o]:void 0})},g),u(a)};return e.createElement(e.Fragment,null,e.createElement(v,{active:s,onClick:x,label:"Insert Image"},e.createElement(P,{name:"addDocument"})),e.createElement(h,{onOpenChange:f,open:s},e.createElement("form",{onSubmit:async t=>{t.preventDefault(),B.validate(r,{abortEarly:!1}).then(()=>{let o={alt:r&&r.alt!==void 0?r.alt:null,url:r&&r.url!==void 0?r.url:null};T.dispatchCommand(I,o),p()},g)},noValidate:!0},e.createElement(w,null,"Insert Image"),e.createElement(L,null,e.createElement("div",{className:b.fullWidth},e.createElement(D,{validationStatus:n?.url?"error":void 0},e.createElement(y,null,"Url for image"),e.createElement(S,{value:r?.url,inputProps:{name:"url"},onChange:F}),e.createElement(A,null,n?.url)),e.createElement(D,{validationStatus:n?.alt?"error":void 0},e.createElement(y,null,"Alternative Information (alt)"),e.createElement(S,{value:r?.alt,inputProps:{name:"alt"},onChange:F}),e.createElement(A,null,n?.alt||"Provides alternative information for the image if for some reason it cannot be viewed")))),e.createElement(N,null,e.createElement(q,null,e.createElement(c,{onClick:p},"Cancel"),e.createElement(c,{variant:"cta",type:"submit"},"Insert"))))))};export{Y as a};
@@ -1 +0,0 @@
1
- import{a as C}from"./chunk-WZYDYWT3.js";import{a as k}from"./chunk-XSZUCLBY.js";import{a as I}from"./chunk-3QIETKQW.js";import{e as p}from"./chunk-G57W376H.js";import{$createLinkNode as W,TOGGLE_LINK_COMMAND as G}from"@lexical/link";import{useLexicalComposerContext as U}from"@lexical/react/LexicalComposerContext";import{$wrapNodes as j}from"@lexical/selection";import{$createParagraphNode as Y,$createTextNode as z,$getSelection as J,$isRangeSelection as Q,$isTextNode as X,COMMAND_PRIORITY_EDITOR as Z,createCommand as R}from"lexical";import ee,{useCallback as te,useEffect as ne}from"react";import e,{useEffect as O,useState as F}from"react";import{useLexicalComposerContext as B}from"@lexical/react/LexicalComposerContext";import{Button as N,Icon as _}from"@jpmorganchase/mosaic-components";import{string as h,object as A}from"yup";import{Input as T,FormField as D,FormFieldLabel as S,FormFieldHelperText as E}from"@salt-ds/core";import{ButtonBar as $,DialogTitle as w,DialogContent as K,DialogActions as q}from"@salt-ds/lab";import{$getSelection as V,$isRangeSelection as H}from"lexical";var b=A({url:h().required("Url is required"),text:h().required("Text is required").max(100,"Text must be fewer than 100 characters")}),Le=()=>{let{isInsertingLink:t,setIsInsertingLink:r}=p();return e.createElement(I,{active:t,onClick:()=>r(!0),label:"Insert Link"},e.createElement(_,{name:"linked"}))},v={url:"https://",text:""},y=()=>{let[t]=B(),{isInsertingLink:r,setIsInsertingLink:s}=p(),[o,i]=F(v),[a,d]=F(),m=n=>{s(n),n||(d(void 0),i(v))},g=()=>{m(!1)};O(()=>{t.getEditorState().read(()=>{if(r){let n=V();if(H(n)){let l=n.getTextContent();i(u=>({...u,text:l}))}}})},[t,r]);let x=n=>{let l=n.inner.reduce((u,{path:c,message:P})=>({...u,[c]:P}),{});d(l)},L=n=>{let{name:l,value:u}=n.target,c={...o,[l]:u};b.validateAt(l,c,{abortEarly:!1}).then(()=>{d({...a,[l]:void 0})},x),i(c)},M=async()=>{b.validate(o,{abortEarly:!1}).then(()=>{let n={url:o?.url,text:o?.text};t.dispatchCommand(f,n),g()},x)};return e.createElement(k,{onOpenChange:m,open:r},e.createElement(w,null,"Insert Link"),e.createElement(K,null,e.createElement("div",{className:C.fullWidth},e.createElement(D,{validationStatus:a?.url?"error":void 0},e.createElement(S,null,"Image URL text"),e.createElement(T,{value:o?.url,inputProps:{name:"url"},onChange:L}),e.createElement(E,null,a?.url)),e.createElement(D,{validationStatus:a?.text?"error":void 0},e.createElement(S,null,"Link Text"),e.createElement(T,{value:o?.text,inputProps:{name:"text"},onChange:L}),e.createElement(E,null,a?.text)))),e.createElement(q,null,e.createElement($,null,e.createElement(N,{onClick:g},"Cancel"),e.createElement(N,{variant:"cta",onClick:M},"Insert"))))};var f=R();function oe(){let[t]=U(),r=te(({url:s,text:o})=>{t.update(()=>{let i=J();if(Q(i)&&s!==void 0&&o!==void 0){let a=i.focus.getNode();if(X(a))t.dispatchCommand(G,s);else{let d=W(s),m=z(o);m.setFormat(i.focus.getNode().getFormat()),d.append(m),j(i,()=>d,Y())}}})},[t]);ne(()=>t.registerCommand(f,s=>(r(s),!0),Z),[t,r])}function Se(){return oe(),ee.createElement(y,null)}export{f as a,Se as b,Le as c,y as d};
@@ -1 +0,0 @@
1
- import{a as k}from"./chunk-VDGHHU3F.js";import{a as y}from"./chunk-R2MEEU32.js";import{a as P}from"./chunk-M4ISRNFD.js";import{a as b}from"./chunk-3LGZ7Z7G.js";import{a as D}from"./chunk-XSZUCLBY.js";import{c as C,d as S}from"./chunk-G57W376H.js";import e,{useState as g}from"react";import F from"md5";import{useLexicalComposerContext as G}from"@lexical/react/LexicalComposerContext";import{$convertToMarkdownString as O}from"@lexical/markdown";import{Link as $,P2 as w,Button as v}from"@jpmorganchase/mosaic-components";import{ButtonBar as J,DialogTitle as U,DialogContent as V,DialogActions as _}from"@salt-ds/lab";var j=({isRaising:f,prHref:l,error:c})=>!f&&!l&&!c?e.createElement(e.Fragment,null,e.createElement(w,null,"The content of this page resides in a Git repository and to update it requires a Pull Request which will be reviewed by the content owners."),e.createElement("br",null),e.createElement(w,null,"Should you decide to stop editing before creating the Pull Request then all changes will be lost.")):null,le=({meta:f,persistUrl:l})=>{let{pageState:c,setPageState:B}=C(),{user:p}=S(),[q]=G(),[s,t]=g(!1),[r,n]=g(null),[i,m]=g(null),[E,a]=g([]),d=c==="SAVING",I=r!==null?"success":"info",h=o=>{t(o),o||(B("EDIT"),n(null),a([]))},M=()=>{h(!1)},x=o=>{m(o||"Sorry - an unexpected error has occurred"),n(null),a([]),t(!1)},T=o=>{n(o.message?.links?.self[0]?.href),t(!1)},A=o=>{a(u=>[...u,o])},{sendWorkflowProgressMessage:H}=b(d,x,A,T),L=()=>{t(!0),n(null),m(null);try{q.update(()=>{let o=O(P);if(o&&p&&l){let{sid:u,displayName:N,email:W}=p;H(JSON.stringify({user:{sid:u,name:N,email:W},route:f.route,markdown:o,name:"save"}),F(`${u.toLowerCase()} - save`))}})}catch{m("Sorry - an unexpected error has occurred"),n(null),t(!1),a([])}};return e.createElement(D,{onOpenChange:h,open:d,status:i?"error":I},e.createElement(U,{className:y.title},r?"Pull Request Created Successfully":"Save Changes"),e.createElement(V,null,(s||i)&&!r&&e.createElement(k,{error:i,progress:E}),e.createElement(j,{isRaising:s,prHref:r,error:i}),!s&&r&&e.createElement($,{href:r,target:"_blank"},"A Pull Request for your changes has been created")),e.createElement(_,null,e.createElement(J,null,e.createElement(v,{disabled:s,onClick:M},r?"Done":"Cancel"),e.createElement(v,{disabled:l===void 0||s||r!==null,onClick:L,variant:"cta"},"Raise Pull Request"))))};export{le as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-OW5SK4AJ.js";import s from"react";import{Dialog as t}from"@salt-ds/lab";import{themeClassName as l}from"@jpmorganchase/mosaic-theme";import i from"clsx";var f=({className:a,...r})=>s.createElement(t,{className:i(l,o.root,a),...r});export{f as a};
@@ -1,9 +0,0 @@
1
- import { style } from '@vanilla-extract/css';
2
-
3
- import { POPPER_Z_INDEX } from '../Popper/Popper.css';
4
-
5
- export default {
6
- menu: style({
7
- zIndex: POPPER_Z_INDEX + 1
8
- })
9
- };