@xyd-js/plugins 0.1.0-xyd.2 → 0.1.0-xyd.41

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/CHANGELOG.md CHANGED
@@ -1,5 +1,370 @@
1
1
  # @xyd-js/plugins
2
2
 
3
+ ## 0.1.0-xyd.41
4
+
5
+ ### Patch Changes
6
+
7
+ - update all packages
8
+ - Updated dependencies
9
+ - @xyd-js/framework@0.1.0-xyd.73
10
+ - @xyd-js/uniform@0.1.0-xyd.56
11
+
12
+ ## 0.1.0-xyd.40
13
+
14
+ ### Patch Changes
15
+
16
+ - update all packages
17
+ - Updated dependencies
18
+ - @xyd-js/framework@0.1.0-xyd.72
19
+ - @xyd-js/uniform@0.1.0-xyd.55
20
+
21
+ ## 0.1.0-xyd.39
22
+
23
+ ### Patch Changes
24
+
25
+ - update all packages
26
+ - Updated dependencies
27
+ - @xyd-js/framework@0.1.0-xyd.71
28
+ - @xyd-js/uniform@0.1.0-xyd.54
29
+
30
+ ## 0.1.0-xyd.38
31
+
32
+ ### Patch Changes
33
+
34
+ - update all packages
35
+ - Updated dependencies
36
+ - @xyd-js/framework@0.1.0-xyd.70
37
+ - @xyd-js/uniform@0.1.0-xyd.53
38
+
39
+ ## 0.1.0-xyd.37
40
+
41
+ ### Patch Changes
42
+
43
+ - update all packages
44
+ - Updated dependencies
45
+ - @xyd-js/framework@0.1.0-xyd.69
46
+ - @xyd-js/uniform@0.1.0-xyd.52
47
+
48
+ ## 0.1.0-xyd.36
49
+
50
+ ### Patch Changes
51
+
52
+ - update all packages
53
+ - Updated dependencies
54
+ - @xyd-js/framework@0.1.0-xyd.68
55
+ - @xyd-js/uniform@0.1.0-xyd.51
56
+
57
+ ## 0.1.0-xyd.35
58
+
59
+ ### Patch Changes
60
+
61
+ - update all packages
62
+ - Updated dependencies
63
+ - @xyd-js/framework@0.1.0-xyd.67
64
+ - @xyd-js/uniform@0.1.0-xyd.50
65
+
66
+ ## 0.1.0-xyd.34
67
+
68
+ ### Patch Changes
69
+
70
+ - update all packages
71
+ - Updated dependencies
72
+ - @xyd-js/framework@0.1.0-xyd.66
73
+ - @xyd-js/uniform@0.1.0-xyd.49
74
+
75
+ ## 0.1.0-xyd.33
76
+
77
+ ### Patch Changes
78
+
79
+ - update all packages
80
+ - Updated dependencies
81
+ - @xyd-js/framework@0.1.0-xyd.65
82
+ - @xyd-js/uniform@0.1.0-xyd.48
83
+
84
+ ## 0.1.0-xyd.32
85
+
86
+ ### Patch Changes
87
+
88
+ - update all packages
89
+ - Updated dependencies
90
+ - @xyd-js/framework@0.1.0-xyd.64
91
+ - @xyd-js/uniform@0.1.0-xyd.47
92
+
93
+ ## 0.1.0-xyd.31
94
+
95
+ ### Patch Changes
96
+
97
+ - update all packages
98
+ - Updated dependencies
99
+ - @xyd-js/framework@0.1.0-xyd.63
100
+ - @xyd-js/uniform@0.1.0-xyd.46
101
+
102
+ ## 0.1.0-xyd.30
103
+
104
+ ### Patch Changes
105
+
106
+ - update all packages
107
+ - Updated dependencies
108
+ - @xyd-js/framework@0.1.0-xyd.62
109
+ - @xyd-js/uniform@0.1.0-xyd.45
110
+
111
+ ## 0.1.0-xyd.29
112
+
113
+ ### Patch Changes
114
+
115
+ - update all packages
116
+ - Updated dependencies
117
+ - @xyd-js/framework@0.1.0-xyd.61
118
+ - @xyd-js/uniform@0.1.0-xyd.44
119
+
120
+ ## 0.1.0-xyd.28
121
+
122
+ ### Patch Changes
123
+
124
+ - update all packages
125
+ - Updated dependencies
126
+ - @xyd-js/framework@0.1.0-xyd.60
127
+ - @xyd-js/uniform@0.1.0-xyd.43
128
+
129
+ ## 0.1.0-xyd.27
130
+
131
+ ### Patch Changes
132
+
133
+ - update all packages
134
+ - Updated dependencies
135
+ - @xyd-js/framework@0.1.0-xyd.59
136
+ - @xyd-js/uniform@0.1.0-xyd.42
137
+
138
+ ## 0.1.0-xyd.26
139
+
140
+ ### Patch Changes
141
+
142
+ - update all packages
143
+ - Updated dependencies
144
+ - @xyd-js/framework@0.1.0-xyd.58
145
+ - @xyd-js/uniform@0.1.0-xyd.41
146
+
147
+ ## 0.1.0-xyd.25
148
+
149
+ ### Patch Changes
150
+
151
+ - update all packages
152
+ - Updated dependencies
153
+ - @xyd-js/framework@0.1.0-xyd.57
154
+ - @xyd-js/uniform@0.1.0-xyd.40
155
+
156
+ ## 0.1.0-xyd.24
157
+
158
+ ### Patch Changes
159
+
160
+ - update all packages
161
+ - Updated dependencies
162
+ - @xyd-js/framework@0.1.0-xyd.56
163
+ - @xyd-js/uniform@0.1.0-xyd.39
164
+
165
+ ## 0.1.0-xyd.23
166
+
167
+ ### Patch Changes
168
+
169
+ - update all packages
170
+ - Updated dependencies
171
+ - @xyd-js/framework@0.1.0-xyd.55
172
+ - @xyd-js/uniform@0.1.0-xyd.38
173
+
174
+ ## 0.1.0-xyd.22
175
+
176
+ ### Patch Changes
177
+
178
+ - update all packages
179
+ - Updated dependencies
180
+ - @xyd-js/framework@0.1.0-xyd.54
181
+ - @xyd-js/uniform@0.1.0-xyd.37
182
+
183
+ ## 0.1.0-xyd.21
184
+
185
+ ### Patch Changes
186
+
187
+ - update all packages
188
+ - Updated dependencies
189
+ - @xyd-js/framework@0.1.0-xyd.53
190
+ - @xyd-js/uniform@0.1.0-xyd.36
191
+
192
+ ## 0.1.0-xyd.20
193
+
194
+ ### Patch Changes
195
+
196
+ - update all packages
197
+ - Updated dependencies
198
+ - @xyd-js/framework@0.1.0-xyd.52
199
+ - @xyd-js/uniform@0.1.0-xyd.35
200
+
201
+ ## 0.1.0-xyd.19
202
+
203
+ ### Patch Changes
204
+
205
+ - update all packages
206
+ - Updated dependencies
207
+ - @xyd-js/framework@0.1.0-xyd.51
208
+ - @xyd-js/uniform@0.1.0-xyd.34
209
+
210
+ ## 0.1.0-xyd.18
211
+
212
+ ### Patch Changes
213
+
214
+ - update all packages
215
+ - update all packages
216
+ - Updated dependencies
217
+ - Updated dependencies
218
+ - @xyd-js/framework@0.1.0-xyd.50
219
+ - @xyd-js/uniform@0.1.0-xyd.33
220
+
221
+ ## 0.1.0-xyd.17
222
+
223
+ ### Patch Changes
224
+
225
+ - update all packages
226
+ - Updated dependencies
227
+ - @xyd-js/framework@0.1.0-xyd.49
228
+ - @xyd-js/uniform@0.1.0-xyd.32
229
+
230
+ ## 0.1.0-xyd.16
231
+
232
+ ### Patch Changes
233
+
234
+ - update all packages
235
+ - update all packages
236
+ - Updated dependencies
237
+ - Updated dependencies
238
+ - @xyd-js/framework@0.1.0-xyd.48
239
+ - @xyd-js/uniform@0.1.0-xyd.31
240
+
241
+ ## 0.1.0-xyd.15
242
+
243
+ ### Patch Changes
244
+
245
+ - update all packages
246
+ - update all packages
247
+ - Updated dependencies
248
+ - Updated dependencies
249
+ - @xyd-js/framework@0.1.0-xyd.47
250
+ - @xyd-js/uniform@0.1.0-xyd.30
251
+
252
+ ## 0.1.0-xyd.14
253
+
254
+ ### Patch Changes
255
+
256
+ - update all packages
257
+ - update all packages
258
+ - Updated dependencies
259
+ - Updated dependencies
260
+ - @xyd-js/framework@0.1.0-xyd.46
261
+ - @xyd-js/uniform@0.1.0-xyd.29
262
+
263
+ ## 0.1.0-xyd.13
264
+
265
+ ### Patch Changes
266
+
267
+ - update all packages
268
+ - update all packages
269
+ - Updated dependencies
270
+ - Updated dependencies
271
+ - @xyd-js/framework@0.1.0-xyd.45
272
+ - @xyd-js/uniform@0.1.0-xyd.28
273
+
274
+ ## 0.1.0-xyd.12
275
+
276
+ ### Patch Changes
277
+
278
+ - update all packages
279
+ - update all packages
280
+ - Updated dependencies
281
+ - Updated dependencies
282
+ - @xyd-js/framework@0.1.0-xyd.44
283
+ - @xyd-js/uniform@0.1.0-xyd.27
284
+
285
+ ## 0.1.0-xyd.11
286
+
287
+ ### Patch Changes
288
+
289
+ - update all packages
290
+ - update all packages
291
+ - Updated dependencies
292
+ - Updated dependencies
293
+ - @xyd-js/framework@0.1.0-xyd.43
294
+ - @xyd-js/uniform@0.1.0-xyd.26
295
+
296
+ ## 0.1.0-xyd.10
297
+
298
+ ### Patch Changes
299
+
300
+ - update all packages
301
+ - Updated dependencies
302
+ - @xyd-js/framework@0.1.0-xyd.42
303
+ - @xyd-js/uniform@0.1.0-xyd.25
304
+
305
+ ## 0.1.0-xyd.9
306
+
307
+ ### Patch Changes
308
+
309
+ - update all packages
310
+ - Updated dependencies
311
+ - @xyd-js/framework@0.1.0-xyd.41
312
+ - @xyd-js/uniform@0.1.0-xyd.24
313
+
314
+ ## 0.1.0-xyd.8
315
+
316
+ ### Patch Changes
317
+
318
+ - update all packages
319
+ - Updated dependencies
320
+ - @xyd-js/framework@0.1.0-xyd.40
321
+ - @xyd-js/uniform@0.1.0-xyd.23
322
+
323
+ ## 0.1.0-xyd.7
324
+
325
+ ### Patch Changes
326
+
327
+ - update
328
+ - Updated dependencies
329
+ - @xyd-js/framework@0.1.0-xyd.39
330
+ - @xyd-js/uniform@0.1.0-xyd.22
331
+
332
+ ## 0.1.0-xyd.6
333
+
334
+ ### Patch Changes
335
+
336
+ - update
337
+ - Updated dependencies
338
+ - @xyd-js/framework@0.1.0-xyd.38
339
+ - @xyd-js/uniform@0.1.0-xyd.21
340
+
341
+ ## 0.1.0-xyd.5
342
+
343
+ ### Patch Changes
344
+
345
+ - update
346
+ - Updated dependencies
347
+ - @xyd-js/framework@0.1.0-xyd.37
348
+ - @xyd-js/uniform@0.1.0-xyd.20
349
+
350
+ ## 0.1.0-xyd.4
351
+
352
+ ### Patch Changes
353
+
354
+ - update
355
+ - Updated dependencies
356
+ - @xyd-js/framework@0.1.0-xyd.36
357
+ - @xyd-js/uniform@0.1.0-xyd.19
358
+
359
+ ## 0.1.0-xyd.3
360
+
361
+ ### Patch Changes
362
+
363
+ - update
364
+ - Updated dependencies
365
+ - @xyd-js/framework@0.1.0-xyd.35
366
+ - @xyd-js/uniform@0.1.0-xyd.18
367
+
3
368
  ## 0.1.0-xyd.2
