From 45e6193af997d9e4168cbe2bb27da778a2e83cbf Mon Sep 17 00:00:00 2001 From: jack ning Date: Wed, 22 Jan 2025 16:47:05 +0800 Subject: [PATCH] update --- .../_commonjs-dynamic-modules/index.js | 6 + .../embed/_virtual/_commonjsHelpers/index.js | 6 + .../_interop_require_default/index.js | 4 + .../static/embed/_virtual/dynamic/index.js | 4 + .../loadable-context.shared-runtime/index.js | 4 + .../_virtual/loadable.shared-runtime/index.js | 4 + .../resources/static/embed/angular/index.js | 49 ++++++ .../resources/static/embed/nextjs/index.js | 28 +++ .../cjs/_interop_require_default/index.js | 8 + .../next/dist/shared/lib/dynamic/index.js | 90 ++++++++++ .../loadable-context.shared-runtime/index.js | 23 +++ .../lib/loadable.shared-runtime/index.js | 161 ++++++++++++++++++ .../embed/node_modules/next/dynamic/index.js | 7 + .../resources/static/embed/types/angular.d.ts | 3 + .../resources/static/embed/types/nextjs.d.ts | 94 ++++++++++ .../resources/static/embed/types/vue.d.ts | 20 +-- 16 files changed, 501 insertions(+), 10 deletions(-) create mode 100644 starter/src/main/resources/static/embed/_virtual/_commonjs-dynamic-modules/index.js create mode 100644 starter/src/main/resources/static/embed/_virtual/_commonjsHelpers/index.js create mode 100644 starter/src/main/resources/static/embed/_virtual/_interop_require_default/index.js create mode 100644 starter/src/main/resources/static/embed/_virtual/dynamic/index.js create mode 100644 starter/src/main/resources/static/embed/_virtual/loadable-context.shared-runtime/index.js create mode 100644 starter/src/main/resources/static/embed/_virtual/loadable.shared-runtime/index.js create mode 100644 starter/src/main/resources/static/embed/angular/index.js create mode 100644 starter/src/main/resources/static/embed/nextjs/index.js create mode 100644 starter/src/main/resources/static/embed/node_modules/@swc/helpers/cjs/_interop_require_default/index.js create mode 100644 starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/dynamic/index.js create mode 100644 starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable-context.shared-runtime/index.js create mode 100644 starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable.shared-runtime/index.js create mode 100644 starter/src/main/resources/static/embed/node_modules/next/dynamic/index.js create mode 100644 starter/src/main/resources/static/embed/types/angular.d.ts create mode 100644 starter/src/main/resources/static/embed/types/nextjs.d.ts diff --git a/starter/src/main/resources/static/embed/_virtual/_commonjs-dynamic-modules/index.js b/starter/src/main/resources/static/embed/_virtual/_commonjs-dynamic-modules/index.js new file mode 100644 index 000000000..d4947e11e --- /dev/null +++ b/starter/src/main/resources/static/embed/_virtual/_commonjs-dynamic-modules/index.js @@ -0,0 +1,6 @@ +function r(o) { + throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); +} +export { + r as commonjsRequire +}; diff --git a/starter/src/main/resources/static/embed/_virtual/_commonjsHelpers/index.js b/starter/src/main/resources/static/embed/_virtual/_commonjsHelpers/index.js new file mode 100644 index 000000000..f081318ff --- /dev/null +++ b/starter/src/main/resources/static/embed/_virtual/_commonjsHelpers/index.js @@ -0,0 +1,6 @@ +function e(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +export { + e as getDefaultExportFromCjs +}; diff --git a/starter/src/main/resources/static/embed/_virtual/_interop_require_default/index.js b/starter/src/main/resources/static/embed/_virtual/_interop_require_default/index.js new file mode 100644 index 000000000..f51b01643 --- /dev/null +++ b/starter/src/main/resources/static/embed/_virtual/_interop_require_default/index.js @@ -0,0 +1,4 @@ +var e = {}; +export { + e as __exports +}; diff --git a/starter/src/main/resources/static/embed/_virtual/dynamic/index.js b/starter/src/main/resources/static/embed/_virtual/dynamic/index.js new file mode 100644 index 000000000..c9032b2e2 --- /dev/null +++ b/starter/src/main/resources/static/embed/_virtual/dynamic/index.js @@ -0,0 +1,4 @@ +var a = { exports: {} }; +export { + a as __module +}; diff --git a/starter/src/main/resources/static/embed/_virtual/loadable-context.shared-runtime/index.js b/starter/src/main/resources/static/embed/_virtual/loadable-context.shared-runtime/index.js new file mode 100644 index 000000000..f51b01643 --- /dev/null +++ b/starter/src/main/resources/static/embed/_virtual/loadable-context.shared-runtime/index.js @@ -0,0 +1,4 @@ +var e = {}; +export { + e as __exports +}; diff --git a/starter/src/main/resources/static/embed/_virtual/loadable.shared-runtime/index.js b/starter/src/main/resources/static/embed/_virtual/loadable.shared-runtime/index.js new file mode 100644 index 000000000..c9128fc40 --- /dev/null +++ b/starter/src/main/resources/static/embed/_virtual/loadable.shared-runtime/index.js @@ -0,0 +1,4 @@ +var a = {}; +export { + a as __exports +}; diff --git a/starter/src/main/resources/static/embed/angular/index.js b/starter/src/main/resources/static/embed/angular/index.js new file mode 100644 index 000000000..a4cd02560 --- /dev/null +++ b/starter/src/main/resources/static/embed/angular/index.js @@ -0,0 +1,49 @@ +var L = Object.create; +var B = Object.defineProperty; +var M = Object.getOwnPropertyDescriptor; +var z = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), p = (e) => { + throw TypeError(e); +}; +var E = (e, t, s) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s; +var j = (e, t) => B(e, "name", { value: t, configurable: !0 }); +var F = (e) => [, , , L((e == null ? void 0 : e[z("metadata")]) ?? null)], G = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], h = (e) => e !== void 0 && typeof e != "function" ? p("Function expected") : e, N = (e, t, s, f, i) => ({ kind: G[e], name: t, metadata: f, addInitializer: (d) => s._ ? p("Already initialized") : i.push(h(d || null)) }), I = (e, t) => E(t, z("metadata"), e[3]), O = (e, t, s, f) => { + for (var i = 0, d = e[t >> 1], b = d && d.length; i < b; i++) t & 1 ? d[i].call(s) : f = d[i].call(s, f); + return f; +}, H = (e, t, s, f, i, d) => { + var b, y, C, r, g, n = t & 7, m = !!(t & 8), l = !!(t & 16), c = n > 3 ? e.length + 1 : n ? m ? 1 : 2 : 0, D = G[n + 5], W = n > 3 && (e[c - 1] = []), K = e[c] || (e[c] = []), k = n && (!l && !m && (i = i.prototype), n < 5 && (n > 3 || !l) && M(n < 4 ? i : { get [s]() { + return q(this, d); + }, set [s](o) { + return v(this, d, o); + } }, s)); + n ? l && n < 4 && j(d, (n > 2 ? "set " : n > 1 ? "get " : "") + s) : j(i, s); + for (var u = f.length - 1; u >= 0; u--) + r = N(n, s, C = {}, e[3], K), n && (r.static = m, r.private = l, g = r.access = { has: l ? (o) => P(i, o) : (o) => s in o }, n ^ 3 && (g.get = l ? (o) => (n ^ 1 ? q : Q)(o, i, n ^ 4 ? d : k.get) : (o) => o[s]), n > 2 && (g.set = l ? (o, w) => v(o, i, w, n ^ 4 ? d : k.set) : (o, w) => o[s] = w)), y = (0, f[u])(n ? n < 4 ? l ? d : k[D] : n > 4 ? void 0 : { get: k.get, set: k.set } : i, r), C._ = 1, n ^ 4 || y === void 0 ? h(y) && (n > 4 ? W.unshift(y) : n ? l ? d = y : k[D] = y : i = y) : typeof y != "object" || y === null ? p("Object expected") : (h(b = y.get) && (k.get = b), h(b = y.set) && (k.set = b), h(b = y.init) && W.unshift(b)); + return n || I(e, i), k && B(i, s, k), l ? n ^ 4 ? d : k : i; +}, x = (e, t, s) => E(e, typeof t != "symbol" ? t + "" : t, s), A = (e, t, s) => t.has(e) || p("Cannot " + s), P = (e, t) => Object(t) !== t ? p('Cannot use the "in" operator on this value') : e.has(t), q = (e, t, s) => (A(e, t, "read from private field"), s ? s.call(e) : t.get(e)); +var v = (e, t, s, f) => (A(e, t, "write to private field"), f ? f.call(e, s) : t.set(e, s), s), Q = (e, t, s) => (A(e, t, "access private method"), s); +import { Component as S, Input as T } from "@angular/core"; +import U from "../core/BytedeskWeb/index.js"; +var J, R, a; +const Z = S({ + selector: "bytedesk-angular", + template: "", + styles: [` + :host { + display: none; + } + `] +})((J = [T()], a = class { + constructor() { + x(this, "config", O(R, 8, this)), O(R, 11, this); + x(this, "bytedeskRef", null); + } + ngOnInit() { + this.bytedeskRef = new U(this.config), this.bytedeskRef.init(), window.bytedesk = this.bytedeskRef; + } + ngOnDestroy() { + this.bytedeskRef && (this.bytedeskRef.destroy(), delete window.bytedesk, this.bytedeskRef = null); + } +}, R = F(null), H(R, 5, "config", J, a), I(R, a), a)); +export { + Z as BytedeskAngular +}; diff --git a/starter/src/main/resources/static/embed/nextjs/index.js b/starter/src/main/resources/static/embed/nextjs/index.js new file mode 100644 index 000000000..060d87096 --- /dev/null +++ b/starter/src/main/resources/static/embed/nextjs/index.js @@ -0,0 +1,28 @@ +import { jsx as n } from "react/jsx-runtime"; +import { useRef as i, useEffect as o } from "react"; +import u from "../node_modules/next/dynamic/index.js"; +import { IntlProvider as m } from "react-intl"; +import { messages as c } from "../locales/index/index.js"; +const w = u(() => Promise.resolve(({ locale: e = "zh-cn", ...t }) => /* @__PURE__ */ n( + m, + { + messages: c[e], + locale: e, + defaultLocale: "zh-cn", + children: /* @__PURE__ */ n(d, { ...t, locale: e }) + } +)), { + ssr: !1 + // 禁用服务端渲染 +}), d = (e) => { + const t = i(null); + return o(() => (import("../index/index.js").then(({ default: s }) => { + var r; + t.current || (t.current = new s(e), t.current.init(), (r = e.onInit) == null || r.call(e), window.bytedesk = t.current); + }), () => { + t.current && (t.current.destroy(), delete window.bytedesk, t.current = null); + }), [e]), null; +}; +export { + w as BytedeskNextjs +}; diff --git a/starter/src/main/resources/static/embed/node_modules/@swc/helpers/cjs/_interop_require_default/index.js b/starter/src/main/resources/static/embed/node_modules/@swc/helpers/cjs/_interop_require_default/index.js new file mode 100644 index 000000000..e6a13b898 --- /dev/null +++ b/starter/src/main/resources/static/embed/node_modules/@swc/helpers/cjs/_interop_require_default/index.js @@ -0,0 +1,8 @@ +import { __exports as r } from "../../../../../_virtual/_interop_require_default/index.js"; +r._ = r._interop_require_default = _; +function _(e) { + return e && e.__esModule ? e : { default: e }; +} +export { + r as default +}; diff --git a/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/dynamic/index.js b/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/dynamic/index.js new file mode 100644 index 000000000..1b84af172 --- /dev/null +++ b/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/dynamic/index.js @@ -0,0 +1,90 @@ +import { __module as a } from "../../../../../../_virtual/dynamic/index.js"; +import "../../../../../@swc/helpers/cjs/_interop_require_default/index.js"; +import S from "react/jsx-runtime"; +import "react"; +import { __require as q } from "../loadable.shared-runtime/index.js"; +import { __exports as P } from "../../../../../../_virtual/_interop_require_default/index.js"; +(function(s, t) { + Object.defineProperty(t, "__esModule", { + value: !0 + }); + function c(r, n) { + for (var l in n) Object.defineProperty(r, l, { + enumerable: !0, + get: n[l] + }); + } + c(t, { + /** + * This function lets you dynamically import a component. + * It uses [React.lazy()](https://react.dev/reference/react/lazy) with [Suspense](https://react.dev/reference/react/Suspense) under the hood. + * + * Read more: [Next.js Docs: `next/dynamic`](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading#nextdynamic) + */ + default: function() { + return b; + }, + noSSR: function() { + return f; + } + }); + const _ = P, o = S, m = /* @__PURE__ */ _._(q()), p = typeof window > "u"; + function d(r) { + return { + default: (r == null ? void 0 : r.default) || r + }; + } + function f(r, n) { + if (delete n.webpack, delete n.modules, !p) + return r(n); + const l = n.loading; + return () => /* @__PURE__ */ (0, o.jsx)(l, { + error: null, + isLoading: !0, + pastDelay: !1, + timedOut: !1 + }); + } + function b(r, n) { + let l = m.default, e = { + // A loading component is not required, so we default it + loading: (y) => { + let { error: u, isLoading: v, pastDelay: g } = y; + if (!g) return null; + if (process.env.NODE_ENV !== "production") { + if (v) + return null; + if (u) + return /* @__PURE__ */ (0, o.jsxs)("p", { + children: [ + u.message, + /* @__PURE__ */ (0, o.jsx)("br", {}), + u.stack + ] + }); + } + return null; + } + }; + r instanceof Promise ? e.loader = () => r : typeof r == "function" ? e.loader = r : typeof r == "object" && (e = { + ...e, + ...r + }), e = { + ...e, + ...n + }; + const i = e.loader, j = () => i != null ? i().then(d) : Promise.resolve(d(() => null)); + return e.loadableGenerated && (e = { + ...e, + ...e.loadableGenerated + }, delete e.loadableGenerated), typeof e.ssr == "boolean" && !e.ssr ? (delete e.webpack, delete e.modules, f(l, e)) : l({ + ...e, + loader: j + }); + } + (typeof t.default == "function" || typeof t.default == "object" && t.default !== null) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), s.exports = t.default); +})(a, a.exports); +var E = a.exports; +export { + E as d +}; diff --git a/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable-context.shared-runtime/index.js b/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable-context.shared-runtime/index.js new file mode 100644 index 000000000..c71513164 --- /dev/null +++ b/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable-context.shared-runtime/index.js @@ -0,0 +1,23 @@ +import { __exports as e } from "../../../../../../_virtual/loadable-context.shared-runtime/index.js"; +import "../../../../../@swc/helpers/cjs/_interop_require_default/index.js"; +import n from "react"; +import { __exports as a } from "../../../../../../_virtual/_interop_require_default/index.js"; +var o; +function c() { + return o ? e : (o = 1, function(t) { + "use client"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), Object.defineProperty(t, "LoadableContext", { + enumerable: !0, + get: function() { + return r; + } + }); + const r = (/* @__PURE__ */ a._(n)).default.createContext(null); + process.env.NODE_ENV !== "production" && (r.displayName = "LoadableContext"); + }(e), e); +} +export { + c as __require +}; diff --git a/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable.shared-runtime/index.js b/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable.shared-runtime/index.js new file mode 100644 index 000000000..28b7cd2ad --- /dev/null +++ b/starter/src/main/resources/static/embed/node_modules/next/dist/shared/lib/loadable.shared-runtime/index.js @@ -0,0 +1,161 @@ +import { commonjsRequire as E } from "../../../../../../_virtual/_commonjs-dynamic-modules/index.js"; +import { __exports as _ } from "../../../../../../_virtual/loadable.shared-runtime/index.js"; +import "../../../../../@swc/helpers/cjs/_interop_require_default/index.js"; +import T from "react"; +import { __require as q } from "../loadable-context.shared-runtime/index.js"; +import { __exports as A } from "../../../../../../_virtual/_interop_require_default/index.js"; +var b; +function V() { + return b ? _ : (b = 1, function(c) { + Object.defineProperty(c, "__esModule", { + value: !0 + }), Object.defineProperty(c, "default", { + enumerable: !0, + get: function() { + return I; + } + }); + const n = /* @__PURE__ */ A._(T), y = q(); + function g(t) { + return t && t.default ? t.default : t; + } + const m = [], p = []; + let h = !1; + function w(t) { + let r = t(), e = { + loading: !0, + loaded: null, + error: null + }; + return e.promise = r.then((o) => (e.loading = !1, e.loaded = o, o)).catch((o) => { + throw e.loading = !1, e.error = o, o; + }), e; + } + function L(t, r) { + let e = Object.assign({ + loader: null, + loading: null, + delay: 200, + timeout: null, + webpack: null, + modules: null + }, r), o = null; + function l() { + if (!o) { + const a = new R(t, e); + o = { + getCurrentValue: a.getCurrentValue.bind(a), + subscribe: a.subscribe.bind(a), + retry: a.retry.bind(a), + promise: a.promise.bind(a) + }; + } + return o.promise(); + } + if (typeof window > "u" && m.push(l), !h && typeof window < "u") { + const a = e.webpack && typeof E.resolveWeak == "function" ? e.webpack() : e.modules; + a && p.push((s) => { + for (const i of a) + if (s.includes(i)) + return l(); + }); + } + function C() { + l(); + const a = n.default.useContext(y.LoadableContext); + a && Array.isArray(e.modules) && e.modules.forEach((s) => { + a(s); + }); + } + function f(a, s) { + C(); + const i = n.default.useSyncExternalStore(o.subscribe, o.getCurrentValue, o.getCurrentValue); + return n.default.useImperativeHandle(s, () => ({ + retry: o.retry + }), []), n.default.useMemo(() => i.loading || i.error ? /* @__PURE__ */ n.default.createElement(e.loading, { + isLoading: i.loading, + pastDelay: i.pastDelay, + timedOut: i.timedOut, + error: i.error, + retry: o.retry + }) : i.loaded ? /* @__PURE__ */ n.default.createElement(g(i.loaded), a) : null, [ + a, + i + ]); + } + return f.preload = () => l(), f.displayName = "LoadableComponent", /* @__PURE__ */ n.default.forwardRef(f); + } + class R { + promise() { + return this._res.promise; + } + retry() { + this._clearTimeouts(), this._res = this._loadFn(this._opts.loader), this._state = { + pastDelay: !1, + timedOut: !1 + }; + const { _res: r, _opts: e } = this; + r.loading && (typeof e.delay == "number" && (e.delay === 0 ? this._state.pastDelay = !0 : this._delay = setTimeout(() => { + this._update({ + pastDelay: !0 + }); + }, e.delay)), typeof e.timeout == "number" && (this._timeout = setTimeout(() => { + this._update({ + timedOut: !0 + }); + }, e.timeout))), this._res.promise.then(() => { + this._update({}), this._clearTimeouts(); + }).catch((o) => { + this._update({}), this._clearTimeouts(); + }), this._update({}); + } + _update(r) { + this._state = { + ...this._state, + error: this._res.error, + loaded: this._res.loaded, + loading: this._res.loading, + ...r + }, this._callbacks.forEach((e) => e()); + } + _clearTimeouts() { + clearTimeout(this._delay), clearTimeout(this._timeout); + } + getCurrentValue() { + return this._state; + } + subscribe(r) { + return this._callbacks.add(r), () => { + this._callbacks.delete(r); + }; + } + constructor(r, e) { + this._loadFn = r, this._opts = e, this._callbacks = /* @__PURE__ */ new Set(), this._delay = null, this._timeout = null, this.retry(); + } + } + function u(t) { + return L(w, t); + } + function d(t, r) { + let e = []; + for (; t.length; ) { + let o = t.pop(); + e.push(o(r)); + } + return Promise.all(e).then(() => { + if (t.length) + return d(t, r); + }); + } + u.preloadAll = () => new Promise((t, r) => { + d(m).then(t, r); + }), u.preloadReady = (t) => (t === void 0 && (t = []), new Promise((r) => { + const e = () => (h = !0, r()); + d(p, t).then(e, e); + })), typeof window < "u" && (window.__NEXT_PRELOADREADY = u.preloadReady); + const I = u; + }(_), _); +} +export { + V as __require +}; diff --git a/starter/src/main/resources/static/embed/node_modules/next/dynamic/index.js b/starter/src/main/resources/static/embed/node_modules/next/dynamic/index.js new file mode 100644 index 000000000..3e8db9406 --- /dev/null +++ b/starter/src/main/resources/static/embed/node_modules/next/dynamic/index.js @@ -0,0 +1,7 @@ +import { getDefaultExportFromCjs as o } from "../../../_virtual/_commonjsHelpers/index.js"; +import { d as r } from "../dist/shared/lib/dynamic/index.js"; +var t = r; +const d = /* @__PURE__ */ o(t); +export { + d as default +}; diff --git a/starter/src/main/resources/static/embed/types/angular.d.ts b/starter/src/main/resources/static/embed/types/angular.d.ts new file mode 100644 index 000000000..6b92f625e --- /dev/null +++ b/starter/src/main/resources/static/embed/types/angular.d.ts @@ -0,0 +1,3 @@ +export declare const BytedeskAngular: any; + +export { } diff --git a/starter/src/main/resources/static/embed/types/nextjs.d.ts b/starter/src/main/resources/static/embed/types/nextjs.d.ts new file mode 100644 index 000000000..ac2ad3c64 --- /dev/null +++ b/starter/src/main/resources/static/embed/types/nextjs.d.ts @@ -0,0 +1,94 @@ +import { ComponentType } from 'react'; + +declare interface Animation_2 { + enabled?: boolean; + duration?: number; + type?: 'ease' | 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out'; +} + +declare interface BrowseParams { + referrer?: string; + url?: string; + title?: string; + [key: string]: string | number | undefined; +} + +declare interface BubbleConfig { + show?: boolean; + icon?: string; + title?: string; + subtitle?: string; +} + +declare interface BytedeskConfig { + isDebug?: boolean; + isPreload?: boolean; + baseUrl?: string; + placement?: 'bottom-left' | 'bottom-right'; + marginBottom?: number; + marginSide?: number; + autoPopup?: boolean; + autoPopupDelay?: number; + inviteParams?: InviteParams; + tabsConfig?: TabsConfig; + bubbleConfig?: BubbleConfig; + showSupport?: boolean; + chatParams?: ChatParams; + browseParams?: BrowseParams; + animation?: Animation_2; + window?: WindowConfig; + theme?: Theme; + draggable?: boolean; + locale?: string; + onInit?: () => void; + onShowChat?: () => void; + onHideChat?: () => void; + onMessage?: (message: string, type: string) => void; +} + +export declare const BytedeskNextjs: ComponentType; + +declare interface BytedeskNextjsProps extends BytedeskConfig { + onInit?: () => void; +} + +declare interface ChatParams { + org: string; + t: string; + sid: string; + [key: string]: string | number | undefined; +} + +declare interface InviteParams { + show?: boolean; + text?: string; + icon?: string; + delay?: number; + loop?: boolean; + loopDelay?: number; + loopCount?: number; + onAccept?: () => void; + onReject?: () => void; + onClose?: () => void; + onOpen?: () => void; +} + +declare interface TabsConfig { + home?: boolean; + messages?: boolean; + help?: boolean; + news?: boolean; +} + +declare interface Theme { + mode?: 'light' | 'dark' | 'system'; + textColor?: string; + backgroundColor?: string; +} + +declare interface WindowConfig { + width?: number; + height?: number; +} + +export { } diff --git a/starter/src/main/resources/static/embed/types/vue.d.ts b/starter/src/main/resources/static/embed/types/vue.d.ts index 0d2c4f456..c0a7fd175 100644 --- a/starter/src/main/resources/static/embed/types/vue.d.ts +++ b/starter/src/main/resources/static/embed/types/vue.d.ts @@ -8,19 +8,19 @@ import { RendererNode } from 'vue'; import { VNode } from 'vue'; export declare const BytedeskVue: DefineComponent, () => VNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly> & Readonly<{}>, { - locale: string; +locale: string; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; export { }