@tellescope/react-components 1.237.2 → 1.237.4
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/lib/cjs/state.d.ts +0 -4
- package/lib/cjs/state.d.ts.map +1 -1
- package/lib/cjs/state.js +2 -26
- package/lib/cjs/state.js.map +1 -1
- package/lib/esm/state.d.ts +0 -4
- package/lib/esm/state.d.ts.map +1 -1
- package/lib/esm/state.js +0 -23
- package/lib/esm/state.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/state.tsx +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/react-components",
|
|
3
|
-
"version": "1.237.
|
|
3
|
+
"version": "1.237.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@reduxjs/toolkit": "1.9.0",
|
|
48
48
|
"@stripe/react-stripe-js": "2.9.0",
|
|
49
49
|
"@stripe/stripe-js": "1.52.1",
|
|
50
|
-
"@tellescope/constants": "1.237.
|
|
51
|
-
"@tellescope/sdk": "1.237.
|
|
52
|
-
"@tellescope/types-client": "1.237.
|
|
53
|
-
"@tellescope/types-models": "1.237.
|
|
54
|
-
"@tellescope/types-utilities": "1.237.
|
|
55
|
-
"@tellescope/utilities": "1.237.
|
|
56
|
-
"@tellescope/validation": "1.237.
|
|
50
|
+
"@tellescope/constants": "1.237.4",
|
|
51
|
+
"@tellescope/sdk": "1.237.4",
|
|
52
|
+
"@tellescope/types-client": "1.237.4",
|
|
53
|
+
"@tellescope/types-models": "1.237.4",
|
|
54
|
+
"@tellescope/types-utilities": "1.237.4",
|
|
55
|
+
"@tellescope/utilities": "1.237.4",
|
|
56
|
+
"@tellescope/validation": "1.237.4",
|
|
57
57
|
"@typescript-eslint/eslint-plugin": "4.33.0",
|
|
58
58
|
"@typescript-eslint/parser": "4.33.0",
|
|
59
59
|
"css-to-react-native": "3.0.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
84
84
|
"react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "40be819672ddf26f8c374bcfd5a6c448604b2469",
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
}
|
package/src/state.tsx
CHANGED
|
@@ -2328,36 +2328,6 @@ export const useManagedContentRecordAssignments = (options={} as HookOptions<Man
|
|
|
2328
2328
|
{...options}
|
|
2329
2329
|
)
|
|
2330
2330
|
}
|
|
2331
|
-
export const useAssignedManagedContentRecords = () => {
|
|
2332
|
-
const session = useEnduserSession()
|
|
2333
|
-
|
|
2334
|
-
const [, { filtered }] = useManagedContentRecords()
|
|
2335
|
-
const [eventsLoading] = useCalendarEvents()
|
|
2336
|
-
|
|
2337
|
-
const [assignmentsLoading] = useManagedContentRecordAssignments()
|
|
2338
|
-
|
|
2339
|
-
if (!value_is_loaded(assignmentsLoading)) return {
|
|
2340
|
-
status: assignmentsLoading.status,
|
|
2341
|
-
value: undefined
|
|
2342
|
-
} as LoadedData<ManagedContentRecord[]>
|
|
2343
|
-
|
|
2344
|
-
const recordsLoading = filtered(r =>
|
|
2345
|
-
r.assignmentType === 'All'
|
|
2346
|
-
|| r.enduserId === session.userInfo.id
|
|
2347
|
-
|| !!assignmentsLoading.value.find(e => e.contentId === r.id)
|
|
2348
|
-
|| (
|
|
2349
|
-
r.assignmentType === 'By Tags'
|
|
2350
|
-
&& r.tags?.length
|
|
2351
|
-
&& !!r.tags.find(t => session.userInfo.tags?.includes(t))
|
|
2352
|
-
)
|
|
2353
|
-
|| (
|
|
2354
|
-
value_is_loaded(eventsLoading)
|
|
2355
|
-
&& !!eventsLoading.value.find(e => e.sharedContentIds?.includes(r.id))
|
|
2356
|
-
)
|
|
2357
|
-
)
|
|
2358
|
-
|
|
2359
|
-
return recordsLoading
|
|
2360
|
-
}
|
|
2361
2331
|
|
|
2362
2332
|
export const useForums = (options={} as HookOptions<Forum>) => {
|
|
2363
2333
|
const session = useResolvedSession()
|