@printstack/print-studio 0.1.0 → 0.1.2
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 +122 -154
- package/assets/render.worker-DkH7TepL.js +109 -0
- package/{cloneDeep-C5UZRjbH.js → cloneDeep-waBDTGc3.js} +10 -4
- package/components/print-s-logo/print-s-logo.vue.d.ts +1 -1
- package/components/s-form/types.d.ts +1 -1
- package/core/coordinate-space.d.ts +16 -0
- package/core/document-model.d.ts +1 -1
- package/core/element-registry.d.ts +3 -8
- package/core/page-extensions.d.ts +1 -1
- package/core/types.d.ts +8 -0
- package/core.js +2 -2
- package/designer/commands/menu-adapter.d.ts +3 -3
- package/designer/commands/menu-types.d.ts +8 -1
- package/designer/commands/types.d.ts +2 -0
- package/designer/components/dialogs/preview-dialog.vue.d.ts +10 -1
- package/designer/components/dialogs/print-preview-dialog.vue.d.ts +14 -0
- package/designer/components/dialogs/print-preview-source.d.ts +22 -0
- package/designer/components/dialogs/use-document-preview.d.ts +5 -1
- package/designer/components/dialogs/use-preview-renderer.d.ts +2 -0
- package/designer/components/dialogs/use-print-preview.d.ts +33 -0
- package/designer/components/fields/use-table-draft.d.ts +0 -4
- package/designer/components/panels/layer-row-types.d.ts +37 -0
- package/designer/components/panels/layer-row.vue.d.ts +17 -0
- package/designer/components/stage/marquee-overlay.vue.d.ts +8 -0
- package/designer/components/stage/node-style.d.ts +3 -0
- package/designer/components/stage/selection-member.vue.d.ts +14 -0
- package/designer/composables/use-theme.d.ts +3 -0
- package/designer/facade/editing.d.ts +2 -2
- package/designer/facade/entities.d.ts +1156 -22
- package/designer/facade/output.d.ts +2 -2
- package/designer/frame/print-designer-frame.vue.d.ts +2 -2
- package/designer/frame/shared.d.ts +2 -0
- package/designer/frame/view.d.ts +9 -0
- package/designer/interactions/marquee.d.ts +1 -1
- package/designer/interactions/move.d.ts +3 -1
- package/designer/mount-print-designer.d.ts +1 -1
- package/designer/mount-print-preview.d.ts +5 -0
- package/designer/plugins/plugin-manager.d.ts +3 -3
- package/designer/plugins/types.d.ts +1 -1
- package/designer/print-designer.vue.d.ts +2 -2
- package/designer/print-preview.vue.d.ts +4 -0
- package/designer/stores/document-store.d.ts +72 -0
- package/designer/stores/editor-store.d.ts +770 -14
- package/designer/stores/page-store.d.ts +25 -1
- package/designer/stores/template-store.d.ts +52 -4
- package/designer/stores/types.d.ts +1 -0
- package/designer/stores/ui-store.d.ts +232 -3
- package/designer/stores/view-store.d.ts +10 -1
- package/designer.d.ts +1 -1
- package/designer.js +3 -3
- package/{document-model-DC9sn2WV.js → document-model-Cc5RoO4j.js} +160 -179
- package/elements/table/table-style.d.ts +3 -10
- package/host-OAp3gFDx.js +123 -0
- package/index.js +5 -5
- package/locales/runtime.d.ts +8 -2
- package/locales/translations/zh-CN/app.json.d.ts +1 -0
- package/locales/translations/zh-CN/designer.json.d.ts +9 -4
- package/{mount-print-designer-BzHLGlv-.js → mount-print-designer-DnHTrBE9.js} +4 -3
- package/mount-print-preview-Bcb08lJ-.js +66 -0
- package/package.json +1 -1
- package/presets-BunYODhE.js +13 -0
- package/{registries-BOU8RLim.js → registries-sg39PGF1.js} +793 -790
- package/runtime/browser-output.d.ts +2 -0
- package/runtime.js +4 -4
- package/{saas-B3fJOgHX.js → saas-D-q51uTz.js} +1 -1
- package/saas.js +1 -1
- package/{studio-C_rqbJ9q.js → studio-B3B6zI06.js} +830 -754
- package/studio-types.d.ts +3 -2
- package/style.css +1 -1
- package/vue.js +1035 -941
- package/assets/render.worker-Cfbk18NW.js +0 -109
- package/presets-Cwp20ef6.js +0 -133
|
@@ -5,6 +5,7 @@ export interface PreviewHandle {
|
|
|
5
5
|
}
|
|
6
6
|
export interface BrowserOutputOptions {
|
|
7
7
|
container?: HTMLElement;
|
|
8
|
+
/** 仅 studio.preview() 使用,其他浏览器输出入口忽略此选项。 */
|
|
8
9
|
mode?: 'designer' | 'iframe';
|
|
9
10
|
signal?: AbortSignal;
|
|
10
11
|
timeoutMs?: number;
|
|
@@ -13,4 +14,5 @@ export declare function createBrowserOutput(): {
|
|
|
13
14
|
dispose: () => void;
|
|
14
15
|
preview: (html: string, options?: BrowserOutputOptions, hidden?: boolean) => Promise<PreviewHandle>;
|
|
15
16
|
print: (html: string, options?: BrowserOutputOptions) => Promise<string[]>;
|
|
17
|
+
track: (handle: PreviewHandle) => PreviewHandle;
|
|
16
18
|
};
|
package/runtime.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as e } from "./cloneDeep-
|
|
2
|
-
import { O as t,
|
|
1
|
+
import { t as e } from "./cloneDeep-waBDTGc3.js";
|
|
2
|
+
import { O as t, Y as n, Z as r, n as i, r as a, t as o } from "./registries-sg39PGF1.js";
|
|
3
3
|
// src/runtime/print-renderer.ts
|
|
4
4
|
function s(s = {}) {
|
|
5
|
-
let c = t(s), l = s.errors ??
|
|
5
|
+
let c = t(s), l = s.errors ?? r(), u = o(s), d = a({
|
|
6
6
|
...u,
|
|
7
7
|
config: () => c.rendering,
|
|
8
8
|
snapshot: e
|
|
9
|
-
}), f = i(), p = !1, m =
|
|
9
|
+
}), f = i(), p = !1, m = n(d, f, () => {
|
|
10
10
|
if (p) throw Error("Print renderer has been disposed");
|
|
11
11
|
});
|
|
12
12
|
async function h(e, t) {
|
package/saas.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as SaasHttpError, t as createSaasClient, n as createSaasPlugin, r as createSaasTemplateProvider } from "./saas-
|
|
1
|
+
export { i as SaasHttpError, t as createSaasClient, n as createSaasPlugin, r as createSaasTemplateProvider } from "./saas-D-q51uTz.js";
|