@haklex/rich-ext-embed 0.0.24 → 0.0.25

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.
package/dist/index.mjs CHANGED
@@ -180,6 +180,7 @@ function FallbackLink({ url, type }) {
180
180
  );
181
181
  }
182
182
  function TweetRenderer({ url }) {
183
+ const colorScheme = useColorScheme();
183
184
  let parsedUrl = null;
184
185
  try {
185
186
  parsedUrl = new URL(url);
@@ -199,7 +200,13 @@ function TweetRenderer({ url }) {
199
200
  children: "Loading tweet..."
200
201
  }
201
202
  ),
202
- children: /* @__PURE__ */ jsx(LazyTweet, { id })
203
+ children: /* @__PURE__ */ jsx(
204
+ LazyTweet,
205
+ {
206
+ id,
207
+ theme: colorScheme === "dark" ? "dark" : "light"
208
+ }
209
+ )
203
210
  }
204
211
  ) }) });
205
212
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedStaticRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/EmbedStaticRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AASzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAuDhD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IACtB,GAAG,EAAE,MAAM,CAAA;CACZ;AA8QD,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,wBAAwB,kDA+F1E"}
1
+ {"version":3,"file":"EmbedStaticRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/EmbedStaticRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AASzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAuDhD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IACtB,GAAG,EAAE,MAAM,CAAA;CACZ;AAkRD,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,wBAAwB,kDA+F1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-embed",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Embed extension for Twitter, YouTube, etc.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,8 +18,8 @@
18
18
  "dependencies": {
19
19
  "lucide-react": "^0.574.0",
20
20
  "react-tweet": "npm:@innei/react-tweet@3.4.2",
21
- "@haklex/rich-editor": "0.0.24",
22
- "@haklex/rich-style-token": "0.0.24"
21
+ "@haklex/rich-editor": "0.0.25",
22
+ "@haklex/rich-style-token": "0.0.25"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@lexical/react": "^0.40.0",