Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion entry_types/scrolled/lib/pageflow_scrolled/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def configure(config)

c.revision_components.register(Storyline, create_defaults: true)

['tikTokEmbed', 'twitterEmbed', 'hotspots', 'socialEmbed'].each do |name|
['tikTokEmbed', 'twitterEmbed', 'hotspots', 'socialEmbed',
'videoEmbed', 'inlineBeforeAfter'].each do |name|
c.additional_frontend_packs.register(
"pageflow-scrolled/contentElements/#{name}-frontend",
content_element_type_names: [name]
Expand Down
12 changes: 12 additions & 0 deletions entry_types/scrolled/package/config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ module.exports = {
'pageflow-scrolled/contentElements/socialEmbed-frontend.css'
]
},
'pageflow-scrolled/contentElements/videoEmbed-frontend': {
import: [
'pageflow-scrolled/contentElements/videoEmbed-frontend',
'pageflow-scrolled/contentElements/videoEmbed-frontend.css'
]
},
'pageflow-scrolled/contentElements/inlineBeforeAfter-frontend': {
import: [
'pageflow-scrolled/contentElements/inlineBeforeAfter-frontend',
'pageflow-scrolled/contentElements/inlineBeforeAfter-frontend.css'
]
},
'pageflow-scrolled/widgets/defaultNavigation': {
import: [
'pageflow-scrolled/widgets/defaultNavigation',
Expand Down
2 changes: 2 additions & 0 deletions entry_types/scrolled/package/contentElements-server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'pageflow-scrolled/contentElements-frontend';
import 'pageflow-scrolled/contentElements/hotspots-frontend';
import 'pageflow-scrolled/contentElements/inlineBeforeAfter-frontend';
import 'pageflow-scrolled/contentElements/socialEmbed-frontend';
import 'pageflow-scrolled/contentElements/tikTokEmbed-frontend';
import 'pageflow-scrolled/contentElements/twitterEmbed-frontend';
import 'pageflow-scrolled/contentElements/videoEmbed-frontend';
2 changes: 0 additions & 2 deletions entry_types/scrolled/package/src/contentElements/frontend.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import './heading/frontend';
import './inlineBeforeAfter/frontend';
import './inlineImage/frontend';
import './inlineVideo/frontend';
import './inlineAudio/frontend';
import './soundDisclaimer/frontend';
import './textBlock/frontend';
import './videoEmbed/frontend';
import './externalLinkList/frontend';
import './dataWrapperChart/frontend';
import './vrImage/frontend';
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,10 @@ const pageflowScrolled = [
}
))),

...(['tikTokEmbed', 'twitterEmbed', 'hotspots', 'socialEmbed'].map(name => (
...([
'tikTokEmbed', 'twitterEmbed', 'hotspots', 'socialEmbed',
'videoEmbed', 'inlineBeforeAfter'
].map(name => (
{
input: `${pageflowScrolledPackageRoot}/src/contentElements/${name}/frontend.js`,
output: {
Expand Down
Loading