@bouku/core 0.0.5 → 0.0.6

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,2 +1,3 @@
1
1
  import type { ReactNode } from "react";
2
2
  export declare function formatText(text: string): ReactNode;
3
+ export declare const linkify: (label: string, link: string) => string;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linkify = void 0;
3
4
  exports.formatText = formatText;
4
5
  const jsx_runtime_1 = require("react/jsx-runtime");
5
6
  const ts_1 = require("@bouko/ts");
@@ -34,3 +35,5 @@ function formatText(text) {
34
35
  return ((0, jsx_runtime_1.jsx)("span", { className: delimiter.style, children: content }, index));
35
36
  }) });
36
37
  }
38
+ const linkify = (label, link) => `[${label}](${link})`;
39
+ exports.linkify = linkify;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouku/core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",