@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/dist/component/FluxVisualBorderBeam.vue.d.ts +1 -1
- package/dist/component/FluxVisualHighlighter.vue.d.ts +1 -1
- package/dist/component/FluxVisualHighlighterGroup.vue.d.ts +1 -1
- package/dist/composable/private/index.d.ts +2 -2
- package/dist/composable/private/useBorderBeamPulse.d.ts +1 -1
- package/dist/composable/private/useHighlighterGroup.d.ts +1 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/component/FluxVisualBorderBeam.vue +2 -1
- package/src/component/FluxVisualHighlighter.vue +2 -1
- package/src/component/FluxVisualHighlighterGroup.vue +2 -1
- package/src/composable/private/index.ts +2 -2
- package/src/composable/private/useBorderBeamPulse.ts +1 -2
- package/src/composable/private/useHighlighterGroup.ts +1 -13
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.
|
|
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.
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
2
|
-
export { default as useHighlighterGroup, useHighlighterGroupInjection, type HighlighterGroupContext, type HighlighterGroupEntry
|
|
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;
|