@devalok/shilp-sutra 0.55.0 → 0.56.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/BREAKING.json +13 -0
- package/MIGRATION.md +56 -0
- package/README.md +16 -1
- package/dist/_chunks/badge-group.js +45 -45
- package/dist/_chunks/emoji-suggestion.js +32 -30
- package/dist/_chunks/emoji-suggestion.js.map +1 -1
- package/dist/_chunks/mention-suggestion.js +35 -34
- package/dist/_chunks/mention-suggestion.js.map +1 -1
- package/dist/_chunks/primitives-internal.js +437 -537
- package/dist/_chunks/primitives-internal.js.map +1 -1
- package/dist/composed/content-card.js +18 -18
- package/dist/composed/extensions/emoji-node.js +8 -7
- package/dist/composed/extensions/emoji-node.js.map +1 -1
- package/dist/composed/rich-chat-input.js +535 -526
- package/dist/composed/rich-chat-input.js.map +1 -1
- package/dist/composed/rich-text-editor.js +201 -193
- package/dist/composed/rich-text-editor.js.map +1 -1
- package/dist/tokens/primitives.css +6 -1
- package/dist/tokens/semantic.css +1 -1
- package/dist/ui/alert.js +29 -29
- package/dist/ui/avatar.js +42 -42
- package/dist/ui/banner.js +25 -25
- package/dist/ui/button.js +31 -31
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.js +39 -39
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -0
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/combobox.js +135 -135
- package/dist/ui/combobox.js.map +1 -1
- package/dist/ui/dot.js +13 -13
- package/dist/ui/input.js +25 -25
- package/dist/ui/lib/utils.js +2 -1
- package/dist/ui/lib/utils.js.map +1 -1
- package/dist/ui/number-input.js +36 -36
- package/dist/ui/progress.js +55 -55
- package/dist/ui/select.js +58 -58
- package/dist/ui/sheet.js +46 -46
- package/dist/ui/sidebar.js +128 -128
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.js +39 -39
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +18 -17
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/surface.js +9 -9
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +1 -0
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/tabs.js +47 -47
- package/dist/ui/text.js +8 -8
- package/dist/ui/textarea.js +12 -12
- package/dist/ui/toggle.js +12 -12
- package/docs/recipes/install-astro.md +2 -2
- package/docs/recipes/install-next-app-router.md +2 -2
- package/docs/recipes/install-remix.md +2 -2
- package/docs/recipes/install-tanstack-start.md +2 -2
- package/docs/recipes/install-vite.md +2 -2
- package/docs/recipes/troubleshoot.md +26 -5
- package/llms.txt +1 -1
- package/mcp-manifest.json +24 -3
- package/package.json +39 -11
- package/skill/SKILL.md +1 -1
- package/skill/references/components.md +1 -1
- package/skill/references/setup-astro.md +2 -2
- package/skill/references/setup-next-app-router.md +2 -2
- package/skill/references/setup-remix.md +2 -2
- package/skill/references/setup-tanstack-start.md +2 -2
- package/skill/references/setup-vite.md +2 -2
- package/skill/references/troubleshoot.md +26 -5
- package/dist/_chunks/tiptap.js +0 -18809
- package/dist/_chunks/tiptap.js.map +0 -1
- package/dist/_chunks/vendor-utils.js +0 -1766
- package/dist/_chunks/vendor-utils.js.map +0 -1
- package/scripts/welcome.mjs +0 -312
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { cn as e } from "../ui/lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { cva as a } from "class-variance-authority";
|
|
5
5
|
//#region src/composed/content-card.tsx
|
|
6
|
-
var o =
|
|
6
|
+
var o = a("rounded-surface will-change-[box-shadow] transition-[color,background-color,border-color,box-shadow] duration-fast-02 ease-productive-standard", {
|
|
7
7
|
variants: {
|
|
8
8
|
variant: {
|
|
9
9
|
default: "bg-surface-raised shadow-raised hover:shadow-raised-hover",
|
|
@@ -33,32 +33,32 @@ var o = e("rounded-surface will-change-[box-shadow] transition-[color,background
|
|
|
33
33
|
case "spacious": return "p-ds-06";
|
|
34
34
|
default: return "p-ds-05b";
|
|
35
35
|
}
|
|
36
|
-
}, l =
|
|
36
|
+
}, l = t.forwardRef(({ variant: t, padding: a, header: l, headerTitle: u, headerActions: d, footer: f, className: p, children: m, ...h }, g) => {
|
|
37
37
|
let _ = l || u || d;
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ i("div", {
|
|
39
39
|
ref: g,
|
|
40
|
-
className:
|
|
41
|
-
variant:
|
|
42
|
-
padding: _ || f ? "none" :
|
|
40
|
+
className: e(o({
|
|
41
|
+
variant: t,
|
|
42
|
+
padding: _ || f ? "none" : a
|
|
43
43
|
}), p),
|
|
44
44
|
...h,
|
|
45
45
|
children: [
|
|
46
|
-
_ && /* @__PURE__ */
|
|
47
|
-
className:
|
|
48
|
-
children: l ?? /* @__PURE__ */
|
|
46
|
+
_ && /* @__PURE__ */ r("div", {
|
|
47
|
+
className: e("flex items-center justify-between border-b border-surface-border-strong", s(a)),
|
|
48
|
+
children: l ?? /* @__PURE__ */ i(n, { children: [u && /* @__PURE__ */ r("h3", {
|
|
49
49
|
className: "text-body-lg font-semibold text-surface-fg",
|
|
50
50
|
children: u
|
|
51
|
-
}), d && /* @__PURE__ */
|
|
51
|
+
}), d && /* @__PURE__ */ r("div", {
|
|
52
52
|
className: "flex items-center gap-ds-03",
|
|
53
53
|
children: d
|
|
54
54
|
})] })
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
className:
|
|
56
|
+
/* @__PURE__ */ r("div", {
|
|
57
|
+
className: e((_ || f) && c(a)),
|
|
58
58
|
children: m
|
|
59
59
|
}),
|
|
60
|
-
f && /* @__PURE__ */
|
|
61
|
-
className:
|
|
60
|
+
f && /* @__PURE__ */ r("div", {
|
|
61
|
+
className: e("border-t border-surface-border-strong", s(a)),
|
|
62
62
|
children: f
|
|
63
63
|
})
|
|
64
64
|
]
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { NodeViewWrapper as t, ReactNodeViewRenderer as n } from "@tiptap/react";
|
|
4
|
+
import { Node as r } from "@tiptap/core";
|
|
4
5
|
//#region src/composed/extensions/emoji-node.tsx
|
|
5
|
-
function i({ node:
|
|
6
|
-
let { native:
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
function i({ node: n }) {
|
|
7
|
+
let { native: r } = n.attrs;
|
|
8
|
+
return /* @__PURE__ */ e(t, {
|
|
8
9
|
as: "span",
|
|
9
10
|
className: "inline",
|
|
10
|
-
children: /* @__PURE__ */
|
|
11
|
+
children: /* @__PURE__ */ e("span", { children: r })
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
|
-
var a =
|
|
14
|
+
var a = r.create({
|
|
14
15
|
name: "emojiNode",
|
|
15
16
|
group: "inline",
|
|
16
17
|
inline: !0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emoji-node.js","names":[],"sources":["../../../src/composed/extensions/emoji-node.tsx"],"sourcesContent":["import { Node } from '@tiptap/core'\nimport { type NodeViewProps,NodeViewWrapper, ReactNodeViewRenderer } from '@tiptap/react'\n\n// Native-only since the frimousse migration — renders the native emoji\n// character. (The emoji-mart spritesheet/art-style rendering was removed.)\nexport interface EmojiNodeAttrs {\n id: string\n native: string\n}\n\nfunction EmojiNodeView({ node }: NodeViewProps) {\n const { native } = node.attrs as EmojiNodeAttrs\n return (\n <NodeViewWrapper as=\"span\" className=\"inline\">\n <span>{native}</span>\n </NodeViewWrapper>\n )\n}\n\nexport const EmojiNode = Node.create({\n name: 'emojiNode',\n group: 'inline',\n inline: true,\n atom: true,\n selectable: false,\n\n addAttributes() {\n return {\n id: { default: null },\n native: { default: null },\n }\n },\n\n renderText({ node }) {\n return node.attrs.native ?? ''\n },\n\n parseHTML() {\n return [{\n tag: 'span[data-emoji-id]',\n getAttrs: (el) => {\n const dom = el as HTMLElement\n return {\n id: dom.getAttribute('data-emoji-id'),\n native: dom.textContent ?? '',\n }\n },\n }]\n },\n\n renderHTML({ node }) {\n return ['span', {\n 'data-emoji-id': node.attrs.id,\n 'role': 'img',\n 'aria-label': node.attrs.native,\n }, node.attrs.native ?? '']\n },\n\n addNodeView() {\n return ReactNodeViewRenderer(EmojiNodeView)\n },\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"emoji-node.js","names":[],"sources":["../../../src/composed/extensions/emoji-node.tsx"],"sourcesContent":["import { Node } from '@tiptap/core'\nimport { type NodeViewProps,NodeViewWrapper, ReactNodeViewRenderer } from '@tiptap/react'\n\n// Native-only since the frimousse migration — renders the native emoji\n// character. (The emoji-mart spritesheet/art-style rendering was removed.)\nexport interface EmojiNodeAttrs {\n id: string\n native: string\n}\n\nfunction EmojiNodeView({ node }: NodeViewProps) {\n const { native } = node.attrs as EmojiNodeAttrs\n return (\n <NodeViewWrapper as=\"span\" className=\"inline\">\n <span>{native}</span>\n </NodeViewWrapper>\n )\n}\n\nexport const EmojiNode = Node.create({\n name: 'emojiNode',\n group: 'inline',\n inline: true,\n atom: true,\n selectable: false,\n\n addAttributes() {\n return {\n id: { default: null },\n native: { default: null },\n }\n },\n\n renderText({ node }) {\n return node.attrs.native ?? ''\n },\n\n parseHTML() {\n return [{\n tag: 'span[data-emoji-id]',\n getAttrs: (el) => {\n const dom = el as HTMLElement\n return {\n id: dom.getAttribute('data-emoji-id'),\n native: dom.textContent ?? '',\n }\n },\n }]\n },\n\n renderHTML({ node }) {\n return ['span', {\n 'data-emoji-id': node.attrs.id,\n 'role': 'img',\n 'aria-label': node.attrs.native,\n }, node.attrs.native ?? '']\n },\n\n addNodeView() {\n return ReactNodeViewRenderer(EmojiNodeView)\n },\n})\n"],"mappings":";;;;AAUA,SAAS,EAAc,EAAE,WAAuB;CAC9C,IAAM,EAAE,cAAW,EAAK;CACxB,OACE,kBAAC,GAAD;EAAiB,IAAG;EAAO,WAAU;YACnC,kBAAC,QAAD,EAAA,UAAO,EAAa,CAAA;CACL,CAAA;AAErB;AAEA,IAAa,IAAY,EAAK,OAAO;CACnC,MAAM;CACN,OAAO;CACP,QAAQ;CACR,MAAM;CACN,YAAY;CAEZ,gBAAgB;EACd,OAAO;GACL,IAAI,EAAE,SAAS,KAAK;GACpB,QAAQ,EAAE,SAAS,KAAK;EAC1B;CACF;CAEA,WAAW,EAAE,WAAQ;EACnB,OAAO,EAAK,MAAM,UAAU;CAC9B;CAEA,YAAY;EACV,OAAO,CAAC;GACN,KAAK;GACL,WAAW,MAAO;IAChB,IAAM,IAAM;IACZ,OAAO;KACL,IAAI,EAAI,aAAa,eAAe;KACpC,QAAQ,EAAI,eAAe;IAC7B;GACF;EACF,CAAC;CACH;CAEA,WAAW,EAAE,WAAQ;EACnB,OAAO;GAAC;GAAQ;IACd,iBAAiB,EAAK,MAAM;IAC5B,MAAQ;IACR,cAAc,EAAK,MAAM;GAC3B;GAAG,EAAK,MAAM,UAAU;EAAE;CAC5B;CAEA,cAAc;EACZ,OAAO,EAAsB,CAAa;CAC5C;AACF,CAAC"}
|