@aquera/nile-elements 1.8.4 → 1.8.6

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 (71) hide show
  1. package/README.md +7 -0
  2. package/demo/nxtgen-classes.css +10658 -19
  3. package/demo/nxtgen-utilities.css +10658 -19
  4. package/dist/index.cjs.js +1 -1
  5. package/dist/index.esm.js +1 -1
  6. package/dist/index.js +849 -300
  7. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  8. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  9. package/dist/nile-filter-chip/nile-filter-chip.esm.js +1 -1
  10. package/dist/nile-markdown/index.cjs.js +2 -0
  11. package/dist/nile-markdown/index.cjs.js.map +1 -0
  12. package/dist/nile-markdown/index.esm.js +1 -0
  13. package/dist/nile-markdown/nile-markdown.cjs.js +30 -0
  14. package/dist/nile-markdown/nile-markdown.cjs.js.map +1 -0
  15. package/dist/nile-markdown/nile-markdown.css.cjs.js +2 -0
  16. package/dist/nile-markdown/nile-markdown.css.cjs.js.map +1 -0
  17. package/dist/nile-markdown/nile-markdown.css.esm.js +152 -0
  18. package/dist/nile-markdown/nile-markdown.esm.js +3 -0
  19. package/dist/nile-markdown-editor/index.cjs.js +2 -0
  20. package/dist/nile-markdown-editor/index.cjs.js.map +1 -0
  21. package/dist/nile-markdown-editor/index.esm.js +1 -0
  22. package/dist/nile-markdown-editor/nile-markdown-editor.cjs.js +2 -0
  23. package/dist/nile-markdown-editor/nile-markdown-editor.cjs.js.map +1 -0
  24. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +2 -0
  25. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -0
  26. package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +255 -0
  27. package/dist/nile-markdown-editor/nile-markdown-editor.esm.js +143 -0
  28. package/dist/src/index.d.ts +2 -0
  29. package/dist/src/index.js +2 -0
  30. package/dist/src/index.js.map +1 -1
  31. package/dist/src/nile-filter-chip/nile-filter-chip.js +1 -1
  32. package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
  33. package/dist/src/nile-markdown/index.d.ts +1 -0
  34. package/dist/src/nile-markdown/index.js +2 -0
  35. package/dist/src/nile-markdown/index.js.map +1 -0
  36. package/dist/src/nile-markdown/nile-markdown.css.d.ts +10 -0
  37. package/dist/src/nile-markdown/nile-markdown.css.js +163 -0
  38. package/dist/src/nile-markdown/nile-markdown.css.js.map +1 -0
  39. package/dist/src/nile-markdown/nile-markdown.d.ts +91 -0
  40. package/dist/src/nile-markdown/nile-markdown.js +167 -0
  41. package/dist/src/nile-markdown/nile-markdown.js.map +1 -0
  42. package/dist/src/nile-markdown/nile-markdown.test.d.ts +1 -0
  43. package/dist/src/nile-markdown/nile-markdown.test.js +192 -0
  44. package/dist/src/nile-markdown/nile-markdown.test.js.map +1 -0
  45. package/dist/src/nile-markdown-editor/index.d.ts +1 -0
  46. package/dist/src/nile-markdown-editor/index.js +2 -0
  47. package/dist/src/nile-markdown-editor/index.js.map +1 -0
  48. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.d.ts +10 -0
  49. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +266 -0
  50. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -0
  51. package/dist/src/nile-markdown-editor/nile-markdown-editor.d.ts +121 -0
  52. package/dist/src/nile-markdown-editor/nile-markdown-editor.js +615 -0
  53. package/dist/src/nile-markdown-editor/nile-markdown-editor.js.map +1 -0
  54. package/dist/src/nile-markdown-editor/nile-markdown-editor.test.d.ts +1 -0
  55. package/dist/src/nile-markdown-editor/nile-markdown-editor.test.js +268 -0
  56. package/dist/src/nile-markdown-editor/nile-markdown-editor.test.js.map +1 -0
  57. package/dist/src/version.js +2 -2
  58. package/dist/src/version.js.map +1 -1
  59. package/dist/tsconfig.tsbuildinfo +1 -1
  60. package/package.json +2 -1
  61. package/src/index.ts +3 -1
  62. package/src/nile-filter-chip/nile-filter-chip.ts +1 -1
  63. package/src/nile-markdown/index.ts +1 -0
  64. package/src/nile-markdown/nile-markdown.css.ts +164 -0
  65. package/src/nile-markdown/nile-markdown.test.ts +252 -0
  66. package/src/nile-markdown/nile-markdown.ts +179 -0
  67. package/src/nile-markdown-editor/index.ts +1 -0
  68. package/src/nile-markdown-editor/nile-markdown-editor.css.ts +267 -0
  69. package/src/nile-markdown-editor/nile-markdown-editor.test.ts +402 -0
  70. package/src/nile-markdown-editor/nile-markdown-editor.ts +710 -0
  71. package/vscode-html-custom-data.json +82 -0
