= (props) => {
let title = '';
if (props.obj) title = ObjTitleFactory.computeTitle(props.obj);
- const handleRemove = () => {
+ const handleRemove = async () => {
setIsRemoving(true);
- props.removeCallback(props.obj);
+ await props.removeCallback(props.obj);
+ setIsRemoving(false);
};
return (
diff --git a/src/options-ui/components/preview/preview-pin-renderer.ts b/src/options-ui/components/preview/preview-pin-renderer.ts
index 4281df0..ebf10b9 100644
--- a/src/options-ui/components/preview/preview-pin-renderer.ts
+++ b/src/options-ui/components/preview/preview-pin-renderer.ts
@@ -19,7 +19,7 @@ import { ObjPinDto } from '../../../common/model/obj/obj-pin.dto';
import { ObjDto } from '../../../common/model/obj/obj.dto';
import { PinComponent } from '../../../common/components/pin/pin.component';
import { SettingsStore } from '../../store/settings.store';
-import { XpathFactory } from '../../../common/factory/xpath.factory';
+import { XpathFactory } from '@pinmenote/page-compute';
import { fnConsoleLog } from '../../../common/fn/fn-console';
export class PreviewPinRenderer {
diff --git a/src/options-ui/components/settings/open-source/open-source-list.component.tsx b/src/options-ui/components/settings/open-source/open-source-list.component.tsx
index 2d8c3cd..bd956d2 100644
--- a/src/options-ui/components/settings/open-source/open-source-list.component.tsx
+++ b/src/options-ui/components/settings/open-source/open-source-list.component.tsx
@@ -35,7 +35,6 @@ import {
LICENSE_NOBLE_HASHES_CURVES,
LICENSE_NODE_LANGUAGE_DETECT,
LICENSE_PAKO,
- LICENSE_PARSE5,
LICENSE_PINMENOTE_MIT,
LICENSE_PROSEMIRROR,
LICENSE_REACT,
@@ -172,12 +171,6 @@ const ELEMENTS: OpensourceElement[] = [
license: LICENSE_MIT,
url: 'https://github.com/nodeca/pako'
},
- {
- title: 'parse5',
- licenseHeader: LICENSE_PARSE5,
- license: LICENSE_MIT,
- url: 'https://github.com/inikulin/parse5'
- },
{
title: 'pdfjs-dist',
license: LICENSE_APACHE_20,
diff --git a/src/options-ui/components/settings/open-source/opensource-license-text.ts b/src/options-ui/components/settings/open-source/opensource-license-text.ts
index cc02abe..290aefb 100644
--- a/src/options-ui/components/settings/open-source/opensource-license-text.ts
+++ b/src/options-ui/components/settings/open-source/opensource-license-text.ts
@@ -100,9 +100,6 @@ export const LICENSE_PAKO = `(The MIT License)
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
`;
-export const LICENSE_PARSE5 = `Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
-`;
-
export const LICENSE_REACT = `MIT License
Copyright (c) Meta Platforms, Inc. and affiliates.