@embedpdf/viewer-chrome 3.0.0-next.6 → 3.0.0-next.7

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
@@ -5,8 +5,8 @@ import { DocumentGate, DocumentsToken, Viewer, createCapabilityToken, definePlug
5
5
  import { Stage, StageToken, StageToken as StageToken$1, stagePlugin, usePages } from "@embedpdf/react/stage";
6
6
  import { RenderLayer, renderPlugin } from "@embedpdf/react/render";
7
7
  import { pageEditPlugin } from "@embedpdf/react/page-edit";
8
- import { InteractionToken, InteractionToken as InteractionToken$1, interactionPlugin, useTool, useToolCursor } from "@embedpdf/react/interaction";
9
- import { SelectionClipboard, SelectionLayer, SelectionMenu, SelectionToken, selectionPlugin } from "@embedpdf/react/selection";
8
+ import { InteractionToken, InteractionToken as InteractionToken$1, feedbackPlugin, interactionPlugin, useTool, useToolCursor, vibrationFeedback } from "@embedpdf/react/interaction";
9
+ import { SelectionClipboard, SelectionHandles, SelectionLayer, SelectionMenu, SelectionToken, selectionPlugin } from "@embedpdf/react/selection";
10
10
  import { AnnotationLayer, AnnotationToken, AnnotationToken as AnnotationToken$1, annotationPlugin, useAnnotation, useAnnotationDefaults, useAnnotationSelected, useFilePickerProvider, useSelectionFlags, useSelectionProps } from "@embedpdf/react/annotation";
11
11
  import { RedactionToken, RedactionToken as RedactionToken$1, redactionPlugin, usePendingRedactions, useRedaction } from "@embedpdf/react/redaction";
12
12
  import { FormToken, formPlugin, formWidgetRenderer, useFormScriptingProvider } from "@embedpdf/react/form";
@@ -3361,10 +3361,10 @@ function Shell() {
3361
3361
  /* @__PURE__ */ jsx(ArmedToolCursor, {}),
3362
3362
  /* @__PURE__ */ jsx(SelectionClipboard, {}),
3363
3363
  /* @__PURE__ */ jsx(Stage, {
3364
- interaction: true,
3365
3364
  overlay: /* @__PURE__ */ jsxs(Fragment$1, { children: [
3366
3365
  /* @__PURE__ */ jsx(AnnotationStrip, {}),
3367
3366
  /* @__PURE__ */ jsx(SelectionStrip, {}),
3367
+ /* @__PURE__ */ jsx(SelectionHandles, {}),
3368
3368
  /* @__PURE__ */ jsx(Scrollbar, { axis: "y" }),
3369
3369
  /* @__PURE__ */ jsx(Scrollbar, { axis: "x" })
3370
3370
  ] }),
@@ -3499,10 +3499,7 @@ function FullViewer({ engine, initialDocuments, fallback, commands, icons, strin
3499
3499
  for (const c of resolved.commands) if (c.icon && !(c.icon in ICON_PATHS) && !(c.icon in resolved.icons)) console.warn(`[embedpdf] command "${c.id}": unknown icon "${c.icon}"`);
3500
3500
  }, [resolved]);
3501
3501
  const [plugins] = useState(() => [
3502
- stagePlugin({
3503
- layout: "vertical",
3504
- interaction: true
3505
- }),
3502
+ stagePlugin({ layout: "vertical" }),
3506
3503
  stagePlugin({
3507
3504
  id: "stage-thumbs",
3508
3505
  token: ThumbsStageToken,
@@ -3527,6 +3524,7 @@ function FullViewer({ engine, initialDocuments, fallback, commands, icons, strin
3527
3524
  renderPlugin(),
3528
3525
  pageEditPlugin(),
3529
3526
  interactionPlugin({ defaultTool: "pointer" }),
3527
+ feedbackPlugin({ provider: vibrationFeedback }),
3530
3528
  selectionPlugin(),
3531
3529
  annotationPlugin({ tools: [{
3532
3530
  id: "arrow",