@proulr/sdui-components 0.1.22 → 0.1.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proulr/sdui-components",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "main": "./src/renderer/index.ts",
6
6
  "types": "./src/renderer/index.ts",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@proulr/sdui-contract": "^0.1.0"
34
+ "@proulr/sdui-contract": "^0.1.2"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "expo-blur": ">=15",
@@ -25,6 +25,7 @@ export const ProfileView: BdcComponent = (props) => nativeBlock('profile_view',
25
25
  export const ProfileSelf: BdcComponent = (props) => nativeBlock('profile_self', props);
26
26
  export const ProfileSetup: BdcComponent = (props) => nativeBlock('profile_setup', props);
27
27
  export const ProfileOnboarding: BdcComponent = (props) => nativeBlock('profile_onboarding', props);
28
+ export const ProfileReport: BdcComponent = (props) => nativeBlock('profile_report', props);
28
29
  export const AlbumGrid: BdcComponent = (props) => nativeBlock('album_grid', props);
29
30
  export const AlbumDetail: BdcComponent = (props) => nativeBlock('album_detail', props);
30
31
  export const NewPostComposer: BdcComponent = (props) => nativeBlock('new_post_composer', props);
package/src/bdc/index.ts CHANGED
@@ -37,6 +37,7 @@ export {
37
37
  NewStoryComposer,
38
38
  PostComments,
39
39
  ProfileOnboarding,
40
+ ProfileReport,
40
41
  ProfileSelf,
41
42
  ProfileSetup,
42
43
  ProfileView,
@@ -25,6 +25,7 @@ function NativeBlockShell({
25
25
  | 'renderProfileSelf'
26
26
  | 'renderProfileSetup'
27
27
  | 'renderProfileOnboarding'
28
+ | 'renderProfileReport'
28
29
  | 'renderAlbumGrid'
29
30
  | 'renderAlbumDetail'
30
31
  | 'renderNewPostComposer'
@@ -97,6 +98,10 @@ export function SduiProfileOnboardingBlock(props: SduiBlockRenderProps) {
97
98
  return <NativeBlockShell {...props} rendererKey="renderProfileOnboarding" fallbackLabel="Onboarding" />;
98
99
  }
99
100
 
101
+ export function SduiProfileReportBlock(props: SduiBlockRenderProps) {
102
+ return <NativeBlockShell {...props} rendererKey="renderProfileReport" fallbackLabel="Denunciar" />;
103
+ }
104
+
100
105
  export function SduiAlbumGridBlock(props: SduiBlockRenderProps) {
101
106
  return <NativeBlockShell {...props} rendererKey="renderAlbumGrid" fallbackLabel="Álbuns" />;
102
107
  }
@@ -50,6 +50,7 @@ import {
50
50
  SduiProfileOnboardingBlock,
51
51
  SduiProfileSelfBlock,
52
52
  SduiProfileSetupBlock,
53
+ SduiProfileReportBlock,
53
54
  SduiProfileViewBlock,
54
55
  SduiSocialPostFeedBlock,
55
56
  SduiSocialProfileBlock,
@@ -103,6 +104,7 @@ const REGISTRY: Record<string, SduiBlockComponent> = {
103
104
  profile_self: SduiProfileSelfBlock,
104
105
  profile_setup: SduiProfileSetupBlock,
105
106
  profile_onboarding: SduiProfileOnboardingBlock,
107
+ profile_report: SduiProfileReportBlock,
106
108
  album_grid: SduiAlbumGridBlock,
107
109
  album_detail: SduiAlbumDetailBlock,
108
110
  new_post_composer: SduiNewPostComposerBlock,
@@ -61,6 +61,7 @@ export type SduiHybridRenderers = {
61
61
  renderProfileSelf?: (props: SduiNativeBlockRenderProps) => ReactNode;
62
62
  renderProfileSetup?: (props: SduiNativeBlockRenderProps) => ReactNode;
63
63
  renderProfileOnboarding?: (props: SduiNativeBlockRenderProps) => ReactNode;
64
+ renderProfileReport?: (props: SduiNativeBlockRenderProps) => ReactNode;
64
65
  renderAlbumGrid?: (props: SduiNativeBlockRenderProps) => ReactNode;
65
66
  renderAlbumDetail?: (props: SduiNativeBlockRenderProps) => ReactNode;
66
67
  renderNewPostComposer?: (props: SduiNativeBlockRenderProps) => ReactNode;