markupeditor 0.9.28 → 0.9.30

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.
@@ -360,6 +360,7 @@ function registerMessageHandler(handler, name) {_registry.registerMessageHandler
360
360
  *
361
361
  * When we register an editor, it becomes the active editor.
362
362
  *
363
+ * @function
363
364
  * @param {MarkupEditor} editor The MarkupEditor to be added
364
365
  */
365
366
  const registerEditor = _registry.registerEditor.bind(_registry);
@@ -367,6 +368,7 @@ const registerEditor = _registry.registerEditor.bind(_registry);
367
368
  /**
368
369
  * Remove the `editor` from the registry.
369
370
  *
371
+ * @function
370
372
  * @param {MarkupEditor} editor The MarkupEditor to be removed
371
373
  */
372
374
  const unregisterEditor = _registry.unregisterEditor.bind(_registry);
@@ -374,6 +376,7 @@ const unregisterEditor = _registry.unregisterEditor.bind(_registry);
374
376
  /**
375
377
  * Remove the `delegate` from the registry.
376
378
  *
379
+ * @function
377
380
  * @param {MarkupDelegate | object} delegate A MarkupDelegate or appropriate object.
378
381
  * @param {string} name A name used to retrieve the `delegate`.
379
382
  */
@@ -382,6 +385,7 @@ _registry.unregisterDelegate.bind(_registry);
382
385
  /**
383
386
  * Return the `delegate` with `name`.
384
387
  *
388
+ * @function
385
389
  * @param {string} name A name used to retrieve the `delegate`.
386
390
  * @returns {MarkupDelegate | object | undefined}
387
391
  */
@@ -390,6 +394,7 @@ const getDelegate = _registry.getDelegate.bind(_registry);
390
394
  /**
391
395
  * Remove the `config` from the registry.
392
396
  *
397
+ * @function
393
398
  * @param {ToolbarConfig | KeymapConfig | BehaviorConfig | object} config One of the "configs" from the MarkupEditor API or appropriate object.
394
399
  * @param {string} name A name used to retrieve the `config`.
395
400
  */
@@ -398,6 +403,7 @@ _registry.unregisterConfig.bind(_registry);
398
403
  /**
399
404
  * Return the `config` with `name`.
400
405
  *
406
+ * @function
401
407
  * @param {string} name A name used to retrieve the `config`.
402
408
  * @returns {ToolbarConfig | KeymapConfig | BehaviorConfig | object | undefined}
403
409
  */
@@ -406,6 +412,7 @@ const getConfig = _registry.getConfig.bind(_registry);
406
412
  /**
407
413
  * Remove the `handler` from the registry.
408
414
  *
415
+ * @function
409
416
  * @param {MessageHandler | object} handler An instance of MessageHandler or appropriate object.
410
417
  * @param {string} name A name used to retrieve the `handler`.
411
418
  */
@@ -414,6 +421,7 @@ _registry.unregisterMessageHandler.bind(_registry);
414
421
  /**
415
422
  * Return the `handler` with `name`.
416
423
  *
424
+ * @function
417
425
  * @param {string} name A name used to retrieve the `handler`.
418
426
  * @returns {MessageHandler | object | undefined}
419
427
  */
@@ -422,6 +430,7 @@ const getMessageHandler = _registry.getMessageHandler.bind(_registry);
422
430
  /**
423
431
  * Remove the `toolbar` augmentation from the registry.
424
432
  *
433
+ * @function
425
434
  * @param {object} toolbar A toolbar that holds `cmdItems`.
426
435
  * @param {string} name A name used to retrieve the `toolbar`.
427
436
  */
@@ -431,6 +440,7 @@ _registry.unregisterAugmentation.bind(_registry);
431
440
  * Return the `toolbar` whose `menuItems` will be
432
441
  * either prepended or appended to the normal MarkupEditor toolbar.
433
442
  *
443
+ * @function
434
444
  * @param {string} name A name used to retrieve the `toolbar`.
435
445
  * @returns {object | undefined}
436
446
  */
@@ -439,6 +449,7 @@ const getAugmentation = _registry.getAugmentation.bind(_registry);
439
449
  /**
440
450
  * Return the active editor with `muId` of the registry's `activeMuId`.
441
451
  *
452
+ * @function
442
453
  * @returns {MarkupEditor | undefined}
443
454
  */
444
455
  _registry.activeEditor.bind(_registry);
@@ -446,6 +457,7 @@ _registry.activeEditor.bind(_registry);
446
457
  /**
447
458
  * Return the active editor's `document` (could be the shadow root).
448
459
  *
460
+ * @function
449
461
  * @returns {Document | ShadowRoot | undefined}
450
462
  */
451
463
  const activeDocument = _registry.activeDocument.bind(_registry);
@@ -453,6 +465,7 @@ const activeDocument = _registry.activeDocument.bind(_registry);
453
465
  /**
454
466
  * Set `activeMuId` based on `document` (could be a shadow root).
455
467
  *
468
+ * @function
456
469
  * @param {Document | ShadowRoot} document
457
470
  */
458
471
  const setActiveDocument = _registry.setActiveDocument.bind(_registry);
@@ -460,6 +473,7 @@ const setActiveDocument = _registry.setActiveDocument.bind(_registry);
460
473
  /**
461
474
  * Return the active editor's element (typically with focus).
462
475
  *
476
+ * @function
463
477
  * @returns {Element | undefined}
464
478
  */
465
479
  const activeEditorElement = _registry.activeEditorElement.bind(_registry);
@@ -467,6 +481,7 @@ const activeEditorElement = _registry.activeEditorElement.bind(_registry);
467
481
  /**
468
482
  * Return the active editor's `messageHandler`.
469
483
  *
484
+ * @function
470
485
  * @returns {MessageHandler | object | undefined}
471
486
  */
472
487
  _registry.activeMessageHandler.bind(_registry);
@@ -474,6 +489,7 @@ _registry.activeMessageHandler.bind(_registry);
474
489
  /**
475
490
  * Return the active editor's instance of Searcher, `searcher`.
476
491
  *
492
+ * @function
477
493
  * @returns {object | undefined}
478
494
  */
479
495
  const activeSearcher = _registry.activeSearcher.bind(_registry);
@@ -481,6 +497,7 @@ const activeSearcher = _registry.activeSearcher.bind(_registry);
481
497
  /**
482
498
  * Return the cached ID of the selected contentEditable element.
483
499
  *
500
+ * @function
484
501
  * @returns {string | undefined}
485
502
  */
486
503
  const selectedID = _registry.selectedID.bind(_registry);
@@ -488,6 +505,7 @@ const selectedID = _registry.selectedID.bind(_registry);
488
505
  /**
489
506
  * Set/cache the ID of the selected contentEditable element to `string`.
490
507
  *
508
+ * @function
491
509
  * @param {string} string
492
510
  */
493
511
  const setSelectedID = _registry.setSelectedID.bind(_registry);
@@ -495,6 +513,7 @@ const setSelectedID = _registry.setSelectedID.bind(_registry);
495
513
  /**
496
514
  * Add `plugin` to the registry, keyed by `name`.
497
515
  *
516
+ * @function
498
517
  * @param {object} plugin Plugin object with string values for { name, type, filename }.
499
518
  * @param {string} name The key used to retrieve and invoke the plugin.
500
519
  */
@@ -503,6 +522,7 @@ const registerPlugin = _registry.registerPlugin.bind(_registry);
503
522
  /**
504
523
  * Remove the plugin with `name` from the registry.
505
524
  *
525
+ * @function
506
526
  * @param {string} name The key used to identify the plugin.
507
527
  */
508
528
  const unregisterPlugin = _registry.unregisterPlugin.bind(_registry);
@@ -510,6 +530,7 @@ const unregisterPlugin = _registry.unregisterPlugin.bind(_registry);
510
530
  /**
511
531
  * Return the plugin object with `name`, or undefined if not found.
512
532
  *
533
+ * @function
513
534
  * @param {string} name The key used to identify the plugin.
514
535
  * @returns {object|undefined}
515
536
  */
@@ -519,6 +540,7 @@ const getPlugin = _registry.getPlugin.bind(_registry);
519
540
  * Return an array of registered plugins that match `type`, all if not specified.
520
541
  * Each entry contains {name, type, filename}
521
542
  *
543
+ * @function
522
544
  * @param {string} [type] The plugin type to filter by; all plugins are returned if omitted.
523
545
  * @returns {Array<{name: string, type: string, filename: string}>}
524
546
  */
@@ -42462,6 +42484,7 @@ const MU = {
42462
42484
  reportError,
42463
42485
  resetSelection,
42464
42486
  savedDataImage,
42487
+ schema,
42465
42488
  searchFor,
42466
42489
  setActiveView,
42467
42490
  setHTML,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markupeditor",
3
- "version": "0.9.28",
3
+ "version": "0.9.30",
4
4
  "description": "A web component and API for WYSIWYG HTML editing.",
5
5
  "keywords": [
6
6
  "wysiwyg",