@bigbinary/neeto-molecules 4.0.45 → 4.0.46
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/dist/ProductEmbed.js +110 -35
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +108 -33
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +5 -0
- package/types/ProductEmbed.d.ts +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.46",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/src/translations/en.json
CHANGED
|
@@ -733,6 +733,11 @@
|
|
|
733
733
|
"copyCode": "Copy code",
|
|
734
734
|
"backToEmbedSelection": "Back to embed selection",
|
|
735
735
|
"embedCode": "Embed code",
|
|
736
|
+
"dynamicHeight": "Dynamic height",
|
|
737
|
+
"transparentBackground": "Transparent background",
|
|
738
|
+
"alignContentLeft": "Align content to left",
|
|
739
|
+
"hideTitle": "Hide title",
|
|
740
|
+
"dynamicHeightHelpText": "Automatically adjust the height of the embed to fit the content.",
|
|
736
741
|
"inline": {
|
|
737
742
|
"title": "Inline embed",
|
|
738
743
|
"width": "Width",
|
package/types/ProductEmbed.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ interface InlineProps {
|
|
|
9
9
|
width?: number;
|
|
10
10
|
height?: number;
|
|
11
11
|
elementSelector?: string;
|
|
12
|
+
dynamicHeight?: boolean;
|
|
13
|
+
hideTitle?: boolean;
|
|
14
|
+
alignContentLeft?: boolean;
|
|
15
|
+
transparentBackground?: boolean;
|
|
12
16
|
}
|
|
13
17
|
interface FloatingPopupProps {
|
|
14
18
|
label: string;
|
|
@@ -35,6 +39,10 @@ interface IframeProps {
|
|
|
35
39
|
height?: number;
|
|
36
40
|
iframeUrl?: string;
|
|
37
41
|
iframeTitle?: string;
|
|
42
|
+
dynamicHeight?: boolean;
|
|
43
|
+
hideTitle?: boolean;
|
|
44
|
+
alignContentLeft?: boolean;
|
|
45
|
+
transparentBackground?: boolean;
|
|
38
46
|
}
|
|
39
47
|
type CodeSampleType = "html" | "react";
|
|
40
48
|
/**
|
|
@@ -64,6 +72,10 @@ type CodeSampleType = "html" | "react";
|
|
|
64
72
|
* width: 90,
|
|
65
73
|
* height: 100,
|
|
66
74
|
* elementSelector: "#inline-embed",
|
|
75
|
+
* dynamicHeight: true,
|
|
76
|
+
* hideTitle: true,
|
|
77
|
+
* alignContentLeft: true,
|
|
78
|
+
* transparentBackground: false,
|
|
67
79
|
* },
|
|
68
80
|
* floatingPopup: {
|
|
69
81
|
* label: "Floating Popup",
|
|
@@ -77,6 +89,16 @@ type CodeSampleType = "html" | "react";
|
|
|
77
89
|
* description: "An element popup",
|
|
78
90
|
* elementSelector: "element-id",
|
|
79
91
|
* },
|
|
92
|
+
* iframe: {
|
|
93
|
+
* label: "Iframe",
|
|
94
|
+
* description: "An iframe embed",
|
|
95
|
+
* width: 100,
|
|
96
|
+
* height: 100,
|
|
97
|
+
* dynamicHeight: true,
|
|
98
|
+
* hideTitle: true,
|
|
99
|
+
* alignContentLeft: true,
|
|
100
|
+
* transparentBackground: false,
|
|
101
|
+
* },
|
|
80
102
|
* }}
|
|
81
103
|
* isQueryParamsEnabled={true}
|
|
82
104
|
* supportedLanguages={["html", "react"]}
|