@elmethis/vue 0.2.10 → 0.2.11
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.
|
@@ -63,23 +63,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
let vnode = slots.default ? h(
|
|
64
64
|
"span",
|
|
65
65
|
{
|
|
66
|
-
class: [style.text, textStyle.text]
|
|
67
|
-
style: {
|
|
68
|
-
"--color": props.color ?? backgroundColor,
|
|
69
|
-
"--font-size": props.size,
|
|
70
|
-
"--background-color": props.backgroundColor
|
|
71
|
-
}
|
|
66
|
+
class: [style.text, textStyle.text]
|
|
72
67
|
},
|
|
73
68
|
{ default: slots.default }
|
|
74
69
|
) : h(
|
|
75
70
|
"span",
|
|
76
71
|
{
|
|
77
|
-
class: [style.text, textStyle.text]
|
|
78
|
-
style: {
|
|
79
|
-
"--color": props.color ?? backgroundColor,
|
|
80
|
-
"--font-size": props.size,
|
|
81
|
-
"--background-color": props.backgroundColor
|
|
82
|
-
}
|
|
72
|
+
class: [style.text, textStyle.text]
|
|
83
73
|
},
|
|
84
74
|
props.text
|
|
85
75
|
);
|
|
@@ -87,28 +77,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
77
|
vnode = h("kbd", { class: style.kbd }, vnode);
|
|
88
78
|
}
|
|
89
79
|
if (props.strikethrough) {
|
|
90
|
-
vnode = h(
|
|
91
|
-
"del",
|
|
92
|
-
{
|
|
93
|
-
class: style.del,
|
|
94
|
-
style: {
|
|
95
|
-
"--color": props.color ?? backgroundColor
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
vnode
|
|
99
|
-
);
|
|
80
|
+
vnode = h("del", {}, vnode);
|
|
100
81
|
}
|
|
101
82
|
if (props.italic) {
|
|
102
|
-
vnode = h(
|
|
103
|
-
"em",
|
|
104
|
-
{
|
|
105
|
-
class: style.em,
|
|
106
|
-
style: {
|
|
107
|
-
"--color": props.color ?? backgroundColor
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
vnode
|
|
111
|
-
);
|
|
83
|
+
vnode = h("em", {}, vnode);
|
|
112
84
|
}
|
|
113
85
|
if (props.underline) {
|
|
114
86
|
vnode = h("ins", {}, vnode);
|
|
@@ -123,17 +95,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
95
|
vnode = h(
|
|
124
96
|
"ruby",
|
|
125
97
|
{
|
|
126
|
-
class: style.text
|
|
127
|
-
style: {
|
|
128
|
-
"--color": props.color ?? backgroundColor,
|
|
129
|
-
"--font-size": props.size,
|
|
130
|
-
"--background-color": props.backgroundColor
|
|
131
|
-
}
|
|
98
|
+
class: style.text
|
|
132
99
|
},
|
|
133
100
|
[h("span", {}, vnode), h("rt", {}, props.ruby)]
|
|
134
101
|
);
|
|
135
102
|
}
|
|
136
|
-
|
|
103
|
+
const wrappedVnode = h(
|
|
104
|
+
"span",
|
|
105
|
+
{
|
|
106
|
+
class: [style.text, textStyle.text],
|
|
107
|
+
style: {
|
|
108
|
+
"--color": props.color ?? backgroundColor,
|
|
109
|
+
"--font-size": props.size,
|
|
110
|
+
"--background-color": props.backgroundColor
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
[vnode]
|
|
114
|
+
);
|
|
115
|
+
return wrappedVnode;
|
|
137
116
|
};
|
|
138
117
|
return (_ctx, _cache) => {
|
|
139
118
|
const _component_ElmInlineText = resolveComponent("ElmInlineText", true);
|
|
@@ -3,37 +3,31 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode('.
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._text_1gswr_1{padding:0;margin:0;white-space:pre-line;font-size:1em;font-size:var(--font-size, 1em);line-height:1em;line-height:var(--font-size, 1em);background-color:var(--background-color);transition:color .2s;text-decoration-color:var(--color)}._code_1gswr_12{margin-inline:.25rem;padding:2px .5em;font-size:calc(1em - 2px);border-radius:.125rem;background-color:#00000013;font-family:"Source Code Pro" monospace}._kbd_1gswr_21{padding:.125rem .25rem;position:relative;border-radius:.125rem;background-color:#e6e6e6}[data-theme=dark] ._kbd_1gswr_21{background-color:#404040}._kbd_1gswr_21:before{z-index:-1;position:absolute;content:"";bottom:-.25em;left:0;height:100%;width:100%;background-color:#ccc;border-radius:0 0 .125rem .125rem;box-shadow:0 0 .125em #00000080}[data-theme=dark] ._kbd_1gswr_21:before{background-color:#595959;box-shadow:0 0 .125em #ffffff80}._link_1gswr_47{all:unset;box-sizing:border-box;padding:0 .25rem;font-size:var(--font-size);display:inline-flex;align-items:center;gap:.25rem;cursor:pointer;color:#6987b8;border-radius:.125rem;transition:background-color .2s,color .2s,opacity .2s}._link_1gswr_47:hover{background-color:#6987b833}._link_1gswr_47:active{opacity:.5}._link_1gswr_47:visited{color:#9771bd;border-bottom:dashed 1px #9771bd}._link_1gswr_47:visited:hover{background-color:#9771bd33}._ogp_1gswr_74{display:flex;flex-direction:column;gap:.25rem;overflow:hidden;border-radius:.25rem;box-shadow:0 0 .125rem #0000004d;background-color:#fffc}[data-theme=dark] ._ogp_1gswr_74{background-color:#ffffff1a}._ogp-text_1gswr_87{box-sizing:border-box;padding:.5rem}._ogp-title_1gswr_92{box-sizing:border-box;font-weight:700;padding-block-end:.25rem}._ogp-description_1gswr_98{opacity:.7;padding:.25rem}'));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
const text = "
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const link = "_link_vgrys_54";
|
|
19
|
-
const ogp = "_ogp_vgrys_81";
|
|
13
|
+
const text = "_text_1gswr_1";
|
|
14
|
+
const code = "_code_1gswr_12";
|
|
15
|
+
const kbd = "_kbd_1gswr_21";
|
|
16
|
+
const link = "_link_1gswr_47";
|
|
17
|
+
const ogp = "_ogp_1gswr_74";
|
|
20
18
|
const style0 = {
|
|
21
19
|
text,
|
|
22
|
-
del,
|
|
23
|
-
em,
|
|
24
20
|
code,
|
|
25
21
|
kbd,
|
|
26
22
|
link,
|
|
27
23
|
ogp,
|
|
28
|
-
"ogp-text": "_ogp-
|
|
29
|
-
"ogp-title": "_ogp-
|
|
30
|
-
"ogp-description": "_ogp-
|
|
24
|
+
"ogp-text": "_ogp-text_1gswr_87",
|
|
25
|
+
"ogp-title": "_ogp-title_1gswr_92",
|
|
26
|
+
"ogp-description": "_ogp-description_1gswr_98"
|
|
31
27
|
};
|
|
32
28
|
export {
|
|
33
29
|
code,
|
|
34
30
|
style0 as default,
|
|
35
|
-
del,
|
|
36
|
-
em,
|
|
37
31
|
kbd,
|
|
38
32
|
link,
|
|
39
33
|
ogp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/vue",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@mdi/js": "^7.4.47",
|
|
27
|
-
"@vueuse/core": "^14.
|
|
27
|
+
"@vueuse/core": "^14.2.0",
|
|
28
28
|
"fuse.js": "^7.1.0",
|
|
29
29
|
"katex": "^0.16.28",
|
|
30
30
|
"lodash-es": "^4.17.23",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@ag-ui/core": "^0.0.43",
|
|
39
39
|
"@notionhq/client": "^5.9.0",
|
|
40
|
-
"storybook": "^10.2.
|
|
41
|
-
"@storybook/addon-docs": "^10.2.
|
|
42
|
-
"@storybook/vue3-vite": "10.2.
|
|
40
|
+
"storybook": "^10.2.4",
|
|
41
|
+
"@storybook/addon-docs": "^10.2.4",
|
|
42
|
+
"@storybook/vue3-vite": "10.2.4",
|
|
43
43
|
"@types/json-schema": "^7.0.15",
|
|
44
44
|
"@types/katex": "^0.16.8",
|
|
45
45
|
"@types/lodash-es": "^4.17.12",
|
|
46
46
|
"@types/prismjs": "^1.26.5",
|
|
47
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
47
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
48
48
|
"csstype": "^3.2.3",
|
|
49
49
|
"jarkup-ts": "^0.6.0",
|
|
50
50
|
"openapi-types": "^12.1.3",
|