@dosgato/templating 0.0.91 → 0.0.93
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/component.d.ts +0 -10
- package/dist/provider.d.ts +16 -0
- package/package.json +1 -1
package/dist/component.d.ts
CHANGED
|
@@ -347,16 +347,6 @@ interface BarOpts {
|
|
|
347
347
|
editMode?: boolean;
|
|
348
348
|
label?: string;
|
|
349
349
|
extraClass?: string;
|
|
350
|
-
/**
|
|
351
|
-
* Edit bars and new bars are implemented as web components with shadow DOM to prevent
|
|
352
|
-
* page styles from leaking in to the bar styles.
|
|
353
|
-
*
|
|
354
|
-
* This means you cannot style them just by including a CSS block on the page. Instead
|
|
355
|
-
* you need to include the CSS block in the bar itself. This option allows you to do
|
|
356
|
-
* that. Give it a list of block names from any registered provider, and the blocks
|
|
357
|
-
* will be imported inside this bar's shadow DOM.
|
|
358
|
-
*/
|
|
359
|
-
cssBlocks?: string[];
|
|
360
350
|
}
|
|
361
351
|
export interface EditBarOpts extends BarOpts {
|
|
362
352
|
inheritedFrom?: string;
|
package/dist/provider.d.ts
CHANGED
|
@@ -16,6 +16,22 @@ export interface CSSBlock {
|
|
|
16
16
|
* perform the compilation on startup.
|
|
17
17
|
*/
|
|
18
18
|
sass?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* This CSS is intended to alter edit/new bar styles.
|
|
21
|
+
*
|
|
22
|
+
* Edit, Inherit, and New bars use web components with shadow DOM to ensure none of your
|
|
23
|
+
* templates' page styles leak in and alter them. This is good, but it means you cannot
|
|
24
|
+
* alter edit bars with page template CSS.
|
|
25
|
+
*
|
|
26
|
+
* Set this flag true and depend on the CSS block in your Component.cssBlocks() method as
|
|
27
|
+
* normal. This block will automatically be included inside the shadow DOM of each bar, instead
|
|
28
|
+
* of being included in the page's head.
|
|
29
|
+
*
|
|
30
|
+
* Note that this CSS will be present in all edit bars, not just the ones that have it in their
|
|
31
|
+
* Component.cssBlocks() method. Use the `extraClass` option when generating bars to help you
|
|
32
|
+
* target something specific.
|
|
33
|
+
*/
|
|
34
|
+
targetsEditBars?: boolean;
|
|
19
35
|
/**
|
|
20
36
|
* A version string following SEMVER. If multiple blocks are provided with the same name,
|
|
21
37
|
* the one with the highest version number will be chosen. If blocks of different major
|