@elmethis/react 0.24.0 → 0.25.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.
Files changed (97) hide show
  1. package/README.md +2 -2
  2. package/lib/index.react.cjs +5 -5
  3. package/lib/index.react.mjs +2659 -3092
  4. package/lib/style.css +1 -1
  5. package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -1
  6. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts +4 -4
  7. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts.map +1 -1
  8. package/lib-types/components/a2ui/elm-a2ui.d.ts +3 -3
  9. package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -1
  10. package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -1
  11. package/lib-types/components/code/elm-html-viewer.d.ts.map +1 -1
  12. package/lib-types/components/code/elm-html.d.ts.map +1 -1
  13. package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -1
  14. package/lib-types/components/containments/elm-modal.d.ts.map +1 -1
  15. package/lib-types/components/containments/elm-parallax.d.ts.map +1 -1
  16. package/lib-types/components/containments/elm-toggle.d.ts.map +1 -1
  17. package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -1
  18. package/lib-types/components/form/elm-button-dropdown.d.ts.map +1 -1
  19. package/lib-types/components/form/elm-select.d.ts.map +1 -1
  20. package/lib-types/components/form/elm-slider.d.ts.map +1 -1
  21. package/lib-types/components/form/elm-text-field.d.ts.map +1 -1
  22. package/lib-types/components/icon/elm-language-icon.d.ts +2 -3
  23. package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -1
  24. package/lib-types/components/icon/language-glyph.d.ts.map +1 -1
  25. package/lib-types/components/media/elm-audio-player.d.ts.map +1 -1
  26. package/lib-types/components/media/elm-file.d.ts.map +1 -1
  27. package/lib-types/components/others/elm-color-primitive-sample.d.ts.map +1 -1
  28. package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -1
  29. package/lib-types/components/others/elm-markdown.d.ts.map +1 -1
  30. package/lib-types/components/others/use-wordle.d.ts.map +1 -1
  31. package/lib-types/components/table/elm-table-cell.d.ts.map +1 -1
  32. package/lib-types/components/table/elm-table.d.ts.map +1 -1
  33. package/lib-types/components/typography/elm-heading.d.ts.map +1 -1
  34. package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -1
  35. package/lib-types/hooks/use-async-state.d.ts.map +1 -1
  36. package/lib-types/hooks/use-clipboard.d.ts.map +1 -1
  37. package/lib-types/hooks/use-debounced-store.d.ts.map +1 -1
  38. package/lib-types/hooks/use-delayed-signal.d.ts.map +1 -1
  39. package/lib-types/hooks/use-elmethis-theme.d.ts +15 -5
  40. package/lib-types/hooks/use-elmethis-theme.d.ts.map +1 -1
  41. package/lib-types/hooks/use-storage.d.ts.map +1 -1
  42. package/lib-types/hooks/use-throttled-queue.d.ts.map +1 -1
  43. package/lib-types/hooks/use-throttled-signal.d.ts.map +1 -1
  44. package/lib-types/hooks/use-throttled-store.d.ts.map +1 -1
  45. package/package.json +44 -49
  46. package/lib-types/components/a2ui/catalog/block-catalog.d.ts +0 -18
  47. package/lib-types/components/a2ui/catalog/block-catalog.d.ts.map +0 -1
  48. package/lib-types/components/form/elm-select-button.d.ts +0 -90
  49. package/lib-types/components/form/elm-select-button.d.ts.map +0 -1
  50. package/lib-types/components/icon/elm-iconify-icon.d.ts +0 -39
  51. package/lib-types/components/icon/elm-iconify-icon.d.ts.map +0 -1
  52. package/lib-types/components/icon/languages/bash.d.ts +0 -3
  53. package/lib-types/components/icon/languages/bash.d.ts.map +0 -1
  54. package/lib-types/components/icon/languages/c-plus-plus.d.ts +0 -3
  55. package/lib-types/components/icon/languages/c-plus-plus.d.ts.map +0 -1
  56. package/lib-types/components/icon/languages/c-sharp.d.ts +0 -3
  57. package/lib-types/components/icon/languages/c-sharp.d.ts.map +0 -1
  58. package/lib-types/components/icon/languages/c.d.ts +0 -3
  59. package/lib-types/components/icon/languages/c.d.ts.map +0 -1
  60. package/lib-types/components/icon/languages/css.d.ts +0 -3
  61. package/lib-types/components/icon/languages/css.d.ts.map +0 -1
  62. package/lib-types/components/icon/languages/go.d.ts +0 -3
  63. package/lib-types/components/icon/languages/go.d.ts.map +0 -1
  64. package/lib-types/components/icon/languages/html.d.ts +0 -3
  65. package/lib-types/components/icon/languages/html.d.ts.map +0 -1
  66. package/lib-types/components/icon/languages/java.d.ts +0 -3
  67. package/lib-types/components/icon/languages/java.d.ts.map +0 -1
  68. package/lib-types/components/icon/languages/javascript.d.ts +0 -3
  69. package/lib-types/components/icon/languages/javascript.d.ts.map +0 -1
  70. package/lib-types/components/icon/languages/json.d.ts +0 -3
  71. package/lib-types/components/icon/languages/json.d.ts.map +0 -1
  72. package/lib-types/components/icon/languages/kotlin.d.ts +0 -3
  73. package/lib-types/components/icon/languages/kotlin.d.ts.map +0 -1
  74. package/lib-types/components/icon/languages/language-interface.d.ts +0 -7
  75. package/lib-types/components/icon/languages/language-interface.d.ts.map +0 -1
  76. package/lib-types/components/icon/languages/lua.d.ts +0 -3
  77. package/lib-types/components/icon/languages/lua.d.ts.map +0 -1
  78. package/lib-types/components/icon/languages/npm.d.ts +0 -3
  79. package/lib-types/components/icon/languages/npm.d.ts.map +0 -1
  80. package/lib-types/components/icon/languages/python.d.ts +0 -3
  81. package/lib-types/components/icon/languages/python.d.ts.map +0 -1
  82. package/lib-types/components/icon/languages/rust.d.ts +0 -3
  83. package/lib-types/components/icon/languages/rust.d.ts.map +0 -1
  84. package/lib-types/components/icon/languages/sql.d.ts +0 -3
  85. package/lib-types/components/icon/languages/sql.d.ts.map +0 -1
  86. package/lib-types/components/icon/languages/terraform.d.ts +0 -3
  87. package/lib-types/components/icon/languages/terraform.d.ts.map +0 -1
  88. package/lib-types/components/icon/languages/typescript.d.ts +0 -3
  89. package/lib-types/components/icon/languages/typescript.d.ts.map +0 -1
  90. package/lib-types/components/icon/mdi-bundle.d.ts +0 -3
  91. package/lib-types/components/icon/mdi-bundle.d.ts.map +0 -1
  92. package/lib-types/components/others/elm-html-viewer.d.ts +0 -13
  93. package/lib-types/components/others/elm-html-viewer.d.ts.map +0 -1
  94. package/lib-types/components/others/elm-html.d.ts +0 -13
  95. package/lib-types/components/others/elm-html.d.ts.map +0 -1
  96. package/lib-types/components/others/elm-jarkup.d.ts +0 -8
  97. package/lib-types/components/others/elm-jarkup.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdi-bundle.d.ts","sourceRoot":"","sources":["../../../src/components/icon/mdi-bundle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,SAAS,EAAE,WA8IvB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { type ComponentPropsWithoutRef } from "react";
