corpushub-design-system 0.1.3 → 0.1.5
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/configs/localization/TreeTexts.d.ts +15 -0
- package/dist/configs/localization/TreeTexts.js +15 -0
- package/dist/features/CytoscapeMenu/CytoscapeMenuCanvas.d.ts +1 -1
- package/dist/features/CytoscapeMenu/CytoscapeMenuConstants.d.ts +66 -0
- package/dist/features/CytoscapeMenu/{constants.js → CytoscapeMenuConstants.js} +2 -0
- package/dist/features/CytoscapeMenu/{utils.d.ts → CytoscapeMenuUtils.d.ts} +5 -0
- package/dist/features/CytoscapeMenu/{utils.js → CytoscapeMenuUtils.js} +21 -0
- package/dist/features/CytoscapeMenu/context-menu.d.ts +2 -2
- package/dist/features/CytoscapeMenu/context-menu.js +17 -15
- package/dist/features/CytoscapeMenu/cytoscape-context-menus.d.ts +1 -1
- package/dist/features/CytoscapeMenu/cytoscape-context-menus.js +225 -38
- package/dist/features/CytoscapeMenu/favorites.d.ts +12 -0
- package/dist/features/CytoscapeMenu/favorites.js +77 -0
- package/dist/features/CytoscapeMenu/index.d.ts +1 -1
- package/dist/features/CytoscapeMenu/phrase-picker.d.ts +90 -0
- package/dist/features/CytoscapeMenu/phrase-picker.js +538 -0
- package/dist/features/CytoscapeMenu/style.scss +462 -19
- package/dist/features/TreeView/TreeView.d.ts +7 -1
- package/dist/features/TreeView/TreeView.js +40 -11
- package/dist/features/TreeView/TreeViewImportPenn/TreeViewImportPenn.d.ts +7 -0
- package/dist/features/TreeView/TreeViewImportPenn/TreeViewImportPenn.js +26 -0
- package/dist/features/TreeView/TreeViewImportPenn/index.d.ts +2 -0
- package/dist/features/TreeView/TreeViewImportPenn/index.js +2 -0
- package/dist/features/TreeView/TreeViewImportPenn/style.scss +22 -0
- package/dist/features/index.d.ts +1 -1
- package/package.json +4 -3
- package/dist/features/CytoscapeMenu/constants.d.ts +0 -38
package/dist/features/index.d.ts
CHANGED
|
@@ -21,6 +21,6 @@ export { default as TreeViewSearch } from "./TreeView/TreeViewSearch/TreeViewSea
|
|
|
21
21
|
export type { SearchCriteria } from "./TreeView/TreeViewSearch/TreeViewSearch";
|
|
22
22
|
export { default as CytoscapeMenuCanvas } from "./CytoscapeMenu/CytoscapeMenuCanvas";
|
|
23
23
|
export { registerCytoscapeContextMenus, contextMenus } from "./CytoscapeMenu";
|
|
24
|
-
export type { CytoscapeContextMenuOptions, MenuItemOption, ContextMenusInstance, } from "./CytoscapeMenu";
|
|
24
|
+
export type { CytoscapeContextMenuOptions, MenuItemOption, ContextMenuLayout, ContextMenusInstance, FavoritesAdapter, FavoritesMap, } from "./CytoscapeMenu";
|
|
25
25
|
export { PageRenderView, collapseElementsForTier, shouldSkipJunctionContinuationElement, shouldSkipSegmentationElement, shouldSkipSegmentationToken, findSegmentationGroupBounds, isTokenBearingCollapsed, tokenRefToToken, isTokenRefVisible, getEditionTierOrder, resolveHighestEditionTierForDisplay, resolveEffectiveEditionTierForDisplay, shouldApplySegmentationOverJunction, JUNCTION_TIER, SEGMENTATION_TIER, } from "./PageRender";
|
|
26
26
|
export type { PageRenderElement, PageRenderElementType, PageRenderViewProps, PageRenderTokenContext, TokenRef, CollapsedPageRenderElement, TokenClickSource, TokenClickModifiers, } from "./PageRender";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corpushub-design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"./styles/main": "./dist/styles/main.scss",
|
|
54
54
|
"./styles/base/typographs": "./dist/styles/base/_typographs.scss",
|
|
55
|
+
"./features/CytoscapeMenu/style.scss": "./dist/features/CytoscapeMenu/style.scss",
|
|
55
56
|
"./dist/configs/tour/style.scss": "./dist/configs/tour/style.scss"
|
|
56
57
|
},
|
|
57
58
|
"files": [
|
|
@@ -136,8 +137,8 @@
|
|
|
136
137
|
"scripts": {
|
|
137
138
|
"start": "storybook dev -p 6006",
|
|
138
139
|
"build-storybook": "storybook build",
|
|
139
|
-
"build": "tsc && node scripts/copy-package-json.js && npm run copy-static",
|
|
140
|
-
"build-publish": "tsc && npm run copy-static",
|
|
140
|
+
"build": "tsc -p tsconfig.build.json && node scripts/copy-package-json.js && npm run copy-static",
|
|
141
|
+
"build-publish": "tsc -p tsconfig.build.json && npm run copy-static",
|
|
141
142
|
"copy-static": "node scripts/copy-static.js",
|
|
142
143
|
"test": "vitest run"
|
|
143
144
|
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export declare const CXT_MENU_CSS_CLASS = "cy-context-menus-cxt-menu";
|
|
2
|
-
export declare const MENUITEM_CSS_CLASS = "cy-context-menus-cxt-menuitem";
|
|
3
|
-
export declare const DIVIDER_CSS_CLASS = "cy-context-menus-divider";
|
|
4
|
-
export declare const INDICATOR_CSS_CLASS = "cy-context-menus-submenu-indicator";
|
|
5
|
-
export interface MenuItemImage {
|
|
6
|
-
src: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
y: string;
|
|
10
|
-
x: string;
|
|
11
|
-
}
|
|
12
|
-
import type { EventObject } from 'cytoscape';
|
|
13
|
-
export interface MenuItemOption {
|
|
14
|
-
id: string;
|
|
15
|
-
content: string;
|
|
16
|
-
tooltipText?: string;
|
|
17
|
-
selector: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
image?: MenuItemImage;
|
|
20
|
-
show?: boolean;
|
|
21
|
-
submenu?: MenuItemOption[];
|
|
22
|
-
coreAsWell?: boolean;
|
|
23
|
-
onClickFunction?: (event: EventObject) => void;
|
|
24
|
-
hasTrailingDivider?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface SubmenuIndicatorOption {
|
|
27
|
-
src: string;
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
}
|
|
31
|
-
export interface CytoscapeContextMenuOptions {
|
|
32
|
-
evtType?: string;
|
|
33
|
-
menuItems?: MenuItemOption[];
|
|
34
|
-
menuItemClasses?: string[];
|
|
35
|
-
contextMenuClasses?: string[];
|
|
36
|
-
submenuIndicator?: SubmenuIndicatorOption;
|
|
37
|
-
}
|
|
38
|
-
export declare const DEFAULT_OPTS: CytoscapeContextMenuOptions;
|