Skip to content

Commit

Permalink
TASK: Remove NodeTypeName
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed May 15, 2024
1 parent 7919004 commit 1941263
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 20 deletions.
5 changes: 2 additions & 3 deletions Neos.Ui/core/src/application/LinkTypes/Node/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Nullable } from "ts-toolbelt/out/Union/Nullable";
import { OptionalDeep } from "ts-toolbelt/out/Object/Optional";

import {
NodeTypeName,
useSiteNodeContextPath,
useConfiguration,
useI18n,
Expand All @@ -31,9 +30,9 @@ type NodeLinkModel = {
};
type NodeLinkOptions = {
startingPoint: string;
baseNodeType: NodeTypeName;
baseNodeType: string;
loadingDepth: number;
allowedNodeTypes: NodeTypeName[];
allowedNodeTypes: string[];
};

const NodePreview: React.FC<{ nodeId: string }> = (props) => {
Expand Down
5 changes: 2 additions & 3 deletions Neos.Ui/neos-bridge/src/domain/Backend/FlowQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {ContextPath} from "../ContentRepository/ContextPath";
import {NodeTypeName} from '../ContentRepository/NodeType';

export class FlowQuery {
constructor(private q : any) {}
Expand All @@ -15,7 +14,7 @@ export class FlowQuery {
}

public neosUiDefaultNodes(
baseNodeType: NodeTypeName,
baseNodeType: string,
loadingDepth: number,
toggledNodes: ContextPath[],
clipboardNodesContextPaths: ContextPath[]
Expand All @@ -29,7 +28,7 @@ export class FlowQuery {
return this;
}

public search(searchTerm?: string, nodeTypeFilter?: NodeTypeName): this {
public search(searchTerm?: string, nodeTypeFilter?: string): this {
this.q = this.q.search(searchTerm, nodeTypeFilter);
return this;
}
Expand Down
6 changes: 0 additions & 6 deletions Neos.Ui/neos-bridge/src/domain/ContentRepository/NodeType.ts

This file was deleted.

2 changes: 0 additions & 2 deletions Neos.Ui/neos-bridge/src/domain/ContentRepository/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ export {ContextPath, useSiteNodeContextPath, useDocumentNodeContextPath} from '.

export {useDimensionValues} from './Dimensions';

export {NodeTypeName} from './NodeType';

export {usePersonalWorkspaceName} from './Workspace';
5 changes: 2 additions & 3 deletions Neos.Ui/neos-bridge/src/domain/Extensibility/Configuration.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import {NodeTypeName} from '../ContentRepository/NodeType';
import {useNeos} from './NeosContext';

export interface IConfiguration {
nodeTree?: {
loadingDepth?: number
presets?: {
[key: string]: {
baseNodeType?: NodeTypeName
baseNodeType?: string
ui?: {
label?: string
icon?: string
Expand All @@ -28,4 +27,4 @@ export function useConfiguration<R>(selector?: (configuration: IConfiguration) =
} else {
return neos.configuration as R;
}
}
}
1 change: 0 additions & 1 deletion Neos.Ui/neos-bridge/src/domain/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export {
ContextPath,
NodeTypeName,
useSiteNodeContextPath,
useDocumentNodeContextPath,
useDimensionValues,
Expand Down
1 change: 0 additions & 1 deletion Neos.Ui/neos-bridge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export type {
export {
NeosContext,
ContextPath,
NodeTypeName,
useSiteNodeContextPath,
useDocumentNodeContextPath,
useAssetSummary,
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Plugin.js

Large diffs are not rendered by default.

0 comments on commit 1941263

Please sign in to comment.