4
369
 
5
370
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Plugin as Plugin$1 } from 'vite';
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
  import { UniformPlugin } from '@xyd-js/uniform';
5
- import { SurfaceTarget } from '@xyd-js/framework/react';
5
+ import { SurfaceTarget } from '@xyd-js/framework';
6
6
 
7
7
  type RawTheme = {
8
8
  name?: string;
@@ -43,13 +43,11 @@ interface Settings {
43
43
  plugins?: Plugins;
44
44
  /**
45
45
  * @internal
46
- * @unsafe
47
46
  *
48
47
  * Redirects configuration
49
48
  */
50
49
  redirects?: Redirects[];
51
50
  /**
52
- * @unsafe
53
51
  * SEO configuration
54
52
  */
55
53
  seo?: SEO;
@@ -176,7 +174,7 @@ type ThemePresetName = "poetry" | "cosmo" | "opener" | "picasso";
176
174
  */
177
175
  interface Navigation {
178
176
  /** Definition of sidebar - an array of groups with all the pages within that group */
179
- sidebar: (SidebarRoute | Sidebar | string)[];
177
+ sidebar: SidebarNavigation;
180
178
  /** Array of headers */
181
179
  header?: Header[];
182
180
  /** Array of segments */
@@ -188,6 +186,10 @@ interface Navigation {
188
186
  /** Anchors, includes the icon, name, and url */
189
187
  anchors?: AnchorRoot;
190
188
  }
189
+ /**
190
+ * Sidebar navigation type
191
+ */
192
+ type SidebarNavigation = (SidebarRoute | Sidebar | string)[];
191
193
  /**
192
194
  * Sidebar multi-group configuration
193
195
  */
@@ -558,7 +560,6 @@ interface Engine {
558
560
  */
559
561
  paths?: EnginePaths;
560
562
  /**
561
- * @unsafe
562
563
  *
563
564
  * Uniform configuration
564
565
  *
@@ -610,6 +611,11 @@ interface PluginConfig {
610
611
  customComponents?: {
611
612
  [name: string]: PluginCustomComponents;
612
613
  };
614
+ components?: {
615
+ component: React__default.ComponentType<any>;
616
+ name: string;
617
+ dist: string;
618
+ }[];
613
619
  }
614
620
  type Plugin = (settings: Settings) => PluginConfig;
615
621
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/plugins",
3
- "version": "0.1.0-xyd.2",
3
+ "version": "0.1.0-xyd.41",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -11,14 +11,14 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@xyd-js/uniform": "0.1.0-xyd.17"
14
+ "@xyd-js/uniform": "0.1.0-xyd.56"
15
15
  },
16
16
  "peerDependencies": {
17
- "@xyd-js/framework": "0.1.0-xyd.34"
17
+ "@xyd-js/framework": "0.1.0-xyd.73"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitest/coverage-v8": "^1.3.1",
21
- "vite": "^6.1.0",
21
+ "vite": "^7.0.0",
22
22
  "vitest": "^1.3.1",
23
23
  "rimraf": "^3.0.2",
24
24
  "tsup": "^8.3.0"
package/src/index.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { Plugin as Vite } from "vite"
1
+ import type {Plugin as Vite} from "vite"
2
2
  import React from "react"
3
3
 
4
- import { type UniformPlugin as Uniform } from "@xyd-js/uniform"
5
- import { Settings } from "@xyd-js/core"
6
- import type { SurfaceTarget } from "@xyd-js/framework/react"
4
+ import {type UniformPlugin as Uniform} from "@xyd-js/uniform"
5
+ import {Settings} from "@xyd-js/core"
6
+ import type {SurfaceTarget} from "@xyd-js/framework"
7
7
 
8
8
  // TODO: share with theme-api ?
9
9
  export interface PluginCustomComponents {
@@ -13,7 +13,7 @@ export interface PluginCustomComponents {
13
13
 
14
14
  /**
15
15
  * Plugin interface
16
- *
16
+ *
17
17
  * @example
18
18
  * ```ts
19
19
  * function myPlugin(): Plugin {
@@ -46,7 +46,12 @@ export interface PluginConfig {
46
46
  // }
47
47
  customComponents?: {
48
48
  [name: string]: PluginCustomComponents
49
- }
49
+ },
50
+ components?: {
51
+ component: React.ComponentType<any>,
52
+ name: string,
53
+ dist: string
54
+ }[]
50
55
  }
51
56
 
52
57
  export type Plugin = (settings: Settings) => PluginConfig