@soomo/react-text-annotator 3.0.0-staging.1
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/TextAnnotator.d.ts +13 -0
- package/dist/TextAnnotator.d.ts.map +1 -0
- package/dist/TextAnnotatorPlugin.d.ts +5 -0
- package/dist/TextAnnotatorPlugin.d.ts.map +1 -0
- package/dist/TextAnnotatorPopup.d.ts +13 -0
- package/dist/TextAnnotatorPopup.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/react-text-annotator.css +1 -0
- package/dist/react-text-annotator.es.js +13 -0
- package/dist/react-text-annotator.es.js.map +1 -0
- package/dist/react-text-annotator.es10.js +38 -0
- package/dist/react-text-annotator.es10.js.map +1 -0
- package/dist/react-text-annotator.es11.js +892 -0
- package/dist/react-text-annotator.es11.js.map +1 -0
- package/dist/react-text-annotator.es12.js +117 -0
- package/dist/react-text-annotator.es12.js.map +1 -0
- package/dist/react-text-annotator.es13.js +312 -0
- package/dist/react-text-annotator.es13.js.map +1 -0
- package/dist/react-text-annotator.es14.js +61 -0
- package/dist/react-text-annotator.es14.js.map +1 -0
- package/dist/react-text-annotator.es15.js +23 -0
- package/dist/react-text-annotator.es15.js.map +1 -0
- package/dist/react-text-annotator.es16.js +5 -0
- package/dist/react-text-annotator.es16.js.map +1 -0
- package/dist/react-text-annotator.es17.js +5 -0
- package/dist/react-text-annotator.es17.js.map +1 -0
- package/dist/react-text-annotator.es2.js +64 -0
- package/dist/react-text-annotator.es2.js.map +1 -0
- package/dist/react-text-annotator.es3.js +29 -0
- package/dist/react-text-annotator.es3.js.map +1 -0
- package/dist/react-text-annotator.es4.js +33 -0
- package/dist/react-text-annotator.es4.js.map +1 -0
- package/dist/react-text-annotator.es5.js +53 -0
- package/dist/react-text-annotator.es5.js.map +1 -0
- package/dist/react-text-annotator.es6.js +13 -0
- package/dist/react-text-annotator.es6.js.map +1 -0
- package/dist/react-text-annotator.es7.js +2 -0
- package/dist/react-text-annotator.es7.js.map +1 -0
- package/dist/react-text-annotator.es8.js +491 -0
- package/dist/react-text-annotator.es8.js.map +1 -0
- package/dist/react-text-annotator.es9.js +5 -0
- package/dist/react-text-annotator.es9.js.map +1 -0
- package/dist/tei/CETEIcean.d.ts +8 -0
- package/dist/tei/CETEIcean.d.ts.map +1 -0
- package/dist/tei/TEIAnnotator.d.ts +10 -0
- package/dist/tei/TEIAnnotator.d.ts.map +1 -0
- package/dist/tei/index.d.ts +3 -0
- package/dist/tei/index.d.ts.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Filter, FormatAdapter } from '@annotorious/react';
|
|
3
|
+
import type { HighlightStyleExpression, TextAnnotation, TextAnnotatorOptions } from '@soomo/text-annotator';
|
|
4
|
+
import '@soomo/text-annotator/dist/text-annotator.css';
|
|
5
|
+
export interface TextAnnotatorProps<E extends unknown> extends Omit<TextAnnotatorOptions<E>, 'adapter'> {
|
|
6
|
+
children?: ReactNode | JSX.Element;
|
|
7
|
+
adapter?: FormatAdapter<TextAnnotation, E> | ((container: HTMLElement) => FormatAdapter<TextAnnotation, E>) | null;
|
|
8
|
+
filter?: Filter;
|
|
9
|
+
style?: HighlightStyleExpression;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const TextAnnotator: <E extends unknown>(props: TextAnnotatorProps<E>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=TextAnnotator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAnnotator.d.ts","sourceRoot":"","sources":["../src/TextAnnotator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAiC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAsB,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG5G,OAAO,+CAA+C,CAAC;AAEvD,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,OAAO,CAAE,SAAQ,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC;IAErG,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;IAEnC,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,WAAW,KAAK,aAAa,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAEnH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,wBAAwB,CAAC;IAEjC,SAAS,CAAC,EAAE,MAAM,CAAC;CAEpB;AAED,eAAO,MAAM,aAAa,6BAA8B,mBAAmB,CAAC,CAAC,4CAqC5E,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnnotatorPlugin, AnnotoriousPlugin } from '@annotorious/react';
|
|
2
|
+
import type { TextAnnotator } from '@soomo/text-annotator';
|
|
3
|
+
export type TextAnnotatorPlugin<T extends unknown = TextAnnotator> = AnnotatorPlugin<T>;
|
|
4
|
+
export { AnnotoriousPlugin as TextAnnotatorPlugin };
|
|
5
|
+
//# sourceMappingURL=TextAnnotatorPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAnnotatorPlugin.d.ts","sourceRoot":"","sources":["../src/TextAnnotatorPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,OAAO,GAAG,aAAa,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;AACxF,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TextAnnotation } from '@soomo/text-annotator';
|
|
3
|
+
export interface TextAnnotatorPopupProps {
|
|
4
|
+
selected: {
|
|
5
|
+
annotation: TextAnnotation;
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
export interface TextAnnotatorPopupContainerProps {
|
|
10
|
+
popup(props: TextAnnotatorPopupProps): ReactNode | JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export declare const TextAnnotatorPopup: (props: TextAnnotatorPopupContainerProps) => import("react").ReactPortal;
|
|
13
|
+
//# sourceMappingURL=TextAnnotatorPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAnnotatorPopup.d.ts","sourceRoot":"","sources":["../src/TextAnnotatorPopup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAiB,cAAc,EAAsB,MAAM,uBAAuB,CAAC;AAG1F,MAAM,WAAW,uBAAuB;IAEtC,QAAQ,EAAE;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;CAEhE;AAED,MAAM,WAAW,gCAAgC;IAE/C,KAAK,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;CAEhE;AAED,eAAO,MAAM,kBAAkB,UAAW,gCAAgC,gCA0DzE,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './tei';
|
|
2
|
+
export * from './TextAnnotator';
|
|
3
|
+
export * from './TextAnnotatorPopup';
|
|
4
|
+
export * from './TextAnnotatorPlugin';
|
|
5
|
+
export type { AnnotoriousPlugin } from '@annotorious/react';
|
|
6
|
+
export type { TextAnnotation, TextAnnotator as RecogitoTextAnnotator } from '@soomo/text-annotator';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AAGtC,YAAY,EACV,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,cAAc,EACd,aAAa,IAAI,qBAAqB,EACvC,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html,body{overscroll-behavior-y:none}.r6o-annotatable{-webkit-tap-highlight-color:transparent}.r6o-annotatable,.r6o-annotatable *{position:relative}.hovered *{cursor:pointer}.r6o-highlight-layer{left:0;position:fixed;top:0;bottom:0;width:100vw;pointer-events:none}*::selection,::selection{background:#0080ff2e}::-moz-selection{background:#0080ff2e}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CETEIcean } from "./react-text-annotator.es2.js";
|
|
2
|
+
import { TEIAnnotator } from "./react-text-annotator.es3.js";
|
|
3
|
+
import { TextAnnotator } from "./react-text-annotator.es4.js";
|
|
4
|
+
import { TextAnnotatorPopup } from "./react-text-annotator.es5.js";
|
|
5
|
+
import { AnnotoriousPlugin } from "@annotorious/react";
|
|
6
|
+
export {
|
|
7
|
+
CETEIcean,
|
|
8
|
+
TEIAnnotator,
|
|
9
|
+
TextAnnotator,
|
|
10
|
+
AnnotoriousPlugin as TextAnnotatorPlugin,
|
|
11
|
+
TextAnnotatorPopup
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=react-text-annotator.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __exports as reactJsxRuntime_production_min } from "./react-text-annotator.es16.js";
|
|
2
|
+
import require$$0 from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var hasRequiredReactJsxRuntime_production_min;
|
|
13
|
+
function requireReactJsxRuntime_production_min() {
|
|
14
|
+
if (hasRequiredReactJsxRuntime_production_min)
|
|
15
|
+
return reactJsxRuntime_production_min;
|
|
16
|
+
hasRequiredReactJsxRuntime_production_min = 1;
|
|
17
|
+
var f = require$$0, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
18
|
+
function q(c, a, g) {
|
|
19
|
+
var b, d = {}, e = null, h = null;
|
|
20
|
+
void 0 !== g && (e = "" + g);
|
|
21
|
+
void 0 !== a.key && (e = "" + a.key);
|
|
22
|
+
void 0 !== a.ref && (h = a.ref);
|
|
23
|
+
for (b in a)
|
|
24
|
+
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
25
|
+
if (c && c.defaultProps)
|
|
26
|
+
for (b in a = c.defaultProps, a)
|
|
27
|
+
void 0 === d[b] && (d[b] = a[b]);
|
|
28
|
+
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
29
|
+
}
|
|
30
|
+
reactJsxRuntime_production_min.Fragment = l;
|
|
31
|
+
reactJsxRuntime_production_min.jsx = q;
|
|
32
|
+
reactJsxRuntime_production_min.jsxs = q;
|
|
33
|
+
return reactJsxRuntime_production_min;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
requireReactJsxRuntime_production_min as __require
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=react-text-annotator.es10.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es10.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AASa,MAAI,IAAE,YAAiB,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAE,IAAE,OAAO,UAAU,gBAAe,IAAE,EAAE,mDAAmD,mBAAkB,IAAE,EAAC,KAAI,MAAG,KAAI,MAAG,QAAO,MAAG,UAAS,KAAE;AAClP,WAAS,EAAE,GAAE,GAAE,GAAE;AAAC,QAAI,GAAE,IAAE,IAAG,IAAE,MAAK,IAAE;AAAK,eAAS,MAAI,IAAE,KAAG;AAAG,eAAS,EAAE,QAAM,IAAE,KAAG,EAAE;AAAK,eAAS,EAAE,QAAM,IAAE,EAAE;AAAK,SAAI,KAAK;AAAE,QAAE,KAAK,GAAE,CAAC,KAAG,CAAC,EAAE,eAAe,CAAC,MAAI,EAAE,CAAC,IAAE,EAAE,CAAC;AAAG,QAAG,KAAG,EAAE;AAAa,WAAI,KAAK,IAAE,EAAE,cAAa;AAAE,mBAAS,EAAE,CAAC,MAAI,EAAE,CAAC,IAAE,EAAE,CAAC;AAAG,WAAM,EAAC,UAAS,GAAE,MAAK,GAAE,KAAI,GAAE,KAAI,GAAE,OAAM,GAAE,QAAO,EAAE,QAAO;AAAA,EAAC;AAAC,4CAAiB;AAAE,iCAAW,MAAC;AAAE,iCAAA,OAAa;;;","x_google_ignoreList":[0]}
|