@syra.fm/sdk 0.14.0 → 0.14.1
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/commonjs/live/components/CreateRoomSheet.js +73 -15
- package/lib/commonjs/live/components/CreateRoomSheet.js.map +1 -1
- package/lib/commonjs/live/components/InsightsPanel.js +1 -1
- package/lib/commonjs/live/components/LiveRoomSheet.js +1 -1
- package/lib/commonjs/live/components/MiniRoomBar.js +1 -1
- package/lib/commonjs/live/components/PanelHeader.js +1 -1
- package/lib/commonjs/live/components/PanelHeader.js.map +1 -1
- package/lib/commonjs/live/components/PodcastStreamPicker.js +1 -1
- package/lib/commonjs/live/components/RecordingCard.js +1 -1
- package/lib/commonjs/live/components/RecordingsPanel.js +1 -1
- package/lib/commonjs/live/components/RoomCard.js +1 -1
- package/lib/commonjs/live/components/StreamConfigModal.js +1 -1
- package/lib/commonjs/live/components/StreamConfigPanel.js +1 -1
- package/lib/commonjs/live/icons/MaterialCommunityIcons.js +43 -0
- package/lib/commonjs/live/icons/MaterialCommunityIcons.js.map +1 -0
- package/lib/module/live/components/CreateRoomSheet.js +74 -15
- package/lib/module/live/components/CreateRoomSheet.js.map +1 -1
- package/lib/module/live/components/InsightsPanel.js +1 -1
- package/lib/module/live/components/InsightsPanel.js.map +1 -1
- package/lib/module/live/components/LiveRoomSheet.js +1 -1
- package/lib/module/live/components/LiveRoomSheet.js.map +1 -1
- package/lib/module/live/components/MiniRoomBar.js +1 -1
- package/lib/module/live/components/MiniRoomBar.js.map +1 -1
- package/lib/module/live/components/PanelHeader.js +1 -1
- package/lib/module/live/components/PanelHeader.js.map +1 -1
- package/lib/module/live/components/PodcastStreamPicker.js +1 -1
- package/lib/module/live/components/PodcastStreamPicker.js.map +1 -1
- package/lib/module/live/components/RecordingCard.js +1 -1
- package/lib/module/live/components/RecordingCard.js.map +1 -1
- package/lib/module/live/components/RecordingsPanel.js +1 -1
- package/lib/module/live/components/RecordingsPanel.js.map +1 -1
- package/lib/module/live/components/RoomCard.js +1 -1
- package/lib/module/live/components/RoomCard.js.map +1 -1
- package/lib/module/live/components/StreamConfigModal.js +1 -1
- package/lib/module/live/components/StreamConfigModal.js.map +1 -1
- package/lib/module/live/components/StreamConfigPanel.js +1 -1
- package/lib/module/live/components/StreamConfigPanel.js.map +1 -1
- package/lib/module/live/icons/MaterialCommunityIcons.js +36 -0
- package/lib/module/live/icons/MaterialCommunityIcons.js.map +1 -0
- package/lib/typescript/commonjs/live/components/CreateRoomSheet.d.ts +10 -0
- package/lib/typescript/commonjs/live/components/CreateRoomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/live/icons/MaterialCommunityIcons.d.ts +26 -0
- package/lib/typescript/commonjs/live/icons/MaterialCommunityIcons.d.ts.map +1 -0
- package/lib/typescript/commonjs/live/validation.d.ts +4 -4
- package/lib/typescript/commonjs/live/validation.d.ts.map +1 -1
- package/lib/typescript/module/live/components/CreateRoomSheet.d.ts +10 -0
- package/lib/typescript/module/live/components/CreateRoomSheet.d.ts.map +1 -1
- package/lib/typescript/module/live/icons/MaterialCommunityIcons.d.ts +26 -0
- package/lib/typescript/module/live/icons/MaterialCommunityIcons.d.ts.map +1 -0
- package/lib/typescript/module/live/validation.d.ts +4 -4
- package/lib/typescript/module/live/validation.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/live/components/CreateRoomSheet.tsx +68 -15
- package/src/live/components/InsightsPanel.tsx +1 -1
- package/src/live/components/LiveRoomSheet.tsx +1 -1
- package/src/live/components/MiniRoomBar.tsx +1 -1
- package/src/live/components/PanelHeader.tsx +1 -1
- package/src/live/components/PodcastStreamPicker.tsx +1 -1
- package/src/live/components/RecordingCard.tsx +1 -1
- package/src/live/components/RecordingsPanel.tsx +1 -1
- package/src/live/components/RoomCard.tsx +1 -1
- package/src/live/components/StreamConfigModal.tsx +1 -1
- package/src/live/components/StreamConfigPanel.tsx +1 -1
- package/src/live/icons/MaterialCommunityIcons.tsx +33 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
|
-
import MaterialCommunityIcons from '
|
|
3
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
4
4
|
|
|
5
5
|
import type { LiveTheme } from '../types';
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Linking,
|
|
11
11
|
} from 'react-native';
|
|
12
12
|
import type { ViewStyle } from 'react-native';
|
|
13
|
-
import MaterialCommunityIcons from '
|
|
13
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
14
14
|
|
|
15
15
|
import { useLiveConfig, type PinnedPodcast } from '../context/LiveConfigContext';
|
|
16
16
|
import type { LiveTheme } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Text, StyleSheet, TouchableOpacity, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import MaterialCommunityIcons from '
|
|
3
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
4
4
|
import { useAuth } from '@oxy.so/services';
|
|
5
5
|
|
|
6
6
|
import { useLiveConfig } from '../context/LiveConfigContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, ActivityIndicator } from 'react-native';
|
|
3
|
-
import MaterialCommunityIcons from '
|
|
3
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
4
4
|
|
|
5
5
|
import { PanelHeader } from './PanelHeader';
|
|
6
6
|
import { useLiveConfig } from '../context/LiveConfigContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { View, Text, TouchableOpacity, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import MaterialCommunityIcons from '
|
|
3
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
4
4
|
import { useAuth } from '@oxy.so/services';
|
|
5
5
|
|
|
6
6
|
import { useLiveConfig } from '../context/LiveConfigContext';
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ScrollView,
|
|
13
13
|
KeyboardAvoidingView,
|
|
14
14
|
} from 'react-native';
|
|
15
|
-
import MaterialCommunityIcons from '
|
|
15
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
16
16
|
import { useAuth } from '@oxy.so/services';
|
|
17
17
|
import * as ImagePicker from 'expo-image-picker';
|
|
18
18
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Platform,
|
|
11
11
|
ScrollView,
|
|
12
12
|
} from 'react-native';
|
|
13
|
-
import MaterialCommunityIcons from '
|
|
13
|
+
import MaterialCommunityIcons from '../icons/MaterialCommunityIcons';
|
|
14
14
|
import * as ImagePicker from 'expo-image-picker';
|
|
15
15
|
|
|
16
16
|
import { useLiveConfig } from '../context/LiveConfigContext';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
|
+
// The SUBPATH, never the `@expo/vector-icons` barrel: the barrel re-exports every
|
|
3
|
+
// icon family, so one glyph through it drags every family's font into a web
|
|
4
|
+
// bundle.
|
|
5
|
+
import BaseMaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons';
|
|
6
|
+
|
|
7
|
+
export type MaterialCommunityIconsProps = ComponentProps<typeof BaseMaterialCommunityIcons>;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The live-rooms UI's one entry to the MaterialCommunityIcons glyph font. SDK
|
|
11
|
+
* components import this, never `@expo/vector-icons/MaterialCommunityIcons`
|
|
12
|
+
* directly — `src/live/icons/glyphImports.test.ts` fails the suite if one does.
|
|
13
|
+
*
|
|
14
|
+
* A vector-icons glyph is a `Text` node whose content is a private-use code
|
|
15
|
+
* point. A screen reader reads it like any other text, so the Create Room sheet
|
|
16
|
+
* announced its options as "\U000f036c, Talk, Open conversation" and its button
|
|
17
|
+
* as "\U000f040a, Start Now": on Android RN builds an unlabelled pressable's
|
|
18
|
+
* description from its children's text, code point included.
|
|
19
|
+
*
|
|
20
|
+
* Every glyph in the SDK is decorative — the control around it carries the
|
|
21
|
+
* words, or an `accessibilityLabel` — so the glyph is hidden from assistive
|
|
22
|
+
* technology here, once, rather than at each call site where the next icon
|
|
23
|
+
* would forget it. `aria-hidden` is `importantForAccessibility=
|
|
24
|
+
* "no-hide-descendants"` on Android, `accessibilityElementsHidden` on iOS and
|
|
25
|
+
* `aria-hidden` on web. It is applied AFTER the caller's props so a call site
|
|
26
|
+
* cannot switch it back on: a glyph that needs a name belongs inside a control
|
|
27
|
+
* that has one.
|
|
28
|
+
*/
|
|
29
|
+
export function MaterialCommunityIcons(props: MaterialCommunityIconsProps) {
|
|
30
|
+
return <BaseMaterialCommunityIcons {...props} aria-hidden />;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default MaterialCommunityIcons;
|