jamespot-react-components 1.3.119 → 1.3.121

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 (42) hide show
  1. package/dist/jamespot-react-components.cjs +1943 -1585
  2. package/dist/jamespot-react-components.js +20428 -19238
  3. package/dist/src/components/Editors/components/Editor.style.d.ts +2 -1
  4. package/dist/src/components/Editors/components/EditorInputGroup.d.ts +1 -3
  5. package/dist/src/components/Editors/components/EditorInputGroups.d.ts +1 -2
  6. package/dist/src/components/Form/Input/JRCInputCheckbox/components/JRCRadio.d.ts +7 -1
  7. package/dist/src/components/Form/Input/JRCSelect/JRCInputAutocompleteViews.d.ts +2 -7
  8. package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +1 -6
  9. package/dist/src/components/JRCBusinessContacts/JRCBusinessContacts.d.ts +2 -5
  10. package/dist/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +7 -2
  11. package/dist/src/components/JRCGroups/JRCGroups.d.ts +2 -5
  12. package/dist/src/components/JRCSlider/JRCSlider.d.ts +4 -1
  13. package/dist/src/components/JRCSlider/JRCSlider.stories.d.ts +11 -2
  14. package/dist/src/components/JRCSlider/components/SliderArrows.d.ts +6 -1
  15. package/dist/src/components/JRCSlider/components/SliderDots.d.ts +3 -1
  16. package/dist/src/components/JRCUsers/JRCUsers.d.ts +2 -5
  17. package/dist/src/components/Templates/template.styles.d.ts +9 -0
  18. package/dist/src/components/Widgets/JRCWidgetNews/JRCWidgetNews.const.d.ts +49 -0
  19. package/dist/src/components/Widgets/JRCWidgetNews/JRCWidgetNews.d.ts +17 -0
  20. package/dist/src/components/Widgets/JRCWidgetNews/JRCWidgetNews.stories.d.ts +11 -0
  21. package/dist/src/components/Widgets/JRCWidgetNews/JRCWidgetNewsEditor.d.ts +9 -0
  22. package/dist/src/components/Widgets/JRCWidgetNews/NewsItem.d.ts +17 -0
  23. package/dist/src/components/Widgets/JRCWidgetNewsflash/JRCWidgetNewsflash.const.d.ts +0 -1
  24. package/dist/src/components/Widgets/JRCWidgetNewsflash/JRCWidgetNewsflash.stories.d.ts +6 -0
  25. package/dist/src/components/Widgets/JRCWidgetNewsflash/JRCWidgetNewsflashEditor.d.ts +2 -6
  26. package/dist/src/components/Widgets/JRCWidgetNewsflash/NewsflashActions.d.ts +1 -2
  27. package/dist/src/components/Widgets/JRCWidgetNewsflash/NewsflashDescription.d.ts +10 -0
  28. package/dist/src/components/Widgets/JRCWidgetSurvey/JRCWidgetSurvey.d.ts +8 -0
  29. package/dist/src/components/Widgets/JRCWidgetSurvey/JRCWidgetSurvey.stories.d.ts +17 -0
  30. package/dist/src/components/Widgets/JRCWidgetSurvey/JRCWidgetSurvey.styles.d.ts +20 -0
  31. package/dist/src/components/Widgets/JRCWidgetSurvey/JRCWidgetSurvey.utils.d.ts +16 -0
  32. package/dist/src/components/Widgets/JRCWidgetSurvey/JRCWidgetSurveyEditor.d.ts +8 -0
  33. package/dist/src/components/Widgets/JRCWidgetSurvey/SurveySelectionModal.d.ts +8 -0
  34. package/dist/src/components/Widgets/WidgetCalendar/WidgetCalendarEditor.d.ts +2 -6
  35. package/dist/src/components/index.d.ts +4 -0
  36. package/dist/src/index.d.ts +2 -0
  37. package/dist/src/translation/lang.json.d.ts +48 -1
  38. package/dist/src/types.d.ts +1 -0
  39. package/dist/src/utils/utils.html.d.ts +6 -0
  40. package/dist/src/utils/utils.iframeVideo.d.ts +3 -1
  41. package/dist/src/utils/utils.string.d.ts +1 -0
  42. package/package.json +3 -3
