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

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,490 @@
1
1
  # @xyd-js/plugins
2
2
 
3
+ ## 0.1.0-xyd.53
4
+
5
+ ### Patch Changes
6
+
7
+ - update all packages
8
+ - update all packages
9
+ - Updated dependencies
10
+ - Updated dependencies
11
+ - @xyd-js/framework@0.1.0-xyd.85
12
+ - @xyd-js/uniform@0.1.0-xyd.68
13
+
14
+ ## 0.1.0-xyd.52
15
+
16
+ ### Patch Changes
17
+
18
+ - update all packages
19
+ - Updated dependencies
20
+ - @xyd-js/framework@0.1.0-xyd.84
21
+ - @xyd-js/uniform@0.1.0-xyd.67
22
+
23
+ ## 0.1.0-xyd.51
24
+
25
+ ### Patch Changes
26
+
27
+ - update all packages
28
+ - Updated dependencies
29
+ - @xyd-js/framework@0.1.0-xyd.83
30
+ - @xyd-js/uniform@0.1.0-xyd.66
31
+
32
+ ## 0.1.0-xyd.50
33
+
34
+ ### Patch Changes
35
+
36
+ - update all packages
37
+ - Updated dependencies
38
+ - @xyd-js/framework@0.1.0-xyd.82
39
+ - @xyd-js/uniform@0.1.0-xyd.65
40
+
41
+ ## 0.1.0-xyd.49
42
+
43
+ ### Patch Changes
44
+
45
+ - update all packages
46
+ - Updated dependencies
47
+ - @xyd-js/framework@0.1.0-xyd.81
48
+ - @xyd-js/uniform@0.1.0-xyd.64
49
+
50
+ ## 0.1.0-xyd.48
51
+
52
+ ### Patch Changes
53
+
54
+ - update all packages
55
+ - Updated dependencies
56
+ - @xyd-js/framework@0.1.0-xyd.80
57
+ - @xyd-js/uniform@0.1.0-xyd.63
58
+
59
+ ## 0.1.0-xyd.47
60
+
61
+ ### Patch Changes
62
+
63
+ - update all packages
64
+ - Updated dependencies
65
+ - @xyd-js/framework@0.1.0-xyd.79
66
+ - @xyd-js/uniform@0.1.0-xyd.62
67
+
68
+ ## 0.1.0-xyd.46
69
+
70
+ ### Patch Changes
71
+
72
+ - update all packages
73
+ - Updated dependencies
74
+ - @xyd-js/framework@0.1.0-xyd.78
75
+ - @xyd-js/uniform@0.1.0-xyd.61
76
+
77
+ ## 0.1.0-xyd.45
78
+
79
+ ### Patch Changes
80
+
81
+ - update all packages
82
+ - Updated dependencies
83
+ - @xyd-js/framework@0.1.0-xyd.77
84
+ - @xyd-js/uniform@0.1.0-xyd.60
85
+
86
+ ## 0.1.0-xyd.44
87
+
88
+ ### Patch Changes
89
+
90
+ - update all packages
91
+ - Updated dependencies
92
+ - @xyd-js/framework@0.1.0-xyd.76
93
+ - @xyd-js/uniform@0.1.0-xyd.59
94
+
95
+ ## 0.1.0-xyd.43
96
+
97
+ ### Patch Changes
98
+
99
+ - update all packages
100
+ - Updated dependencies
101
+ - @xyd-js/framework@0.1.0-xyd.75
102
+ - @xyd-js/uniform@0.1.0-xyd.58
103
+
104
+ ## 0.1.0-xyd.42
105
+
106
+ ### Patch Changes
107
+
108
+ - update all packages
109
+ - update all packages
110
+ - update all packages
111
+ - update all packages
112
+ - update all packages
113
+ - update all packages
114
+ - Updated dependencies
115
+ - Updated dependencies
116
+ - Updated dependencies
117
+ - Updated dependencies
118
+ - Updated dependencies
119
+ - Updated dependencies
120
+ - @xyd-js/framework@0.1.0-xyd.74
121
+ - @xyd-js/uniform@0.1.0-xyd.57
122
+
123
+ ## 0.1.0-xyd.41
124
+
125
+ ### Patch Changes
126
+
127
+ - update all packages
128
+ - Updated dependencies
129
+ - @xyd-js/framework@0.1.0-xyd.73
130
+ - @xyd-js/uniform@0.1.0-xyd.56
131
+
132
+ ## 0.1.0-xyd.40
133
+
134
+ ### Patch Changes
135
+
136
+ - update all packages
137
+ - Updated dependencies
138
+ - @xyd-js/framework@0.1.0-xyd.72
139
+ - @xyd-js/uniform@0.1.0-xyd.55
140
+
141
+ ## 0.1.0-xyd.39
142
+
143
+ ### Patch Changes
144
+
145
+ - update all packages
146
+ - Updated dependencies
147
+ - @xyd-js/framework@0.1.0-xyd.71
148
+ - @xyd-js/uniform@0.1.0-xyd.54
149
+
150
+ ## 0.1.0-xyd.38
151
+
152
+ ### Patch Changes
153
+
154
+ - update all packages
155
+ - Updated dependencies
156
+ - @xyd-js/framework@0.1.0-xyd.70
157
+ - @xyd-js/uniform@0.1.0-xyd.53
158
+
159
+ ## 0.1.0-xyd.37
160
+
161
+ ### Patch Changes
162
+
163
+ - update all packages
164
+ - Updated dependencies
165
+ - @xyd-js/framework@0.1.0-xyd.69
166
+ - @xyd-js/uniform@0.1.0-xyd.52
167
+
168
+ ## 0.1.0-xyd.36
169
+
170
+ ### Patch Changes
171
+
172
+ - update all packages
173
+ - Updated dependencies
174
+ - @xyd-js/framework@0.1.0-xyd.68
175
+ - @xyd-js/uniform@0.1.0-xyd.51
176
+
177
+ ## 0.1.0-xyd.35
178
+
179
+ ### Patch Changes
180
+
181
+ - update all packages
182
+ - Updated dependencies
183
+ - @xyd-js/framework@0.1.0-xyd.67
184
+ - @xyd-js/uniform@0.1.0-xyd.50
185
+
186
+ ## 0.1.0-xyd.34
187
+
188
+ ### Patch Changes
189
+
190
+ - update all packages
191
+ - Updated dependencies
192
+ - @xyd-js/framework@0.1.0-xyd.66
193
+ - @xyd-js/uniform@0.1.0-xyd.49
194
+
195
+ ## 0.1.0-xyd.33
196
+
197
+ ### Patch Changes
198
+
199
+ - update all packages
200
+ - Updated dependencies
201
+ - @xyd-js/framework@0.1.0-xyd.65
202
+ - @xyd-js/uniform@0.1.0-xyd.48
203
+
204
+ ## 0.1.0-xyd.32
205
+
206
+ ### Patch Changes
207
+
208
+ - update all packages
209
+ - Updated dependencies
210
+ - @xyd-js/framework@0.1.0-xyd.64
211
+ - @xyd-js/uniform@0.1.0-xyd.47
212
+
213
+ ## 0.1.0-xyd.31
214
+
215
+ ### Patch Changes
216
+
217
+ - update all packages
218
+ - Updated dependencies
219
+ - @xyd-js/framework@0.1.0-xyd.63
220
+ - @xyd-js/uniform@0.1.0-xyd.46
221
+
222
+ ## 0.1.0-xyd.30
223
+
224
+ ### Patch Changes
225
+
226
+ - update all packages
227
+ - Updated dependencies
228
+ - @xyd-js/framework@0.1.0-xyd.62
229
+ - @xyd-js/uniform@0.1.0-xyd.45
230
+
231
+ ## 0.1.0-xyd.29
232
+
233
+ ### Patch Changes
234
+
235
+ - update all packages
236
+ - Updated dependencies
237
+ - @xyd-js/framework@0.1.0-xyd.61
238
+ - @xyd-js/uniform@0.1.0-xyd.44
239
+
240
+ ## 0.1.0-xyd.28
241
+
242
+ ### Patch Changes
243
+
244
+ - update all packages
245
+ - Updated dependencies
246
+ - @xyd-js/framework@0.1.0-xyd.60
247
+ - @xyd-js/uniform@0.1.0-xyd.43
248
+
249
+ ## 0.1.0-xyd.27
250
+
251
+ ### Patch Changes
252
+
253
+ - update all packages
254
+ - Updated dependencies
255
+ - @xyd-js/framework@0.1.0-xyd.59
256
+ - @xyd-js/uniform@0.1.0-xyd.42
257
+
258
+ ## 0.1.0-xyd.26
259
+
260
+ ### Patch Changes
261
+
262
+ - update all packages
263
+ - Updated dependencies
264
+ - @xyd-js/framework@0.1.0-xyd.58
265
+ - @xyd-js/uniform@0.1.0-xyd.41
266
+
267
+ ## 0.1.0-xyd.25
268
+
269
+ ### Patch Changes
270
+
271
+ - update all packages
272
+ - Updated dependencies
273
+ - @xyd-js/framework@0.1.0-xyd.57
274
+ - @xyd-js/uniform@0.1.0-xyd.40
275
+
276
+ ## 0.1.0-xyd.24
277
+
278
+ ### Patch Changes
279
+
280
+ - update all packages
281
+ - Updated dependencies
282
+ - @xyd-js/framework@0.1.0-xyd.56
283
+ - @xyd-js/uniform@0.1.0-xyd.39
284
+
285
+ ## 0.1.0-xyd.23
286
+
287
+ ### Patch Changes
288
+
289
+ - update all packages
290
+ - Updated dependencies
291
+ - @xyd-js/framework@0.1.0-xyd.55
292
+ - @xyd-js/uniform@0.1.0-xyd.38
293
+
294
+ ## 0.1.0-xyd.22
295
+
296
+ ### Patch Changes
297
+
298
+ - update all packages
299
+ - Updated dependencies
300
+ - @xyd-js/framework@0.1.0-xyd.54
301
+ - @xyd-js/uniform@0.1.0-xyd.37
302
+
303
+ ## 0.1.0-xyd.21
304
+
305
+ ### Patch Changes
306
+
307
+ - update all packages
308
+ - Updated dependencies
309
+ - @xyd-js/framework@0.1.0-xyd.53
310
+ - @xyd-js/uniform@0.1.0-xyd.36
311
+
312
+ ## 0.1.0-xyd.20
313
+
314
+ ### Patch Changes
315
+
316
+ - update all packages
317
+ - Updated dependencies
318
+ - @xyd-js/framework@0.1.0-xyd.52
319
+ - @xyd-js/uniform@0.1.0-xyd.35
320
+
321
+ ## 0.1.0-xyd.19
322
+
323
+ ### Patch Changes
324
+
325
+ - update all packages
326
+ - Updated dependencies
327
+ - @xyd-js/framework@0.1.0-xyd.51
328
+ - @xyd-js/uniform@0.1.0-xyd.34
329
+
330
+ ## 0.1.0-xyd.18
331
+
332
+ ### Patch Changes
333
+
334
+ - update all packages
335
+ - update all packages
336
+ - Updated dependencies
337
+ - Updated dependencies
338
+ - @xyd-js/framework@0.1.0-xyd.50
339
+ - @xyd-js/uniform@0.1.0-xyd.33
340
+
341
+ ## 0.1.0-xyd.17
342
+
343
+ ### Patch Changes
344
+
345
+ - update all packages
346
+ - Updated dependencies
347
+ - @xyd-js/framework@0.1.0-xyd.49
348
+ - @xyd-js/uniform@0.1.0-xyd.32
349
+
350
+ ## 0.1.0-xyd.16
351
+
352
+ ### Patch Changes
353
+
354
+ - update all packages
355
+ - update all packages
356
+ - Updated dependencies
357
+ - Updated dependencies
358
+ - @xyd-js/framework@0.1.0-xyd.48
359
+ - @xyd-js/uniform@0.1.0-xyd.31
360
+
361
+ ## 0.1.0-xyd.15
362
+
363
+ ### Patch Changes
364
+
365
+ - update all packages
366
+ - update all packages
367
+ - Updated dependencies
368
+ - Updated dependencies
369
+ - @xyd-js/framework@0.1.0-xyd.47
370
+ - @xyd-js/uniform@0.1.0-xyd.30
371
+
372
+ ## 0.1.0-xyd.14
373
+
374
+ ### Patch Changes
375
+
376
+ - update all packages
377
+ - update all packages
378
+ - Updated dependencies
379
+ - Updated dependencies
380
+ - @xyd-js/framework@0.1.0-xyd.46
381
+ - @xyd-js/uniform@0.1.0-xyd.29
382
+
383
+ ## 0.1.0-xyd.13
384
+
385
+ ### Patch Changes
386
+
387
+ - update all packages
388
+ - update all packages
389
+ - Updated dependencies
390
+ - Updated dependencies
391
+ - @xyd-js/framework@0.1.0-xyd.45
392
+ - @xyd-js/uniform@0.1.0-xyd.28
393
+
394
+ ## 0.1.0-xyd.12
395
+
396
+ ### Patch Changes
397
+
398
+ - update all packages
399
+ - update all packages
400
+ - Updated dependencies
401
+ - Updated dependencies
402
+ - @xyd-js/framework@0.1.0-xyd.44
403
+ - @xyd-js/uniform@0.1.0-xyd.27
404
+
405
+ ## 0.1.0-xyd.11
406
+
407
+ ### Patch Changes
408
+
409
+ - update all packages
410
+ - update all packages
411
+ - Updated dependencies
412
+ - Updated dependencies
413
+ - @xyd-js/framework@0.1.0-xyd.43
414
+ - @xyd-js/uniform@0.1.0-xyd.26
415
+
416
+ ## 0.1.0-xyd.10
417
+
418
+ ### Patch Changes
419
+
420
+ - update all packages
421
+ - Updated dependencies
422
+ - @xyd-js/framework@0.1.0-xyd.42
423
+ - @xyd-js/uniform@0.1.0-xyd.25
424
+
425
+ ## 0.1.0-xyd.9
426
+
427
+ ### Patch Changes
428
+
429
+ - update all packages
430
+ - Updated dependencies
431
+ - @xyd-js/framework@0.1.0-xyd.41
432
+ - @xyd-js/uniform@0.1.0-xyd.24
433
+
434
+ ## 0.1.0-xyd.8
435
+
436
+ ### Patch Changes
437
+
438
+ - update all packages
439
+ - Updated dependencies
440
+ - @xyd-js/framework@0.1.0-xyd.40
441
+ - @xyd-js/uniform@0.1.0-xyd.23
442
+
443
+ ## 0.1.0-xyd.7
444
+
445
+ ### Patch Changes
446
+
447
+ - update
448
+ - Updated dependencies
449
+ - @xyd-js/framework@0.1.0-xyd.39
450
+ - @xyd-js/uniform@0.1.0-xyd.22
451
+
452
+ ## 0.1.0-xyd.6
453
+
454
+ ### Patch Changes
455
+
456
+ - update
457
+ - Updated dependencies
458
+ - @xyd-js/framework@0.1.0-xyd.38
459
+ - @xyd-js/uniform@0.1.0-xyd.21
460
+
461
+ ## 0.1.0-xyd.5
462
+
463
+ ### Patch Changes
464
+
465
+ - update
466
+ - Updated dependencies
467
+ - @xyd-js/framework@0.1.0-xyd.37
468
+ - @xyd-js/uniform@0.1.0-xyd.20
469
+
470
+ ## 0.1.0-xyd.4
471
+
472
+ ### Patch Changes
473
+
474
+ - update
475
+ - Updated dependencies
476
+ - @xyd-js/framework@0.1.0-xyd.36
477
+ - @xyd-js/uniform@0.1.0-xyd.19
478
+
479
+ ## 0.1.0-xyd.3
480
+
481
+ ### Patch Changes
482
+
483
+ - update
484
+ - Updated dependencies
485
+ - @xyd-js/framework@0.1.0-xyd.35
486
+ - @xyd-js/uniform@0.1.0-xyd.18
487
+
3
488
  ## 0.1.0-xyd.2
4
489
 
5
490
  ### 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.53",
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.68"
15
15
  },
16
16
  "peerDependencies": {
17
- "@xyd-js/framework": "0.1.0-xyd.34"
17
+ "@xyd-js/framework": "0.1.0-xyd.85"
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