@wix/workspace 1.3.7 → 1.3.9
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/cjs/namespaces/index.js +6 -0
- package/dist/cjs/namespaces/index.js.map +1 -1
- package/dist/cjs/namespaces/tools/index.js +16 -0
- package/dist/cjs/namespaces/tools/index.js.map +1 -0
- package/dist/cjs/namespaces/tools/tools.js +25 -0
- package/dist/cjs/namespaces/tools/tools.js.map +1 -0
- package/dist/cjs/namespaces/tools/types.js +4 -0
- package/dist/cjs/namespaces/tools/types.js.map +1 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/namespaces/index.js +1 -0
- package/dist/esm/namespaces/index.js.map +1 -1
- package/dist/esm/namespaces/tools/index.js +3 -0
- package/dist/esm/namespaces/tools/index.js.map +1 -0
- package/dist/esm/namespaces/tools/tools.js +21 -0
- package/dist/esm/namespaces/tools/tools.js.map +1 -0
- package/dist/esm/namespaces/tools/types.js +2 -0
- package/dist/esm/namespaces/tools/types.js.map +1 -0
- package/dist/esm/types.js.map +1 -1
- package/dist/types/namespaces/index.d.ts +1 -0
- package/dist/types/namespaces/index.d.ts.map +1 -1
- package/dist/types/namespaces/tools/index.d.ts +3 -0
- package/dist/types/namespaces/tools/index.d.ts.map +1 -0
- package/dist/types/namespaces/tools/tools.d.ts +9 -0
- package/dist/types/namespaces/tools/tools.d.ts.map +1 -0
- package/dist/types/namespaces/tools/types.d.ts +11 -0
- package/dist/types/namespaces/tools/types.d.ts.map +1 -0
- package/dist/types/types.d.ts +3 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -13,4 +13,10 @@ Object.keys(_credits).forEach(function (key) {
|
|
|
13
13
|
if (key in exports && exports[key] === _credits[key]) return;
|
|
14
14
|
exports[key] = _credits[key];
|
|
15
15
|
});
|
|
16
|
+
var _tools = require("./tools");
|
|
17
|
+
Object.keys(_tools).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
if (key in exports && exports[key] === _tools[key]) return;
|
|
20
|
+
exports[key] = _tools[key];
|
|
21
|
+
});
|
|
16
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_apps","require","Object","keys","forEach","key","exports","_credits"],"sources":["../../../src/namespaces/index.ts"],"sourcesContent":["export * from './apps';\nexport * from './credits';\n"],"mappings":";;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,KAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,QAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,QAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,QAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,QAAA,CAAAF,GAAA;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_apps","require","Object","keys","forEach","key","exports","_credits","_tools"],"sources":["../../../src/namespaces/index.ts"],"sourcesContent":["export * from './apps';\nexport * from './credits';\nexport * from './tools';\n"],"mappings":";;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,KAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,QAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,QAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,QAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,QAAA,CAAAF,GAAA;AAAA;AACA,IAAAG,MAAA,GAAAP,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAK,MAAA,EAAAJ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAG,MAAA,CAAAH,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAG,MAAA,CAAAH,GAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _tools = require("./tools.js");
|
|
5
|
+
Object.keys(_tools).forEach(function (key) {
|
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
|
7
|
+
if (key in exports && exports[key] === _tools[key]) return;
|
|
8
|
+
exports[key] = _tools[key];
|
|
9
|
+
});
|
|
10
|
+
var _types = require("./types.js");
|
|
11
|
+
Object.keys(_types).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
14
|
+
exports[key] = _types[key];
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_tools","require","Object","keys","forEach","key","exports","_types"],"sources":["../../../../src/namespaces/tools/index.ts"],"sourcesContent":["export * from './tools.js';\nexport * from './types.js';\n"],"mappings":";;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,MAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,MAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,MAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,MAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,MAAA,CAAAF,GAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.tools = void 0;
|
|
5
|
+
var _hostModules = require("@wix/sdk-runtime/host-modules");
|
|
6
|
+
function createToolsMethod(methodName) {
|
|
7
|
+
return host => {
|
|
8
|
+
if (!host.workspace) {
|
|
9
|
+
throw new Error('workspace is not available on the current host. Make sure to use an updated version of the host initialization package.');
|
|
10
|
+
}
|
|
11
|
+
if (!host.workspace.tools) {
|
|
12
|
+
throw new Error('tools is not available on the current host. Make sure to use an updated version of the host initialization package.');
|
|
13
|
+
}
|
|
14
|
+
const method = host.workspace.tools[methodName];
|
|
15
|
+
if (!method) {
|
|
16
|
+
throw new Error(`${String(methodName)} is not available on the current host. Make sure to use an updated version of the host initialization package.`);
|
|
17
|
+
}
|
|
18
|
+
return method;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const _tools = (0, _hostModules.createHostModule)({
|
|
22
|
+
editWithWixel: createToolsMethod('editWithWixel')
|
|
23
|
+
});
|
|
24
|
+
const tools = exports.tools = _tools;
|
|
25
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_hostModules","require","createToolsMethod","methodName","host","workspace","Error","tools","method","String","_tools","createHostModule","editWithWixel","exports"],"sources":["../../../../src/namespaces/tools/tools.ts"],"sourcesContent":["import { createHostModule } from '@wix/sdk-runtime/host-modules';\nimport type { ExposeFieldsBasedOnToggle } from '@wix/sdk-types';\n\nimport { WorkspaceHost } from '../../types.js';\nimport type { ToolsNamespace } from './types.js';\n\nfunction createToolsMethod<K extends keyof ToolsNamespace>(\n methodName: K,\n): (host: WorkspaceHost) => ToolsNamespace[K] {\n return (host) => {\n if (!host.workspace) {\n throw new Error(\n 'workspace is not available on the current host. Make sure to use an updated version of the host initialization package.',\n );\n }\n\n if (!host.workspace.tools) {\n throw new Error(\n 'tools is not available on the current host. Make sure to use an updated version of the host initialization package.',\n );\n }\n\n const method = host.workspace.tools[methodName];\n if (!method) {\n throw new Error(\n `${String(\n methodName,\n )} is not available on the current host. Make sure to use an updated version of the host initialization package.`,\n );\n }\n\n return method as ToolsNamespace[K];\n };\n}\n\nconst _tools = createHostModule<WorkspaceHost, ToolsNamespace>({\n editWithWixel: createToolsMethod('editWithWixel'),\n});\n\nexport const tools: ExposeFieldsBasedOnToggle<\n typeof _tools,\n { editWithWixel: 'alpha' }\n> = _tools;\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,SAASC,iBAAiBA,CACxBC,UAAa,EAC+B;EAC5C,OAAQC,IAAI,IAAK;IACf,IAAI,CAACA,IAAI,CAACC,SAAS,EAAE;MACnB,MAAM,IAAIC,KAAK,CACb,yHACF,CAAC;IACH;IAEA,IAAI,CAACF,IAAI,CAACC,SAAS,CAACE,KAAK,EAAE;MACzB,MAAM,IAAID,KAAK,CACb,qHACF,CAAC;IACH;IAEA,MAAME,MAAM,GAAGJ,IAAI,CAACC,SAAS,CAACE,KAAK,CAACJ,UAAU,CAAC;IAC/C,IAAI,CAACK,MAAM,EAAE;MACX,MAAM,IAAIF,KAAK,CACb,GAAGG,MAAM,CACPN,UACF,CAAC,gHACH,CAAC;IACH;IAEA,OAAOK,MAAM;EACf,CAAC;AACH;AAEA,MAAME,MAAM,GAAG,IAAAC,6BAAgB,EAAgC;EAC7DC,aAAa,EAAEV,iBAAiB,CAAC,eAAe;AAClD,CAAC,CAAC;AAEK,MAAMK,KAGZ,GAAAM,OAAA,CAAAN,KAAA,GAAGG,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../../src/namespaces/tools/types.ts"],"sourcesContent":["export type EditWithWixelRequest = {\n fileId: string;\n externalId: string;\n};\n\nexport type EditWithWixelResponse = {\n status: 'DISPATCHED';\n};\n\nexport type ToolsNamespace = {\n editWithWixel: (args: EditWithWixelRequest) => Promise<EditWithWixelResponse>;\n};\n"],"mappings":"","ignoreList":[]}
|
package/dist/cjs/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\nimport type { AppsNamespace } from './namespaces/apps/types';\nimport type { CreditsNamespace } from './namespaces/credits/types';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n apps: AppsNamespace;\n credits
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\nimport type { AppsNamespace } from './namespaces/apps/types';\nimport type { CreditsNamespace } from './namespaces/credits/types';\nimport type { ToolsNamespace } from './namespaces/tools/types';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n apps: AppsNamespace;\n credits?: CreditsNamespace;\n tools: ToolsNamespace;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../src/namespaces/index.ts"],"sourcesContent":["export * from './apps';\nexport * from './credits';\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/namespaces/index.ts"],"sourcesContent":["export * from './apps';\nexport * from './credits';\nexport * from './tools';\n"],"mappings":"AAAA,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../../src/namespaces/tools/index.ts"],"sourcesContent":["export * from './tools.js';\nexport * from './types.js';\n"],"mappings":"AAAA,cAAc,YAAY;AAC1B,cAAc,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createHostModule } from '@wix/sdk-runtime/host-modules';
|
|
2
|
+
function createToolsMethod(methodName) {
|
|
3
|
+
return host => {
|
|
4
|
+
if (!host.workspace) {
|
|
5
|
+
throw new Error('workspace is not available on the current host. Make sure to use an updated version of the host initialization package.');
|
|
6
|
+
}
|
|
7
|
+
if (!host.workspace.tools) {
|
|
8
|
+
throw new Error('tools is not available on the current host. Make sure to use an updated version of the host initialization package.');
|
|
9
|
+
}
|
|
10
|
+
const method = host.workspace.tools[methodName];
|
|
11
|
+
if (!method) {
|
|
12
|
+
throw new Error(`${String(methodName)} is not available on the current host. Make sure to use an updated version of the host initialization package.`);
|
|
13
|
+
}
|
|
14
|
+
return method;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const _tools = createHostModule({
|
|
18
|
+
editWithWixel: createToolsMethod('editWithWixel')
|
|
19
|
+
});
|
|
20
|
+
export const tools = _tools;
|
|
21
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createHostModule","createToolsMethod","methodName","host","workspace","Error","tools","method","String","_tools","editWithWixel"],"sources":["../../../../src/namespaces/tools/tools.ts"],"sourcesContent":["import { createHostModule } from '@wix/sdk-runtime/host-modules';\nimport type { ExposeFieldsBasedOnToggle } from '@wix/sdk-types';\n\nimport { WorkspaceHost } from '../../types.js';\nimport type { ToolsNamespace } from './types.js';\n\nfunction createToolsMethod<K extends keyof ToolsNamespace>(\n methodName: K,\n): (host: WorkspaceHost) => ToolsNamespace[K] {\n return (host) => {\n if (!host.workspace) {\n throw new Error(\n 'workspace is not available on the current host. Make sure to use an updated version of the host initialization package.',\n );\n }\n\n if (!host.workspace.tools) {\n throw new Error(\n 'tools is not available on the current host. Make sure to use an updated version of the host initialization package.',\n );\n }\n\n const method = host.workspace.tools[methodName];\n if (!method) {\n throw new Error(\n `${String(\n methodName,\n )} is not available on the current host. Make sure to use an updated version of the host initialization package.`,\n );\n }\n\n return method as ToolsNamespace[K];\n };\n}\n\nconst _tools = createHostModule<WorkspaceHost, ToolsNamespace>({\n editWithWixel: createToolsMethod('editWithWixel'),\n});\n\nexport const tools: ExposeFieldsBasedOnToggle<\n typeof _tools,\n { editWithWixel: 'alpha' }\n> = _tools;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,+BAA+B;AAMhE,SAASC,iBAAiBA,CACxBC,UAAa,EAC+B;EAC5C,OAAQC,IAAI,IAAK;IACf,IAAI,CAACA,IAAI,CAACC,SAAS,EAAE;MACnB,MAAM,IAAIC,KAAK,CACb,yHACF,CAAC;IACH;IAEA,IAAI,CAACF,IAAI,CAACC,SAAS,CAACE,KAAK,EAAE;MACzB,MAAM,IAAID,KAAK,CACb,qHACF,CAAC;IACH;IAEA,MAAME,MAAM,GAAGJ,IAAI,CAACC,SAAS,CAACE,KAAK,CAACJ,UAAU,CAAC;IAC/C,IAAI,CAACK,MAAM,EAAE;MACX,MAAM,IAAIF,KAAK,CACb,GAAGG,MAAM,CACPN,UACF,CAAC,gHACH,CAAC;IACH;IAEA,OAAOK,MAAM;EACf,CAAC;AACH;AAEA,MAAME,MAAM,GAAGT,gBAAgB,CAAgC;EAC7DU,aAAa,EAAET,iBAAiB,CAAC,eAAe;AAClD,CAAC,CAAC;AAEF,OAAO,MAAMK,KAGZ,GAAGG,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../../src/namespaces/tools/types.ts"],"sourcesContent":["export type EditWithWixelRequest = {\n fileId: string;\n externalId: string;\n};\n\nexport type EditWithWixelResponse = {\n status: 'DISPATCHED';\n};\n\nexport type ToolsNamespace = {\n editWithWixel: (args: EditWithWixelRequest) => Promise<EditWithWixelResponse>;\n};\n"],"mappings":"","ignoreList":[]}
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\nimport type { AppsNamespace } from './namespaces/apps/types';\nimport type { CreditsNamespace } from './namespaces/credits/types';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n apps: AppsNamespace;\n credits
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type { Host } from '@wix/sdk-types';\n\nimport type { AppsNamespace } from './namespaces/apps/types';\nimport type { CreditsNamespace } from './namespaces/credits/types';\nimport type { ToolsNamespace } from './namespaces/tools/types';\n\ntype ContextIds = {\n accountId: string;\n userId: string;\n siteId?: string;\n appId?: string;\n};\n\nexport type WorkspaceHost = Host & {\n workspace?: {\n getContextIds?: () => ContextIds;\n openItemSelector?: (...args: any[]) => any;\n apps: AppsNamespace;\n credits?: CreditsNamespace;\n tools: ToolsNamespace;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/namespaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/namespaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExposeFieldsBasedOnToggle } from '@wix/sdk-types';
|
|
2
|
+
import { WorkspaceHost } from '../../types.js';
|
|
3
|
+
import type { ToolsNamespace } from './types.js';
|
|
4
|
+
declare const _tools: ToolsNamespace & import("@wix/sdk-types").HostModule<ToolsNamespace, WorkspaceHost>;
|
|
5
|
+
export declare const tools: ExposeFieldsBasedOnToggle<typeof _tools, {
|
|
6
|
+
editWithWixel: 'alpha';
|
|
7
|
+
}>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/tools/tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA+BjD,QAAA,MAAM,MAAM,qFAEV,CAAC;AAEH,eAAO,MAAM,KAAK,EAAE,yBAAyB,CAC3C,OAAO,MAAM,EACb;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,CAClB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type EditWithWixelRequest = {
|
|
2
|
+
fileId: string;
|
|
3
|
+
externalId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type EditWithWixelResponse = {
|
|
6
|
+
status: 'DISPATCHED';
|
|
7
|
+
};
|
|
8
|
+
export declare type ToolsNamespace = {
|
|
9
|
+
editWithWixel: (args: EditWithWixelRequest) => Promise<EditWithWixelResponse>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/tools/types.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,aAAa,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC/E,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Host } from '@wix/sdk-types';
|
|
2
2
|
import type { AppsNamespace } from './namespaces/apps/types';
|
|
3
3
|
import type { CreditsNamespace } from './namespaces/credits/types';
|
|
4
|
+
import type { ToolsNamespace } from './namespaces/tools/types';
|
|
4
5
|
declare type ContextIds = {
|
|
5
6
|
accountId: string;
|
|
6
7
|
userId: string;
|
|
@@ -12,7 +13,8 @@ export declare type WorkspaceHost = Host & {
|
|
|
12
13
|
getContextIds?: () => ContextIds;
|
|
13
14
|
openItemSelector?: (...args: any[]) => any;
|
|
14
15
|
apps: AppsNamespace;
|
|
15
|
-
credits
|
|
16
|
+
credits?: CreditsNamespace;
|
|
17
|
+
tools: ToolsNamespace;
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
export declare type InternalSDK = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,aAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,GAAG;IACjC,SAAS,CAAC,EAAE;QACV,aAAa,CAAC,EAAE,MAAM,UAAU,CAAC;QACjC,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;QAC3C,IAAI,EAAE,aAAa,CAAC;QACpB,OAAO,CAAC,EAAE,gBAAgB,CAAC;QAC3B,KAAK,EAAE,cAAc,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,UAAU,CAAC;CAClC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/workspace",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aviv Maimon",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"wallaby": {
|
|
75
75
|
"autoDetect": true
|
|
76
76
|
},
|
|
77
|
-
"falconPackageHash": "
|
|
77
|
+
"falconPackageHash": "d3e5d1f3e0f1a737ea307efb14029ffb6d8353e59d2e4e82a8413dc8"
|
|
78
78
|
}
|