@vrojs/base 0.0.2 → 0.0.3

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/index.js CHANGED
@@ -1,35 +1,37 @@
1
1
  import { ComponentManager as e } from "./utils/ComponentManager.js";
2
2
  import { parseDecimalString as t, parseNumberString as m } from "./utils/format.js";
3
- import { mountComponent as f } from "./utils/mountComponent.js";
4
- import { parseType as a } from "./utils/parseType.js";
5
- import { definePropType as i } from "./utils/props.js";
6
- import { renderComponent as g } from "./utils/renderComponent.js";
7
- import { showComponent as d } from "./utils/showComponent.js";
8
- import { withInstall as v } from "./utils/withInstall.js";
9
- import { VroAspectRatio as c } from "./vro-aspect-ratio/index.js";
10
- import { VroInput as I } from "./vro-input/index.js";
11
- import { VroLoading as w } from "./vro-loading/index.js";
12
- import { VroVnr as A } from "./vro-vnr/index.js";
13
- import { vroAspectRatioProps as R } from "./vro-aspect-ratio/types.js";
14
- import { vroInputProps as T } from "./vro-input/types.js";
15
- import { vroLoadingProps as D } from "./vro-loading/types.js";
16
- import { vroVnrProps as N } from "./vro-vnr/types.js";
3
+ import { getSlotEntries as f } from "./utils/getSlotEntries.js";
4
+ import { mountComponent as s } from "./utils/mountComponent.js";
5
+ import { parseType as i } from "./utils/parseType.js";
6
+ import { definePropType as V } from "./utils/props.js";
7
+ import { renderComponent as d } from "./utils/renderComponent.js";
8
+ import { showComponent as u } from "./utils/showComponent.js";
9
+ import { withInstall as C } from "./utils/withInstall.js";
10
+ import { VroAspectRatio as I } from "./vro-aspect-ratio/index.js";
11
+ import { VroInput as h } from "./vro-input/index.js";
12
+ import { VroLoading as y } from "./vro-loading/index.js";
13
+ import { VroVnr as L } from "./vro-vnr/index.js";
14
+ import { vroAspectRatioProps as T } from "./vro-aspect-ratio/types.js";
15
+ import { vroInputProps as D } from "./vro-input/types.js";
16
+ import { vroLoadingProps as M } from "./vro-loading/types.js";
17
+ import { vroVnrProps as j } from "./vro-vnr/types.js";
17
18
  export {
18
19
  e as ComponentManager,
19
- c as VroAspectRatio,
20
- I as VroInput,
21
- w as VroLoading,
22
- A as VroVnr,
23
- i as definePropType,
24
- f as mountComponent,
20
+ I as VroAspectRatio,
21
+ h as VroInput,
22
+ y as VroLoading,
23
+ L as VroVnr,
24
+ V as definePropType,
25
+ f as getSlotEntries,
26
+ s as mountComponent,
25
27
  t as parseDecimalString,
26
28
  m as parseNumberString,
27
- a as parseType,
28
- g as renderComponent,
29
- d as showComponent,
30
- R as vroAspectRatioProps,
31
- T as vroInputProps,
32
- D as vroLoadingProps,
33
- N as vroVnrProps,
34
- v as withInstall
29
+ i as parseType,
30
+ d as renderComponent,
31
+ u as showComponent,
32
+ T as vroAspectRatioProps,
33
+ D as vroInputProps,
34
+ M as vroLoadingProps,
35
+ j as vroVnrProps,
36
+ C as withInstall
35
37
  };
@@ -0,0 +1,5 @@
1
+ export interface SlotEntry {
2
+ source: string;
3
+ target: string;
4
+ }
5
+ export declare const getSlotEntries: (slots?: Record<string, string>) => SlotEntry[];
@@ -0,0 +1,4 @@
1
+ const n = (t) => Object.entries(t ?? {}).map(([e, r]) => ({ source: e, target: r }));
2
+ export {
3
+ n as getSlotEntries
4
+ };
@@ -1,5 +1,6 @@
1
1
  export * from './ComponentManager';
2
2
  export * from './format';
3
+ export * from './getSlotEntries';
3
4
  export * from './mountComponent';
4
5
  export * from './parseType';
5
6
  export * from './props';
@@ -1,19 +1,21 @@
1
1
  import { ComponentManager as e } from "./ComponentManager.js";
2
- import { parseDecimalString as t, parseNumberString as m } from "./format.js";
3
- import { mountComponent as f } from "./mountComponent.js";
4
- import { parseType as a } from "./parseType.js";
5
- import { definePropType as s } from "./props.js";
6
- import { renderComponent as g } from "./renderComponent.js";
7
- import { showComponent as d } from "./showComponent.js";
8
- import { withInstall as u } from "./withInstall.js";
2
+ import { parseDecimalString as p, parseNumberString as m } from "./format.js";
3
+ import { getSlotEntries as f } from "./getSlotEntries.js";
4
+ import { mountComponent as a } from "./mountComponent.js";
5
+ import { parseType as s } from "./parseType.js";
6
+ import { definePropType as l } from "./props.js";
7
+ import { renderComponent as S } from "./renderComponent.js";
8
+ import { showComponent as h } from "./showComponent.js";
9
+ import { withInstall as w } from "./withInstall.js";
9
10
  export {
10
11
  e as ComponentManager,
11
- s as definePropType,
12
- f as mountComponent,
13
- t as parseDecimalString,
12
+ l as definePropType,
13
+ f as getSlotEntries,
14
+ a as mountComponent,
15
+ p as parseDecimalString,
14
16
  m as parseNumberString,
15
- a as parseType,
16
- g as renderComponent,
17
- d as showComponent,
18
- u as withInstall
17
+ s as parseType,
18
+ S as renderComponent,
19
+ h as showComponent,
20
+ w as withInstall
19
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrojs/base",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "vrojs ui",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",