@wix/pro-gallery 1.0.32 → 1.0.34

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 (45) hide show
  1. package/build/cjs/context.d.ts +1 -0
  2. package/build/cjs/context.js +28 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.js +5 -1
  5. package/build/cjs/index.js.map +1 -1
  6. package/build/cjs/index.typings.js +5 -1
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.js +5 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/src/pro-gallery-v2-gallery.context.d.ts +12 -0
  11. package/build/cjs/src/pro-gallery-v2-gallery.context.js +115 -0
  12. package/build/cjs/src/pro-gallery-v2-gallery.context.js.map +1 -0
  13. package/build/cjs/src/pro-gallery-v2-gallery.http.js +464 -240
  14. package/build/cjs/src/pro-gallery-v2-gallery.http.js.map +1 -1
  15. package/build/cjs/src/pro-gallery-v2-gallery.meta.d.ts +1 -1
  16. package/build/cjs/src/pro-gallery-v2-gallery.meta.js +5 -1
  17. package/build/cjs/src/pro-gallery-v2-gallery.meta.js.map +1 -1
  18. package/build/cjs/src/pro-gallery-v2-gallery.public.d.ts +6 -5
  19. package/build/cjs/src/pro-gallery-v2-gallery.public.js +8 -1
  20. package/build/cjs/src/pro-gallery-v2-gallery.public.js.map +1 -1
  21. package/build/cjs/src/pro-gallery-v2-gallery.types.d.ts +69 -65
  22. package/build/cjs/src/pro-gallery-v2-gallery.types.js +8 -8
  23. package/build/cjs/src/pro-gallery-v2-gallery.types.js.map +1 -1
  24. package/build/cjs/src/pro-gallery-v2-gallery.universal.d.ts +99 -72
  25. package/build/cjs/src/pro-gallery-v2-gallery.universal.js +110 -68
  26. package/build/cjs/src/pro-gallery-v2-gallery.universal.js.map +1 -1
  27. package/build/es/context.d.ts +1 -0
  28. package/build/es/context.js +2 -0
  29. package/build/es/context.js.map +1 -0
  30. package/build/es/src/pro-gallery-v2-gallery.context.d.ts +12 -0
  31. package/build/es/src/pro-gallery-v2-gallery.context.js +102 -0
  32. package/build/es/src/pro-gallery-v2-gallery.context.js.map +1 -0
  33. package/build/es/src/pro-gallery-v2-gallery.http.js +464 -240
  34. package/build/es/src/pro-gallery-v2-gallery.http.js.map +1 -1
  35. package/build/es/src/pro-gallery-v2-gallery.meta.d.ts +1 -1
  36. package/build/es/src/pro-gallery-v2-gallery.public.d.ts +6 -5
  37. package/build/es/src/pro-gallery-v2-gallery.public.js +1 -0
  38. package/build/es/src/pro-gallery-v2-gallery.public.js.map +1 -1
  39. package/build/es/src/pro-gallery-v2-gallery.types.d.ts +69 -65
  40. package/build/es/src/pro-gallery-v2-gallery.types.js.map +1 -1
  41. package/build/es/src/pro-gallery-v2-gallery.universal.d.ts +99 -72
  42. package/build/es/src/pro-gallery-v2-gallery.universal.js +97 -59
  43. package/build/es/src/pro-gallery-v2-gallery.universal.js.map +1 -1
  44. package/context/package.json +6 -0
  45. package/package.json +12 -6