@@ -362,6 +362,7 @@ declare const _default: {
362
362
  "GLOBAL_Start_typing": "Start typing to search",
363
363
  "GLOBAL_Successffully_Deleted": "Successfully deleted",
364
364
  "GLOBAL_Today": "Today",
365
+ "GLOBAL_Type_Selection": "Choose a type",
365
366
  "GLOBAL_Unsuccessfully_Deleted": "An error occured while deleting your content",
366
367
  "GLOBAL_Unsuported_File_Format": "Unsupported file format",
367
368
  "GLOBAL_Users": "Users",
@@ -525,6 +526,41 @@ declare const _default: {
525
526
  "WIDGET_Lucca_Absent_Until_Today": "Absent jusqu'a aujourd'hui",
526
527
  "WIDGET_Lucca_Absent_Until_Tomorrow": "Absent jusqu'a demain",
527
528
  "WIDGET_Lucca_Absent_Until": "Absent jusqu'au",
529
+ "WIDGET_NEWS": "Filtered group feed",
530
+ "WIDGET_NEWS_TEXT": "Display a filtered feed of articles from selected groups",
531
+ "WIDGET_News_Select_Groups": "Select groups",
532
+ "WIDGET_News_Not_Member": "You are not a member of this group",
533
+ "WIDGET_News_Highlight": "Highlight the latest article",
534
+ "WIDGET_News_Highlight_Helper": "If your widget is on a single column this setting will have no impact",
535
+ "WIDGET_News_Taxonomy_Filter": "Select a list of keywords as a filter",
536
+ "WIDGET_News_Taxonomy_Filter_Desc": "A field with the filter will appear on your widget to allow users to filter on the keyword(s) of their choice.",
537
+ "WIDGET_News_Keywords_Filter": "Select one or more keywords",
538
+ "WIDGET_News_Keywords_Filter_Desc": "You can filter your content using one or more specific keywords or not select any and let your users filter on the keywords of their choice",
539
+ "WIDGET_News_Show_KeywordsMandatories": "Show chosen keywords",
540
+ "WIDGET_News_Mandatories_Keywords": "The contents of this widget are filtered on the keyword(s): ",
541
+ "WIDGET_News_Types_Limit": "8 types maximum",
542
+ "WIDGET_News_Article_Display_Mode": "Article display mode",
543
+ "WIDGET_News_Article_Display_Mode_Short": "Short",
544
+ "WIDGET_News_Article_Display_Mode_Full": "Full",
545
+ "WIDGET_News_Image_Hide": "Hide image",
546
+ "WIDGET_News_Hide_Date": "Hide date",
547
+ "WIDGET_News_Hide_Desc": "Hide description",
548
+ "WIDGET_News_Button_ShowMore": "Show a \"Load more\" button",
549
+ "COLOR_Title_Color": "Title color",
550
+ "COLOR_Description_Color": "Description color",
551
+ "GLOBAL_No_Results": "No results",
552
+ "GLOBAL_Btn_Add_Spot_To_Favorite": "Join",
553
+ "GLOBAL_Display_Order": "Display order",
554
+ "GLOBAL_Last_Activity": "Date of last activity",
555
+ "GLOBAL_Left": "Left",
556
+ "GLOBAL_Right": "Right",
557
+ "GLOBAL_Show_More_Article": "Show more posts",
558
+ "SECTION_Section_Column": "Column number",
559
+ "SELECTION_Panel_Size_Medium": "Medium",
560
+ "WIDGET_Type_Filter": "Type",
561
+ "WIDGET_Limit_Filter": "Limit",
562
+ "WIDGET_List_Orientation": "Orientation",
563
+ "WIDGET_Markup_Size": "Display",
528
564
  "WIDGET_Newsflash": "Flash info",
529
565
  "WIDGET_Newsflash_Text": "Display the latest flash info on your homepage",
530
566
  "WIDGET_Newsflash_Is_Empty": "No recent news",
@@ -646,7 +682,18 @@ declare const _default: {
646
682
  "GLOBAL_Icon_Color": "Icon color",
647
683
  "GLOBAL_Duplicate": "Duplicate",
648
684
  "SPOTIT_Add_Picture": "Add a picture",
649
- "DW_Add_Icon": "Add icon"
685
+ "DW_Add_Icon": "Add icon",
686
+ "POLL_Survey_Response_Number": "Number of responses",
687
+ "SURVEY_Response_Count_Response": "Responses",
688
+ "GLOBAL_Publish_Survey": "Survey",
689
+ "SURVEY_Publish_By": "publish by",
690
+ "WIDGET_Survey_Answer_Survey": "Respond to the survey",
691
+ "WIDGET_Survey_Answer_Survey_Again": "Respond to the survey again",
692
+ "WIDGET_Survey_See_Responses": "See the responses",
693
+ "POLL_Survey_Continue_Survey": "Continue",
694
+ "WIDGET_Select_SocialPoll": "Select a survey",
695
+ "WIDGET_Survey_Selection": "Select survey",
696
+ "GLOBAL_No_Survey_Results": "There is no survey open at the moment"
650
697
  }
651
698
  }
652
699
  ;
@@ -86,6 +86,7 @@ export type { JRCTemplateTwoColumnsProps } from './components/Templates/JRCTwoCo
86
86
  export type { JRCAppColumnProps, JRCAppTabsProps, JRCColumnProps, JRCContainerProps, JRCMainColumnProps, JRCTabEntry, LayoutMode, TabEventProps, } from './components/Templates/template.type';
87
87
  export type { ThemeType } from './styles/theme';
88
88
  export type { JRCWidgetCheckListEntries } from './components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
89
+ export type { NewsArticle } from './components/Widgets/JRCWidgetNews/JRCWidgetNews.const';
89
90
  export type { MessageType } from 'jamespot-front-business';
90
91
  export type { OneLevelMainItemComponentProps, OneLevelStackItemComponentProps, OneLevelEmptyStateComponentProps, JRCDndOneLevelWithStackProps, } from './components/JRCDragNDrop/types';
91
92
  export { OneLevelItemTypes } from './components/JRCDragNDrop/types';
@@ -1,4 +1,10 @@
1
1
  export declare function sanitizeHtml(dirtyHtml?: string): string;
2
+ /**
3
+ * Same sanitization as `sanitizeHtml`, minus anything that can take focus — for excerpts rendered
4
+ * inside a clickable card, where a nested link would be invalid HTML and an off-screen focusable
5
+ * element an unreachable tab stop. Text carried by the dropped tags is kept.
6
+ */
7
+ export declare function sanitizeNonInteractiveHtml(dirtyHtml?: string): string;
2
8
  export declare function truncateHtml(html: string, maxChars: number): {
3
9
  html: string;
4
10
  truncated: boolean;
@@ -10,7 +10,8 @@
10
10
  * Loom branches are intentional infra for upcoming widgets — do not remove
11
11
  * without checking the corresponding ticket in the tracker.
12
12
  */
13
- export type Provider = 'youtube' | 'vimeo' | 'dailymotion' | 'loom';
13
+ type RegexProvider = 'youtube' | 'vimeo' | 'dailymotion' | 'loom';
14
+ export type Provider = RegexProvider | 'peertube';
14
15
  export interface ParsedProvider {
15
16
  provider: Provider;
16
17
  videoId: string;
@@ -46,3 +47,4 @@ export declare function toEmbedUrl(parsed: ParsedProvider): string;
46
47
  export declare function getThumbnailUrl(parsed: ParsedProvider, publicUrl: string, options?: {
47
48
  signal?: AbortSignal;
48
49
  }): Promise<string | null>;
50
+ export {};
@@ -3,6 +3,7 @@ export declare function removeIfStartsWith(str: string | undefined, prefix: stri
3
3
  export declare function padStartTwoDigits(val: string | number): string;
4
4
  export declare function limitSize(str: string, length: number): string;
5
5
  export declare function capitalize(str: string): string;
6
+ export declare function stripSlashes(str: string): string;
6
7
  export declare function startsWithIgnoreCase(value: string, prefix: string): boolean;
7
8
  export declare function includesIgnoreCase(value: string, query: string): boolean;
8
9
  export declare function normalizeText(value: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.119",
3
+ "version": "1.3.121",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -60,8 +60,8 @@
60
60
  "eslint-plugin-storybook": "10.3.6",
61
61
  "globals": "^16.5.0",
62
62
  "html2canvas": "^1.4.1",
63
- "jamespot-front-business": "^1.3.119",
64
- "jamespot-user-api": "^1.3.119",
63
+ "jamespot-front-business": "^1.3.121",
64
+ "jamespot-user-api": "^1.3.121",
65
65
  "jsdom": "^26.1.0",
66
66
  "knip": "^5.88.1",
67
67
  "lint-staged": "^16.4.0",