@wix/workspace 1.3.1 → 1.3.3

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.
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.credits = void 0;
5
+ var _hostModules = require("@wix/sdk-runtime/host-modules");
6
+ function createCreditsMethod(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.credits) {
12
+ throw new Error('credits 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.credits[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 _credits = (0, _hostModules.createHostModule)({
22
+ openPaywallModal: createCreditsMethod('openPaywallModal')
23
+ });
24
+ const credits = exports.credits = _credits;
25
+ //# sourceMappingURL=credits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_hostModules","require","createCreditsMethod","methodName","host","workspace","Error","credits","method","String","_credits","createHostModule","openPaywallModal","exports"],"sources":["../../../../src/namespaces/credits/credits.ts"],"sourcesContent":["import { createHostModule } from '@wix/sdk-runtime/host-modules';\nimport { WorkspaceHost } from '../../types.js';\nimport type { CreditsNamespace } from './types.js';\nimport type { ExposeFieldsBasedOnToggle } from '@wix/sdk-types';\n\nfunction createCreditsMethod<K extends keyof CreditsNamespace>(\n methodName: K,\n): (host: WorkspaceHost) => CreditsNamespace[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.credits) {\n throw new Error(\n 'credits 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.credits[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 CreditsNamespace[K];\n };\n}\n\nconst _credits = createHostModule<WorkspaceHost, CreditsNamespace>({\n openPaywallModal: createCreditsMethod('openPaywallModal'),\n});\n\nexport const credits: ExposeFieldsBasedOnToggle<\n typeof _credits,\n { openPaywallModal: 'alpha' }\n> = _credits;\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA,SAASC,mBAAmBA,CAC1BC,UAAa,EACiC;EAC9C,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,OAAO,EAAE;MAC3B,MAAM,IAAID,KAAK,CACb,uHACF,CAAC;IACH;IAEA,MAAME,MAAM,GAAGJ,IAAI,CAACC,SAAS,CAACE,OAAO,CAACJ,UAAU,CAAC;IACjD,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,QAAQ,GAAG,IAAAC,6BAAgB,EAAkC;EACjEC,gBAAgB,EAAEV,mBAAmB,CAAC,kBAAkB;AAC1D,CAAC,CAAC;AAEK,MAAMK,OAGZ,GAAAM,OAAA,CAAAN,OAAA,GAAGG,QAAQ","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ var _credits = require("./credits.js");
5
+ Object.keys(_credits).forEach(function (key) {
6
+ if (key === "default" || key === "__esModule") return;
7
+ if (key in exports && exports[key] === _credits[key]) return;
8
+ exports[key] = _credits[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":["_credits","require","Object","keys","forEach","key","exports","_types"],"sources":["../../../../src/namespaces/credits/index.ts"],"sourcesContent":["export * from './credits.js';\nexport * from './types.js';\n"],"mappings":";;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,QAAA,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,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ var EAssetType = /*#__PURE__*/function (EAssetType) {
5
+ EAssetType["IMAGE"] = "image";
6
+ EAssetType["VIDEO"] = "video";
7
+ EAssetType["LOGO"] = "logo";
8
+ EAssetType["DOCS"] = "docs";
9
+ EAssetType["FORMS"] = "forms";
10
+ EAssetType["PDF"] = "pdf";
11
+ EAssetType["RSVP"] = "rsvp";
12
+ EAssetType["DEFAULT"] = "default";
13
+ return EAssetType;
14
+ }(EAssetType || {});
15
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EAssetType"],"sources":["../../../../src/namespaces/credits/types.ts"],"sourcesContent":["enum EAssetType {\n IMAGE = 'image',\n VIDEO = 'video',\n LOGO = 'logo',\n DOCS = 'docs',\n FORMS = 'forms',\n PDF = 'pdf',\n RSVP = 'rsvp',\n DEFAULT = 'default',\n}\n\nexport type OpenPaywallModalRequest = {\n assetType: EAssetType;\n};\n\nexport type CreditsNamespace = {\n openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>; // TODO: Need to add correct type\n};\n"],"mappings":";;;IAAKA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA,EAAVA,UAAU","ignoreList":[]}
@@ -7,4 +7,10 @@ Object.keys(_apps).forEach(function (key) {
7
7
  if (key in exports && exports[key] === _apps[key]) return;
8
8
  exports[key] = _apps[key];
9
9
  });
10
+ var _credits = require("./credits");
11
+ Object.keys(_credits).forEach(function (key) {
12
+ if (key === "default" || key === "__esModule") return;
13
+ if (key in exports && exports[key] === _credits[key]) return;
14
+ exports[key] = _credits[key];
15
+ });
10
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_apps","require","Object","keys","forEach","key","exports"],"sources":["../../../src/namespaces/index.ts"],"sourcesContent":["export * from './apps';\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","ignoreList":[]}
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 +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';\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 };\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';\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":[]}
@@ -0,0 +1,21 @@
1
+ import { createHostModule } from '@wix/sdk-runtime/host-modules';
2
+ function createCreditsMethod(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.credits) {
8
+ throw new Error('credits 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.credits[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 _credits = createHostModule({
18
+ openPaywallModal: createCreditsMethod('openPaywallModal')
19
+ });
20
+ export const credits = _credits;
21
+ //# sourceMappingURL=credits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createHostModule","createCreditsMethod","methodName","host","workspace","Error","credits","method","String","_credits","openPaywallModal"],"sources":["../../../../src/namespaces/credits/credits.ts"],"sourcesContent":["import { createHostModule } from '@wix/sdk-runtime/host-modules';\nimport { WorkspaceHost } from '../../types.js';\nimport type { CreditsNamespace } from './types.js';\nimport type { ExposeFieldsBasedOnToggle } from '@wix/sdk-types';\n\nfunction createCreditsMethod<K extends keyof CreditsNamespace>(\n methodName: K,\n): (host: WorkspaceHost) => CreditsNamespace[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.credits) {\n throw new Error(\n 'credits 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.credits[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 CreditsNamespace[K];\n };\n}\n\nconst _credits = createHostModule<WorkspaceHost, CreditsNamespace>({\n openPaywallModal: createCreditsMethod('openPaywallModal'),\n});\n\nexport const credits: ExposeFieldsBasedOnToggle<\n typeof _credits,\n { openPaywallModal: 'alpha' }\n> = _credits;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,+BAA+B;AAKhE,SAASC,mBAAmBA,CAC1BC,UAAa,EACiC;EAC9C,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,OAAO,EAAE;MAC3B,MAAM,IAAID,KAAK,CACb,uHACF,CAAC;IACH;IAEA,MAAME,MAAM,GAAGJ,IAAI,CAACC,SAAS,CAACE,OAAO,CAACJ,UAAU,CAAC;IACjD,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,QAAQ,GAAGT,gBAAgB,CAAkC;EACjEU,gBAAgB,EAAET,mBAAmB,CAAC,kBAAkB;AAC1D,CAAC,CAAC;AAEF,OAAO,MAAMK,OAGZ,GAAGG,QAAQ","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ export * from './credits.js';
2
+ export * from './types.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../../../src/namespaces/credits/index.ts"],"sourcesContent":["export * from './credits.js';\nexport * from './types.js';\n"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,YAAY","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ var EAssetType = /*#__PURE__*/function (EAssetType) {
2
+ EAssetType["IMAGE"] = "image";
3
+ EAssetType["VIDEO"] = "video";
4
+ EAssetType["LOGO"] = "logo";
5
+ EAssetType["DOCS"] = "docs";
6
+ EAssetType["FORMS"] = "forms";
7
+ EAssetType["PDF"] = "pdf";
8
+ EAssetType["RSVP"] = "rsvp";
9
+ EAssetType["DEFAULT"] = "default";
10
+ return EAssetType;
11
+ }(EAssetType || {});
12
+ export {};
13
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EAssetType"],"sources":["../../../../src/namespaces/credits/types.ts"],"sourcesContent":["enum EAssetType {\n IMAGE = 'image',\n VIDEO = 'video',\n LOGO = 'logo',\n DOCS = 'docs',\n FORMS = 'forms',\n PDF = 'pdf',\n RSVP = 'rsvp',\n DEFAULT = 'default',\n}\n\nexport type OpenPaywallModalRequest = {\n assetType: EAssetType;\n};\n\nexport type CreditsNamespace = {\n openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>; // TODO: Need to add correct type\n};\n"],"mappings":"IAAKA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA,EAAVA,UAAU;AAAA","ignoreList":[]}
@@ -1,2 +1,3 @@
1
1
  export * from './apps';
2
+ export * from './credits';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/namespaces/index.ts"],"sourcesContent":["export * from './apps';\n"],"mappings":"AAAA,cAAc,QAAQ","ignoreList":[]}
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 +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';\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 };\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';\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":[]}
@@ -0,0 +1,9 @@
1
+ import { WorkspaceHost } from '../../types.js';
2
+ import type { CreditsNamespace } from './types.js';
3
+ import type { ExposeFieldsBasedOnToggle } from '@wix/sdk-types';
4
+ declare const _credits: CreditsNamespace & import("@wix/sdk-types").HostModule<CreditsNamespace, WorkspaceHost>;
5
+ export declare const credits: ExposeFieldsBasedOnToggle<typeof _credits, {
6
+ openPaywallModal: 'alpha';
7
+ }>;
8
+ export {};
9
+ //# sourceMappingURL=credits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/credits/credits.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AA+BhE,QAAA,MAAM,QAAQ,yFAEZ,CAAC;AAEH,eAAO,MAAM,OAAO,EAAE,yBAAyB,CAC7C,OAAO,QAAQ,EACf;IAAE,gBAAgB,EAAE,OAAO,CAAA;CAAE,CACnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './credits.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/credits/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare enum EAssetType {
2
+ IMAGE = "image",
3
+ VIDEO = "video",
4
+ LOGO = "logo",
5
+ DOCS = "docs",
6
+ FORMS = "forms",
7
+ PDF = "pdf",
8
+ RSVP = "rsvp",
9
+ DEFAULT = "default"
10
+ }
11
+ export declare type OpenPaywallModalRequest = {
12
+ assetType: EAssetType;
13
+ };
14
+ export declare type CreditsNamespace = {
15
+ openPaywallModal: (args: OpenPaywallModalRequest) => Promise<void>;
16
+ };
17
+ export {};
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/namespaces/credits/types.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,oBAAY,uBAAuB,GAAG;IACpC,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,gBAAgB,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './apps';
2
+ export * from './credits';
2
3
  //# 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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/namespaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { Host } from '@wix/sdk-types';
2
2
  import type { AppsNamespace } from './namespaces/apps/types';
3
+ import type { CreditsNamespace } from './namespaces/credits/types';
3
4
  declare type ContextIds = {
4
5
  accountId: string;
5
6
  userId: string;
@@ -11,6 +12,7 @@ export declare type WorkspaceHost = Host & {
11
12
  getContextIds?: () => ContextIds;
12
13
  openItemSelector?: (...args: any[]) => any;
13
14
  apps: AppsNamespace;
15
+ credits: CreditsNamespace;
14
16
  };
15
17
  };
16
18
  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;AAE7D,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;KACrB,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;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/workspace",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Aviv Maimon",
@@ -69,5 +69,5 @@
69
69
  "wallaby": {
70
70
  "autoDetect": true
71
71
  },
72
- "falconPackageHash": "0ea69910985f50f58a10e59aae148b2bfc332db8834cf58ed2941b1b"
72
+ "falconPackageHash": "82a1fd506226c298c020410ec4e042feda0bab31e87414bff494c413"
73
73
  }