x-runtime-lib 0.7.11 → 0.7.12

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.
@@ -1,5 +1,5 @@
1
1
  export type Env = 'dev' | 'prod';
2
- export type Mode = 'runtime' | 'editor';
2
+ export type Mode = 'runtime' | 'preview' | 'editor';
3
3
  export type Device = {
4
4
  width: number;
5
5
  height: number;
@@ -4,6 +4,7 @@ import { Env, Mode, Type } from './basic';
4
4
  import { Data } from './data';
5
5
  type EventBus = Emitter<Record<EventType, unknown>>;
6
6
  export interface SandboxContext {
7
+ org: string;
7
8
  env: Env;
8
9
  mode: Mode;
9
10
  type: Type;
@@ -1,5 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { Data, Depends, Device, Env, Mode, Sandbox, Type } from '../types';
3
+ export declare function provideOrg(org: string): void;
4
+ export declare function injectOrg(): string;
3
5
  export declare function provideEnv(env: Env): void;
4
6
  export declare function injectEnv(): Env;
5
7
  export declare function provideMode(mode: Mode): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.7.11",
4
+ "version": "0.7.12",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",