@haklex/rich-kit-shiro 0.0.29 → 0.0.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.
@@ -1,4 +1,6 @@
1
1
  import { ShiroRendererProps } from './ShiroRenderer';
2
- export type IsolateRendererProps = ShiroRendererProps;
3
- export declare function IsolateRenderer({ theme, className, ...props }: IsolateRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export type IsolateRendererProps = ShiroRendererProps & {
3
+ extraCss?: string;
4
+ };
5
+ export declare function IsolateRenderer({ theme, className, extraCss, ...props }: IsolateRendererProps): import("react/jsx-runtime").JSX.Element;
4
6
  //# sourceMappingURL=IsolateRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IsolateRenderer.d.ts","sourceRoot":"","sources":["../src/IsolateRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAOzD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAErD,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAStB"}
1
+ {"version":3,"file":"IsolateRenderer.d.ts","sourceRoot":"","sources":["../src/IsolateRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAOzD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAStB"}
package/dist/editor.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import root from "react-shadow";
3
3
  import { S as ShiroEditor } from "./ShiroEditor-10Lrfj7a.js";
4
- import { c as cssText } from "./style-0W32i_gm.js";
4
+ import { c as cssText } from "./style-BjmJDix0.js";
5
5
  const resolvedCss = cssText.replaceAll(":root {", ":root, :host {");
6
6
  function IsolateEditor({
7
7
  theme = "light",
package/dist/renderer.mjs CHANGED
@@ -1,15 +1,16 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import root from "react-shadow";
3
3
  import { S as ShiroRenderer } from "./ShiroRenderer-B-khUmQf.js";
4
- import { c as cssText } from "./style-0W32i_gm.js";
4
+ import { c as cssText } from "./style-BjmJDix0.js";
5
5
  const resolvedCss = cssText.replaceAll(":root {", ":root, :host {");
6
6
  function IsolateRenderer({
7
7
  theme = "light",
8
8
  className,
9
+ extraCss,
9
10
  ...props
10
11
  }) {
11
12
  return /* @__PURE__ */ jsx(root.div, { className, children: /* @__PURE__ */ jsxs("div", { id: "shadow-html", "data-theme": theme, children: [
12
- /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: resolvedCss } }),
13
+ /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: extraCss ? resolvedCss + extraCss : resolvedCss } }),
13
14
  /* @__PURE__ */ jsx(ShiroRenderer, { ...props, theme })
14
15
  ] }) });
15
16
  }