@blueking/bk-weweb 0.0.35-beta.9 → 0.0.36-beta.16
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/dist/index.d.mts +6 -1
- package/dist/index.esm.js +1455 -1379
- package/dist/index.esm.js.map +1 -1
- package/dist/vite/helper.d.mts +11 -0
- package/dist/vite/helper.esm.js +50 -0
- package/dist/vite/helper.esm.js.map +1 -0
- package/package.json +3 -2
- package/readme.md +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ declare class Script {
|
|
|
6
6
|
defer: boolean;
|
|
7
7
|
exportInstance?: unknown;
|
|
8
8
|
fromHtml: boolean;
|
|
9
|
+
blobUrl?: string;
|
|
9
10
|
initial: boolean;
|
|
10
11
|
isModule: boolean;
|
|
11
12
|
scoped: boolean;
|
|
@@ -246,6 +247,8 @@ declare enum WewebCustomAttrs {
|
|
|
246
247
|
/** 是否开启 location 路由隔离 */
|
|
247
248
|
scopeLocation = "scopeLocation",
|
|
248
249
|
/** 是否启用 Shadow DOM */
|
|
250
|
+
setShadowDom = "setShadowDom",
|
|
251
|
+
/** @deprecated 请使用 setShadowDom 代替 */
|
|
249
252
|
setShodowDom = "setShodowDom",
|
|
250
253
|
/** 是否显示源码 */
|
|
251
254
|
showSourceCode = "showSourceCode",
|
|
@@ -563,7 +566,7 @@ interface IAppModelProps extends IBaseModelProps {
|
|
|
563
566
|
/** 是否共享主应用路由 */
|
|
564
567
|
[WewebCustomAttrs.scopeLocation]?: boolean;
|
|
565
568
|
/** 是否使用 ShadowDOM */
|
|
566
|
-
[WewebCustomAttrs.
|
|
569
|
+
[WewebCustomAttrs.setShadowDom]?: boolean;
|
|
567
570
|
/** 是否显示源码 */
|
|
568
571
|
[WewebCustomAttrs.showSourceCode]?: boolean;
|
|
569
572
|
/** 容器元素 */
|
|
@@ -777,6 +780,8 @@ declare class MicroInstanceModel implements BaseModel {
|
|
|
777
780
|
start(): Promise<void>;
|
|
778
781
|
/** 卸载微模块 */
|
|
779
782
|
unmount(needDestroy?: boolean): void;
|
|
783
|
+
/** 初始化ShadowRoot容器 */
|
|
784
|
+
initShadowRootContainer(): void;
|
|
780
785
|
set status(value: ValueOfAppState);
|
|
781
786
|
get status(): ValueOfAppState;
|
|
782
787
|
/** 初始化沙盒 */
|