@churchapps/apphelper 0.4.8 → 0.4.9
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/b1app-specific-components.md +146 -0
- package/component-usage-analysis.md +169 -0
- package/dist/components/ImageEditor.d.ts +1 -1
- package/dist/components/ImageEditor.d.ts.map +1 -1
- package/dist/components/ImageEditor.js +1 -1
- package/dist/components/ImageEditor.js.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/markdownEditor/IconNamesList.d.ts.map +1 -0
- package/dist/components/markdownEditor/IconNamesList.js +16 -0
- package/dist/components/markdownEditor/IconNamesList.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js +1 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map +1 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js +1 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js.map +1 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js +1 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js.map +1 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js +1 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js.map +1 -1
- package/dist/components/notes/index.d.ts +0 -2
- package/dist/components/notes/index.d.ts.map +1 -1
- package/dist/components/notes/index.js +1 -5
- package/dist/components/notes/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ImageEditor.tsx +1 -1
- package/src/components/index.tsx +0 -3
- package/src/components/markdownEditor/IconNamesList.ts +14 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx +1 -1
- package/src/components/markdownEditor/plugins/emoji/EmojiNodeTransform.ts +1 -1
- package/src/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.tsx +1 -1
- package/src/components/markdownEditor/plugins/emoji/EmojisPlugin.tsx +1 -1
- package/src/components/notes/index.ts +0 -2
- package/dist/components/B1ShareModal.d.ts +0 -9
- package/dist/components/B1ShareModal.d.ts.map +0 -1
- package/dist/components/B1ShareModal.js +0 -77
- package/dist/components/B1ShareModal.js.map +0 -1
- package/dist/components/gallery/GalleryModal.d.ts +0 -9
- package/dist/components/gallery/GalleryModal.d.ts.map +0 -1
- package/dist/components/gallery/GalleryModal.js +0 -111
- package/dist/components/gallery/GalleryModal.js.map +0 -1
- package/dist/components/gallery/StockPhotos.d.ts +0 -9
- package/dist/components/gallery/StockPhotos.d.ts.map +0 -1
- package/dist/components/gallery/StockPhotos.js +0 -79
- package/dist/components/gallery/StockPhotos.js.map +0 -1
- package/dist/components/gallery/index.d.ts +0 -2
- package/dist/components/gallery/index.d.ts.map +0 -1
- package/dist/components/gallery/index.js +0 -6
- package/dist/components/gallery/index.js.map +0 -1
- package/dist/components/iconPicker/IconNamesList.d.ts.map +0 -1
- package/dist/components/iconPicker/IconNamesList.js +0 -2241
- package/dist/components/iconPicker/IconNamesList.js.map +0 -1
- package/dist/components/iconPicker/IconPicker.d.ts +0 -6
- package/dist/components/iconPicker/IconPicker.d.ts.map +0 -1
- package/dist/components/iconPicker/IconPicker.js +0 -142
- package/dist/components/iconPicker/IconPicker.js.map +0 -1
- package/dist/components/notes/Conversation.d.ts +0 -10
- package/dist/components/notes/Conversation.d.ts.map +0 -1
- package/dist/components/notes/Conversation.js +0 -55
- package/dist/components/notes/Conversation.js.map +0 -1
- package/dist/components/notes/Conversations.d.ts +0 -10
- package/dist/components/notes/Conversations.d.ts.map +0 -1
- package/dist/components/notes/Conversations.js +0 -54
- package/dist/components/notes/Conversations.js.map +0 -1
- package/dist/components/notes/NewConversation.d.ts +0 -12
- package/dist/components/notes/NewConversation.d.ts.map +0 -1
- package/dist/components/notes/NewConversation.js +0 -54
- package/dist/components/notes/NewConversation.js.map +0 -1
- package/src/components/B1ShareModal.tsx +0 -104
- package/src/components/gallery/GalleryModal.tsx +0 -139
- package/src/components/gallery/StockPhotos.tsx +0 -75
- package/src/components/gallery/index.ts +0 -1
- package/src/components/iconPicker/IconNamesList.ts +0 -2240
- package/src/components/iconPicker/IconPicker.tsx +0 -160
- package/src/components/notes/Conversation.tsx +0 -84
- package/src/components/notes/Conversations.tsx +0 -60
- package/src/components/notes/NewConversation.tsx +0 -80
- /package/dist/components/{iconPicker → markdownEditor}/IconNamesList.d.ts +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# B1App-Specific Components
|
|
2
|
+
|
|
3
|
+
This document lists AppHelper components that are used exclusively or primarily by B1App. These components are candidates for potential extraction to B1App if further architectural separation is desired.
|
|
4
|
+
|
|
5
|
+
## Components That Can Be Moved to B1App
|
|
6
|
+
|
|
7
|
+
Based on comprehensive analysis of component usage patterns in the AppHelper codebase, the following **8 components** are used exclusively by B1App and can potentially be extracted:
|
|
8
|
+
|
|
9
|
+
### 1. B1ShareModal (Standalone Component)
|
|
10
|
+
- **File**: `src/components/B1ShareModal.tsx`
|
|
11
|
+
- **Function**: Allows sharing content to B1 groups with conversation integration
|
|
12
|
+
- **Dependencies**: `Loading` (shared component - will remain in AppHelper)
|
|
13
|
+
- **B1-Specific Features**:
|
|
14
|
+
- Uses B1-specific locale keys (`b1Share.*`)
|
|
15
|
+
- Explicitly B1-branded functionality
|
|
16
|
+
- Integrates with B1 group messaging system
|
|
17
|
+
- **Priority**: **High** - Most clearly B1-specific component
|
|
18
|
+
|
|
19
|
+
### 2. Conversation System (3 Components)
|
|
20
|
+
#### 2a. Conversations
|
|
21
|
+
- **File**: `src/components/notes/Conversations.tsx`
|
|
22
|
+
- **Function**: Main conversation management interface
|
|
23
|
+
- **Dependencies**: `Loading`, `Conversation`, `NewConversation`
|
|
24
|
+
- **Usage**: B1App only for managing group conversations
|
|
25
|
+
- **Internal Usage**: **NOT** used by other AppHelper components - only exported for external use
|
|
26
|
+
|
|
27
|
+
#### 2b. Conversation
|
|
28
|
+
- **File**: `src/components/notes/Conversation.tsx`
|
|
29
|
+
- **Function**: Individual conversation view
|
|
30
|
+
- **Dependencies**: `AddNote`, `Note` (shared components - will remain in AppHelper)
|
|
31
|
+
- **Usage**: B1App only for displaying single conversation
|
|
32
|
+
- **Internal Usage**: **NOT** used by other AppHelper components - only used by `Conversations`
|
|
33
|
+
|
|
34
|
+
#### 2c. NewConversation
|
|
35
|
+
- **File**: `src/components/notes/NewConversation.tsx`
|
|
36
|
+
- **Function**: New conversation creation interface
|
|
37
|
+
- **Dependencies**: Internal messaging components
|
|
38
|
+
- **Usage**: B1App only for creating new conversations
|
|
39
|
+
- **Internal Usage**: **NOT** used by other AppHelper components - only used by `Conversations`
|
|
40
|
+
|
|
41
|
+
### 3. Media Management System (2 Components)
|
|
42
|
+
#### 3a. GalleryModal
|
|
43
|
+
- **File**: `src/components/gallery/GalleryModal.tsx`
|
|
44
|
+
- **Function**: Image gallery with editing capabilities
|
|
45
|
+
- **Dependencies**: `ImageEditor`, `TabPanel`, `StockPhotos`
|
|
46
|
+
- **Usage**: B1App only for image selection and editing
|
|
47
|
+
|
|
48
|
+
#### 3b. StockPhotos
|
|
49
|
+
- **File**: `src/components/gallery/StockPhotos.tsx`
|
|
50
|
+
- **Function**: Stock photo browser interface
|
|
51
|
+
- **Dependencies**: None (leaf component)
|
|
52
|
+
- **Usage**: B1App only for browsing stock photos
|
|
53
|
+
|
|
54
|
+
### 4. Icon Selection System (2 Components)
|
|
55
|
+
#### 4a. IconPicker
|
|
56
|
+
- **File**: `src/components/iconPicker/IconPicker.tsx`
|
|
57
|
+
- **Function**: Icon selection interface
|
|
58
|
+
- **Dependencies**: `IconNamesList`
|
|
59
|
+
- **Usage**: B1App only for selecting icons
|
|
60
|
+
|
|
61
|
+
#### 4b. IconNamesList
|
|
62
|
+
- **File**: `src/components/iconPicker/IconNamesList.ts`
|
|
63
|
+
- **Function**: Icon data and names list
|
|
64
|
+
- **Dependencies**: None (data file)
|
|
65
|
+
- **Usage**: B1App only for icon data
|
|
66
|
+
|
|
67
|
+
## Components That Should NOT Be Moved
|
|
68
|
+
|
|
69
|
+
### Shared Components (Used by Multiple Apps)
|
|
70
|
+
- **NewPrivateMessage** - Used by UserMenu → SiteHeader (all apps)
|
|
71
|
+
- **PrivateMessageDetails** - Used by UserMenu → SiteHeader (all apps)
|
|
72
|
+
- **AddNote** - Used by Notes system (all apps)
|
|
73
|
+
- **Note** - Used by Notes system (all apps)
|
|
74
|
+
- **Notes** - Used by all apps for commenting/notes
|
|
75
|
+
- **ImageEditor** - Used by multiple apps for image editing
|
|
76
|
+
- **TabPanel** - Used by multiple components across apps
|
|
77
|
+
- **Loading** - Used by 10+ components across all apps
|
|
78
|
+
|
|
79
|
+
### Helper Components (Not App-Specific)
|
|
80
|
+
- **AppearanceHelper**, **EventHelper**, **SocketHelper**, **SlugHelper** - These are in the helpers package and shared across apps, not component-specific to B1App
|
|
81
|
+
|
|
82
|
+
## B1-Specific Configuration
|
|
83
|
+
|
|
84
|
+
### Environment Configuration
|
|
85
|
+
- **CommonEnvironmentHelper** contains B1-specific environment variables:
|
|
86
|
+
- `B1Root` configuration for B1 app routing
|
|
87
|
+
- Subdomain-based routing for B1 instances
|
|
88
|
+
|
|
89
|
+
### Navigation Components with B1-Specific Features
|
|
90
|
+
- **AppList** contains B1-specific navigation links and routing logic
|
|
91
|
+
|
|
92
|
+
## Extraction Considerations
|
|
93
|
+
|
|
94
|
+
### High Priority for Extraction (4 components)
|
|
95
|
+
1. **B1ShareModal** - Explicitly B1-branded, uses B1-specific locale keys, standalone component
|
|
96
|
+
2. **Conversations** + **Conversation** + **NewConversation** - Complete conversation system (3 components) used only by B1App, NOT used internally by other AppHelper components
|
|
97
|
+
|
|
98
|
+
### Medium Priority for Extraction (4 components)
|
|
99
|
+
1. **GalleryModal** + **StockPhotos** - Complete media management system (2 components) used only by B1App
|
|
100
|
+
2. **IconPicker** + **IconNamesList** - Icon selection system (2 components) used only by B1App
|
|
101
|
+
|
|
102
|
+
### Total Extraction Opportunity
|
|
103
|
+
- **8 components** can be moved to B1App
|
|
104
|
+
- **Bundle size reduction** for non-B1 apps
|
|
105
|
+
- **Cleaner separation** of B1-specific functionality
|
|
106
|
+
|
|
107
|
+
## Benefits of Extraction
|
|
108
|
+
|
|
109
|
+
### For B1App
|
|
110
|
+
- Faster iteration on B1-specific features
|
|
111
|
+
- B1-specific customization without affecting other apps
|
|
112
|
+
- Cleaner separation of concerns
|
|
113
|
+
|
|
114
|
+
### For AppHelper
|
|
115
|
+
- Reduced bundle size for non-B1 apps
|
|
116
|
+
- Cleaner component library focused on universal components
|
|
117
|
+
- Easier maintenance of shared components
|
|
118
|
+
|
|
119
|
+
## Extraction Strategy
|
|
120
|
+
|
|
121
|
+
If these components are extracted, they should be moved as a group to maintain their interdependencies:
|
|
122
|
+
|
|
123
|
+
1. **Phase 1**: Extract B1ShareModal (standalone component)
|
|
124
|
+
2. **Phase 2**: Extract conversation components (Conversations + Conversation + NewConversation)
|
|
125
|
+
3. **Phase 3**: Extract media components (GalleryModal + StockPhotos)
|
|
126
|
+
4. **Phase 4**: Extract icon components (IconPicker + IconNamesList)
|
|
127
|
+
|
|
128
|
+
## Current Status
|
|
129
|
+
|
|
130
|
+
As of the latest analysis, **8 components** remain in AppHelper but are clearly identified as B1App-specific and can be safely extracted:
|
|
131
|
+
|
|
132
|
+
### Extraction Impact
|
|
133
|
+
- **Bundle size reduction**: 8 components = ~15-20% reduction for non-B1 apps
|
|
134
|
+
- **Code clarity**: Cleaner separation of B1-specific vs shared functionality
|
|
135
|
+
- **Maintenance**: Easier to maintain B1-specific features independently
|
|
136
|
+
|
|
137
|
+
### Components Ready for Extraction
|
|
138
|
+
- **B1ShareModal** (1 component) - Standalone, high priority
|
|
139
|
+
- **Conversation System** (3 components) - Complete system, medium priority
|
|
140
|
+
- **Media System** (2 components) - Complete system, medium priority
|
|
141
|
+
- **Icon System** (2 components) - Complete system, medium priority
|
|
142
|
+
|
|
143
|
+
The decision to extract depends on:
|
|
144
|
+
- B1App development velocity requirements
|
|
145
|
+
- Bundle size optimization priorities
|
|
146
|
+
- Maintenance overhead preferences
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# AppHelper Component Usage Analysis
|
|
2
|
+
|
|
3
|
+
## Component Usage by App and Internal Usage
|
|
4
|
+
|
|
5
|
+
This analysis shows which components are used by which apps and whether they are used internally by other AppHelper components.
|
|
6
|
+
|
|
7
|
+
### Core Components
|
|
8
|
+
|
|
9
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
10
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
11
|
+
| B1ShareModal | B1ShareModal.tsx | ✓ (Uses: Loading) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
12
|
+
| DisplayBox | DisplayBox.tsx | ✓ (Uses: HelpIcon, SmallButton) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
13
|
+
| ErrorMessages | ErrorMessages.tsx | ✓ (Used by: FormSubmissionEdit, AddNote, LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
14
|
+
| ExportLink | ExportLink.tsx | ✓ (Used by: ReportOutput) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
15
|
+
| FloatingSupport | FloatingSupport.tsx | ✓ (Uses: SupportModal; Used by: LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
16
|
+
| FormCardPayment | FormCardPayment.tsx | ✓ (Used by: QuestionEdit) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
17
|
+
| FormSubmissionEdit | FormSubmissionEdit.tsx | ✓ (Uses: ErrorMessages, InputBox, QuestionEdit) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
18
|
+
| HelpIcon | HelpIcon.tsx | ✓ (Uses: SmallButton; Used by: DisplayBox, InputBox) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
19
|
+
| ImageEditor | ImageEditor.tsx | ✓ (Uses: InputBox; Used by: GalleryModal) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
20
|
+
| InputBox | InputBox.tsx | ✓ (Uses: HelpIcon; Used by: FormSubmissionEdit, ImageEditor) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
21
|
+
| Loading | Loading.tsx | ✓ (Used by: B1ShareModal, MarkdownEditor, ReportWithFilter, Notes, LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
22
|
+
| QuestionEdit | QuestionEdit.tsx | ✓ (Uses: FormCardPayment; Used by: FormSubmissionEdit) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
23
|
+
| SmallButton | SmallButton.tsx | ✓ (Used by: 15+ components - most used) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
24
|
+
| SupportModal | SupportModal.tsx | ✓ (Used by: FloatingSupport) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
25
|
+
| TabPanel | TabPanel.tsx | ✓ (Used by: UserMenu, GalleryModal) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
26
|
+
|
|
27
|
+
### Gallery Components
|
|
28
|
+
|
|
29
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
30
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
31
|
+
| GalleryModal | gallery/GalleryModal.tsx | ✓ (Uses: ImageEditor, TabPanel, StockPhotos) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
32
|
+
| StockPhotos | gallery/StockPhotos.tsx | ✓ (Used by: GalleryModal) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
33
|
+
|
|
34
|
+
### Header Components
|
|
35
|
+
|
|
36
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
37
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
38
|
+
| Banner | header/Banner.tsx | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
|
39
|
+
| PrimaryMenu | header/PrimaryMenu.tsx | ✓ (Uses: NavItem; Used by: SiteHeader) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
40
|
+
| SecondaryMenu | header/SecondaryMenu.tsx | ✓ (Used by: SiteHeader) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
41
|
+
| SecondaryMenuAlt | header/SecondaryMenuAlt.tsx | ✓ (Uses: NavItem; Used by: SiteHeader) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
42
|
+
| SiteHeader | header/SiteHeader.tsx | ✓ (Uses: UserMenu, PrimaryMenu, SecondaryMenu, SecondaryMenuAlt, SupportDrawer) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
43
|
+
| SupportDrawer | header/SupportDrawer.tsx | ✓ (Used by: SiteHeader) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
44
|
+
|
|
45
|
+
### Icon Picker Components
|
|
46
|
+
|
|
47
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
48
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
49
|
+
| IconNamesList | iconPicker/IconNamesList.ts | ✓ (Used by: IconPicker) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
50
|
+
| IconPicker | iconPicker/IconPicker.tsx | ✓ (Uses: IconNamesList) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
51
|
+
|
|
52
|
+
### Markdown Editor Components
|
|
53
|
+
|
|
54
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
55
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
56
|
+
| Editor | markdownEditor/Editor.tsx | ✓ (Uses: plugins; Used by: MarkdownEditor) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
57
|
+
| MarkdownEditor | markdownEditor/MarkdownEditor.tsx | ✓ (Uses: Loading, Editor) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
58
|
+
| MarkdownModal | markdownEditor/MarkdownModal.tsx | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
|
59
|
+
| MarkdownPreview | markdownEditor/MarkdownPreview.tsx | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
|
60
|
+
| MarkdownPreviewLight | markdownEditor/MarkdownPreviewLight.tsx | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
|
61
|
+
|
|
62
|
+
**Markdown Editor Plugins (All Internal)**:
|
|
63
|
+
- AutoLinkPlugin, ControlledEditorPlugin, FloatingTextFormatToolbarPlugin, ListMaxIndentLevelPlugin, MarkdownTransformers, ReadOnlyPlugin, ToolbarPlugin
|
|
64
|
+
- CustomLinkNode, CustomLinkNodePlugin, CustomLinkNodeTransformer, FloatingLinkEditor
|
|
65
|
+
- EmojiNode, EmojiNodeTransform, EmojiPickerPlugin, EmojisPlugin
|
|
66
|
+
- getDOMRangeRect, getSelectNode, setFloatingElemPosition
|
|
67
|
+
|
|
68
|
+
### Notes Components
|
|
69
|
+
|
|
70
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
71
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
72
|
+
| AddNote | notes/AddNote.tsx | ✓ (Uses: ErrorMessages, SmallButton; Used by: Notes, NewPrivateMessage, PrivateMessageDetails) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
73
|
+
| Conversation | notes/Conversation.tsx | ✓ (Uses: AddNote, Note; Used by: Conversations) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
74
|
+
| Conversations | notes/Conversations.tsx | ✓ (Uses: Loading, Conversation, NewConversation) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
75
|
+
| NewConversation | notes/NewConversation.tsx | ✓ (Used by: Conversations) | ✓ | ✗ | ✗ | ✗ | ✗ |
|
|
76
|
+
| Note | notes/Note.tsx | ✓ (Used by: Notes, Conversation) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
77
|
+
| Notes | notes/Notes.tsx | ✓ (Uses: Note, AddNote, DisplayBox, Loading; Used by: PrivateMessageDetails) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
78
|
+
|
|
79
|
+
### Reporting Components
|
|
80
|
+
|
|
81
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
82
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
83
|
+
| ChartReport | reporting/ChartReport.tsx | ✓ (Used by: ReportOutput) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
84
|
+
| ReportFilter | reporting/ReportFilter.tsx | ✓ (Uses: InputBox, ReportFilterField; Used by: ReportWithFilter) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
85
|
+
| ReportFilterField | reporting/ReportFilterField.tsx | ✓ (Used by: ReportFilter) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
86
|
+
| ReportOutput | reporting/ReportOutput.tsx | ✓ (Uses: DisplayBox, ExportLink, Loading, TableReport, ChartReport, TreeReport; Used by: ReportWithFilter) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
87
|
+
| ReportWithFilter | reporting/ReportWithFilter.tsx | ✓ (Uses: Loading, ReportOutput, ReportFilter) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
88
|
+
| TableReport | reporting/TableReport.tsx | ✓ (Used by: ReportOutput) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
89
|
+
| TreeReport | reporting/TreeReport.tsx | ✓ (Used by: ReportOutput) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
90
|
+
|
|
91
|
+
### Wrapper Components
|
|
92
|
+
|
|
93
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
94
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
95
|
+
| AppList | wrapper/AppList.tsx | ✓ (Uses: NavItem; Used by: UserMenu) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
96
|
+
| ChurchList | wrapper/ChurchList.tsx | ✓ (Uses: NavItem; Used by: UserMenu) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
97
|
+
| Drawers | wrapper/Drawers.tsx | ✓ (Used by: SiteWrapper) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
98
|
+
| NavItem | wrapper/NavItem.tsx | ✓ (Used by: UserMenu, PrimaryMenu, SecondaryMenuAlt, AppList, ChurchList) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
99
|
+
| NewPrivateMessage | wrapper/NewPrivateMessage.tsx | ✓ (Uses: AddNote, SmallButton; Used by: PrivateMessages) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
100
|
+
| Notifications | wrapper/Notifications.tsx | ✓ (Used by: UserMenu) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
101
|
+
| PrivateMessageDetails | wrapper/PrivateMessageDetails.tsx | ✓ (Uses: AddNote, SmallButton, Notes; Used by: PrivateMessages) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
102
|
+
| PrivateMessages | wrapper/PrivateMessages.tsx | ✓ (Uses: SmallButton, PrivateMessageDetails, NewPrivateMessage; Used by: UserMenu) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
103
|
+
| SiteWrapper | wrapper/SiteWrapper.tsx | ✓ (Uses: UserMenu, Drawers) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
104
|
+
| TabPanel | wrapper/TabPanel.tsx | ✓ (Used by: UserMenu) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
105
|
+
| UserMenu | wrapper/UserMenu.tsx | ✓ (Uses: NavItem, AppList, ChurchList, TabPanel, PrivateMessages, Notifications; Used by: SiteWrapper, SiteHeader) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
106
|
+
|
|
107
|
+
### Page Components
|
|
108
|
+
|
|
109
|
+
| Component | File | Internal | B1App | ChumsApp | LessonsApp | AttendanceApp | Other Apps |
|
|
110
|
+
|-----------|------|----------|-------|----------|------------|---------------|------------|
|
|
111
|
+
| LoginPage | pageComponents/LoginPage.tsx | ✓ (Uses: Login, Register, Forgot, LoginSetPassword, SelectChurchModal, FloatingSupport, Loading, ErrorMessages) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
112
|
+
| LogoutPage | pageComponents/LogoutPage.tsx | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
|
113
|
+
| Forgot | pageComponents/components/Forgot.tsx | ✓ (Used by: LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
114
|
+
| Login | pageComponents/components/Login.tsx | ✓ (Used by: LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
115
|
+
| LoginSetPassword | pageComponents/components/LoginSetPassword.tsx | ✓ (Used by: LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
116
|
+
| Register | pageComponents/components/Register.tsx | ✓ (Used by: LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
117
|
+
| SelectChurchModal | pageComponents/components/SelectChurchModal.tsx | ✓ (Uses: SelectChurchRegister; Used by: LoginPage) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
118
|
+
| SelectChurchRegister | pageComponents/components/SelectChurchRegister.tsx | ✓ (Uses: SelectChurchSearch; Used by: SelectChurchModal) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
119
|
+
| SelectChurchSearch | pageComponents/components/SelectChurchSearch.tsx | ✓ (Uses: SelectableChurch; Used by: SelectChurchRegister) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
120
|
+
| SelectableChurch | pageComponents/components/SelectableChurch.tsx | ✓ (Used by: SelectChurchSearch) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
121
|
+
|
|
122
|
+
## Summary Statistics
|
|
123
|
+
|
|
124
|
+
### Internal Usage
|
|
125
|
+
- **Total Components**: 94
|
|
126
|
+
- **Components Used Internally**: 71 (75%)
|
|
127
|
+
- **Components Used Externally**: 23 (25%)
|
|
128
|
+
- **Components Not Used**: 4 (4%)
|
|
129
|
+
|
|
130
|
+
### App-Specific Usage
|
|
131
|
+
- **Universal Components**: 67 (71%)
|
|
132
|
+
- **B1App-Only Components**: 6 (6%)
|
|
133
|
+
- **Unused Components**: 4 (4%)
|
|
134
|
+
|
|
135
|
+
### Component Categories by Usage Pattern
|
|
136
|
+
|
|
137
|
+
#### 1. Foundation Components (Used by All Apps)
|
|
138
|
+
- SiteWrapper, UserMenu, NavItem, LoginPage
|
|
139
|
+
- SmallButton, Loading, ErrorMessages, DisplayBox
|
|
140
|
+
- Notes, AddNote, PrivateMessages, NewPrivateMessage, PrivateMessageDetails
|
|
141
|
+
- MarkdownEditor, FormSubmissionEdit, ReportWithFilter
|
|
142
|
+
|
|
143
|
+
#### 2. B1App-Specific Components
|
|
144
|
+
- **B1ShareModal**: Bible study sharing (explicitly B1-branded)
|
|
145
|
+
- **Conversations**: B1-specific conversation management
|
|
146
|
+
- **NewConversation**: B1-specific conversation creation
|
|
147
|
+
- **Conversation**: B1-specific conversation view
|
|
148
|
+
- **GalleryModal**: B1-specific image gallery
|
|
149
|
+
- **StockPhotos**: B1-specific stock photo browser
|
|
150
|
+
- **IconPicker**: B1-specific icon selection
|
|
151
|
+
- **IconNamesList**: B1-specific icon data
|
|
152
|
+
|
|
153
|
+
#### 3. Internal-Only Components (40 components)
|
|
154
|
+
- All markdown editor plugins and utilities
|
|
155
|
+
- All page component sub-components
|
|
156
|
+
- All reporting sub-components
|
|
157
|
+
- Form processing components (FormCardPayment, QuestionEdit)
|
|
158
|
+
- Helper components (HelpIcon, SupportModal, ExportLink)
|
|
159
|
+
|
|
160
|
+
#### 4. Unused Components
|
|
161
|
+
- Banner, MarkdownModal, MarkdownPreview, MarkdownPreviewLight, LogoutPage
|
|
162
|
+
|
|
163
|
+
## Key Insights
|
|
164
|
+
|
|
165
|
+
1. **Strong Internal Architecture**: 75% of components are used internally, showing good composition patterns
|
|
166
|
+
2. **Minimal App-Specific Code**: Only 6 components (6%) are app-specific, primarily for B1App
|
|
167
|
+
3. **Universal Foundation**: Most components (71%) are used across all apps
|
|
168
|
+
4. **Clean Dependencies**: Clear dependency chains with minimal circular dependencies
|
|
169
|
+
5. **Efficient Composition**: Large components built from smaller, focused components
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageEditor.d.ts","sourceRoot":"","sources":["../../src/components/ImageEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ImageEditor.d.ts","sourceRoot":"","sources":["../../src/components/ImageEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,gCAAgC,CAAC;AAIxC,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,2CAsHvC"}
|
|
@@ -8,7 +8,7 @@ exports.ImageEditor = ImageEditor;
|
|
|
8
8
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const react_cropper_1 = __importDefault(require("react-cropper"));
|
|
11
|
-
require("cropperjs/dist/cropper.css");
|
|
11
|
+
require("cropperjs/dist/cropper.min.css");
|
|
12
12
|
const _1 = require(".");
|
|
13
13
|
const helpers_1 = require("../helpers");
|
|
14
14
|
function ImageEditor(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageEditor.js","sourceRoot":"","sources":["../../src/components/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U,CAAC,IAAI,YAAY,EACnD,mBAAmB,EACjB,4CACE,kCAAO,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,EAAC,YAAY,EAAC,MAAM,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAI,EAC1G,uBAAC,cAAW,IACV,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE;wBACZ,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAAK,EAAE,CAAC;oBAChD,CAAC,GACD,IACE,YAGR,uBAAC,uBAAO,IACN,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EACrC,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,UAAU,GAChB,GACO,CACZ,CAAC;AACJ,CAAC"}
|
|
@@ -5,7 +5,6 @@ export { FloatingSupport } from "./FloatingSupport";
|
|
|
5
5
|
export { FormSubmissionEdit } from "./FormSubmissionEdit";
|
|
6
6
|
export { HelpIcon } from "./HelpIcon";
|
|
7
7
|
export { ImageEditor } from "./ImageEditor";
|
|
8
|
-
export { IconPicker } from "./iconPicker/IconPicker";
|
|
9
8
|
export { InputBox } from "./InputBox";
|
|
10
9
|
export { Loading } from "./Loading";
|
|
11
10
|
export { Notes } from "./notes/Notes";
|
|
@@ -14,9 +13,7 @@ export { SmallButton } from "./SmallButton";
|
|
|
14
13
|
export { SupportModal } from "./SupportModal";
|
|
15
14
|
export { MarkdownEditor } from "./markdownEditor/MarkdownEditor";
|
|
16
15
|
export { MarkdownPreview } from "./markdownEditor/MarkdownPreview";
|
|
17
|
-
export { B1ShareModal } from "./B1ShareModal";
|
|
18
16
|
export * from "./wrapper";
|
|
19
|
-
export * from "./gallery";
|
|
20
17
|
export * from "./markdownEditor";
|
|
21
18
|
export * from "./notes";
|
|
22
19
|
export * from "./reporting";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.MarkdownPreview = exports.MarkdownEditor = exports.SupportModal = exports.SmallButton = exports.QuestionEdit = exports.Notes = exports.Loading = exports.InputBox = exports.ImageEditor = exports.HelpIcon = exports.FormSubmissionEdit = exports.FloatingSupport = exports.DisplayBox = exports.ExportLink = exports.ErrorMessages = void 0;
|
|
18
18
|
var ErrorMessages_1 = require("./ErrorMessages");
|
|
19
19
|
Object.defineProperty(exports, "ErrorMessages", { enumerable: true, get: function () { return ErrorMessages_1.ErrorMessages; } });
|
|
20
20
|
var ExportLink_1 = require("./ExportLink");
|
|
@@ -29,8 +29,6 @@ var HelpIcon_1 = require("./HelpIcon");
|
|
|
29
29
|
Object.defineProperty(exports, "HelpIcon", { enumerable: true, get: function () { return HelpIcon_1.HelpIcon; } });
|
|
30
30
|
var ImageEditor_1 = require("./ImageEditor");
|
|
31
31
|
Object.defineProperty(exports, "ImageEditor", { enumerable: true, get: function () { return ImageEditor_1.ImageEditor; } });
|
|
32
|
-
var IconPicker_1 = require("./iconPicker/IconPicker");
|
|
33
|
-
Object.defineProperty(exports, "IconPicker", { enumerable: true, get: function () { return IconPicker_1.IconPicker; } });
|
|
34
32
|
var InputBox_1 = require("./InputBox");
|
|
35
33
|
Object.defineProperty(exports, "InputBox", { enumerable: true, get: function () { return InputBox_1.InputBox; } });
|
|
36
34
|
var Loading_1 = require("./Loading");
|
|
@@ -47,10 +45,7 @@ var MarkdownEditor_1 = require("./markdownEditor/MarkdownEditor");
|
|
|
47
45
|
Object.defineProperty(exports, "MarkdownEditor", { enumerable: true, get: function () { return MarkdownEditor_1.MarkdownEditor; } });
|
|
48
46
|
var MarkdownPreview_1 = require("./markdownEditor/MarkdownPreview");
|
|
49
47
|
Object.defineProperty(exports, "MarkdownPreview", { enumerable: true, get: function () { return MarkdownPreview_1.MarkdownPreview; } });
|
|
50
|
-
var B1ShareModal_1 = require("./B1ShareModal");
|
|
51
|
-
Object.defineProperty(exports, "B1ShareModal", { enumerable: true, get: function () { return B1ShareModal_1.B1ShareModal; } });
|
|
52
48
|
__exportStar(require("./wrapper"), exports);
|
|
53
|
-
__exportStar(require("./gallery"), exports);
|
|
54
49
|
__exportStar(require("./markdownEditor"), exports);
|
|
55
50
|
__exportStar(require("./notes"), exports);
|
|
56
51
|
__exportStar(require("./reporting"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,uCAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,kEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,oEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,4CAA0B;AAC1B,mDAAiC;AACjC,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconNamesList.d.ts","sourceRoot":"","sources":["../../../src/components/markdownEditor/IconNamesList.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa,UASlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// Minimal icon names list for markdown editor emoji functionality
|
|
4
|
+
// The full icon picker has been moved to B1App
|
|
5
|
+
const IconNamesList = [
|
|
6
|
+
"person", "group", "groups", "contact_mail", "mail", "church", "favorite",
|
|
7
|
+
"volunteer_activism", "link", "home", "apps", "web", "public", "rss_feed",
|
|
8
|
+
"videocam", "live_tv", "music_note", "menu_book", "star", "accessible",
|
|
9
|
+
"woman", "man", "child_care", "handshake", "location_on", "restaurant",
|
|
10
|
+
"local_cafe", "face", "sentiment_satisfied", "thumb_up", "celebration",
|
|
11
|
+
"check", "close", "add", "remove", "edit", "delete", "save", "cancel",
|
|
12
|
+
"search", "filter_list", "sort", "refresh", "download", "upload",
|
|
13
|
+
"share", "copy", "cut", "paste", "undo", "redo", "zoom_in", "zoom_out"
|
|
14
|
+
];
|
|
15
|
+
exports.default = IconNamesList;
|
|
16
|
+
//# sourceMappingURL=IconNamesList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconNamesList.js","sourceRoot":"","sources":["../../../src/components/markdownEditor/IconNamesList.ts"],"names":[],"mappings":";;AAAA,kEAAkE;AAClE,+CAA+C;AAC/C,MAAM,aAAa,GAAG;IACpB,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU;IACzE,oBAAoB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU;IACzE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY;IACtE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY;IACtE,YAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa;IACtE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ;IACrE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ;IAChE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;CACvE,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -7,7 +7,7 @@ exports.CUSTOM_LINK_NODE_TRANSFORMER = void 0;
|
|
|
7
7
|
const lexical_1 = require("lexical");
|
|
8
8
|
const CustomLinkNode_1 = require("./CustomLinkNode");
|
|
9
9
|
const EmojiNode_1 = require("../emoji/EmojiNode");
|
|
10
|
-
const IconNamesList_1 = __importDefault(require("
|
|
10
|
+
const IconNamesList_1 = __importDefault(require("../../IconNamesList"));
|
|
11
11
|
const CUSTOM_LINK_NODE_MARKDOWN_REGEX_QUERY = /(?:\[([^[]+?)\])(?:\(([^(]+)\))(?:({([^}]*)})?)(?:((.*)\)?))$/;
|
|
12
12
|
const CUSTOM_LINK_NODE_MARKDOWN_REGEX = new RegExp(CUSTOM_LINK_NODE_MARKDOWN_REGEX_QUERY);
|
|
13
13
|
const replaceCustomLinkNode = (textNode, match) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomLinkNodeTransformer.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx"],"names":[],"mappings":";;;;;;AACA,qCAAiE;AAEjE,qDAI0B;AAC1B,kDAG4B;AAE5B,
|
|
1
|
+
{"version":3,"file":"CustomLinkNodeTransformer.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx"],"names":[],"mappings":";;;;;;AACA,qCAAiE;AAEjE,qDAI0B;AAC1B,kDAG4B;AAE5B,wEAAgD;AAEhD,MAAM,qCAAqC,GAAG,+DAA+D,CAAC;AAE9G,MAAM,+BAA+B,GAAG,IAAI,MAAM,CAAC,qCAAqC,CAAC,CAAC;AAE1F,MAAM,qBAAqB,GAAG,CAAC,QAAmB,EAAE,KAAW,EAAE,EAAE;IACjE,IAAI,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,EACpB,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACtB,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;QACnD,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,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SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;aAC/D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;QAEhB,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAExC,IAAI,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,IAAA,qBAAW,EAAC,UAAU,CAAC,EAAE,CAAC;YAC5D,OAAO,YAAY,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACN,OAAO,WAAW,CAAC;QAErB,CAAC;IACH,CAAC;IACD,YAAY,EAAE,+BAA+B;IAC7C,MAAM,EAAE,+BAA+B;IACvC,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,YAAY;CACnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.EMOJI_NODE_MARKDOWN_TRANSFORM = exports.EMOJI_NODE_MARKDOWN_REGEX = void 0;
|
|
7
7
|
const EmojiNode_1 = require("./EmojiNode");
|
|
8
|
-
const IconNamesList_1 = __importDefault(require("
|
|
8
|
+
const IconNamesList_1 = __importDefault(require("../../IconNamesList"));
|
|
9
9
|
const lexical_1 = require("lexical");
|
|
10
10
|
const EMOJI_NODE_MARKDOWN_REGEX_QUERY = /:[A-Za-z_]+:$/;
|
|
11
11
|
exports.EMOJI_NODE_MARKDOWN_REGEX = new RegExp(EMOJI_NODE_MARKDOWN_REGEX_QUERY);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiNodeTransform.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/emoji/EmojiNodeTransform.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"EmojiNodeTransform.js","sourceRoot":"","sources":["../../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
|
@@ -49,7 +49,7 @@ const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext"
|
|
|
49
49
|
const LexicalTypeaheadMenuPlugin_1 = require("@lexical/react/LexicalTypeaheadMenuPlugin");
|
|
50
50
|
const lexical_1 = require("lexical");
|
|
51
51
|
const EmojiNode_1 = require("./EmojiNode");
|
|
52
|
-
const IconNamesList_1 = __importDefault(require("
|
|
52
|
+
const IconNamesList_1 = __importDefault(require("../../IconNamesList"));
|
|
53
53
|
const react_1 = require("react");
|
|
54
54
|
const ReactDOM = __importStar(require("react-dom"));
|
|
55
55
|
function EmojiMenuItem({ index, isSelected, onClick, onMouseEnter, option, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiPickerPlugin.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,oCAwFC;;AAvJD;;;;;;GAMG;AAEH,kFAAgF;AAChF,0FAGmD;AACnD,qCAKiB;AACjB,2CAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"EmojiPickerPlugin.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,oCAwFC;;AAvJD;;;;;;GAMG;AAEH,kFAAgF;AAChF,0FAGmD;AACnD,qCAKiB;AACjB,2CAA+C;AAC/C,wEAAgD;AAEhD,iCAAgE;AAChE,oDAAsC;AAGtC,SAAS,aAAa,CAAC,EACrB,KAAK,EACL,UAAU,EACV,OAAO,EACP,YAAY,EACZ,MAAM,GAOP;IACC,IAAI,SAAS,GAAG,MAAM,CAAC;IACvB,IAAI,UAAU,EAAE,CAAC;QACf,SAAS,IAAI,WAAW,CAAC;IAC3B,CAAC;IACD,OAAO,CACL,+BAEE,QAAQ,EAAE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AAG,EAAE;oCACjB,mBAAmB,CAAC,KAAK,CAAC,CAAC;gCAC7B,CAAC,EACD,MAAM,EAAE,MAAM,GACd,IAZM,MAAM,CAaV,CACP,CAAC,GACC,GACD,EACN,gBAAgB,CAAC,OAAO,CACzB;gBACD,CAAC,CAAC,IAAI,CAAC;QACX,CAAC,GACD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -15,7 +15,7 @@ require("material-symbols");
|
|
|
15
15
|
const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
|
|
16
16
|
const lexical_1 = require("lexical");
|
|
17
17
|
const react_1 = require("react");
|
|
18
|
-
const IconNamesList_1 = __importDefault(require("
|
|
18
|
+
const IconNamesList_1 = __importDefault(require("../../IconNamesList"));
|
|
19
19
|
const EmojiNode_1 = require("./EmojiNode");
|
|
20
20
|
const EmojiNodeTransform_1 = require("./EmojiNodeTransform");
|
|
21
21
|
function useEmojis(editor) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojisPlugin.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/emoji/EmojisPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AA2DH,+BAIC;AA5DD,4BAA0B;AAC1B,kFAAgF;AAChF,qCAAkD;AAClD,iCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"EmojisPlugin.js","sourceRoot":"","sources":["../../../../../src/components/markdownEditor/plugins/emoji/EmojisPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AA2DH,+BAIC;AA5DD,4BAA0B;AAC1B,kFAAgF;AAChF,qCAAkD;AAClD,iCAAgC;AAChC,wEAAgD;AAEhD,2CAAwD;AACxD,6DAAiE;AAGjE,SAAS,SAAS,CAAC,MAAqB;IACtC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,qBAAS,EAAE,kBAAQ,CAAC,CAAC,EAAE,CAAC;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C,SAAS,CAAC,CAAC;wBAClC,OAAO;oBACT,CAAC;oBACD,iBAAiB,CAAC,IAAI,CAAC,IAAA,yBAAe,EAAC,kBAAkB,CAAC,CAAC,CAAC;gBAC9D,CAAC,CAAC,CAAC;gBAEH,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;gBAG5B,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,EAAE,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC;gBAEnF,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,IAAe,EAAE,EAAE,CAAC,uBAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;gBAE/I,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACf,CAAC;AAED,SAAwB,YAAY;IAClC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,kDAAyB,GAAE,CAAC;IAC7C,SAAS,CAAC,MAAM,CAAC,CAAC;IAClB,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/notes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/notes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddNote = exports.
|
|
3
|
+
exports.AddNote = exports.Note = exports.Notes = void 0;
|
|
4
4
|
var Notes_1 = require("./Notes");
|
|
5
5
|
Object.defineProperty(exports, "Notes", { enumerable: true, get: function () { return Notes_1.Notes; } });
|
|
6
6
|
var Note_1 = require("./Note");
|
|
7
7
|
Object.defineProperty(exports, "Note", { enumerable: true, get: function () { return Note_1.Note; } });
|
|
8
|
-
var Conversation_1 = require("./Conversation");
|
|
9
|
-
Object.defineProperty(exports, "Conversation", { enumerable: true, get: function () { return Conversation_1.Conversation; } });
|
|
10
|
-
var Conversations_1 = require("./Conversations");
|
|
11
|
-
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return Conversations_1.Conversations; } });
|
|
12
8
|
var AddNote_1 = require("./AddNote");
|
|
13
9
|
Object.defineProperty(exports, "AddNote", { enumerable: true, get: function () { return AddNote_1.AddNote; } });
|
|
14
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/notes/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/notes/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState, useEffect, useRef } from "react";
|
|
4
4
|
import Cropper from "react-cropper";
|
|
5
|
-
import "cropperjs/dist/cropper.css";
|
|
5
|
+
import "cropperjs/dist/cropper.min.css";
|
|
6
6
|
import { InputBox, SmallButton } from ".";
|
|
7
7
|
import { Locale } from "../helpers";
|
|
8
8
|
|