@assistant-ui/react-markdown 0.7.19 → 0.7.20

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.
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
8
11
  var __export = (target, all) => {
9
12
  for (var name in all)
10
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -27,13 +30,81 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
30
  ));
28
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
32
 
33
+ // ../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js
34
+ var require_createPlugin = __commonJS({
35
+ "../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
36
+ "use strict";
37
+ Object.defineProperty(exports2, "__esModule", {
38
+ value: true
39
+ });
40
+ Object.defineProperty(exports2, "default", {
41
+ enumerable: true,
42
+ get: function() {
43
+ return _default;
44
+ }
45
+ });
46
+ function createPlugin(plugin2, config) {
47
+ return {
48
+ handler: plugin2,
49
+ config
50
+ };
51
+ }
52
+ createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
53
+ const optionsFunction = function(options) {
54
+ return {
55
+ __options: options,
56
+ handler: pluginFunction(options),
57
+ config: configFunction(options)
58
+ };
59
+ };
60
+ optionsFunction.__isOptionsFunction = true;
61
+ optionsFunction.__pluginFunction = pluginFunction;
62
+ optionsFunction.__configFunction = configFunction;
63
+ return optionsFunction;
64
+ };
65
+ var _default = createPlugin;
66
+ }
67
+ });
68
+
69
+ // ../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js
70
+ var require_create_plugin = __commonJS({
71
+ "../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
72
+ "use strict";
73
+ Object.defineProperty(exports2, "__esModule", {
74
+ value: true
75
+ });
76
+ Object.defineProperty(exports2, "default", {
77
+ enumerable: true,
78
+ get: function() {
79
+ return _default;
80
+ }
81
+ });
82
+ var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
83
+ function _interop_require_default(obj) {
84
+ return obj && obj.__esModule ? obj : {
85
+ default: obj
86
+ };
87
+ }
88
+ var _default = _createPlugin.default;
89
+ }
90
+ });
91
+
92
+ // ../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js
93
+ var require_plugin = __commonJS({
94
+ "../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js"(exports2, module2) {
95
+ "use strict";
96
+ var createPlugin = require_create_plugin();
97
+ module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
98
+ }
99
+ });
100
+
30
101
  // src/tailwindcss/index.ts
31
102
  var tailwindcss_exports = {};
32
103
  __export(tailwindcss_exports, {
33
104
  default: () => tailwindcss_default
34
105
  });
35
106
  module.exports = __toCommonJS(tailwindcss_exports);
36
- var import_plugin = __toESM(require("tailwindcss/plugin.js"));
107
+ var import_plugin = __toESM(require_plugin());
37
108
  var import_markdown_css = __toESM(require("../../dist/styles/tailwindcss/markdown.css.json"));
