@inploi/plugin-kin 2.4.1 → 2.4.3
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/cdn/index.js +81 -75
- package/dist/components/launcher-input.d.ts +1 -1
- package/dist/components/widget.d.ts +1 -1
- package/dist/highlighted-body-B3W2YXNL-15e6e8b8.cjs +1 -0
- package/dist/highlighted-body-B3W2YXNL-253b4ec3.js +18 -0
- package/dist/index-3f4392e3.cjs +153 -0
- package/dist/{index-b9e2c37d.js → index-d25ecdf4.js} +7678 -6958
- package/dist/mermaid-3ZIDBTTL-4d7b0491.cjs +1 -0
- package/dist/mermaid-3ZIDBTTL-b4c4fb06.js +5 -0
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +6 -2
- package/dist/code-block-37QAKDTI-0022772d.js +0 -26
- package/dist/code-block-37QAKDTI-028371a3.cjs +0 -2
- package/dist/index-3cbf8b36.cjs +0 -146
- package/dist/mermaid-4DMBBIKO-2bdad7af.js +0 -5
- package/dist/mermaid-4DMBBIKO-4b88003e.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3f4392e3.cjs");require("@inploi/sdk");exports.Mermaid=e.Nt;
|
package/dist/plugin-kin.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3f4392e3.cjs");require("@inploi/sdk");exports.BRAND_THEMES=e.BRAND_THEMES;exports.kinPlugin=e.kinPlugin;
|
package/dist/plugin-kin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-kin",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Kin - A unified Talent Agent interface for hiring. One system, many roles.",
|
|
6
6
|
"main": "dist/plugin-kin.js",
|
|
@@ -26,8 +26,12 @@
|
|
|
26
26
|
"@preact/preset-vite": "2.5.0",
|
|
27
27
|
"@preact/signals": "1.2.2",
|
|
28
28
|
"@types/node": "^20.10.0",
|
|
29
|
+
"autoprefixer": "^10.4.19",
|
|
29
30
|
"concurrently": "9.1.2",
|
|
31
|
+
"cva": "1.0.0-beta.1",
|
|
32
|
+
"postcss": "8.4.33",
|
|
30
33
|
"preact": "10.16.0",
|
|
34
|
+
"tailwindcss": "^3.4.6",
|
|
31
35
|
"vite": "^4.4.5",
|
|
32
36
|
"vite-plugin-dts": "^3.7.0",
|
|
33
37
|
"vite-tsconfig-paths": "^4.2.1",
|
|
@@ -35,7 +39,7 @@
|
|
|
35
39
|
"tsconfig": "0.1.0"
|
|
36
40
|
},
|
|
37
41
|
"dependencies": {
|
|
38
|
-
"streamdown": "^2.
|
|
42
|
+
"streamdown": "^2.3.0",
|
|
39
43
|
"@inploi/colors": "1.0.1"
|
|
40
44
|
},
|
|
41
45
|
"scripts": {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { b as m, x as h, F as u, o as r, q as f, N as k, c as p, h as x, p as N, a as v } from "./index-b9e2c37d.js";
|
|
2
|
-
import "@inploi/sdk";
|
|
3
|
-
var y = m("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), w = h(({ children: a, result: e, language: o, className: s, ...g }) => {
|
|
4
|
-
let d = u(() => ({ backgroundColor: e.bg, color: e.fg }), [e.bg, e.fg]);
|
|
5
|
-
return r("pre", { className: m(s, "p-4 text-sm dark:bg-(--shiki-dark-bg)!"), "data-language": o, "data-streamdown": "code-block-body", style: d, ...g, children: r("code", { className: "[counter-increment:line_0] [counter-reset:line]", children: e.tokens.map((c, l) => r("span", { className: y, children: c.map((t, n) => r("span", { className: "dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!", style: { color: t.color, backgroundColor: t.bgColor, ...t.htmlStyle }, ...t.htmlAttrs, children: t.content }, n)) }, l)) }) });
|
|
6
|
-
}, (a, e) => a.result === e.result && a.language === e.language && a.className === e.className), C = ({ className: a, language: e, style: o, ...s }) => r("div", { className: m("my-4 w-full overflow-hidden rounded-xl border border-border", a), "data-language": e, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s }), S = ({ language: a, children: e }) => r("div", { className: "flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs", "data-language": a, "data-streamdown": "code-block-header", children: [r("span", { className: "ml-1 font-mono lowercase", children: a }), r("div", { className: "flex items-center gap-2", children: e })] }), z = ({ code: a, language: e, className: o, children: s, ...g }) => {
|
|
7
|
-
let { shikiTheme: d } = f(k), c = p(), l = u(() => ({ bg: "transparent", fg: "inherit", tokens: a.split(`
|
|
8
|
-
`).map((i) => [{ content: i, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [a]), [t, n] = x(l);
|
|
9
|
-
return N(() => {
|
|
10
|
-
if (!c) {
|
|
11
|
-
n(l);
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
let i = c.highlight({ code: a, language: e, themes: d }, (b) => {
|
|
15
|
-
n(b);
|
|
16
|
-
});
|
|
17
|
-
if (i) {
|
|
18
|
-
n(i);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
n(l);
|
|
22
|
-
}, [a, e, d, c, l]), r(v.Provider, { value: { code: a }, children: r(C, { language: e, children: [r(S, { language: e, children: s }), r(w, { className: o, language: e, result: t, ...g })] }) });
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
z as CodeBlock
|
|
26
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3cbf8b36.cjs");require("@inploi/sdk");var m=e.b("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),b=e.x(({children:a,result:r,language:n,className:c,...g})=>{let d=e.F(()=>({backgroundColor:r.bg,color:r.fg}),[r.bg,r.fg]);return e.o("pre",{className:e.b(c,"p-4 text-sm dark:bg-(--shiki-dark-bg)!"),"data-language":n,"data-streamdown":"code-block-body",style:d,...g,children:e.o("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:r.tokens.map((s,l)=>e.o("span",{className:m,children:s.map((t,o)=>e.o("span",{className:"dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!",style:{color:t.color,backgroundColor:t.bgColor,...t.htmlStyle},...t.htmlAttrs,children:t.content},o))},l))})})},(a,r)=>a.result===r.result&&a.language===r.language&&a.className===r.className),h=({className:a,language:r,style:n,...c})=>e.o("div",{className:e.b("my-4 w-full overflow-hidden rounded-xl border border-border",a),"data-language":r,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...c}),f=({language:a,children:r})=>e.o("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-language":a,"data-streamdown":"code-block-header",children:[e.o("span",{className:"ml-1 font-mono lowercase",children:a}),e.o("div",{className:"flex items-center gap-2",children:r})]}),k=({code:a,language:r,className:n,children:c,...g})=>{let{shikiTheme:d}=e.q(e.N),s=e.cr(),l=e.F(()=>({bg:"transparent",fg:"inherit",tokens:a.split(`
|
|
2
|
-
`).map(i=>[{content:i,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[a]),[t,o]=e.h(l);return e.p(()=>{if(!s){o(l);return}let i=s.highlight({code:a,language:r,themes:d},u=>{o(u)});if(i){o(i);return}o(l)},[a,r,d,s,l]),e.o(e.ao.Provider,{value:{code:a},children:e.o(h,{language:r,children:[e.o(f,{language:r,children:c}),e.o(b,{className:n,language:r,result:t,...g})]})})};exports.CodeBlock=k;
|