Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Composer/packages/lib/shared/src/dialogFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ export const seedDefaults = (type: string) => {
return assignDefaults(properties);
};

const DEEP_COPY_TYPES = ['Microsoft.SendActivity'];
export const needsDeepCopy = $type => {
return DEEP_COPY_TYPES.indexOf($type) !== -1;
};

export const deepCopy: any = (_data, _lgApi) => {
// data.type is a SendActivity
// data.id is bound to copied SendActivity
// new id getDesignerId()
// data.activity references an LG template
// make new LG template based off of naming schema
// assign to data.activity
return undefined;
};

export const seedNewDialog = (
$type: string,
designerAttributes: Partial<DesignerAttributes> = {},
Expand Down
89 changes: 0 additions & 89 deletions SampleBots/Sandwich/Main/Main.dialog

This file was deleted.

59 changes: 0 additions & 59 deletions SampleBots/Sandwich/Main/Main.lg

This file was deleted.

Loading