@@ -0,0 +1 @@
1
+ export * as proGallery from './src/pro-gallery-v2-gallery.context';
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.proGallery = void 0;
27
+ exports.proGallery = __importStar(require("./src/pro-gallery-v2-gallery.context"));
28
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAmE"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE"}
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE"}
package/build/cjs/meta.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAgE"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAgE"}
@@ -0,0 +1,12 @@
1
+ import { listGalleries as publicListGalleries, getGallery as publicGetGallery, listGalleryItems as publicListGalleryItems, getGalleryItem as publicGetGalleryItem, createGallery as publicCreateGallery, updateGallery as publicUpdateGallery, deleteGallery as publicDeleteGallery, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery.public';
2
+ import { BuildRESTFunction } from '@wix/sdk-types';
3
+ export declare const listGalleries: BuildRESTFunction<typeof publicListGalleries>;
4
+ export declare const getGallery: BuildRESTFunction<typeof publicGetGallery>;
5
+ export declare const listGalleryItems: BuildRESTFunction<typeof publicListGalleryItems>;
6
+ export declare const getGalleryItem: BuildRESTFunction<typeof publicGetGalleryItem>;
7
+ export declare const createGallery: BuildRESTFunction<typeof publicCreateGallery>;
8
+ export declare const updateGallery: BuildRESTFunction<typeof publicUpdateGallery>;
9
+ export declare const deleteGallery: BuildRESTFunction<typeof publicDeleteGallery>;
10
+ export declare const createGalleryItem: BuildRESTFunction<typeof publicCreateGalleryItem>;
11
+ export declare const updateGalleryItem: BuildRESTFunction<typeof publicUpdateGalleryItem>;
12
+ export declare const deleteGalleryItem: BuildRESTFunction<typeof publicDeleteGalleryItem>;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = void 0;
4
+ const pro_gallery_v2_gallery_public_1 = require("./pro-gallery-v2-gallery.public");
5
+ const listGalleries = (...args) => {
6
+ // @ts-expect-error
7
+ if (!globalThis.__wix_context__) {
8
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
+ }
10
+ // @ts-expect-error
11
+ return globalThis.__wix_context__
12
+ .initWixModules(pro_gallery_v2_gallery_public_1.listGalleries)
13
+ .apply(undefined, args);
14
+ };
15
+ exports.listGalleries = listGalleries;
16
+ const getGallery = (...args) => {
17
+ // @ts-expect-error
18
+ if (!globalThis.__wix_context__) {
19
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
+ }
21
+ // @ts-expect-error
22
+ return globalThis.__wix_context__
23
+ .initWixModules(pro_gallery_v2_gallery_public_1.getGallery)
24
+ .apply(undefined, args);
25
+ };
26
+ exports.getGallery = getGallery;
27
+ const listGalleryItems = (...args) => {
28
+ // @ts-expect-error
29
+ if (!globalThis.__wix_context__) {
30
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
+ }
32
+ // @ts-expect-error
33
+ return globalThis.__wix_context__
34
+ .initWixModules(pro_gallery_v2_gallery_public_1.listGalleryItems)
35
+ .apply(undefined, args);
36
+ };
37
+ exports.listGalleryItems = listGalleryItems;
38
+ const getGalleryItem = (...args) => {
39
+ // @ts-expect-error
40
+ if (!globalThis.__wix_context__) {
41
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
+ }
43
+ // @ts-expect-error
44
+ return globalThis.__wix_context__
45
+ .initWixModules(pro_gallery_v2_gallery_public_1.getGalleryItem)
46
+ .apply(undefined, args);
47
+ };
48
+ exports.getGalleryItem = getGalleryItem;
49
+ const createGallery = (...args) => {
50
+ // @ts-expect-error
51
+ if (!globalThis.__wix_context__) {
52
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
+ }
54
+ // @ts-expect-error
55
+ return globalThis.__wix_context__
56
+ .initWixModules(pro_gallery_v2_gallery_public_1.createGallery)
57
+ .apply(undefined, args);
58
+ };
59
+ exports.createGallery = createGallery;
60
+ const updateGallery = (...args) => {
61
+ // @ts-expect-error
62
+ if (!globalThis.__wix_context__) {
63
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
64
+ }
65
+ // @ts-expect-error
66
+ return globalThis.__wix_context__
67
+ .initWixModules(pro_gallery_v2_gallery_public_1.updateGallery)
68
+ .apply(undefined, args);
69
+ };
70
+ exports.updateGallery = updateGallery;
71
+ const deleteGallery = (...args) => {
72
+ // @ts-expect-error
73
+ if (!globalThis.__wix_context__) {
74
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
75
+ }
76
+ // @ts-expect-error
77
+ return globalThis.__wix_context__
78
+ .initWixModules(pro_gallery_v2_gallery_public_1.deleteGallery)
79
+ .apply(undefined, args);
80
+ };
81
+ exports.deleteGallery = deleteGallery;
82
+ const createGalleryItem = (...args) => {
83
+ // @ts-expect-error
84
+ if (!globalThis.__wix_context__) {
85
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
86
+ }
87
+ // @ts-expect-error
88
+ return globalThis.__wix_context__
89
+ .initWixModules(pro_gallery_v2_gallery_public_1.createGalleryItem)
90
+ .apply(undefined, args);
91
+ };
92
+ exports.createGalleryItem = createGalleryItem;
93
+ const updateGalleryItem = (...args) => {
94
+ // @ts-expect-error
95
+ if (!globalThis.__wix_context__) {
96
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
97
+ }
98
+ // @ts-expect-error
99
+ return globalThis.__wix_context__
100
+ .initWixModules(pro_gallery_v2_gallery_public_1.updateGalleryItem)
101
+ .apply(undefined, args);
102
+ };
103
+ exports.updateGalleryItem = updateGalleryItem;
104
+ const deleteGalleryItem = (...args) => {
105
+ // @ts-expect-error
106
+ if (!globalThis.__wix_context__) {
107
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
108
+ }
109
+ // @ts-expect-error
110
+ return globalThis.__wix_context__
111
+ .initWixModules(pro_gallery_v2_gallery_public_1.deleteGalleryItem)
112
+ .apply(undefined, args);
113
+ };
114
+ exports.deleteGalleryItem = deleteGalleryItem;
115
+ //# sourceMappingURL=pro-gallery-v2-gallery.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pro-gallery-v2-gallery.context.js","sourceRoot":"","sources":["../../../src/pro-gallery-v2-gallery.context.ts"],"names":[],"mappings":";;;AAAA,mFAWyC;AAGlC,MAAM,aAAa,GAAkD,CAC1E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,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