@mediansh/widget 0.7.0 → 0.9.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.
package/README.md CHANGED
@@ -39,9 +39,8 @@ follows the person rather than the browser:
39
39
  <MedianSupport identity="/api/median/identity" />;
40
40
  ```
41
41
 
42
- It costs your first paint 93KB of JavaScript and 12KB of CSS, gzipped. The
43
- markdown renderer is another 199KB and loads when somebody reaches for the
44
- panel, so wrapping this in `dynamic()` only delays the launcher.
42
+ The markdown renderer and the screenshot code load on demand, so do not wrap
43
+ this in `dynamic()`. That only delays the launcher.
45
44
 
46
45
  ## Without React
47
46
 
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  clsx,
4
4
  twMerge
5
- } from "./chunk-W6NPKKCE.js";
5
+ } from "./chunk-HLALDSPM.js";
6
6
 
7
7
  // ../../apps/web/src/lib/utils.ts
8
8
  function cn(...inputs) {
@@ -12,4 +12,4 @@ function cn(...inputs) {
12
12
  export {
13
13
  cn
14
14
  };
15
- //# sourceMappingURL=chunk-3KEM4W7J.js.map
15
+ //# sourceMappingURL=chunk-3ZXE5RBN.js.map
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
11
+ var __commonJS = (cb, mod) => function __require() {
12
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
+ };
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
+ // If the importer is in node compatibility mode or this is not an ESM
28
+ // file that has been converted to a CommonJS file using a Babel-
29
+ // compatible transform (i.e. "__esModule" has not been set), then set
30
+ // "default" to the CommonJS "module.exports" for node compatibility.
31
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
+ mod
33
+ ));
34
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
+
36
+ export {
37
+ __esm,
38
+ __commonJS,
39
+ __export,
40
+ __toESM,
41
+ __toCommonJS
42
+ };
43
+ //# sourceMappingURL=chunk-77KIJLPP.js.map
@@ -1,37 +1,4 @@
1
1
  "use client";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
- // If the importer is in node compatibility mode or this is not an ESM
28
- // file that has been converted to a CommonJS file using a Babel-
29
- // compatible transform (i.e. "__esModule" has not been set), then set
30
- // "default" to the CommonJS "module.exports" for node compatibility.
31
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
- mod
33
- ));
34
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
2
 
36
3
  // ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
37
4
  function r(e) {
@@ -3303,12 +3270,7 @@ var getDefaultConfig = () => {
3303
3270
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
3304
3271
 
3305
3272
  export {
3306
- __esm,
3307
- __commonJS,
3308
- __export,
3309
- __toESM,
3310
- __toCommonJS,
3311
3273
  clsx,
3312
3274
  twMerge
3313
3275
  };
3314
- //# sourceMappingURL=chunk-W6NPKKCE.js.map
3276
+ //# sourceMappingURL=chunk-HLALDSPM.js.map