@flux-ui/visuals 3.2.0-beta.10 → 3.2.0-beta.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flux-ui/visuals",
3
3
  "description": "Visual effect components for the Flux UI library.",
4
- "version": "3.2.0-beta.10",
4
+ "version": "3.2.0-beta.11",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/basmilius",
@@ -51,7 +51,8 @@
51
51
  "dependencies": {
52
52
  "@basmilius/common": "^3.50.0",
53
53
  "@basmilius/utils": "^3.50.0",
54
- "@flux-ui/internals": "3.2.0-beta.10",
54
+ "@flux-ui/internals": "3.2.0-beta.11",
55
+ "@flux-ui/types": "3.2.0-beta.11",
55
56
  "clsx": "^2.1.1",
56
57
  "rough-notation": "^0.5.1"
57
58
  },
@@ -24,9 +24,10 @@
24
24
  lang="ts"
25
25
  setup>
26
26
  import { useInView } from '@flux-ui/internals';
27
+ import type { BorderBeamVariant } from '@flux-ui/types';
27
28
  import { clsx } from 'clsx';
28
29
  import { computed, ref, unref, useTemplateRef, watch } from 'vue';
29
- import { useBorderBeamPulse, type BorderBeamVariant } from '~flux/visuals/composable/private';
30
+ import { useBorderBeamPulse } from '~flux/visuals/composable/private';
30
31
  import $style from '~flux/visuals/css/component/BorderBeam.module.scss';
31
32
 
32
33
  const emit = defineEmits<{
@@ -10,9 +10,10 @@
10
10
  lang="ts"
11
11
  setup>
12
12
  import { prefersReducedMotion, useInView } from '@flux-ui/internals';
13
+ import type { HighlighterVariant } from '@flux-ui/types';
13
14
  import { annotate } from 'rough-notation';
14
15
  import { computed, onBeforeUnmount, onMounted, shallowRef, useTemplateRef, watch } from 'vue';
15
- import { useHighlighterGroupInjection, type HighlighterGroupEntry, type HighlighterVariant } from '~flux/visuals/composable/private';
16
+ import { useHighlighterGroupInjection, type HighlighterGroupEntry } from '~flux/visuals/composable/private';
16
17
  import $style from '~flux/visuals/css/component/Highlighter.module.scss';
17
18
 
18
19
  const emit = defineEmits<{
@@ -7,7 +7,8 @@
7
7
  <script
8
8
  lang="ts"
9
9
  setup>
10
- import { useHighlighterGroup, type HighlighterGroupProps } from '~flux/visuals/composable/private';
10
+ import type { HighlighterGroupProps } from '@flux-ui/types';
11
+ import { useHighlighterGroup } from '~flux/visuals/composable/private';
11
12
  import $style from '~flux/visuals/css/component/Highlighter.module.scss';
12
13
 
13
14
  const props = defineProps<HighlighterGroupProps>();
@@ -1,2 +1,2 @@
1
- export { default as useBorderBeamPulse, type BorderBeamVariant } from './useBorderBeamPulse';
2
- export { default as useHighlighterGroup, useHighlighterGroupInjection, type HighlighterGroupContext, type HighlighterGroupEntry, type HighlighterGroupProps, type HighlighterVariant } from './useHighlighterGroup';
1
+ export { default as useBorderBeamPulse } from './useBorderBeamPulse';
2
+ export { default as useHighlighterGroup, useHighlighterGroupInjection, type HighlighterGroupContext, type HighlighterGroupEntry } from './useHighlighterGroup';
@@ -1,8 +1,7 @@
1
1
  import { prefersReducedMotion } from '@flux-ui/internals';
2
+ import type { BorderBeamVariant } from '@flux-ui/types';
2
3
  import { unref, watchEffect, type Ref } from 'vue';
3
4
 
4
- export type BorderBeamVariant = 'sm' | 'md' | 'line' | 'pulse-inner' | 'pulse-outside';
5
-
6
5
  type PulseOscillator = {
7
6
  readonly prop: string;
8
7
  readonly a: number;
@@ -1,21 +1,9 @@
1
+ import type { HighlighterGroupProps } from '@flux-ui/types';
1
2
  import { annotationGroup } from 'rough-notation';
2
3
  import { inject, onScopeDispose, provide, type InjectionKey } from 'vue';
3
4
 
4
5
  type Annotation = Parameters<typeof annotationGroup>[0][number];
5
6
 
6
- export type HighlighterVariant = 'highlight' | 'box' | 'circle' | 'underline' | 'strike-through' | 'crossed-off' | 'bracket';
7
-
8
- export type HighlighterGroupProps = {
9
- readonly variant?: HighlighterVariant;
10
- readonly color?: string;
11
- readonly strokeWidth?: number;
12
- readonly animationDuration?: number;
13
- readonly iterations?: number;
14
- readonly padding?: number;
15
- readonly multiline?: boolean;
16
- readonly whenInView?: boolean;
17
- };
18
-
19
7
  export type HighlighterGroupEntry = {
20
8
  readonly element: HTMLElement;
21
9
  getAnnotation(): Annotation | null;