@vectoriox/iox-ui 5.151.0 → 5.151.1
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/design-core/index.d.ts
CHANGED
|
@@ -18839,8 +18839,15 @@ declare function contentWidthOf(column: unknown, rowValue: (name: string) => str
|
|
|
18839
18839
|
/** The literal `content-cap` holds for a column word: the column's px (the same row `content-width` reads), `100vw` in
|
|
18840
18840
|
* wide. Null for an unknown word or a column row the set lacks. */
|
|
18841
18841
|
declare function contentCapOf(column: unknown, rowValue: (name: string) => string | undefined): string | null;
|
|
18842
|
-
/**
|
|
18843
|
-
*
|
|
18842
|
+
/**
|
|
18843
|
+
* The selector a column word's block is declared on, inside `scope` (the builder's token scope — the attribute sits on
|
|
18844
|
+
* the scope element itself) or anywhere (the engine's `<body>`).
|
|
18845
|
+
*
|
|
18846
|
+
* ⚠️ A token scope NESTED under the element carrying the word follows it too (`[word] scope`): the canvas's
|
|
18847
|
+
* `<iox-page-component class="iox-token-scope" data-iox-column>` hands its `class` to its own `.iox-page-wrapper`, so the
|
|
18848
|
+
* page sits in a second scope that re-declares the site's `content-width` — without this form a page's own word
|
|
18849
|
+
* (Page ▸ Design ▸ Content width) moved the attribute and nothing on the canvas (award §0c CW3).
|
|
18850
|
+
*/
|
|
18844
18851
|
declare function columnSelector(word: string, scope?: string): string;
|
|
18845
18852
|
/**
|
|
18846
18853
|
* The SITE's column word, read from the token rows the renderer already holds: the word whose literal `content-width`
|
|
@@ -21729,11 +21729,18 @@ function contentCapOf(column, rowValue) {
|
|
|
21729
21729
|
const width = contentWidthOf(column, rowValue);
|
|
21730
21730
|
return width === WIDE_CONTENT_WIDTH ? WIDE_CONTENT_CAP : width;
|
|
21731
21731
|
}
|
|
21732
|
-
/**
|
|
21733
|
-
*
|
|
21732
|
+
/**
|
|
21733
|
+
* The selector a column word's block is declared on, inside `scope` (the builder's token scope — the attribute sits on
|
|
21734
|
+
* the scope element itself) or anywhere (the engine's `<body>`).
|
|
21735
|
+
*
|
|
21736
|
+
* ⚠️ A token scope NESTED under the element carrying the word follows it too (`[word] scope`): the canvas's
|
|
21737
|
+
* `<iox-page-component class="iox-token-scope" data-iox-column>` hands its `class` to its own `.iox-page-wrapper`, so the
|
|
21738
|
+
* page sits in a second scope that re-declares the site's `content-width` — without this form a page's own word
|
|
21739
|
+
* (Page ▸ Design ▸ Content width) moved the attribute and nothing on the canvas (award §0c CW3).
|
|
21740
|
+
*/
|
|
21734
21741
|
function columnSelector(word, scope) {
|
|
21735
21742
|
const attr = `[${COLUMN_ATTRIBUTE}="${word}"]`;
|
|
21736
|
-
return scope ? `${scope}${attr}, ${scope} ${attr}` : attr;
|
|
21743
|
+
return scope ? `${scope}${attr}, ${scope} ${attr}, ${attr} ${scope}` : attr;
|
|
21737
21744
|
}
|
|
21738
21745
|
/**
|
|
21739
21746
|
* The SITE's column word, read from the token rows the renderer already holds: the word whose literal `content-width`
|