38
109
  var auiPlugin = import_plugin.default.withOptions(() => ({ addComponents }) => {
39
110
  addComponents(import_markdown_css.default);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/tailwindcss/index.ts"],"sourcesContent":["import plugin from \"tailwindcss/plugin.js\";\nimport markdownCSS from \"../../dist/styles/tailwindcss/markdown.css.json\";\n\nconst auiPlugin = plugin.withOptions<{}>(() => ({ addComponents }) => {\n addComponents(markdownCSS);\n});\n\nexport default auiPlugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,0BAAwB;AAExB,IAAM,YAAY,cAAAA,QAAO,YAAgB,MAAM,CAAC,EAAE,cAAc,MAAM;AACpE,gBAAc,oBAAAC,OAAW;AAC3B,CAAC;AAED,IAAO,sBAAQ;","names":["plugin","markdownCSS"]}
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js","../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js","../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js","../../src/tailwindcss/index.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n","import plugin from \"tailwindcss/plugin.js\";\nimport markdownCSS from \"../../dist/styles/tailwindcss/markdown.css.json\";\n\nconst auiPlugin = plugin.withOptions<{}>(() => ({ addComponents }) => {\n addComponents(markdownCSS);\n});\n\nexport default auiPlugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,kGAAAA,UAAA;AAAA;AACA,WAAO,eAAeA,UAAS,cAAc;AAAA,MACzC,OAAO;AAAA,IACX,CAAC;AACD,WAAO,eAAeA,UAAS,WAAW;AAAA,MACtC,YAAY;AAAA,MACZ,KAAK,WAAW;AACZ,eAAO;AAAA,MACX;AAAA,IACJ,CAAC;AACD,aAAS,aAAaC,SAAQ,QAAQ;AAClC,aAAO;AAAA,QACH,SAASA;AAAA,QACT;AAAA,MACJ;AAAA,IACJ;AACA,iBAAa,cAAc,SAAS,gBAAgB,iBAAiB,OAAK,CAAC,IAAI;AAC3E,YAAM,kBAAkB,SAAS,SAAS;AACtC,eAAO;AAAA,UACH,WAAW;AAAA,UACX,SAAS,eAAe,OAAO;AAAA,UAC/B,QAAQ,eAAe,OAAO;AAAA,QAClC;AAAA,MACJ;AACA,sBAAgB,sBAAsB;AAGtC,sBAAgB,mBAAmB;AACnC,sBAAgB,mBAAmB;AACnC,aAAO;AAAA,IACX;AACA,QAAM,WAAW;AAAA;AAAA;;;AC/BjB;AAAA,qGAAAC,UAAA;AAAA;AACA,WAAO,eAAeA,UAAS,cAAc;AAAA,MACzC,OAAO;AAAA,IACX,CAAC;AACD,WAAO,eAAeA,UAAS,WAAW;AAAA,MACtC,YAAY;AAAA,MACZ,KAAK,WAAW;AACZ,eAAO;AAAA,MACX;AAAA,IACJ,CAAC;AACD,QAAM,gBAA8B,yCAAyB,sBAA+B;AAC5F,aAAS,yBAAyB,KAAK;AACnC,aAAO,OAAO,IAAI,aAAa,MAAM;AAAA,QACjC,SAAS;AAAA,MACb;AAAA,IACJ;AACA,QAAM,WAAW,cAAc;AAAA;AAAA;;;AChB/B;AAAA,mFAAAC,UAAAC,SAAA;AAAA;AAAA,QAAI,eAAe;AACnB,IAAAA,QAAO,WAAW,aAAa,aAAa,eAAe,EAAE,SAAS,aAAa,GAAG;AAAA;AAAA;;;ACDtF;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,0BAAwB;AAExB,IAAM,YAAY,cAAAC,QAAO,YAAgB,MAAM,CAAC,EAAE,cAAc,MAAM;AACpE,gBAAc,oBAAAC,OAAW;AAC3B,CAAC;AAED,IAAO,sBAAQ;","names":["exports","plugin","exports","exports","module","plugin","markdownCSS"]}
@@ -1,7 +1,101 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // ../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js
28
+ var require_createPlugin = __commonJS({
29
+ "../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js"(exports) {
30
+ "use strict";
31
+ Object.defineProperty(exports, "__esModule", {
32
+ value: true
33
+ });
34
+ Object.defineProperty(exports, "default", {
35
+ enumerable: true,
36
+ get: function() {
37
+ return _default;
38
+ }
39
+ });
40
+ function createPlugin(plugin2, config) {
41
+ return {
42
+ handler: plugin2,
43
+ config
44
+ };
45
+ }
46
+ createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
47
+ const optionsFunction = function(options) {
48
+ return {
49
+ __options: options,
50
+ handler: pluginFunction(options),
51
+ config: configFunction(options)
52
+ };
53
+ };
54
+ optionsFunction.__isOptionsFunction = true;
55
+ optionsFunction.__pluginFunction = pluginFunction;
56
+ optionsFunction.__configFunction = configFunction;
57
+ return optionsFunction;
58
+ };
59
+ var _default = createPlugin;
60
+ }
61
+ });
62
+
63
+ // ../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js
64
+ var require_create_plugin = __commonJS({
65
+ "../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js"(exports) {
66
+ "use strict";
67
+ Object.defineProperty(exports, "__esModule", {
68
+ value: true
69
+ });
70
+ Object.defineProperty(exports, "default", {
71
+ enumerable: true,
72
+ get: function() {
73
+ return _default;
74
+ }
75
+ });
76
+ var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
77
+ function _interop_require_default(obj) {
78
+ return obj && obj.__esModule ? obj : {
79
+ default: obj
80
+ };
81
+ }
82
+ var _default = _createPlugin.default;
83
+ }
84
+ });
85
+
86
+ // ../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js
87
+ var require_plugin = __commonJS({
88
+ "../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js"(exports, module) {
89
+ "use strict";
90
+ var createPlugin = require_create_plugin();
91
+ module.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
92
+ }
93
+ });
94
+
1
95
  // src/tailwindcss/index.ts
2
- import plugin from "tailwindcss/plugin.js";
96
+ var import_plugin = __toESM(require_plugin());
3
97
  import markdownCSS from "../../dist/styles/tailwindcss/markdown.css.json";
