gradio/js/highlightedtext
pngwn efdc3231a7
Initial SSR refactor (#9102)
* changes

* asd

* fix tests

* fix lint

* fix ts

* fix ts

* cleanup

* cleanup

* fix

* Apply suggestions from code review

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>

* fix

* add changeset

* fix gitignore

* fix changeset

* fix lockfile

* format

* fix

* add changeset

* githunore

* kit bopilerplate

* add changeset

* fix website

* add changeset

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-08-14 15:17:36 +01:00
..
shared Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00
CHANGELOG.md chore: update versions (#8960) 2024-08-08 11:20:08 +01:00
HighlightedText.stories.svelte Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00
highlightedtext.test.ts Initial SSR refactor (#9102) 2024-08-14 15:17:36 +01:00
Index.svelte Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00
package.json chore: update versions (#8960) 2024-08-08 11:20:08 +01:00
README.md Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00

@gradio/highlightedtext

<script>
    import { BaseStaticHighlightedText, BaseInteractiveHighlightedText } from `@gradio/highlightedtext`;
</script>

BaseStaticHighlightedText

	export let value: {
		token: string;
		class_or_confidence: string | number | null;
	}[] = [];
	export let show_legend = false;
	export let show_inline_category = true;
	export let color_map: Record<string, string> = {};
	export let selectable = false;

BaseInteractiveHighlightedText

	export let value: {
		token: string;
		class_or_confidence: string | number | null;
	}[] = [];
	export let show_legend = false;
	export let color_map: Record<string, string> = {};
	export let selectable = false;