@quenty/contentproviderutils 12.17.4-canary.559.339cfa7.0 → 12.18.0-canary.0a5db80.0

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/CHANGELOG.md CHANGED
@@ -3,15 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [12.17.4-canary.559.339cfa7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/contentproviderutils@12.17.3...@quenty/contentproviderutils@12.17.4-canary.559.339cfa7.0) (2025-05-10)
7
-
8
- **Note:** Version bump only for package @quenty/contentproviderutils
9
-
10
-
11
-
12
-
13
-
14
- ## [12.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/contentproviderutils@12.17.2...@quenty/contentproviderutils@12.17.3) (2025-04-10)
6
+ # [12.18.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/contentproviderutils@12.17.2...@quenty/contentproviderutils@12.18.0-canary.0a5db80.0) (2025-05-10)
15
7
 
16
8
  **Note:** Version bump only for package @quenty/contentproviderutils
17
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/contentproviderutils",
3
- "version": "12.17.4-canary.559.339cfa7.0",
3
+ "version": "12.18.0-canary.0a5db80.0",
4
4
  "description": "Utility functions to ensure that content is preloaded (wrapping calls in promises)",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,17 +27,17 @@
27
27
  "Quenty"
28
28
  ],
29
29
  "dependencies": {
30
- "@quenty/baseobject": "10.8.4-canary.559.339cfa7.0",
31
- "@quenty/instanceutils": "13.17.4-canary.559.339cfa7.0",
32
- "@quenty/loader": "10.8.4-canary.559.339cfa7.0",
33
- "@quenty/maid": "3.4.4-canary.559.339cfa7.0",
34
- "@quenty/promise": "10.10.5-canary.559.339cfa7.0",
35
- "@quenty/rx": "13.17.4-canary.559.339cfa7.0",
36
- "@quenty/signal": "7.10.4-canary.559.339cfa7.0",
37
- "@quenty/valueobject": "13.17.4-canary.559.339cfa7.0"
30
+ "@quenty/baseobject": "10.9.0-canary.0a5db80.0",
31
+ "@quenty/instanceutils": "13.18.0-canary.0a5db80.0",
32
+ "@quenty/loader": "10.9.0-canary.0a5db80.0",
33
+ "@quenty/maid": "3.5.0-canary.0a5db80.0",
34
+ "@quenty/promise": "10.11.0-canary.0a5db80.0",
35
+ "@quenty/rx": "13.18.0-canary.0a5db80.0",
36
+ "@quenty/signal": "7.11.0-canary.0a5db80.0",
37
+ "@quenty/valueobject": "13.18.0-canary.0a5db80.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "339cfa778736f08768ed7305041f6221faa35bfc"
42
+ "gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
43
43
  }
@@ -36,4 +36,4 @@ function ContentProviderUtils.promisePreload(contentIdList: { Instance | string
36
36
  end)
37
37
  end
38
38
 
39
- return ContentProviderUtils
39
+ return ContentProviderUtils
@@ -108,27 +108,25 @@ function ImageLabelLoaded:SetImageLabel(imageLabel: ImageLabel?)
108
108
  end))
109
109
 
110
110
  -- Setup preloading as necessary
111
- maid:GiveTask(self._preloadImage
112
- :Observe()
113
- :Pipe({
114
- Rx.switchMap(function(preload)
115
- if preload then
116
- return Rx.combineLatest({
117
- isLoaded = self._isLoaded:Observe(),
118
- image = RxInstanceUtils.observeProperty(self._imageLabel, "Image"),
119
- })
120
- else
121
- return Rx.EMPTY
122
- end
123
- end),
124
- })
125
- :Subscribe(function(state)
126
- if not state.isLoaded and state.image ~= "" then
127
- maid:GivePromise(ContentProviderUtils.promisePreload({ self._imageLabel })):Then(function()
111
+ maid:GiveTask(self._preloadImage:Observe():Pipe({
112
+ Rx.switchMap(function(preload)
113
+ if preload then
114
+ return Rx.combineLatest({
115
+ isLoaded = self._isLoaded:Observe();
116
+ image = RxInstanceUtils.observeProperty(self._imageLabel, "Image");
117
+ })
118
+ else
119
+ return Rx.EMPTY
120
+ end
121
+ end);
122
+ }):Subscribe(function(state)
123
+ if not state.isLoaded and state.image ~= "" then
124
+ maid:GivePromise(ContentProviderUtils.promisePreload({self._imageLabel}))
125
+ :Then(function()
128
126
  self._isLoaded.Value = true
129
127
  end)
130
- end
131
- end))
128
+ end
129
+ end))
132
130
  else
133
131
  self._isLoaded.Value = false
134
132
  end
@@ -138,4 +136,4 @@ function ImageLabelLoaded:SetImageLabel(imageLabel: ImageLabel?)
138
136
  self._maid._imageLabelMaid = maid
139
137
  end
140
138
 
141
- return ImageLabelLoaded
139
+ return ImageLabelLoaded