@@ -4294,6 +4294,88 @@
4294
4294
  }
4295
4295
  ]
4296
4296
  },
4297
+ {
4298
+ "name": "nile-markdown-editor",
4299
+ "description": "Events:\n\n * `nile-input` {} - Emitted with `{ value }` on every keystroke or toolbar action.\n\n * `nile-change` {} - Emitted with `{ value }` when the editor loses focus after an edit.\n\n * `nile-mode-change` {} - Emitted with `{ mode }` when the write/preview/split mode changes.\n\nAttributes:\n\n * `value` {`string`} - The markdown source.\n\n * `placeholder` {`string`} - Placeholder shown when the editor is empty.\n\n * `disabled` {`boolean`} - Disables the editor.\n\n * `readonly` {`boolean`} - Makes the source read-only while still allowing mode switching.\n\n * `rows` {`number`} - Number of visible text rows in write mode.\n\n * `mode` {`MarkdownEditorMode`} - Active view: `write`, `preview`, or `split`.\n\n * `hide-toolbar` {`boolean`} - Hides the formatting toolbar.\n\n * `tools` {string} - Allowlist of toolbar tool names to show. Accepts a JSON array via the\n`tools` attribute (e.g. `tools='[\"bold\",\"italic\",\"link\"]'`), a\ncomma-separated string, or an array when set as a property. When empty\n(default) every tool is shown. Valid names: `heading`, `bold`, `italic`,\n`strikethrough`, `quote`, `code`, `ul`, `ol`, `link`.\n\nProperties:\n\n * `styles` - \n\n * `value` {`string`} - The markdown source.\n\n * `placeholder` {`string`} - Placeholder shown when the editor is empty.\n\n * `disabled` {`boolean`} - Disables the editor.\n\n * `readonly` {`boolean`} - Makes the source read-only while still allowing mode switching.\n\n * `rows` {`number`} - Number of visible text rows in write mode.\n\n * `mode` {`MarkdownEditorMode`} - Active view: `write`, `preview`, or `split`.\n\n * `hideToolbar` {`boolean`} - Hides the formatting toolbar.\n\n * `allowedTools` {`Set<string> | null`} - Parsed allowlist, or `null` when no allowlist is set (show everything).\n\n * `visibleGroups` {`ToolbarAction[][]`} - Toolbar groups after applying the allowlist; empty groups are dropped.\n\n * `textarea` {`HTMLTextAreaElement | undefined`} - \n\n * `bodyEl` {`HTMLElement | undefined`} - \n\n * `splitRatio` {`number`} - Fraction of the body width given to the write pane in split mode\n(the rest goes to the preview). Clamped to a sensible range while\ndragging the splitter.\n\n * `splitDragging` {`boolean`} - Whether the split divider is currently being dragged.\n\n * `startSplitDrag` - Begins a pointer-driven resize of the split divider.\n\n * `resetSplit` - Resets the splitter to a 50/50 layout (double-click affordance).\n\n * `handleInput` - \n\n * `handleChange` - \n\n * `handleKeydown` - \n\n * `tools` {string} - Allowlist of toolbar tool names to show. Accepts a JSON array via the\n`tools` attribute (e.g. `tools='[\"bold\",\"italic\",\"link\"]'`), a\ncomma-separated string, or an array when set as a property. When empty\n(default) every tool is shown. Valid names: `heading`, `bold`, `italic`,\n`strikethrough`, `quote`, `code`, `ul`, `ol`, `link`.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
4300
+ "attributes": [
4301
+ {
4302
+ "name": "value",
4303
+ "description": "`value` {`string`} - The markdown source.\n\nProperty: value\n\nDefault: "
4304
+ },
4305
+ {
4306
+ "name": "placeholder",
4307
+ "description": "`placeholder` {`string`} - Placeholder shown when the editor is empty.\n\nProperty: placeholder\n\nDefault: Write markdown here…"
4308
+ },
4309
+ {
4310
+ "name": "disabled",
4311
+ "description": "`disabled` {`boolean`} - Disables the editor.\n\nProperty: disabled\n\nDefault: false",
4312
+ "valueSet": "v"
4313
+ },
4314
+ {
4315
+ "name": "readonly",
4316
+ "description": "`readonly` {`boolean`} - Makes the source read-only while still allowing mode switching.\n\nProperty: readonly\n\nDefault: false",
4317
+ "valueSet": "v"
4318
+ },
4319
+ {
4320
+ "name": "rows",
4321
+ "description": "`rows` {`number`} - Number of visible text rows in write mode.\n\nProperty: rows\n\nDefault: 8"
4322
+ },
4323
+ {
4324
+ "name": "mode",
4325
+ "description": "`mode` {`MarkdownEditorMode`} - Active view: `write`, `preview`, or `split`.\n\nProperty: mode\n\nDefault: write",
4326
+ "values": [
4327
+ {
4328
+ "name": "write"
4329
+ },
4330
+ {
4331
+ "name": "preview"
4332
+ },
4333
+ {
4334
+ "name": "split"
4335
+ }
4336
+ ]
4337
+ },
4338
+ {
4339
+ "name": "hide-toolbar",
4340
+ "description": "`hide-toolbar` {`boolean`} - Hides the formatting toolbar.\n\nProperty: hideToolbar\n\nDefault: false",
4341
+ "valueSet": "v"
4342
+ },
4343
+ {
4344
+ "name": "tools",
4345
+ "description": "`tools` {string} - Allowlist of toolbar tool names to show. Accepts a JSON array via the\n`tools` attribute (e.g. `tools='[\"bold\",\"italic\",\"link\"]'`), a\ncomma-separated string, or an array when set as a property. When empty\n(default) every tool is shown. Valid names: `heading`, `bold`, `italic`,\n`strikethrough`, `quote`, `code`, `ul`, `ol`, `link`.\n\nProperty: tools\n\nDefault: "
4346
+ },
4347
+ {
4348
+ "name": "onnile-input",
4349
+ "description": "`nile-input` {} - Emitted with `{ value }` on every keystroke or toolbar action."
4350
+ },
4351
+ {
4352
+ "name": "onnile-change",
4353
+ "description": "`nile-change` {} - Emitted with `{ value }` when the editor loses focus after an edit."
4354
+ },
4355
+ {
4356
+ "name": "onnile-mode-change",
4357
+ "description": "`nile-mode-change` {} - Emitted with `{ mode }` when the write/preview/split mode changes."
4358
+ }
4359
+ ]
4360
+ },
4361
+ {
4362
+ "name": "nile-markdown",
4363
+ "description": "Events:\n\n * `nile-markdown-rendered` {} - Emitted after the markdown has been parsed and rendered.\n\nAttributes:\n\n * `value` {`string`} - The markdown to render. Takes precedence over a\n`<script type=\"text/markdown\">` child when set.\n\n * `tab-size` {`number`} - Number of spaces a tab is converted to during whitespace normalization.\n\nProperties:\n\n * `styles` - \n\n * `marked` - The shared Marked instance used by every nile-markdown on the page.\n\n * `instances` {`Set<NileMarkdown>`} - All connected instances, used by `updateAll()`.\n\n * `value` {`string`} - The markdown to render. Takes precedence over a\n`<script type=\"text/markdown\">` child when set.\n\n * `tabSize` {`number`} - Number of spaces a tab is converted to during whitespace normalization.\n\n * `renderedHtml` {`string`} - \n\n * `mutationObserver` {`MutationObserver`} - Re-renders automatically when the markdown script child changes.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
4364
+ "attributes": [
4365
+ {
4366
+ "name": "value",
4367
+ "description": "`value` {`string`} - The markdown to render. Takes precedence over a\n`<script type=\"text/markdown\">` child when set.\n\nProperty: value\n\nDefault: "
4368
+ },
4369
+ {
4370
+ "name": "tab-size",
4371
+ "description": "`tab-size` {`number`} - Number of spaces a tab is converted to during whitespace normalization.\n\nProperty: tabSize\n\nDefault: 4"
4372
+ },
4373
+ {
4374
+ "name": "onnile-markdown-rendered",
4375
+ "description": "`nile-markdown-rendered` {} - Emitted after the markdown has been parsed and rendered."
4376
+ }
4377
+ ]
4378
+ },
4297
4379
  {
4298
4380
  "name": "nile-menu-item",
4299
4381
  "description": "Nile icon component.\n\nSlots:\n\n * ` ` {} - The menu item's label.\n\n * `prefix` {} - Used to prepend an icon or similar element to the menu item.\n\n * `suffix` {} - Used to append an icon or similar element to the menu item.\n\nAttributes:\n\n * `type` {`\"normal\" | \"checkbox\"`} - The type of menu item to render. To use `checked`, this value must be set to `checkbox`.\n\n * `checked` {`boolean`} - Draws the item in a checked state.\n\n * `value` {`string`} - A unique value to store in the menu item. This can be used as a way to identify menu items when selected.\n\n * `disabled` {`boolean`} - Draws the menu item in a disabled state, preventing selection.\n\n * `active` {`boolean`} - Draws the menu item in an active/selected state.\n\n * `hasSubMenu` {`boolean`} - Draws the item in a checked state.\n\nProperties:\n\n * `styles` - \n\n * `cachedTextLabel` {`string`} - \n\n * `defaultSlot` {`HTMLSlotElement`} - \n\n * `menuItem` {`HTMLElement`} - \n\n * `type` {`\"normal\" | \"checkbox\"`} - The type of menu item to render. To use `checked`, this value must be set to `checkbox`.\n\n * `checked` {`boolean`} - Draws the item in a checked state.\n\n * `value` {`string`} - A unique value to store in the menu item. This can be used as a way to identify menu items when selected.\n\n * `disabled` {`boolean`} - Draws the menu item in a disabled state, preventing selection.\n\n * `active` {`boolean`} - Draws the menu item in an active/selected state.\n\n * `hasSubMenu` {`boolean`} - Draws the item in a checked state.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",