@ainsleydev/sveltekit-helper 0.6.1 → 0.6.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.
|
@@ -114,16 +114,12 @@ export type TableOfContentsProps = {
|
|
|
114
114
|
|
|
115
115
|
@example
|
|
116
116
|
```svelte
|
|
117
|
-
<!-- Attach data attributes to the content element -->
|
|
118
117
|
<RichText content={data.body} data-sidebar-content="true" data-sidebar-selector="h3" />
|
|
119
|
-
|
|
120
|
-
<!-- TOC auto-discovers headings -->
|
|
121
118
|
<TableOfContents heading="On this page" />
|
|
122
119
|
```
|
|
123
120
|
|
|
124
121
|
@example
|
|
125
122
|
```svelte
|
|
126
|
-
<!-- Explicit prop overrides -->
|
|
127
123
|
<TableOfContents
|
|
128
124
|
contentSelector=".article-body"
|
|
129
125
|
headingSelector="h2, h3"
|
|
@@ -134,7 +130,6 @@ export type TableOfContentsProps = {
|
|
|
134
130
|
|
|
135
131
|
@example
|
|
136
132
|
```svelte
|
|
137
|
-
<!-- Manual items (scrollspy still driven by DOM) -->
|
|
138
133
|
<TableOfContents items={[{ label: 'Intro', href: 'intro' }]} />
|
|
139
134
|
```
|
|
140
135
|
-->
|
|
@@ -45,7 +45,24 @@ export type TableOfContentsProps = {
|
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```svelte
|
|
48
|
-
*
|
|
48
|
+
* <RichText content={data.body} data-sidebar-content="true" data-sidebar-selector="h3" />
|
|
49
|
+
* <TableOfContents heading="On this page" />
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```svelte
|
|
54
|
+
* <TableOfContents
|
|
55
|
+
* contentSelector=".article-body"
|
|
56
|
+
* headingSelector="h2, h3"
|
|
57
|
+
* heading="Contents"
|
|
58
|
+
* displayBorder
|
|
59
|
+
* />
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```svelte
|
|
64
|
+
* <TableOfContents items={[{ label: 'Intro', href: 'intro' }]} />
|
|
65
|
+
* ```
|
|
49
66
|
*/
|
|
50
67
|
declare const TableOfContents: import("svelte").Component<TableOfContentsProps, {}, "">;
|
|
51
68
|
type TableOfContents = ReturnType<typeof TableOfContents>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableOfContents.svelte.d.ts","sourceRoot":"","sources":["../../src/components/TableOfContents.svelte.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableOfContents.svelte.d.ts","sourceRoot":"","sources":["../../src/components/TableOfContents.svelte.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,eAAe,0DAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|