bridgerte 0.9.4 → 0.9.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.
- package/README.md +7 -9
- package/dist/bridge.d.ts +1 -3
- package/dist/core.d.ts +9 -3
- package/dist/dom.cjs +1 -1
- package/dist/dom.d.ts +9 -3
- package/dist/dom.js +2 -2
- package/dist/index-B_g23O7q.cjs +4 -0
- package/dist/index-B_g23O7q.cjs.map +1 -0
- package/dist/index-Ce7rOCpH.cjs +36 -0
- package/dist/index-Ce7rOCpH.cjs.map +1 -0
- package/dist/index-DGPoit9-.js +323 -0
- package/dist/index-DGPoit9-.js.map +1 -0
- package/dist/{index-BzpD9bI2.js → index-DyCMSFrm.js} +10 -19
- package/dist/index-DyCMSFrm.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.js +2 -2
- package/dist/native-spec.cjs +1 -1
- package/dist/native-spec.cjs.map +1 -1
- package/dist/native-spec.d.ts +1 -3
- package/dist/native-spec.js +73 -119
- package/dist/native-spec.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webview.cjs +1 -1
- package/dist/webview.d.ts +1 -3
- package/dist/webview.js +1 -1
- package/package.json +1 -1
- package/dist/index-5d8qaSP5.cjs +0 -36
- package/dist/index-5d8qaSP5.cjs.map +0 -1
- package/dist/index-BzpD9bI2.js.map +0 -1
- package/dist/index-C26bdJ7I.js +0 -319
- package/dist/index-C26bdJ7I.js.map +0 -1
- package/dist/index-DKalD8mx.cjs +0 -4
- package/dist/index-DKalD8mx.cjs.map +0 -1
|
@@ -1880,57 +1880,49 @@ const Za = () => (Rt += 1, `${Qa}-${Rt}`), es = (e, t, n) => {
|
|
|
1880
1880
|
id: "media-align-left",
|
|
1881
1881
|
command: { type: "media.align", assetId: "", value: "left" },
|
|
1882
1882
|
label: "左",
|
|
1883
|
-
icon: "align-left"
|
|
1884
|
-
group: "media"
|
|
1883
|
+
icon: "align-left"
|
|
1885
1884
|
},
|
|
1886
1885
|
{
|
|
1887
1886
|
id: "media-align-center",
|
|
1888
1887
|
command: { type: "media.align", assetId: "", value: "center" },
|
|
1889
1888
|
label: "中",
|
|
1890
|
-
icon: "align-center"
|
|
1891
|
-
group: "media"
|
|
1889
|
+
icon: "align-center"
|
|
1892
1890
|
},
|
|
1893
1891
|
{
|
|
1894
1892
|
id: "media-align-right",
|
|
1895
1893
|
command: { type: "media.align", assetId: "", value: "right" },
|
|
1896
1894
|
label: "右",
|
|
1897
|
-
icon: "align-right"
|
|
1898
|
-
group: "media"
|
|
1895
|
+
icon: "align-right"
|
|
1899
1896
|
},
|
|
1900
1897
|
{
|
|
1901
1898
|
id: "media-resize-20",
|
|
1902
1899
|
command: { type: "media.resize", assetId: "", widthPercent: 20 },
|
|
1903
1900
|
label: "20%",
|
|
1904
|
-
icon: "media-resize-20"
|
|
1905
|
-
group: "media"
|
|
1901
|
+
icon: "media-resize-20"
|
|
1906
1902
|
},
|
|
1907
1903
|
{
|
|
1908
1904
|
id: "media-resize-50",
|
|
1909
1905
|
command: { type: "media.resize", assetId: "", widthPercent: 50 },
|
|
1910
1906
|
label: "50%",
|
|
1911
|
-
icon: "media-resize-50"
|
|
1912
|
-
group: "media"
|
|
1907
|
+
icon: "media-resize-50"
|
|
1913
1908
|
},
|
|
1914
1909
|
{
|
|
1915
1910
|
id: "media-resize-100",
|
|
1916
1911
|
command: { type: "media.resize", assetId: "", widthPercent: 100 },
|
|
1917
1912
|
label: "100%",
|
|
1918
|
-
icon: "media-resize-100"
|
|
1919
|
-
group: "media"
|
|
1913
|
+
icon: "media-resize-100"
|
|
1920
1914
|
},
|
|
1921
1915
|
{
|
|
1922
1916
|
id: "media-retry",
|
|
1923
1917
|
command: { type: "media.retry", assetId: "" },
|
|
1924
1918
|
label: "重试",
|
|
1925
|
-
icon: "refresh-cw"
|
|
1926
|
-
group: "media"
|
|
1919
|
+
icon: "refresh-cw"
|
|
1927
1920
|
},
|
|
1928
1921
|
{
|
|
1929
1922
|
id: "media-remove",
|
|
1930
1923
|
command: { type: "media.remove", assetId: "" },
|
|
1931
1924
|
label: "删除",
|
|
1932
|
-
icon: "trash-2"
|
|
1933
|
-
group: "media"
|
|
1925
|
+
icon: "trash-2"
|
|
1934
1926
|
}
|
|
1935
1927
|
], ls = (e) => at.includes(e), cs = (e) => typeof e == "object" && Array.isArray(e.menuKeys), ds = (e) => new Set(e.flatMap((t) => t === "|" ? [] : typeof t == "string" ? [t] : cs(t) ? [t.key, ...t.menuKeys] : [])), us = (e) => {
|
|
1936
1928
|
const t = ds(e), n = at.filter((r) => !t.has(r));
|
|
@@ -3828,7 +3820,6 @@ const Bn = {
|
|
|
3828
3820
|
icon: e.icon,
|
|
3829
3821
|
requiresPayload: e.requiresPayload,
|
|
3830
3822
|
payloadPanel: e.payloadPanel,
|
|
3831
|
-
group: e.group,
|
|
3832
3823
|
source: "schema"
|
|
3833
3824
|
}), Zl = (e, t) => Jl(Ze(
|
|
3834
3825
|
Yl(t),
|
|
@@ -3836,7 +3827,7 @@ const Bn = {
|
|
|
3836
3827
|
)).map(Ql), Un = (e) => ({
|
|
3837
3828
|
...e,
|
|
3838
3829
|
source: "provider"
|
|
3839
|
-
}), ec = /(?:^|\s)\/([\p{L}\p{N}_-]*)$/u, tc = (e) => e.trim().toLowerCase(), nc = (e) => [e.label, e.id, e.description,
|
|
3830
|
+
}), ec = /(?:^|\s)\/([\p{L}\p{N}_-]*)$/u, tc = (e) => e.trim().toLowerCase(), nc = (e) => [e.label, e.id, e.description, ...e.keywords ?? []].filter(Boolean).join(" ").toLowerCase(), rc = (e, t) => {
|
|
3840
3831
|
const n = tc(t);
|
|
3841
3832
|
return n ? e.filter((r) => nc(r).includes(n)) : e;
|
|
3842
3833
|
}, oc = async (e, t) => (await Promise.resolve((t == null ? void 0 : t(e)) ?? [])).map(Un), ac = (e) => "source" in e ? e : Un(e), sc = ({
|
|
@@ -4529,4 +4520,4 @@ export {
|
|
|
4529
4520
|
rs as h,
|
|
4530
4521
|
ot as r
|
|
4531
4522
|
};
|
|
4532
|
-
//# sourceMappingURL=index-
|
|
4523
|
+
//# sourceMappingURL=index-DyCMSFrm.js.map
|