vibespot 0.9.1 → 0.9.2
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/assets/hubspot-rules.md +18 -0
- package/dist/index.js +130 -122
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/ui/setup.js +37 -23
package/assets/hubspot-rules.md
CHANGED
|
@@ -291,6 +291,24 @@ Every opening tag MUST have a matching closing tag:
|
|
|
291
291
|
Common mistake: forgetting {% end_dnd_column %} or mismatching nesting.
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
+
### Anchor Links in Modules
|
|
295
|
+
```
|
|
296
|
+
HubSpot's dnd_section/dnd_module system wraps modules in auto-generated
|
|
297
|
+
container divs (hs_cos_wrapper_*). Any id attribute on external wrappers
|
|
298
|
+
will be buried or overridden.
|
|
299
|
+
|
|
300
|
+
To make anchor links work reliably:
|
|
301
|
+
- Put the id directly on the module's ROOT element in module.html
|
|
302
|
+
- Do NOT rely on external wrappers or template-level ids
|
|
303
|
+
|
|
304
|
+
✅ <section id="pricing" class="my-pricing">...</section>
|
|
305
|
+
❌ Relying on a wrapper: <div id="pricing"><section>...</section></div>
|
|
306
|
+
|
|
307
|
+
The id should match the moduleName lowercased with spaces → hyphens:
|
|
308
|
+
"Pricing Cards" → id="pricing-cards"
|
|
309
|
+
"Hero" → id="hero"
|
|
310
|
+
```
|
|
311
|
+
|
|
294
312
|
### Module References in HubL
|
|
295
313
|
```
|
|
296
314
|
CURRENT (v2): {{ module.field_name }}
|