@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,102 @@
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
+ export const listGalleries = (...args) => {
3
+ // @ts-expect-error
4
+ if (!globalThis.__wix_context__) {
5
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
6
+ }
7
+ // @ts-expect-error
8
+ return globalThis.__wix_context__
9
+ .initWixModules(publicListGalleries)
10
+ .apply(undefined, args);
11
+ };
12
+ export const getGallery = (...args) => {
13
+ // @ts-expect-error
14
+ if (!globalThis.__wix_context__) {
15
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
+ }
17
+ // @ts-expect-error
18
+ return globalThis.__wix_context__
19
+ .initWixModules(publicGetGallery)
20
+ .apply(undefined, args);
21
+ };
22
+ export const listGalleryItems = (...args) => {
23
+ // @ts-expect-error
24
+ if (!globalThis.__wix_context__) {
25
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
26
+ }
27
+ // @ts-expect-error
28
+ return globalThis.__wix_context__
29
+ .initWixModules(publicListGalleryItems)
30
+ .apply(undefined, args);
31
+ };
32
+ export const getGalleryItem = (...args) => {
33
+ // @ts-expect-error
34
+ if (!globalThis.__wix_context__) {
35
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
36
+ }
37
+ // @ts-expect-error
38
+ return globalThis.__wix_context__
39
+ .initWixModules(publicGetGalleryItem)
40
+ .apply(undefined, args);
41
+ };
42
+ export const createGallery = (...args) => {
43
+ // @ts-expect-error
44
+ if (!globalThis.__wix_context__) {
45
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
46
+ }
47
+ // @ts-expect-error
48
+ return globalThis.__wix_context__
49
+ .initWixModules(publicCreateGallery)
50
+ .apply(undefined, args);
51
+ };
52
+ export const updateGallery = (...args) => {
53
+ // @ts-expect-error
54
+ if (!globalThis.__wix_context__) {
55
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
56
+ }
57
+ // @ts-expect-error
58
+ return globalThis.__wix_context__
59
+ .initWixModules(publicUpdateGallery)
60
+ .apply(undefined, args);
61
+ };
62
+ export const deleteGallery = (...args) => {
63
+ // @ts-expect-error
64
+ if (!globalThis.__wix_context__) {
65
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
66
+ }
67
+ // @ts-expect-error
68
+ return globalThis.__wix_context__
69
+ .initWixModules(publicDeleteGallery)
70
+ .apply(undefined, args);
71
+ };
72
+ export const createGalleryItem = (...args) => {
73
+ // @ts-expect-error
74
+ if (!globalThis.__wix_context__) {
75
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
76
+ }
77
+ // @ts-expect-error
78
+ return globalThis.__wix_context__
79
+ .initWixModules(publicCreateGalleryItem)
80
+ .apply(undefined, args);
81
+ };
82
+ export const updateGalleryItem = (...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(publicUpdateGalleryItem)
90
+ .apply(undefined, args);
91
+ };
92
+ export const deleteGalleryItem = (...args) => {
93
+ // @ts-expect-error
94
+ if (!globalThis.__wix_context__) {
95
+ throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
96
+ }
97
+ // @ts-expect-error
98
+ return globalThis.__wix_context__
99
+ .initWixModules(publicDeleteGalleryItem)
100
+ .apply(undefined, args);
101
+ };
102
+ //# 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,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,UAAU,IAAI,gBAAgB,EAC9B,gBAAgB,IAAI,sBAAsB,EAC1C,cAAc,IAAI,oBAAoB,EACtC,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,EACpC,iBAAiB,IAAI,uBAAuB,EAC5C,iBAAiB,IAAI,uBAAuB,EAC5C,iBAAiB,IAAI,uBAAuB,GAC7C,MAAM,iCAAiC,CAAC;AAGzC,MAAM,CAAC,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,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU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