musora-content-services 1.4.3 → 1.4.7
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/.github/workflows/node.js.yml +0 -0
- package/.prettierignore +0 -0
- package/.prettierrc +0 -0
- package/CHANGELOG.md +26 -0
- package/README.md +0 -0
- package/babel.config.cjs +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/scripts/collapse.js +0 -0
- package/docs/scripts/commonNav.js +0 -0
- package/docs/scripts/linenumber.js +0 -0
- package/docs/scripts/nav.js +0 -0
- package/docs/scripts/polyfill.js +0 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
- package/docs/scripts/prettify/lang-css.js +0 -0
- package/docs/scripts/prettify/prettify.js +0 -0
- package/docs/scripts/search.js +0 -0
- package/docs/styles/jsdoc.css +0 -0
- package/docs/styles/prettify.css +0 -0
- package/jest.config.js +0 -0
- package/link_mcs.sh +0 -0
- package/package.json +1 -1
- package/src/contentTypeConfig.js +1 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +18 -0
- package/src/services/contentLikes.js +0 -0
- package/src/services/contentProgress.js +0 -0
- package/src/services/sanity.js +4 -1
- package/test/live/contentProgressLive.test.js +0 -0
- package/test/live/railcontentLive.test.js +0 -0
- package/test/localStorageMock.js +0 -0
- package/test/log.js +0 -0
|
File without changes
|
package/.prettierignore
CHANGED
|
File without changes
|
package/.prettierrc
CHANGED
|
File without changes
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.4.7](https://github.com/railroadmedia/musora-content-services/compare/v1.4.4...v1.4.7) (2025-04-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **BR-178:** fix url routing to genres on song-tutorial page ([#209](https://github.com/railroadmedia/musora-content-services/issues/209)) ([d32e37a](https://github.com/railroadmedia/musora-content-services/commit/d32e37af4fe53c1d7c5c1fd4eb646df54e007f95))
|
|
11
|
+
* **TP-833:** mod comments missing content ([#222](https://github.com/railroadmedia/musora-content-services/issues/222)) ([55e6e0c](https://github.com/railroadmedia/musora-content-services/commit/55e6e0c4f602d336b99c32f231265a94e35ace4f))
|
|
12
|
+
|
|
13
|
+
### [1.4.6](https://github.com/railroadmedia/musora-content-services/compare/v1.4.4...v1.4.6) (2025-04-08)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **BR-178:** fix url routing to genres on song-tutorial page ([#209](https://github.com/railroadmedia/musora-content-services/issues/209)) ([d32e37a](https://github.com/railroadmedia/musora-content-services/commit/d32e37af4fe53c1d7c5c1fd4eb646df54e007f95))
|
|
19
|
+
* **TP-833:** mod comments missing content ([#222](https://github.com/railroadmedia/musora-content-services/issues/222)) ([55e6e0c](https://github.com/railroadmedia/musora-content-services/commit/55e6e0c4f602d336b99c32f231265a94e35ace4f))
|
|
20
|
+
|
|
21
|
+
### [1.4.5](https://github.com/railroadmedia/musora-content-services/compare/v1.4.4...v1.4.5) (2025-04-08)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **BR-178:** fix url routing to genres on song-tutorial page ([#209](https://github.com/railroadmedia/musora-content-services/issues/209)) ([d32e37a](https://github.com/railroadmedia/musora-content-services/commit/d32e37af4fe53c1d7c5c1fd4eb646df54e007f95))
|
|
27
|
+
* **TP-833:** mod comments missing content ([#222](https://github.com/railroadmedia/musora-content-services/issues/222)) ([55e6e0c](https://github.com/railroadmedia/musora-content-services/commit/55e6e0c4f602d336b99c32f231265a94e35ace4f))
|
|
28
|
+
|
|
29
|
+
### [1.4.4](https://github.com/railroadmedia/musora-content-services/compare/v1.4.3...v1.4.4) (2025-03-31)
|
|
30
|
+
|
|
5
31
|
### [1.4.3](https://github.com/railroadmedia/musora-content-services/compare/v1.4.2...v1.4.3) (2025-03-31)
|
|
6
32
|
|
|
7
33
|
### [1.4.2](https://github.com/railroadmedia/musora-content-services/compare/v1.4.1...v1.4.2) (2025-03-28)
|
package/README.md
CHANGED
|
File without changes
|
package/babel.config.cjs
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/collapse.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/nav.js
CHANGED
|
File without changes
|
package/docs/scripts/polyfill.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/scripts/search.js
CHANGED
|
File without changes
|
package/docs/styles/jsdoc.css
CHANGED
|
File without changes
|
package/docs/styles/prettify.css
CHANGED
|
File without changes
|
package/jest.config.js
CHANGED
|
File without changes
|
package/link_mcs.sh
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/contentTypeConfig.js
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -32,6 +32,18 @@ import {
|
|
|
32
32
|
verifyLocalDataContext
|
|
33
33
|
} from './services/dataContext.js';
|
|
34
34
|
|
|
35
|
+
import {
|
|
36
|
+
applyCloudflareWrapper,
|
|
37
|
+
applySanityTransformations,
|
|
38
|
+
buildImageSRC
|
|
39
|
+
} from './services/imageSRCBuilder.js';
|
|
40
|
+
|
|
41
|
+
import {
|
|
42
|
+
extractSanityUrl,
|
|
43
|
+
isBucketUrl,
|
|
44
|
+
verifyImageSRC
|
|
45
|
+
} from './services/imageSRCVerify.js';
|
|
46
|
+
|
|
35
47
|
import {
|
|
36
48
|
clearLastUpdatedTime,
|
|
37
49
|
setLastUpdatedTime,
|
|
@@ -160,8 +172,11 @@ import {
|
|
|
160
172
|
declare module 'musora-content-services' {
|
|
161
173
|
export {
|
|
162
174
|
addItemToPlaylist,
|
|
175
|
+
applyCloudflareWrapper,
|
|
176
|
+
applySanityTransformations,
|
|
163
177
|
assignmentStatusCompleted,
|
|
164
178
|
assignmentStatusReset,
|
|
179
|
+
buildImageSRC,
|
|
165
180
|
clearLastUpdatedTime,
|
|
166
181
|
clearPermissionsData,
|
|
167
182
|
contentStatusCompleted,
|
|
@@ -172,6 +187,7 @@ declare module 'musora-content-services' {
|
|
|
172
187
|
deletePlaylistItem,
|
|
173
188
|
deletePlaylistLike,
|
|
174
189
|
duplicatePlaylist,
|
|
190
|
+
extractSanityUrl,
|
|
175
191
|
fetchAll,
|
|
176
192
|
fetchAllCompletedStates,
|
|
177
193
|
fetchAllFilterOptions,
|
|
@@ -253,6 +269,7 @@ declare module 'musora-content-services' {
|
|
|
253
269
|
getSortOrder,
|
|
254
270
|
globalConfig,
|
|
255
271
|
initializeService,
|
|
272
|
+
isBucketUrl,
|
|
256
273
|
isContentLiked,
|
|
257
274
|
jumpToContinueContent,
|
|
258
275
|
likeContent,
|
|
@@ -287,6 +304,7 @@ declare module 'musora-content-services' {
|
|
|
287
304
|
updatePermissionsData,
|
|
288
305
|
updatePlaylist,
|
|
289
306
|
updatePlaylistItem,
|
|
307
|
+
verifyImageSRC,
|
|
290
308
|
verifyLocalDataContext,
|
|
291
309
|
wasLastUpdateOlderThanXSeconds,
|
|
292
310
|
}
|
package/src/index.js
CHANGED
|
@@ -32,6 +32,18 @@ import {
|
|
|
32
32
|
verifyLocalDataContext
|
|
33
33
|
} from './services/dataContext.js';
|
|
34
34
|
|
|
35
|
+
import {
|
|
36
|
+
applyCloudflareWrapper,
|
|
37
|
+
applySanityTransformations,
|
|
38
|
+
buildImageSRC
|
|
39
|
+
} from './services/imageSRCBuilder.js';
|
|
40
|
+
|
|
41
|
+
import {
|
|
42
|
+
extractSanityUrl,
|
|
43
|
+
isBucketUrl,
|
|
44
|
+
verifyImageSRC
|
|
45
|
+
} from './services/imageSRCVerify.js';
|
|
46
|
+
|
|
35
47
|
import {
|
|
36
48
|
clearLastUpdatedTime,
|
|
37
49
|
setLastUpdatedTime,
|
|
@@ -159,8 +171,11 @@ import {
|
|
|
159
171
|
|
|
160
172
|
export {
|
|
161
173
|
addItemToPlaylist,
|
|
174
|
+
applyCloudflareWrapper,
|
|
175
|
+
applySanityTransformations,
|
|
162
176
|
assignmentStatusCompleted,
|
|
163
177
|
assignmentStatusReset,
|
|
178
|
+
buildImageSRC,
|
|
164
179
|
clearLastUpdatedTime,
|
|
165
180
|
clearPermissionsData,
|
|
166
181
|
contentStatusCompleted,
|
|
@@ -171,6 +186,7 @@ export {
|
|
|
171
186
|
deletePlaylistItem,
|
|
172
187
|
deletePlaylistLike,
|
|
173
188
|
duplicatePlaylist,
|
|
189
|
+
extractSanityUrl,
|
|
174
190
|
fetchAll,
|
|
175
191
|
fetchAllCompletedStates,
|
|
176
192
|
fetchAllFilterOptions,
|
|
@@ -252,6 +268,7 @@ export {
|
|
|
252
268
|
getSortOrder,
|
|
253
269
|
globalConfig,
|
|
254
270
|
initializeService,
|
|
271
|
+
isBucketUrl,
|
|
255
272
|
isContentLiked,
|
|
256
273
|
jumpToContinueContent,
|
|
257
274
|
likeContent,
|
|
@@ -286,6 +303,7 @@ export {
|
|
|
286
303
|
updatePermissionsData,
|
|
287
304
|
updatePlaylist,
|
|
288
305
|
updatePlaylistItem,
|
|
306
|
+
verifyImageSRC,
|
|
289
307
|
verifyLocalDataContext,
|
|
290
308
|
wasLastUpdateOlderThanXSeconds,
|
|
291
309
|
};
|
|
File without changes
|
|
File without changes
|
package/src/services/sanity.js
CHANGED
|
@@ -1852,13 +1852,16 @@ function populateHierarchyLookups(currentLevel, data, parentId) {
|
|
|
1852
1852
|
* @returns {Promise<Object|null>} - A promise that resolves to an object containing the data
|
|
1853
1853
|
*/
|
|
1854
1854
|
export async function fetchCommentModContentData(ids) {
|
|
1855
|
+
if (!ids) {
|
|
1856
|
+
return []
|
|
1857
|
+
}
|
|
1855
1858
|
const idsString = ids.join(',')
|
|
1856
1859
|
const fields = `"id": railcontent_id, "type": _type, title, "url": web_url_path, "parent": *[^._id in child[]._ref]{"id": railcontent_id, title}`
|
|
1857
1860
|
const query = await buildQuery(
|
|
1858
1861
|
`railcontent_id in [${idsString}]`,
|
|
1859
1862
|
{ bypassPermissions: true },
|
|
1860
1863
|
fields,
|
|
1861
|
-
{ end:
|
|
1864
|
+
{ end: ids.length }
|
|
1862
1865
|
)
|
|
1863
1866
|
let data = await fetchSanity(query, true)
|
|
1864
1867
|
let mapped = {}
|
|
File without changes
|
|
File without changes
|
package/test/localStorageMock.js
CHANGED
|
File without changes
|
package/test/log.js
CHANGED
|
File without changes
|