4
- var auiPlugin = plugin.withOptions(() => ({ addComponents }) => {
98
+ var auiPlugin = import_plugin.default.withOptions(() => ({ addComponents }) => {
5
99
  addComponents(markdownCSS);
6
100
  });
7
101
  var tailwindcss_default = auiPlugin;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/tailwindcss/index.ts"],"sourcesContent":["import plugin from \"tailwindcss/plugin.js\";\nimport markdownCSS from \"../../dist/styles/tailwindcss/markdown.css.json\";\n\nconst auiPlugin = plugin.withOptions<{}>(() => ({ addComponents }) => {\n addComponents(markdownCSS);\n});\n\nexport default auiPlugin;\n"],"mappings":";AAAA,OAAO,YAAY;AACnB,OAAO,iBAAiB;AAExB,IAAM,YAAY,OAAO,YAAgB,MAAM,CAAC,EAAE,cAAc,MAAM;AACpE,gBAAc,WAAW;AAC3B,CAAC;AAED,IAAO,sBAAQ;","names":[]}
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/util/createPlugin.js","../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/lib/public/create-plugin.js","../../../../node_modules/.pnpm/tailwindcss@3.4.17/node_modules/tailwindcss/plugin.js","../../src/tailwindcss/index.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n","import plugin from \"tailwindcss/plugin.js\";\nimport markdownCSS from \"../../dist/styles/tailwindcss/markdown.css.json\";\n\nconst auiPlugin = plugin.withOptions<{}>(() => ({ addComponents }) => {\n addComponents(markdownCSS);\n});\n\nexport default auiPlugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc;AAAA,MACzC,OAAO;AAAA,IACX,CAAC;AACD,WAAO,eAAe,SAAS,WAAW;AAAA,MACtC,YAAY;AAAA,MACZ,KAAK,WAAW;AACZ,eAAO;AAAA,MACX;AAAA,IACJ,CAAC;AACD,aAAS,aAAaA,SAAQ,QAAQ;AAClC,aAAO;AAAA,QACH,SAASA;AAAA,QACT;AAAA,MACJ;AAAA,IACJ;AACA,iBAAa,cAAc,SAAS,gBAAgB,iBAAiB,OAAK,CAAC,IAAI;AAC3E,YAAM,kBAAkB,SAAS,SAAS;AACtC,eAAO;AAAA,UACH,WAAW;AAAA,UACX,SAAS,eAAe,OAAO;AAAA,UAC/B,QAAQ,eAAe,OAAO;AAAA,QAClC;AAAA,MACJ;AACA,sBAAgB,sBAAsB;AAGtC,sBAAgB,mBAAmB;AACnC,sBAAgB,mBAAmB;AACnC,aAAO;AAAA,IACX;AACA,QAAM,WAAW;AAAA;AAAA;;;AC/BjB;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc;AAAA,MACzC,OAAO;AAAA,IACX,CAAC;AACD,WAAO,eAAe,SAAS,WAAW;AAAA,MACtC,YAAY;AAAA,MACZ,KAAK,WAAW;AACZ,eAAO;AAAA,MACX;AAAA,IACJ,CAAC;AACD,QAAM,gBAA8B,yCAAyB,sBAA+B;AAC5F,aAAS,yBAAyB,KAAK;AACnC,aAAO,OAAO,IAAI,aAAa,MAAM;AAAA,QACjC,SAAS;AAAA,MACb;AAAA,IACJ;AACA,QAAM,WAAW,cAAc;AAAA;AAAA;;;AChB/B;AAAA;AAAA;AAAA,QAAI,eAAe;AACnB,WAAO,WAAW,aAAa,aAAa,eAAe,EAAE,SAAS,aAAa,GAAG;AAAA;AAAA;;;ACDtF,oBAAmB;AACnB,OAAO,iBAAiB;AAExB,IAAM,YAAY,cAAAC,QAAO,YAAgB,MAAM,CAAC,EAAE,cAAc,MAAM;AACpE,gBAAc,WAAW;AAC3B,CAAC;AAED,IAAO,sBAAQ;","names":["plugin","plugin"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assistant-ui/react-markdown",
3
- "version": "0.7.19",
3
+ "version": "0.7.20",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -41,17 +41,13 @@
41
41
  "react-markdown": "^9.0.3"
42
42
  },
43
43
  "peerDependencies": {
44
- "@assistant-ui/react": "^0.7.74",
44
+ "@assistant-ui/react": "^0.7.75",
45
45
  "@types/react": "*",
46
- "react": "^18 || ^19 || ^19.0.0-rc",
47
- "tailwindcss": "^3.4.4"
46
+ "react": "^18 || ^19 || ^19.0.0-rc"
48
47
  },
49
48
  "peerDependenciesMeta": {
50
49
  "@types/react": {
51
50
  "optional": true
52
- },
53
- "tailwindcss": {
54
- "optional": true
55
51
  }
56
52
  },
57
53
  "devDependencies": {
@@ -65,10 +61,10 @@
65
61
  "tailwindcss": "^3.4.17",
66
62
  "tailwindcss-animate": "^1.0.7",
67
63
  "tsx": "^4.19.2",
68
- "@assistant-ui/react": "0.7.74",
69
- "@assistant-ui/tailwindcss-transformer": "0.1.0",
70
64
  "@assistant-ui/tsbuildutils": "^0.0.1",
71
- "@assistant-ui/tsconfig": "0.0.0"
65
+ "@assistant-ui/tsconfig": "0.0.0",
66
+ "@assistant-ui/react": "0.7.75",
67
+ "@assistant-ui/tailwindcss-transformer": "0.1.0"
72
68
  },
73
69
  "publishConfig": {
74
70
  "access": "public",