@wix/workspace 1.3.6 → 1.3.8

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.
Files changed (33) hide show
  1. package/dist/cjs/namespaces/credits/types.js.map +1 -1
  2. package/dist/cjs/namespaces/index.js +6 -0
  3. package/dist/cjs/namespaces/index.js.map +1 -1
  4. package/dist/cjs/namespaces/tools/index.js +16 -0
  5. package/dist/cjs/namespaces/tools/index.js.map +1 -0
  6. package/dist/cjs/namespaces/tools/tools.js +25 -0
  7. package/dist/cjs/namespaces/tools/tools.js.map +1 -0
  8. package/dist/cjs/namespaces/tools/types.js +4 -0
  9. package/dist/cjs/namespaces/tools/types.js.map +1 -0
  10. package/dist/cjs/types.js.map +1 -1
  11. package/dist/esm/namespaces/credits/types.js.map +1 -1
  12. package/dist/esm/namespaces/index.js +1 -0
  13. package/dist/esm/namespaces/index.js.map +1 -1
  14. package/dist/esm/namespaces/tools/index.js +3 -0
  15. package/dist/esm/namespaces/tools/index.js.map +1 -0
  16. package/dist/esm/namespaces/tools/tools.js +21 -0
  17. package/dist/esm/namespaces/tools/tools.js.map +1 -0
  18. package/dist/esm/namespaces/tools/types.js +2 -0
  19. package/dist/esm/namespaces/tools/types.js.map +1 -0
  20. package/dist/esm/types.js.map +1 -1
  21. package/dist/types/namespaces/credits/types.d.ts +2 -1
  22. package/dist/types/namespaces/credits/types.d.ts.map +1 -1
  23. package/dist/types/namespaces/index.d.ts +1 -0
  24. package/dist/types/namespaces/index.d.ts.map +1 -1
  25. package/dist/types/namespaces/tools/index.d.ts +3 -0
  26. package/dist/types/namespaces/tools/index.d.ts.map +1 -0
  27. package/dist/types/namespaces/tools/tools.d.ts +9 -0
  28. package/dist/types/namespaces/tools/tools.d.ts.map +1 -0
  29. package/dist/types/namespaces/tools/types.d.ts +11 -0
  30. package/dist/types/namespaces/tools/types.d.ts.map +1 -0
  31. package/dist/types/types.d.ts +2 -0
  32. package/dist/types/types.d.ts.map +1 -1
  33. package/package.json +7 -6
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../../src/namespaces/credits/types.ts"],"sourcesContent":["export type AssetType =\n | 'image'\n | 'video'\n | 'logo'\n | 'docs'\n | 'forms'\n | 'pdf'\n | 'rsvp'\n | 'default';\n\nexport type OpenPaywallModalRequest = {\n assetType: AssetType;\n};\n\nexport type CreditsNamespace = {\n openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>; // TODO: Need to add correct type\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/namespaces/credits/types.ts"],"sourcesContent":["import type { EAssetType } from '@wix/credits-types';\n\nexport type AssetType = `${EAssetType}`;\n\nexport type OpenPaywallModalRequest = {\n assetType: AssetType;\n};\n\nexport type CreditsNamespace = {\n openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>; // TODO: Need to add correct type\n};\n"],"mappings":"","ignoreList":[]}
@@ -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,4 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ //# sourceMappingURL=types.js.map
@@ -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":[]}
@@ -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: CreditsNamespace;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
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/credits/types.ts"],"sourcesContent":["export type AssetType =\n | 'image'\n | 'video'\n | 'logo'\n | 'docs'\n | 'forms'\n | 'pdf'\n | 'rsvp'\n | 'default';\n\nexport type OpenPaywallModalRequest = {\n assetType: AssetType;\n};\n\nexport type CreditsNamespace = {\n openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>; // TODO: Need to add correct type\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../../src/namespaces/credits/types.ts"],"sourcesContent":["import type { EAssetType } from '@wix/credits-types';\n\nexport type AssetType = `${EAssetType}`;\n\nexport type OpenPaywallModalRequest = {\n assetType: AssetType;\n};\n\nexport type CreditsNamespace = {\n openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>; // TODO: Need to add correct type\n};\n"],"mappings":"","ignoreList":[]}
@@ -1,3 +1,4 @@
1
1
  export * from './apps';
2
2
  export * from './credits';
3
+ export * from './tools';
3
4
  //# sourceMappingURL=index.js.map
@@ -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,3 @@
1
+ export * from './tools.js';
2
+ export * from './types.js';
3
+ //# sourceMappingURL=index.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -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":[]}
@@ -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: CreditsNamespace;\n };\n};\n\nexport type InternalSDK = {\n getContextIds?: () => ContextIds;\n};\n\nexport type ItemSelectorSDK = {\n openItemSelector?: (...args: any[]) => any;\n};\n"],"mappings":"","ignoreList":[]}
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,4 +1,5 @@
1
- export declare type AssetType = 'image' | 'video' | 'logo' | 'docs' | 'forms' | 'pdf' | 'rsvp' | 'default';
1
+ import type { EAssetType } from '@wix/credits-types';
2
+ export declare type AssetType = `${EAssetType}`;
2
3
  export declare type OpenPaywallModalRequest = {
3
4
  assetType: AssetType;
4
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/credits/types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GACjB,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,SAAS,CAAC;AAEd,oBAAY,uBAAuB,GAAG;IACpC,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/credits/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,oBAAY,SAAS,GAAG,GAAG,UAAU,EAAE,CAAC;AAExC,oBAAY,uBAAuB,GAAG;IACpC,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './apps';
2
2
  export * from './credits';
3
+ export * from './tools';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from './tools.js';
2
+ export * from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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;
@@ -13,6 +14,7 @@ export declare type WorkspaceHost = Host & {
13
14
  openItemSelector?: (...args: any[]) => any;
14
15
  apps: AppsNamespace;
15
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;AAEnE,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,EAAE,gBAAgB,CAAC;KAC3B,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"}
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,EAAE,gBAAgB,CAAC;QAC1B,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.6",
3
+ "version": "1.3.8",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Aviv Maimon",
@@ -30,18 +30,19 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.0.0",
33
- "@wix/sdk-runtime": "^1.0.6",
34
- "@wix/sdk-types": "^1.13.32"
33
+ "@wix/credits-types": "^1.0.0",
34
+ "@wix/sdk-runtime": "^1.0.7",
35
+ "@wix/sdk-types": "^1.17.3"
35
36
  },
36
37
  "peerDependencies": {
37
- "@wix/sdk": "^1.15.24"
38
+ "@wix/sdk": "^1.21.3"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@types/jest": "^27.4.0",
41
42
  "@types/node": "^16.0.0",
42
43
  "@wix/eslint-config-yoshi": "^6.0.0",
43
44
  "@wix/jest-yoshi-preset": "^6.0.0",
44
- "@wix/sdk": "^1.15.24",
45
+ "@wix/sdk": "^1.21.3",
45
46
  "@wix/yoshi-flow-library": "^6.0.0",
46
47
  "ts-jest": "^27.1.2",
47
48
  "typescript": "~4.7.0",
@@ -73,5 +74,5 @@
73
74
  "wallaby": {
74
75
  "autoDetect": true
75
76
  },
76
- "falconPackageHash": "a504a709f3020187900b6808de071fef653b3d0a3b69e0b96bc5a1df"
77
+ "falconPackageHash": "3d808ac93060cd3078f689720fd445b1f33d78a5b47c441bd458c3f3"
77
78
  }