From 5881de745dcc33b5a2e464f774292009c7ec801d Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Fri, 15 Mar 2024 11:00:26 -0300 Subject: [PATCH] feat: replaced document-model-editors by new document-model-lib/utils --- .../.hygen/templates/powerhouse/generate-editor/editor.esm.t | 2 +- .../.hygen/templates/powerhouse/generate-editor/story.esm.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t b/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t index adef1db..df49a0e 100644 --- a/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t +++ b/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t @@ -3,7 +3,7 @@ to: "<%= rootDir %>/<%= name %>/editor.tsx" unless_exists: true --- <% if(!documentTypes.length){ %>import { Action } from 'document-model/document';<% } %> -import { EditorProps } from 'document-model-editors'; +import { EditorProps } from 'document-model-libs/utils'; <% documentTypes.forEach(type => { _%> import { <%= documentTypesMap[type] %>State, <%= documentTypesMap[type] %>Action } from "../.<%= documentModelsDir %>/<%= h.changeCase.param(documentTypesMap[type]) %>"; %><% }); _%> diff --git a/src/codegen/.hygen/templates/powerhouse/generate-editor/story.esm.t b/src/codegen/.hygen/templates/powerhouse/generate-editor/story.esm.t index 0871733..47f174a 100644 --- a/src/codegen/.hygen/templates/powerhouse/generate-editor/story.esm.t +++ b/src/codegen/.hygen/templates/powerhouse/generate-editor/story.esm.t @@ -3,7 +3,7 @@ to: "<%= rootDir %>/<%= name %>/<%= name %>.stories.tsx" unless_exists: true --- import Editor from './editor'; -import { createDocumentStory } from 'document-model-editors'; +import { createDocumentStory } from 'document-model-libs/utils'; <% if(!documentTypes.length){ %>import { baseReducer, utils } from 'document-model/document';<% } %> <% documentTypes.forEach(type => { _%> import * as <%= documentTypesMap[type] %>Module from "../.<%= documentModelsDir %>/<%= h.changeCase.param(documentTypesMap[type]) %>";