2
- import { type ElmHtmlProps } from "./elm-html";
3
- export interface ElmHtmlViewerProps extends ComponentPropsWithoutRef<"figure">, Pick<ElmHtmlProps, "sandbox" | "autoHeight"> {
4
- /** Raw HTML markup to render, and to open in a new tab or download. */
5
- html: string;
6
- /**
7
- * Filename used when downloading the HTML via the header's download button.
8
- * @default "download.html"
9
- */
10
- filename?: string;
11
- }
12
- export declare const ElmHtmlViewer: ({ className, html, filename, sandbox, autoHeight, ...rest }: ElmHtmlViewerProps) => import("react").JSX.Element;
13
- //# sourceMappingURL=elm-html-viewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elm-html-viewer.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-html-viewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAMnE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAGxD,MAAM,WAAW,kBACf,SACE,wBAAwB,CAAC,QAAQ,CAAC,EAClC,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,YAAY,CAAC;IAC9C,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,GAAI,6DAO3B,kBAAkB,gCAyFpB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { type ComponentPropsWithoutRef } from "react";
2
- export interface ElmHtmlProps extends Omit<ComponentPropsWithoutRef<"iframe">, "src" | "srcDoc"> {
3
- /** Raw HTML markup to render, e.g. a Claude-authored artifact or a Notion page export. */
4
- html: string;
5
- /**
6
- * Stretch the iframe to fit its content height. Set to false to size it
7
- * yourself instead (via `style`, `height`, or a CSS class).
8
- * @default true
9
- */
10
- autoHeight?: boolean;
11
- }
12
- export declare const ElmHtml: ({ className, html, sandbox, style, height, autoHeight, title, ...rest }: ElmHtmlProps) => import("react").JSX.Element;
13
- //# sourceMappingURL=elm-html.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elm-html.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-html.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,wBAAwB,CAAC,QAAQ,CAAC,EAClC,KAAK,GAAG,QAAQ,CACjB;IACC,0FAA0F;IAC1F,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,OAAO,GAAI,yEASrB,YAAY,gCA0Id,CAAC"}
@@ -1,8 +0,0 @@
1
- import { type ComponentPropsWithoutRef } from "react";
2
- import type { Component } from "jarkup-ts";
3
- export interface ElmJarkupProps extends ComponentPropsWithoutRef<"div"> {
4
- jsonComponents: Component[];
5
- skipUnsupportedComponentWarning?: boolean;
6
- }
7
- export declare const ElmJarkup: ({ className, style, jsonComponents, skipUnsupportedComponentWarning, ...rest }: ElmJarkupProps) => import("react").JSX.Element;
8
- //# sourceMappingURL=elm-jarkup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elm-jarkup.d.ts","sourceRoot":"","sources":["../../../src/components/others/elm-jarkup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,WAAW,CAAC;AAkC5D,MAAM,WAAW,cAAe,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACrE,cAAc,EAAE,SAAS,EAAE,CAAC;IAE5B,+BAA+B,CAAC,EAAE,OAAO,CAAC;CAC3C;AAgBD,eAAO,MAAM,SAAS,GAAI,gFAMvB,cAAc,gCAwThB,CAAC"}