jamespot-react-components 1.3.102 → 1.3.103

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.
@@ -0,0 +1,4 @@
1
+ export type JRCWidgetEmbedProps = {
2
+ text?: string;
3
+ };
4
+ export declare const JRCWidgetEmbed: ({ text }: JRCWidgetEmbedProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { JRCWidgetEmbed } from './JRCWidgetEmbed';
3
+ declare const meta: Meta<typeof JRCWidgetEmbed>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof JRCWidgetEmbed>;
6
+ export declare const Iframe: Story;
7
+ export declare const RawHtml: Story;
8
+ export declare const Empty: Story;
@@ -0,0 +1,12 @@
1
+ import { WidgetEmbedContent } from 'jamespot-user-api';
2
+ import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
3
+ import { TinyMCEExtension } from '../../Form/Input/JRCInputTinyMCERaw/types';
4
+ export interface JRCWidgetEmbedEditorProps {
5
+ uniqid: string;
6
+ content: WidgetEmbedContent;
7
+ onChangeContent: (uniqid: string, content: WidgetEmbedContent) => void;
8
+ token: string | undefined;
9
+ additionalExtensions?: Array<TinyMCEExtension>;
10
+ tinyMCECommonOptions?: Pick<JRCInputTinyMCERawProps, 'commonOptions' | 'mentionsQueries'> & Partial<Pick<JRCInputTinyMCERawProps, 'tinymceScriptSrc'>>;
11
+ }
12
+ export declare const JRCWidgetEmbedEditor: ({ uniqid, content, onChangeContent, token, additionalExtensions, tinyMCECommonOptions, }: JRCWidgetEmbedEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -219,6 +219,8 @@ export { JRCWidgetTable } from './Widgets/JRCWidgetTable/JRCWidgetTable';
219
219
  export { JRCWidgetTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetTableEditor';
220
220
  export { JRCWidgetText } from './Widgets/JRCWidgetText/JRCWidgetText';
221
221
  export { JRCWidgetTextEditor } from './Widgets/JRCWidgetText/JRCWidgetTextEditor';
222
+ export { JRCWidgetEmbed } from './Widgets/JRCWidgetEmbed/JRCWidgetEmbed';
223
+ export { JRCWidgetEmbedEditor } from './Widgets/JRCWidgetEmbed/JRCWidgetEmbedEditor';
222
224
  export { JRCWidgetUserProfile } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile';
223
225
  export { JRCWidgetUserProfileEditor } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfileEditor';
224
226
  export { JRCWidgetWelcome } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcome';
@@ -528,6 +528,8 @@ declare const _default: {
528
528
  "WIDGET_Welcome_Default_Message": "Bienvenue",
529
529
  "WIDGET_Welcome_Linebreak_Label": "Saut de ligne (après le message)",
530
530
  "WIDGET_Welcome": "Message d'accueil",
531
+ "WIDGET_Embed": "Embed",
532
+ "WIDGET_Embed_Text": "Embed external HTML content (iframe, integration code)",
531
533
  "WIDGET_Youtube_Url": "Video URL",
532
534
  "WIDGET_Youtube": "Video",
533
535
  "WIDGET_Youtube_Text": "Embed a YouTube video",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.102",
3
+ "version": "1.3.103",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.cjs",
6
6
  "module": "dist/jamespot-react-components.js",
@@ -59,8 +59,8 @@
59
59
  "eslint-plugin-storybook": "10.3.6",
60
60
  "globals": "^16.5.0",
61
61
  "html2canvas": "^1.4.1",
62
- "jamespot-front-business": "^1.3.102",
63
- "jamespot-user-api": "^1.3.102",
62
+ "jamespot-front-business": "^1.3.103",
63
+ "jamespot-user-api": "^1.3.103",
64
64
  "jsdom": "^26.1.0",
65
65
  "knip": "^5.88.1",
66
66
  "lint-staged": "^16.4.0",