mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
chore: add license header (#432)
* chore: add license-header * chore: add precommit * chore: add license header * fix: only js & shell style
This commit is contained in:
parent
7c6c7ab7a2
commit
cbefaa54fb
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
const { defineConfig } = require('@flowgram.ai/eslint-config');
|
const { defineConfig } = require('@flowgram.ai/eslint-config');
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { pluginReact } from '@rsbuild/plugin-react';
|
import { pluginReact } from '@rsbuild/plugin-react';
|
||||||
import { defineConfig } from '@rsbuild/core';
|
import { defineConfig } from '@rsbuild/core';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
|
|
||||||
import { Editor } from './editor';
|
import { Editor } from './editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowNodeEntity, useNodeRender, useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowNodeEntity, useNodeRender, useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
||||||
import { IconDeleteStroked } from '@douyinfe/semi-icons';
|
import { IconDeleteStroked } from '@douyinfe/semi-icons';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { type FlowNodeEntity, useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
import { type FlowNodeEntity, useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
||||||
import { IconPlus } from '@douyinfe/semi-icons';
|
import { IconPlus } from '@douyinfe/semi-icons';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { useClientContext, FlowLayoutDefault } from '@flowgram.ai/fixed-layout-editor';
|
import { useClientContext, FlowLayoutDefault } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowMinimapService, MinimapRender } from '@flowgram.ai/minimap-plugin';
|
import { FlowMinimapService, MinimapRender } from '@flowgram.ai/minimap-plugin';
|
||||||
import { useService } from '@flowgram.ai/fixed-layout-editor';
|
import { useService } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import {
|
import {
|
||||||
FlowNodeEntity,
|
FlowNodeEntity,
|
||||||
FlowOperationService,
|
FlowOperationService,
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useEffect, useState, useCallback } from 'react';
|
import { useEffect, useState, useCallback } from 'react';
|
||||||
|
|
||||||
import { usePlaygroundTools, useClientContext, useRefresh } from '@flowgram.ai/fixed-layout-editor';
|
import { usePlaygroundTools, useClientContext, useRefresh } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const condition: FlowDocumentJSON = {
|
export const condition: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const dynamicSplit: FlowDocumentJSON = {
|
export const dynamicSplit: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON, FlowLayoutDefault } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON, FlowLayoutDefault } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { tryCatch } from './tryCatch';
|
import { tryCatch } from './tryCatch';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const loop: FlowDocumentJSON = {
|
export const loop: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const mindmap: FlowDocumentJSON = {
|
export const mindmap: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const multiInputs: FlowDocumentJSON = {
|
export const multiInputs: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const multiOutputs: FlowDocumentJSON = {
|
export const multiOutputs: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
export const tryCatch: FlowDocumentJSON = {
|
export const tryCatch: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FixedLayoutEditorProvider, EditorRenderer } from '@flowgram.ai/fixed-layout-editor';
|
import { FixedLayoutEditorProvider, EditorRenderer } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import '@flowgram.ai/fixed-layout-editor/index.css';
|
import '@flowgram.ai/fixed-layout-editor/index.css';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
import { createMinimapPlugin } from '@flowgram.ai/minimap-plugin';
|
import { createMinimapPlugin } from '@flowgram.ai/minimap-plugin';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
.demo-fixed-node {
|
.demo-fixed-node {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|||||||
@ -1 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export { Editor as DemoFixedLayout } from './editor';
|
export { Editor as DemoFixedLayout } from './editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowDocumentJSON } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { condition as conditionDemo } from './data/condition';
|
import { condition as conditionDemo } from './data/condition';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { FlowNodeRegistry } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowNodeRegistry } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
const { defineConfig } = require('@flowgram.ai/eslint-config');
|
const { defineConfig } = require('@flowgram.ai/eslint-config');
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { pluginReact } from '@rsbuild/plugin-react';
|
import { pluginReact } from '@rsbuild/plugin-react';
|
||||||
import { pluginLess } from '@rsbuild/plugin-less';
|
import { pluginLess } from '@rsbuild/plugin-less';
|
||||||
import { defineConfig } from '@rsbuild/core';
|
import { defineConfig } from '@rsbuild/core';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
|
|
||||||
import { Editor } from './editor';
|
import { Editor } from './editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export function MouseIcon() {
|
export function MouseIcon() {
|
||||||
return (
|
return (
|
||||||
<svg width="34" height="52" viewBox="0 0 34 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="34" height="52" viewBox="0 0 34 52" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export function PadIcon() {
|
export function PadIcon() {
|
||||||
return (
|
return (
|
||||||
<svg width="48" height="38" viewBox="0 0 48 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="48" height="38" viewBox="0 0 48 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useCallback, useContext } from 'react';
|
import { useCallback, useContext } from 'react';
|
||||||
|
|
||||||
import { FlowNodeEntity, useNodeRender } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowNodeEntity, useNodeRender } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { IconInfoCircle } from '@douyinfe/semi-icons';
|
import { IconInfoCircle } from '@douyinfe/semi-icons';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { type FlowNodeEntity, useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
import { type FlowNodeEntity, useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
||||||
import { IconPlus } from '@douyinfe/semi-icons';
|
import { IconPlus } from '@douyinfe/semi-icons';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Container = styled.div<{ activated?: boolean; isVertical: boolean }>`
|
export const Container = styled.div<{ activated?: boolean; isVertical: boolean }>`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import type { FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
import type { FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeRegistries } from '../../nodes';
|
import { FlowNodeRegistries } from '../../nodes';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
const primary = 'hsl(252 62% 54.9%)';
|
const primary = 'hsl(252 62% 54.9%)';
|
||||||
|
|||||||
@ -1,2 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export { DemoTools } from './tools';
|
export { DemoTools } from './tools';
|
||||||
export { DragNode } from './drag-node';
|
export { DragNode } from './drag-node';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
|
|
||||||
import { useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
import { useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const PasteIcon = styled.div`
|
export const PasteIcon = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import {
|
import {
|
||||||
FlowNodeEntity,
|
FlowNodeEntity,
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FunctionComponent, useMemo } from 'react';
|
import { FunctionComponent, useMemo } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,2 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export { SidebarProvider } from './sidebar-provider';
|
export { SidebarProvider } from './sidebar-provider';
|
||||||
export { SidebarRenderer } from './sidebar-renderer';
|
export { SidebarRenderer } from './sidebar-renderer';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useNodeRender, FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
import { useNodeRender, FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { NodeRenderContext } from '../../context';
|
import { NodeRenderContext } from '../../context';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
import { SidebarContext } from '../../context';
|
import { SidebarContext } from '../../context';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useCallback, useContext, useEffect, useMemo } from 'react';
|
import { useCallback, useContext, useEffect, useMemo } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { IconButton, Tooltip } from '@douyinfe/semi-ui';
|
import { IconButton, Tooltip } from '@douyinfe/semi-ui';
|
||||||
import { IconExpand } from '@douyinfe/semi-icons';
|
import { IconExpand } from '@douyinfe/semi-icons';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
|
||||||
import { usePlayground, usePlaygroundTools, useRefresh } from '@flowgram.ai/fixed-layout-editor';
|
import { usePlayground, usePlaygroundTools, useRefresh } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { Tooltip, IconButton } from '@douyinfe/semi-ui';
|
import { Tooltip, IconButton } from '@douyinfe/semi-ui';
|
||||||
import { IconGridRectangle } from '@douyinfe/semi-icons';
|
import { IconGridRectangle } from '@douyinfe/semi-icons';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowMinimapService, MinimapRender } from '@flowgram.ai/minimap-plugin';
|
import { FlowMinimapService, MinimapRender } from '@flowgram.ai/minimap-plugin';
|
||||||
import { useService } from '@flowgram.ai/fixed-layout-editor';
|
import { useService } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
import { usePlayground } from '@flowgram.ai/fixed-layout-editor';
|
import { usePlayground } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useState, useEffect, useCallback } from 'react';
|
import { useState, useEffect, useCallback } from 'react';
|
||||||
|
|
||||||
import { useClientContext, getNodeForm, FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
import { useClientContext, getNodeForm, FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const ToolContainer = styled.div`
|
export const ToolContainer = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { usePlaygroundTools } from '@flowgram.ai/fixed-layout-editor';
|
import { usePlaygroundTools } from '@flowgram.ai/fixed-layout-editor';
|
||||||
import { Button, Tooltip } from '@douyinfe/semi-ui';
|
import { Button, Tooltip } from '@douyinfe/semi-ui';
|
||||||
import { IconServer } from '@douyinfe/semi-icons';
|
import { IconServer } from '@douyinfe/semi-icons';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
|
|
||||||
import { usePlaygroundTools } from '@flowgram.ai/fixed-layout-editor';
|
import { usePlaygroundTools } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,2 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export { NodeRenderContext } from './node-render-context';
|
export { NodeRenderContext } from './node-render-context';
|
||||||
export { SidebarContext, IsSidebarContext } from './sidebar-context';
|
export { SidebarContext, IsSidebarContext } from './sidebar-context';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { type NodeRenderReturnType } from '@flowgram.ai/fixed-layout-editor';
|
import { type NodeRenderReturnType } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export const SidebarContext = React.createContext<{
|
export const SidebarContext = React.createContext<{
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { EditorRenderer, FixedLayoutEditorProvider } from '@flowgram.ai/fixed-layout-editor';
|
import { EditorRenderer, FixedLayoutEditorProvider } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeRegistries } from './nodes';
|
import { FlowNodeRegistries } from './nodes';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { FieldError, FieldState, FieldWarning } from '@flowgram.ai/fixed-layout-editor';
|
import { FieldError, FieldState, FieldWarning } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowNodeRegistry } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const FormWrapper = styled.div`
|
export const FormWrapper = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useContext, useCallback, useMemo, useState } from 'react';
|
import { useContext, useCallback, useMemo, useState } from 'react';
|
||||||
|
|
||||||
import { useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
import { useClientContext } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Header = styled.div`
|
export const Header = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useRef, useEffect } from 'react';
|
import { useRef, useEffect } from 'react';
|
||||||
|
|
||||||
import { Field, FieldRenderProps } from '@flowgram.ai/fixed-layout-editor';
|
import { Field, FieldRenderProps } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { type FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
import { type FlowNodeEntity } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '../../typings';
|
import { FlowNodeRegistry } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { DynamicValueInput } from '@flowgram.ai/form-materials';
|
import { DynamicValueInput } from '@flowgram.ai/form-materials';
|
||||||
import { Field } from '@flowgram.ai/fixed-layout-editor';
|
import { Field } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
// import styled from 'styled-components';
|
// import styled from 'styled-components';
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
.form-item-type-tag {
|
.form-item-type-tag {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
import { Typography, Tooltip } from '@douyinfe/semi-ui';
|
import { Typography, Tooltip } from '@douyinfe/semi-ui';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { Field } from '@flowgram.ai/fixed-layout-editor';
|
import { Field } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { TypeTag } from '../type-tag';
|
import { TypeTag } from '../type-tag';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const FormOutputsContainer = styled.div`
|
export const FormOutputsContainer = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export * from './feedback';
|
export * from './feedback';
|
||||||
export * from './form-content';
|
export * from './form-content';
|
||||||
export * from './form-outputs';
|
export * from './form-outputs';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import React, { useContext, useState } from 'react';
|
import React, { useContext, useState } from 'react';
|
||||||
|
|
||||||
import { Button } from '@douyinfe/semi-ui';
|
import { Button } from '@douyinfe/semi-ui';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import React, { useState, useLayoutEffect } from 'react';
|
import React, { useState, useLayoutEffect } from 'react';
|
||||||
|
|
||||||
import { VariableSelector, TypeSelector, DynamicValueInput } from '@flowgram.ai/form-materials';
|
import { VariableSelector, TypeSelector, DynamicValueInput } from '@flowgram.ai/form-materials';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const Row = styled.div`
|
export const Row = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { VariableTypeIcons, ArrayIcons } from '@flowgram.ai/form-materials';
|
import { VariableTypeIcons, ArrayIcons } from '@flowgram.ai/form-materials';
|
||||||
import { Tag, Tooltip } from '@douyinfe/semi-ui';
|
import { Tag, Tooltip } from '@douyinfe/semi-ui';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
// import { TypeTag } from '../type-tag'
|
// import { TypeTag } from '../type-tag'
|
||||||
import { ValueDisplayStyle } from './styles';
|
import { ValueDisplayStyle } from './styles';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const ValueDisplayStyle = styled.div`
|
export const ValueDisplayStyle = styled.div`
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export { useEditorProps } from './use-editor-props';
|
export { useEditorProps } from './use-editor-props';
|
||||||
export { useNodeRenderContext } from './use-node-render-context';
|
export { useNodeRenderContext } from './use-node-render-context';
|
||||||
export { useIsSidebar } from './use-is-sidebar';
|
export { useIsSidebar } from './use-is-sidebar';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useContext } from 'react';
|
import { useContext } from 'react';
|
||||||
|
|
||||||
import { IsSidebarContext } from '../context';
|
import { IsSidebarContext } from '../context';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { useContext } from 'react';
|
import { useContext } from 'react';
|
||||||
|
|
||||||
import { NodeRenderContext } from '../context';
|
import { NodeRenderContext } from '../context';
|
||||||
|
|||||||
@ -1 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
export { Editor as DemoFixedLayout } from './editor';
|
export { Editor as DemoFixedLayout } from './editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowDocumentJSON } from './typings';
|
import { FlowDocumentJSON } from './typings';
|
||||||
|
|
||||||
export const initialData: FlowDocumentJSON = {
|
export const initialData: FlowDocumentJSON = {
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FormMeta } from '@flowgram.ai/fixed-layout-editor';
|
import { FormMeta } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FormHeader } from '../../form-components';
|
import { FormHeader } from '../../form-components';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '../../typings';
|
import { FlowNodeRegistry } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-layout-editor';
|
import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeJSON } from '../../typings';
|
import { FlowNodeJSON } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '../../typings';
|
import { FlowNodeRegistry } from '../../typings';
|
||||||
import iconCase from '../../assets/icon-case.png';
|
import iconCase from '../../assets/icon-case.png';
|
||||||
import { formMeta } from './form-meta';
|
import { formMeta } from './form-meta';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-layout-editor';
|
import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeJSON } from '../../typings';
|
import { FlowNodeJSON } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '../../typings';
|
import { FlowNodeRegistry } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-layout-editor';
|
import { FormRenderProps, FormMeta, ValidateTrigger } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeJSON } from '../../typings';
|
import { FlowNodeJSON } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '../../typings';
|
import { FlowNodeRegistry } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import {
|
import {
|
||||||
autoRenameRefEffect,
|
autoRenameRefEffect,
|
||||||
provideJsonSchemaOutputs,
|
provideJsonSchemaOutputs,
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { mapValues } from 'lodash-es';
|
import { mapValues } from 'lodash-es';
|
||||||
import { IFlowValue } from '@flowgram.ai/form-materials';
|
import { IFlowValue } from '@flowgram.ai/form-materials';
|
||||||
import { Field, FieldRenderProps, FormMeta } from '@flowgram.ai/fixed-layout-editor';
|
import { Field, FieldRenderProps, FormMeta } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { FlowNodeBaseType } from '@flowgram.ai/fixed-layout-editor';
|
import { FlowNodeBaseType } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FormRenderProps, FormMeta, Field } from '@flowgram.ai/fixed-layout-editor';
|
import { FormRenderProps, FormMeta, Field } from '@flowgram.ai/fixed-layout-editor';
|
||||||
|
|
||||||
import { FlowNodeJSON } from '../../typings';
|
import { FlowNodeJSON } from '../../typings';
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
import { FlowNodeRegistry } from '../../typings';
|
import { FlowNodeRegistry } from '../../typings';
|
||||||
import iconIf from '../../assets/icon-if.png';
|
import iconIf from '../../assets/icon-if.png';
|
||||||
import { formMeta } from './form-meta';
|
import { formMeta } from './form-meta';
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user