@total_onion/onion-library 1.0.250 → 1.0.251
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.
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
}
|
|
12
12
|
</style>
|
|
13
13
|
<div class="{{blockClassName}}__content-container {{blockClassName}}__post-categories {{blockClassName}}__info-item {{textEditorContainerClasses}} {{block.id}}">
|
|
14
|
-
<{{elementType|default('p')}} class="{{blockClassName}}__post-categories {{
|
|
14
|
+
<{{elementType|default('p')}} class="{{blockClassName}}__post-categories {{textEditorElementClasses}} {{block.id}}" data-pattern-post-info="post.categories.0.name">{{post.categories.0.name}}</{{elementType|default('p')}}>
|
|
15
15
|
</div>
|
package/createJsAssets-v3.js
CHANGED
|
@@ -3,7 +3,7 @@ const path = require('path');
|
|
|
3
3
|
const {globSync} = require('glob');
|
|
4
4
|
|
|
5
5
|
const dynamicEntryPoints = globSync(
|
|
6
|
-
`./node_modules/@total_onion/onion-library/components/block
|
|
6
|
+
`./node_modules/@total_onion/onion-library/components/block-*/*-v3.js`
|
|
7
7
|
).map((filePath) => {
|
|
8
8
|
const assetKey = path.basename(filePath, '.js');
|
|
9
9
|
return assetKey;
|
|
@@ -22,10 +22,7 @@ const jsAssetsFilePath = path.join(jsModulePath, 'jsAssets.mjs');
|
|
|
22
22
|
fs.mkdirSync(jsModulePath, {recursive: true});
|
|
23
23
|
|
|
24
24
|
// Write the initial content to the target file
|
|
25
|
-
fs.writeFileSync(
|
|
26
|
-
jsAssetsFilePath,
|
|
27
|
-
'// This file is auto-generated. To include assets for the lazyloader, just add your .scss file to Assets/scss/blocks/ and it will be included here.\n'
|
|
28
|
-
);
|
|
25
|
+
fs.writeFileSync(jsAssetsFilePath, '// This file is auto-generated.\n');
|
|
29
26
|
|
|
30
27
|
// Create directories if they don't exist
|
|
31
28
|
const dirPath = path.dirname(jsAssetsFilePath);
|
package/package.json
CHANGED
package/jsAssets.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const dynamicAssets = [
|
|
2
|
-
{ assetKey: "video-content-v3" },
|
|
3
|
-
{ assetKey: "sub-group-container-v3" },
|
|
4
|
-
{ assetKey: "standard-content-v3" },
|
|
5
|
-
{ assetKey: "standard-content-v3-extra" },
|
|
6
|
-
{ assetKey: "spacer-v3" },
|
|
7
|
-
{ assetKey: "social-networks-v3" },
|
|
8
|
-
{ assetKey: "smash-balloon-social-media-v3" },
|
|
9
|
-
{ assetKey: "site-title-and-tagline-v3" },
|
|
10
|
-
{ assetKey: "site-logo-container-v3" },
|
|
11
|
-
{ assetKey: "single-responsive-image-v3" },
|
|
12
|
-
{ assetKey: "single-column-container-v3" },
|
|
13
|
-
{ assetKey: "section-separator-v3" },
|
|
14
|
-
{ assetKey: "product-info-v3" },
|
|
15
|
-
{ assetKey: "product-info-v3-extra" },
|
|
16
|
-
{ assetKey: "post-info-v3" },
|
|
17
|
-
{ assetKey: "post-info-v3-extra" },
|
|
18
|
-
{ assetKey: "nav-menu-container-v3" },
|
|
19
|
-
{ assetKey: "modal-form-v3" },
|
|
20
|
-
{ assetKey: "market-selector-v3" },
|
|
21
|
-
{ assetKey: "lottie-content-v3" },
|
|
22
|
-
{ assetKey: "group-container-v3" },
|
|
23
|
-
{ assetKey: "gradient-layer-v3" },
|
|
24
|
-
{ assetKey: "form-selection-v3" },
|
|
25
|
-
{ assetKey: "divider-v3" },
|
|
26
|
-
{ assetKey: "cover-link-v3" },
|
|
27
|
-
{ assetKey: "carousel-multi-layout-v3" },
|
|
28
|
-
{ assetKey: "carousel-multi-layout-v3-extra" },
|
|
29
|
-
{ assetKey: "block-interactions-v3" },
|
|
30
|
-
{ assetKey: "betterreviews-display-v3" },
|
|
31
|
-
{ assetKey: "betterreviews-display-v3-extra" },
|
|
32
|
-
{ assetKey: "accordion-v3" },
|
|
33
|
-
{ assetKey: "accent-image-v3" },
|
|
34
|
-
];
|
|
35
|
-
const api = { dynamicAssets };
|
|
36
|
-
export default api;
|