@draftbit/core 49.6.1-d928a6.2 → 49.6.2-7bd1a1.2

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 (62) hide show
  1. package/lib/commonjs/components/ActivityIndicator.js +1 -0
  2. package/lib/commonjs/components/KeyboardAvoidingView.js +1 -1
  3. package/lib/commonjs/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
  4. package/lib/commonjs/components/MediaPlayer/MediaPlayerCommon.js +1 -1
  5. package/lib/commonjs/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  6. package/lib/commonjs/components/Surface.js +1 -1
  7. package/lib/commonjs/index.js +1 -1
  8. package/lib/typescript/src/components/ActivityIndicator.d.ts +27 -0
  9. package/lib/typescript/src/components/ActivityIndicator.js +74 -0
  10. package/lib/typescript/src/components/ActivityIndicator.js.map +1 -0
  11. package/lib/typescript/src/components/KeyboardAvoidingView.d.ts +1 -1
  12. package/lib/typescript/src/components/KeyboardAvoidingView.js +1 -1
  13. package/lib/typescript/src/components/KeyboardAvoidingView.js.map +1 -1
  14. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
  15. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
  16. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.d.ts +1 -1
  17. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js +12 -7
  18. package/lib/typescript/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
  19. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  20. package/lib/typescript/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
  21. package/lib/typescript/src/components/Surface.js +32 -1
  22. package/lib/typescript/src/components/Surface.js.map +1 -1
  23. package/lib/typescript/src/index.d.ts +1 -1
  24. package/lib/typescript/src/index.js +1 -1
  25. package/lib/typescript/src/index.js.map +1 -1
  26. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +4 -3
  28. package/src/components/ActivityIndicator.js +74 -0
  29. package/src/components/ActivityIndicator.js.map +1 -0
  30. package/src/components/ActivityIndicator.tsx +140 -0
  31. package/src/components/KeyboardAvoidingView.js +1 -1
  32. package/src/components/KeyboardAvoidingView.js.map +1 -1
  33. package/src/components/KeyboardAvoidingView.tsx +2 -2
  34. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +1 -1
  35. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +1 -1
  36. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.tsx +1 -1
  37. package/src/components/MediaPlayer/MediaPlayerCommon.js +12 -7
  38. package/src/components/MediaPlayer/MediaPlayerCommon.js.map +1 -1
  39. package/src/components/MediaPlayer/MediaPlayerCommon.ts +23 -9
  40. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +1 -1
  41. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +1 -1
  42. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.tsx +1 -1
  43. package/src/components/Surface.js +32 -1
  44. package/src/components/Surface.js.map +1 -1
  45. package/src/components/Surface.tsx +36 -1
  46. package/src/index.js +1 -1
  47. package/src/index.js.map +1 -1
  48. package/src/index.tsx +1 -1
  49. package/lib/commonjs/components/Toast/Toast.js +0 -1
  50. package/lib/commonjs/components/Toast/index.js +0 -1
  51. package/lib/typescript/src/components/Toast/Toast.d.ts +0 -11
  52. package/lib/typescript/src/components/Toast/Toast.js +0 -23
  53. package/lib/typescript/src/components/Toast/Toast.js.map +0 -1
  54. package/lib/typescript/src/components/Toast/index.d.ts +0 -1
  55. package/lib/typescript/src/components/Toast/index.js +0 -2
  56. package/lib/typescript/src/components/Toast/index.js.map +0 -1
  57. package/src/components/Toast/Toast.js +0 -23
  58. package/src/components/Toast/Toast.js.map +0 -1
  59. package/src/components/Toast/Toast.tsx +0 -45
  60. package/src/components/Toast/index.js +0 -2
  61. package/src/components/Toast/index.js.map +0 -1
  62. package/src/components/Toast/index.tsx +0 -1
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { View, Text } from "react-native";
3
- import { extractStyles } from "../../utilities";
4
- import { withTheme } from "@draftbit/theme";
5
- const Toast = ({ visible = false, title, style, theme, }) => {
6
- if (!visible)
7
- return null;
8
- const { textStyles, viewStyles } = extractStyles(style);
9
- return (React.createElement(View, { style: [
10
- {
11
- backgroundColor: "rgba(0,0,0,0.7)",
12
- },
13
- viewStyles,
14
- ] },
15
- React.createElement(Text, { style: [
16
- {
17
- color: theme.colors.text.strong,
18
- },
19
- textStyles,
20
- ] }, title)));
21
- };
22
- export default withTheme(Toast);
23
- //# sourceMappingURL=Toast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASvD,MAAM,KAAK,GAA6C,CAAC,EACvD,OAAO,GAAG,KAAK,EACf,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,iBAAiB;aACnC;YACD,UAAU;SACX;QAED,oBAAC,IAAI,IACH,KAAK,EAAE;gBACL;oBACE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM;iBAChC;gBACD,UAAU;aACX,IAEA,KAAK,CACD,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export { default as Toast } from "./Toast";
@@ -1,2 +0,0 @@
1
- export { default as Toast } from "./Toast";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Toast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- import { View, Text } from "react-native";
3
- import { extractStyles } from "../../utilities";
4
- import { withTheme } from "@draftbit/theme";
5
- const Toast = ({ visible = false, title, style, theme, }) => {
6
- if (!visible)
7
- return null;
8
- const { textStyles, viewStyles } = extractStyles(style);
9
- return (React.createElement(View, { style: [
10
- {
11
- backgroundColor: "rgba(0,0,0,0.7)",
12
- },
13
- viewStyles,
14
- ] },
15
- React.createElement(Text, { style: [
16
- {
17
- color: theme.colors.text.strong,
18
- },
19
- textStyles,
20
- ] }, title)));
21
- };
22
- export default withTheme(Toast);
23
- //# sourceMappingURL=Toast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASvD,MAAM,KAAK,GAA6C,CAAC,EACvD,OAAO,GAAG,KAAK,EACf,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,eAAe,EAAE,iBAAiB;aACnC;YACD,UAAU;SACX;QAED,oBAAC,IAAI,IACH,KAAK,EAAE;gBACL;oBACE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM;iBAChC;gBACD,UAAU;aACX,IAEA,KAAK,CACD,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"}
@@ -1,45 +0,0 @@
1
- import React from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- import { View, Text } from "react-native";
4
- import { extractStyles } from "../../utilities";
5
- import { ReadTheme, withTheme } from "@draftbit/theme";
6
-
7
- type Props = {
8
- visible: boolean;
9
- title: string;
10
- style?: StyleProp<ViewStyle>;
11
- theme: ReadTheme;
12
- };
13
-
14
- const Toast: React.FC<React.PropsWithChildren<Props>> = ({
15
- visible = false,
16
- title,
17
- style,
18
- theme,
19
- }) => {
20
- if (!visible) return null;
21
- const { textStyles, viewStyles } = extractStyles(style);
22
- return (
23
- <View
24
- style={[
25
- {
26
- backgroundColor: "rgba(0,0,0,0.7)",
27
- },
28
- viewStyles,
29
- ]}
30
- >
31
- <Text
32
- style={[
33
- {
34
- color: theme.colors.text.strong,
35
- },
36
- textStyles,
37
- ]}
38
- >
39
- {title}
40
- </Text>
41
- </View>
42
- );
43
- };
44
-
45
- export default withTheme(Toast);
@@ -1,2 +0,0 @@
1
- export { default as Toast } from "./Toast";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- export { default as Toast } from "./Toast";