Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve logs and add more debug logs to understand the entity store issues [SPA-1711] #207

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

Chaoste
Copy link
Contributor

@Chaoste Chaoste commented Dec 20, 2023

Currently, the entity store is sometimes not holding the entries for design components. It looks like a race condition that only happens on a hosted SDK, so we need to ship this via new version to our demo project and deploy it to better understand why the entity store is empty when rendering design components.

@Chaoste Chaoste merged commit 96c306d into main Dec 20, 2023
5 checks passed
@Chaoste Chaoste deleted the fix/SPA-1711-initial-loading branch December 20, 2023 09:32
chasepoirier added a commit that referenced this pull request Jan 8, 2024
* Remove rogue button

* Wrap components, add default styling

* fix(components): adding cf class all the time

* chore: adding lerna and new gha scripts

* chore: adding lerna and new gha scripts

* package fixes

* chore: fixing secrets

* update import

* chore: taking PRs out of build pipeline

* chore: adding lerna and new gha scripts [] (#12)

* chore: adding lerna and new gha scripts [] (#12)

* chore: fix publish script

* chore: adding lerna and new gha scripts

* package fixes

* chore: fix package

* chore: fixing username in publish

* chore: manually setting version

* v0.0.1-alpha.2

* chore: adding commitlint [] (#14)

* chore: add restore-keys for cypress caching (#15) []

* chore: if commit message contains "skip-release" then dont release - skip-release []

* v0.0.1-alpha.3

* chore: renaming components package back to contentful ns

* chore: renaming components package back to contentful ns

* v0.0.1-alpha.4

* chore: update alpha release to latest tag on publish

* fix(components): faux fix to kick off build

* v0.0.1-alpha.5

* fix(components): faux change to kick off build 2

* chore: updating alpha to use latest tag

* v0.0.1-alpha.6

* fix(componets): test fix

* v0.0.1-alpha.7

* chore: adding clear action caches workflow skip-release []

* fix: fixing built asset caching to get dist files into packages [] (#26)

* fix(components): faux fix to kick off build

* fix(components): faux fix to kick off build

* chore: adding restore keys

* chore: adding restore keys

* chore: adding path to styles.css to restore cache

* fix(components): adding styles.css to build cache [] (#27)

* fix(components): adding styles.css to build cache [] (#27)

* chore: removing file from another branch

* v0.0.1-alpha.8

* feat(storybook-addon): create scaffolding for experience-builder storybook add-on

* Commit forgotten files

* feat(create-experience-builder): new CLI tool to create sites with EB []

* fix(create-experience-builder): adding missing kleur package

* chore: adding rimraf to test-app

* Publish

 - @contentful/experience-builder-components@0.0.1-alpha.9
 - create-experience-builder@0.0.1-alpha.0

* chore: making svgs work

* chore(test-app): adding vercel build script to ensure deps are built

* chore: add sb plugin to toolkit sb instances

* chore: rename storybook package

* fix(components): expose the withExperienceBuilder hook

* Publish

 - @contentful/experience-builder-components@0.0.1-alpha.10

* fix(components): doc updates and slight changes to components

* chore: adding main readme

* chore: renaming readme

* chore: renaming readme back to uppercase

* chore: renaming readme back to uppercase

* chore: wip

* chore: adding readmes

* fix(components): doc updates and slight changes to components

* chore: cleanup

* chore: adding lang to code block

* chore: add docs for EB SB plugin

* chore: fix spelling

* feat: initialization code for injectable editor

* chore: fix xp root

* feat: move visual editor to toolkit

* chore: fix typings

* chore: add npm scripts for watch mode

* feat: all users to drop new components onto canvas

* feat: allow users to drop new components onto canvas

* chore(visual-editor): add dev mode [] (#43)

* chore: refactor visual editor tree to match user_interface [ALT-125] (#45)

* chore: refactor visual editor tree to match user_interface

* chore: cleanup

* fix: drag listeners

* feat: add core project [] (#44)

* feat: extract registerComponent and renderer

* chore: update packages

* chore: last stable version

* chore: setup tests and circleci workflow

* feat: add linting, type check, test, release scripts

* chore: make the package private and change the version

* feat: sync with the latest changes from poc

* chore: add husky

* chore: added husky scripts

* chore: add commit linting

* chore: add commit linting

* refactor: modified the export

* chore: prettify

* chore: prettify

* chore: install cma package as normal dependency

* feat: updated registration logic. added readme

* chore: update readme

* chore: update export naming

* chore: remove unused types

* chore: vault secrets

* chore: add missing nvmrc file to fix ci cache calc

* chore: add missing semantic release dependency (#4)

* chore: remove private field (#5)

* feat: bump cma (#6)

* feat: alpha release [SPA-1485] (#131)

BREAKING CHANGE: alpha release

* chore: support alpha beta branches (#7)

* feat: correctly mark the files included in the bundle (#8)

* feat: use agreed component definition structure [SPA-1126] (#9)

* fix: expand canvas height on component drop [SPA-1168] (#10)

* feat: replace isStyle variable config with group (#13)

* refactor: retrieve data from datasource [SPA-1137] (#14)

* feat: add empty state (#18)

* feat: support DesignValue types of variable values  [SPA-1130] (#19)

* fix: export CompositionComponentPropValue type (#20)

* feat: implement Contentful section [SPA-1176] (#21)

* feat: add array validation [SPA-1130] (#17)

* fix(): version bump [] (#22)

* feat: render bound values [SPA-1131] (#23)

* doc: [] update README with correct value (#26)

* feat(): add tooltip to remove section [SPA-1197] (#25)

* chore(deps-dev): bump vite from 4.2.1 to 4.2.3 (#27)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.2.1 to 4.2.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.2.3/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.2.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: remove mentioned master branches for config (#28)

* feat: add display name for each variable of the section (#30)

* fix: refactor use experience hook remove error swallowing [] (#31)

* refactor hook useExperiencBuilder:
 - encapsulate all message validation logic within `doesMismatchMessageSchema()`
- add clear error messages and reasons for message rejections
 - avoid swallowing of rejected messages
 - avoid swallowing of unsupported eventData.eventType
 - avoid swallowing of usupported eventData.source
 - validation and attaching strong type to the parsed message are done by tryParseMessage() after all the runtime checks
  - in an attempt to make log messages filtrable adds prefix

* Update src/composabilityApp.ts

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* Update src/composabilityApp.ts

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* Update src/composabilityApp.ts

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* fix: rename to validation.ts, fix linting const

* make logging prefix clear to everyone

* remove unnecessary console.log

---------

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* feat: add contentful section alignment variable [SPA-1177] (#24)

* feat: add contentful section alignment variable

* Update src/hooks/useContentfulSection.ts

---------

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* feat(): add section drop zones [SPA-1125] (#33)

* refactor: [SPA-1206] adjust sizes default and transformation (#36)

* refactor: adjust sizes default and transformation

* refactor: prettier

* code review changes

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* refactor: add to the section component

---------

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* fix: max width wording (#37)

* feat: added distribution attributes (#38)

* fix: [SPA-1255] use boxs hadow for indicating selection (#40)

* fix: use inset boxshadow for indicating selection

* fix: use box shadow also for selection of sections

* chore: new canvas reload message [SPA-1208] (#42)

* chore: add new event to reload the canvas and get the tree again from host

* chore: ignore the bumping script

* feat: remove dependency on forma [SPA-1241] (#44)

* chore: removed dependency on forma 36 components, tokens, and icons

* chore: prettier

* chore: remove dependency on emotion css

* chore: remove package lock

* chore: add identifier

* chore: run prettier

* chore: resolve build path error

* chore: remove unused files

* chore: allow publishing this branch to lite

* chore: new canvas reload message [SPA-1208] (#42)

* chore: add new event to reload the canvas and get the tree again from host

* chore: ignore the bumping script

* chore: add box shadow instead

* chore: add visual editor block css file

* fix: visual editor block css

* chore: use prettier on css files

* chore: remove instances of lite branch

* fix: clashing styles

* fix: yarn prettier

---------

Co-authored-by: Dimitry Kireyenkoff <dimitry.kireyenkoff@contentful.com>
Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* feat: transform border to actual CSS values [SPA-1208] (#41)

* feat: transform border to actual CSS values

* refactor: improve variable naming and use better function interface

* test: add test for CSS transformers

* fix: remove unused border-box

* fix: drop usage of emotion type

* feat: remove duplicated ids (#45)

* feat(): add inserting components at index [SPA-1236] (#35)

* feat(): add inserting components at index

* refactor: simplify section insertion logic

* fix: fix flickering issue

* refactor: move the insertion data function into utils

* test: add tests to insertion data function

* chore: prettify

* style: fix styles for section indicators

* style: fix paddings due to overflow. address comments

* chore: fix dragging while scrolling

* chore: prettify

* chore: make 0 a default index for component drop

---------

Co-authored-by: Daniel Vasylenko <connect.danv@gmail.com>

* feat: Implement contentful container [SPA-1218] (#46)

* Add contentful container

* Flatten contentful section to single div

* fix: pass selected node and render contentful-container

* chore: prettier

* fix: default styling

* change variable name

* Remove unused file, lint fixes

* revert version change

* Lint fixes

* fix: review comments

* Use forwardRef for Flex component

* feat: respect children nesting config [SPA-1244] (#47)

* feat: respect children nesting config

* feat: add tests

* prettify

* chore: prevent creation of children

* prettify

* chore: make default drop index to be at the bottom

* chore: remove only

* feat: support different composition modes [SPA-1249] (#43)

* refactor: add mode to the useExperienceBuilder hook

* feat: Identify mode initially

* feat: split roots depending on the mode and add config to the experience object

* refactor: cleanup VisualEditorRoot

* Remove outdated references to emotion/forma36

---------

Co-authored-by: Sofia Margariti <sofia.margariti@contentful.com>

* fix: section default values (#51)

* feat: render composition in preview/delivery mode [SPA-1250] (#49)

* feat: fetch and render composition in delivery mode

* feat: render contentful section for preview/delivery

* feat: support non-editor mode for ContentfulSection

* Prettify

* feat: implement preview mode

* test: add tests

* fix: lint errors

* remove console.log

* Support host

* fix: remove disabling TS and use union type in a proper way

* Update src/hooks/useFetchComposition.ts

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* Update src/hooks/useFetchComposition.ts

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* fix: section default values (#51)

* Review fixes

* Refactor fixtures

* Remove act from tests

* Lint and move fixtures

* Merge preview and delivery root

* Update src/hooks/useFetchComposition.ts

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* small test improvement

---------

Co-authored-by: Thomas Kellermeier <thomas.kellermeier@contentful.com>
Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>
Co-authored-by: ChidinmaOrajiaku <30434146+ChidinmaOrajiaku@users.noreply.github.com>

* fix: add mouse position check that it is on target (#53)

* feat: composition unbound values [SPA-1200] (#52)

* feat: composition unbound values

* prettier

* chore: fix failing tests

* chore: fix failing tests

* feat: render unbound values in composition root

* fix: failing types

* fix: send move move events when mode is 'editor' (#54)

* fix: unbound values snubbing updates (#56)

* fix: update hooks and use eslint [] (#57)

* fix: update hooks and use eslint

* prettier

* fix: line format

* fix: try to render composition only after all data are fetched (#59)

* fix: avoid exception if key for unbound value is not present (#60)

* fix: handle new component tree field on preview/delivery modes [] (#61)

* fix: handle new componentTree field and breakpoints

* Check schema version before rendering composition

* fix: [SPA-1246] only have min height for empty section (#64)

* fix: only have min height for empty section

* fix: css lint

* feat: [] send mouse move events to the web app (#58)

* feat: improve selected state outline [SPA-1259] (#65)

* feat: external select state outline

* feat: send element co-ordinates on canvas resize

* chore: update instance rect when component is resized

* fix: merge issues

* feat: handle scroll states

* prettier

* chore: update variable naming

* chore: implement feedback

* chore: clear timeout id in return function

* fix: move the logic of use effect to state to catch events asap (#66)

* chore(deps): bump semver from 5.7.1 to 5.7.2 (#63)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump tough-cookie from 4.1.2 to 4.1.3 (#55)

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: sdk clean up unused component remove event  [] (#67)

* feat: add tests for dom values util

* prettier

* fix: remove unsupported variable types. remove contentful-management dependency (#71)

* fix: [SPA-1327] new drag and drop functionality (#68)

* fix: working partially

* refactor: cleanup

* fix: non section drop

* fix: new section drop

* chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#69)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: use design values that are defined per breakpoints [SPA-1242] (#70)

* feat: read and apply brakpoint values

* feat: new hook for breakpoint handling and resolve all on editor block level

* feat: ass breakpoint cascade logic

* fix: consider min and max width properly, register breakpoints more upwards in hierachy

* refactor: store matchers as maps instead of tuples

* test: add breakpoints in tests

* fix: use new media query structure properly

* feat: export getValueForBreakpoint from SDK for UI

* chore: revert builder alpha version

* chore: add TODO notes that our hooks should become more shallow to become framework-agnostic

* refactor: rename valuesPerBreakpoint to valueByBreakpoint

* refactor: rename state variable to match getter and setter name

* refactor: simplify the logic to determine the active breakpoint index

* refactor: rename to valuesByBreakpoint, add test

* refactor: make it more readable for wildcard queriy usage

* fix: resolve breakpoint values in CompositionBlock as well

* refactor: add helper method to extract the fallback breakpoint

* refactor: remove duplicate every breakpoints check

* fix: create correct type for block props map

* feat: added types to support localization [SPA-1322] (#75)

* feat: added types to support localization

* test: updating tests

* lint: linting

* :shrug:

* fix: type in file name

* Revert "feat: added types to support localization [SPA-1322] (#75)" (#77)

This reverts commit 2083a782723bf0e3e605332e8e4c0811ffe4a9ca.

* fix: listen for select event (#79)

* feat: [SPA-1331] new dnd to create new sections (#72)

* chore: ignore npmrc file with custom registry (#73)

* feat: defining default locale code (#80)

* feat: background image binding [SPA-1280] (#74)

* feat: background image binding

* fix: make labels shorter to fit into //StylesPanel//

* fix: rebase

* fix: adds tests and handles null and undefined values for backgroundImageUrl

* Update src/hooks/useContentfulSection.ts

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

---------

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* fix: extract default locale code from unbound val obj (#81)

* fix: remove hover outline [SPA-1287] (#76)

* fix: remove hover outline from SDK

* Send parent coordinates for selected node

* convert hook to reusable plain function

* chore: remove distribution style variable (#83)

* fix: performance improvements [] (#82)

* chore: not send pageXOffset and scrollX cause they are alias to the same variable

* fix: not send component dropped event unless isDragging

* fix: make sendSelectedComponentCoordinates a utility function

* fix: only send updated coordinates from nodes that are selected

* chore: prettify

* fix: send updated coordinates only for selected element

* fix: remove isDraggign from visual editor block list of props

* fix: cache results of getreactboundsrect

* fix: fix bug with cache cleanup

* fix: bug fixes with canvas interaction response

* chore: lowercase the variable name

* chore: automatic bumps to ctfl-eap github registry [] (#85)

* feat: script to publish the sdk to the github package registry

* chore: dry run on ci step

* chore: actually run npm publish with --dry-run

* chore: fix path to sh file during chmod command

* chore: fix the script test run command

* fix: bring back the missing script

* chore: fix the command

* chore: fix the command

* chore: fix the command again

* fix: use cut to get substring

* fix: change shabang

* chore: remove dry run and test ci job

* chore: remove log of the .npmrc

* chore: test without the chmod pre-command

* chore: remove dry run test ci job

* chore: fix typo

* fix: run ctfl eap release on success after semantic release (#86)

* fix: add missing script to execute ctfl release script (#87)

* chore: add guard clause to prevent from running outside of CI [] (#88)

* fix: add guard clause to prevent from running outside of CI

* fix: rephrase message

* chore: add guards and add icons

* chore: fix return and add output of tag names

* chore: force adds newline for edge case when no newline at the end of npmrc

* fix: bump node and latest schema version [] (#89)

* chore: bump node to v18

* fix: bump latest schema version

* fix: pass the right breakpoints object to hook for preview/delivery mode (#92)

* feat: fetch entities via post messages using EditorEntityStore [SPA-1337] (#84)

* change to ExperienceBuilderEditorEntityStore class

* Fetch entities at once on root level

* fix lint errors

* Add @contentful/visual-sdk package

* fix: useRef for entityStore, don't fetch duplicate entities

* Remove unused file

* fix minor naming and typing comments

* feat: use non-localised dataSource and unboundValues [SPA-1337] (#90)

* Use non-localised dataSource and unboundValues

* Fix type error

* feat: allow different experience type [] (#95)

* chore: fix jest setup to allow to speciy one test file

* refactor: explicitly pass props to see what is used where

* feat: remove hardcoded layout ct id and allow to pass any experience type

* chore: prettify

* chore: remove ts hack

* chore: drop VisualEditorRoot from export

* fix: only send coordinates for children of type 'block' (#91)

* fix: remove the manual reload event since this handle in the host app (#93)

* fix: use the flex safe orientation to horizontally scroll overflowing content (#94)

* chore: dont ignore file that ahs now moved to the demo project (#96)

* feat: support variables for JSON Object [SPA-1367] (#98)

* feat: add new type Object for variable definitions

* chore: export variable type definition

* feat: prefix variables [SPA-1253] (#100)

* style: improve type for style variable names

* feat: prefix all seciton styles with cf

* feat: bump schema version to v2023_08_23

* feat:  performance improvements [SPA-1396] (#99)

* feat: attempt to improve performance for coordinates

* chore: remove scroll styles from root

* hide scrollbar

* prettier

* feat: add comments and hover on drag

* prettier

* remove types change

* feat(hyperlink): add hyperlink to Contentful section [SPA-1306] (#97)

* feat: contentful section hyperlink component

* feat: using contenful hyperlink in section

* feat: providing true from visual editor root

* feat: variable definitions and validation format

* refactor: review changes

* fix: using type

* fix: removing content props

* fix: linting

* fix CSS-height issues on <ContentfulSection> related to [SPA-1306] (#104)

* implements Didi's suggestion to use CSS-height together with checking for default value being overridden

* fix: prettier

* fix: add checks to fix rehydration in gatsby [SPA-1399] (#106)

* fix: add checks to fix rehydration in gatsby

* chore: prettify

* feat: change default background to transparent (#105)

* feat: support plain text for rich text binding [SPA-1387] (#103)

* feat: transform plain to rich text content value

* chore: install rich-text-types as dev dep

* feat: support built-in styles in component definitions [SPA-1264] (#102)

* feat: support built-in styles in component definitions

* remove hyperlink from CF_STYLE_ATTRIBUTES constant (review comment fix)

* fix: review comments

* Don't enable sizing styles by default

* chore(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#108)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: accept hover event and send coordinates back [SPA-1330] (#101)

* feat: accept hover event and send coordinates back

* feat: also send component data

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* feat: introduce new register function and rename message to connected [SPA-1447] (#110)

* feat: add new message type CONNECTED

* feat: inject npm version via vite build into source code

* feat: add new type ComponentConfig and method registerComponents

* feat: use global variable in hook like in daniels approach to avoid conflicts

* test: use new method in test

* fix: move sdk version env var to a separate file which can be mocked

* test: monkey patch the debug log to keep test logs clean

* test: add mock for Test spec with sdk version

* docs: add docstring explaning new interface behaviour

* chore: add lodash debounce

* feat: bring back defineComponent for retrocompatibility and make it send connect event

* chore: prettify

* chore: mark defineComponent function as deprecated

---------

Co-authored-by: Daniel Vasylenko <connect.danv@gmail.com>

* feat: better support for SSR [SPA-1454]  (#109)

* refactor: surface fetching to the use experience builder hook

* refactor: move slug back to the tag level

* refactor: surface mode to be set up externally

* refactor: remove duplicated sendMessage

* refactor: streamline fetching of the composition

* fix: add window undefined checks

* refactor: move getDefinedComponent out of useComponents hook

* chore: update README

* fix: pass mode into useComponents hook

* fix: enable refetch on dynamic change to settings

* test: tests for useExperienceStore

* test: tests for useComponents

* test: wip tests for useExperienceBuilder

* test: finish tests for useExperienceStore

* fix: bug with the de-sync in locale if changed from the web app

* fix: bug with changing locale in editor

* refactor: move client out of the sdk

* chore: prettify

* chore: fix test after rebase

* test: adjust tests

* chore: prettify

* refactor: use correct sendMessage fn after rebase

* refactor: rename CompositionRoot to ExperienceRoot

* chore: update readme

* refactor: move locale and slug back to the tag level

* test: adjust tests to reflect the latest changes

* chore: update README

* chore: prettify

* fix: bug with nuke refetch on error from the fetchBySlug

* chore: prettify

* chore: prettify after rebase

* feat: bring back additional changes by Dimitry

* fix: update definition example in README [SPA-1454] (#113)

* chore: update definition example in README

* chore: pass the deprecation note to the hook where the fn is exposed

* chore: fix typo

* refactor: use EntityStore from visual-sdk [SPA-1251] (#62)

* refactor: use EntityStore from visual-sdk

* fix: prettier fixes

* chore: prettify

* test: fix unit test

* chore: and of course prettify again

---------

Co-authored-by: Sofia Margariti <sofia.margariti@contentful.com>
Co-authored-by: Daniel Vasylenko <connect.danv@gmail.com>

* feat: [SPA-1453] split hover and mouse move event (#112)

* feat: split hover and mouse move

* refactor: cleanup

* refactor: cleanup

* refactor: code review

* refactor: code review

* fix: update entities store after updating entity from slide in [SPA-1418] (#115)

* fix: update entities

* rename editor store

* run prettier

* fix: extended update tree message to ensure backwards compatibility

* prettier

* fix: code review bug

* prettier

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* fix: [] Remove hover element id on mouse leave (#117)

* feat: align background image alignment options with design [SPA-1433] (#114)

* fix: replace cfBackgroundImageAlignment with [cfBackgroundImageAlignmentVertical,cfBackgroundImageAlignmentHorizontal]

* fix: prettier

* fix: ensure order of arguments is always horizontal,vertical

* fix: removes unsed types, adds message explicitly stating that those typedefs are partial

* fix: when transforming cfBackgroundImageAlignXXXX, consolidate in into single background-position prop instead of background-position-x/y

* fix: prettier

* fix: consolidate cfBackgroundImageAlignXXXX into single cfStyle-prop cfBackgroundImageAlign; handle special cases and backwards compatibility

* fix: PR recommendations

* feat: automatic switch to editor mode [SPA-1484] (#118)

* chore: remove types of lodash.isstring

* feat: drop editor mode as a possible value and switch back to it automatically

* test: add tests to reflect the change

* chore: prettify

* test: additional tests to cover the mode switch

* chore: clarify preview mode in readme file

* test: remove unnecesssary asyncs for sync tests

* chore: better name for sdk mode type

* fix: explicitly pass null as children if element is not a container [] (#121)

* fix: explicitly pass null as children if element is not a container

* fix: explicitly check against true as the expected value

* chore: prettify

* fix: actively request initial state in editor mode [] (#122)

* fix: actively request initial state in editor mdoe

* chore: prettify

* feat: more robust switch from preview to editor [SPA-1435] (#119)

* refactor: remove useComponents hook and make registration functions plain js functions

* chore: remove lodash.debounce

* feat: export registrations functions directly from the sdk

* refactor: migrate code using useComponents functions

* test: remove old tests checking that component registry functions are sending postMessage

* test: cover sending connect event from a different hook with tests

* chore: only export the new registration function

* chore: prettify

* fix: wait for another render to support the useEffects

* chore: update README

* chore: remove warning from alien message in preview mode

* chore: prettify

* refactor: send empty CONNECT event in preview mode

* refactor: in editor mode, send full connect event + listen to dynamic component registraions

* chore: update readme

* chore: ignore REQUEST_EDITOR_MODE message in editor mode

* chore: prettify

* chore: update test name

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

---------

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* feat: container sizing default behaviour [SPA-1456] (#120)

* feat: container sizing default behaviour

* prettier

* feat: container auto sizing

* prettier

* remove console log

* remove unused messaging

* prettier

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* fix: section hyperlink [SPA-1451] (#124)

* chore: remove unused section indicator component

* fix: convert section into anchor tag instead of nesting it

* fix: use 100% as default value for cfMaxWidth

* test: tests for section hyperlink

* test: tests for contentful section

* chore: prettify

* refactor: [SPA-1474] move selected state to context (#123)

* refactor: move selected state to context

* refactor: remove debug stuff

* refactor: prettier

* refactor: add simple test

* refactor: fix import

* chore: organize files [] (#125)

* chore: minify empty state svg and move to the svg folder

* chore: move svg folder out of core and delete unused svgs

* chore: move css to styles folder

* refactor: explicitly pass just the necessary props to section components

* chore: prettify and fix css import

* fix: resolve TS error by renaming the variable (shrug)

* refactor: automatically narrow types by not de collapsing the props

---------

Co-authored-by: Thomas Kellermeier <thomas.kellermeier@contentful.com>

* feat: remove section and keep container [SPA-1458] (#126)

* feat: remove section and keep container

* chore: prettify

* chore: add latest schema version to the types

* chore: fix the style import after rebase

* chore: update deprecation message for section id

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* refactor: render the last two schema versions

* chore: prettify

* feat: add default value for background image URL similar to hyperlink default values

---------

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>
Co-authored-by: Thomas Kellermeier <thomas.kellermeier@contentful.com>

* refactor: send coordinates on select (#127)

* feat: comment (#129)

* chore: remove deprecateed fns [SPA-1485] (#128)

* chore: remove deprecated defineComponent fn

* chore: remove ctfl-eap publication script

* chore: update readme

* chore: fix readme header size

* chore: add component import to readme

* chore: mention setup examples page

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: ChidinmaOrajiaku <30434146+ChidinmaOrajiaku@users.noreply.github.com>
Co-authored-by: Andreas Egger <93705529+andreascful@users.noreply.github.com>
Co-authored-by: Sofia Margariti <sofia.margariti@contentful.com>
Co-authored-by: Lorenz Weiß <34910067+loweisz@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitry Kireyenkoff <113918657+dimitrycf@users.noreply.github.com>
Co-authored-by: Anwar Ahmad <anwaar.lance@gmail.com>
Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>
Co-authored-by: Dimitry Kireyenkoff <dimitry.kireyenkoff@contentful.com>
Co-authored-by: Thomas Kellermeier <thomas.kellermeier@contentful.com>
Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>
Co-authored-by: Chris Helgert <chrishelgert@users.noreply.github.com>

* chore(deps): bump postcss from 8.4.24 to 8.4.31 (#130)

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.24 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.24...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: remove padding at the bottom of editor root element in editor mode (#132)

removed the 100px padding at the bottom of the canvas root element

* revert: "fix: remove padding at the bottom of editor root element in editor mode (#132)" (#133)

This reverts commit 4f68e04624beb397c6c247840b042ff5d86c4124.

* fix: default height for containers (#134)

* fix: auto sizing

* fix: hot fix container default height size

* fix: lint error

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* feat: consistent sizing across options [SPA-1463] (#135)

* feat: consistent sizing across options

* add prettier

* add passive option

* use overflow auto

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* fix: fix the issue with the width of the empty container [] (#137)

* style: fix the issue with the width of the empty container

* style: increase the text size

* feat: add error boundary [SPA-1507] (#116)

* feat: add error boundary

* feat: send SDK errors to web app via postMessage

* Enhance error message

* Review comments

---------

Co-authored-by: Sofia Margariti <sofia.margariti@contentful.com>

* fix: adapt container to margins and paddings [SPA-1523] (#140)

* fix: adapt container to margins and paddings

* prettier

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* feat: change default max width size to none  (#138)

* feat: consistent sizing across options

* add prettier

* add passive option

* use overflow auto

* feat: container default max width to none

* chore: implement feedback

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* fix: global styles, text size in ErrorContainer, styles in EmptyContainers [SPA-1587] (#142)

* fix: reset global font size to value in F36

* fix: margin between text and icon, bigger info text, grabbing cursor

* fix: render dragging styles and remove typo

* feat: introduce a prefix to our global variables to avoid overlaps [SPA-1587] (#143)

* feat: introduce a prefix to our global variables to avoid overlaps

* style: switch CSS prefix from f36 to exp-builder

* style: move error boudnary css to styles folder

* feat: Experience builder monorepo setup [SPA-1395] (#141)

* feat: migration to mono repo

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

---------

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.5.0

* chore: read me for the root (#144)

* fix: container default sizing height to fit all children [] (#146)

* fix: container default sizing height to fit all children

* update comment

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.5.1

* feat: support ssr [SPA-1435] (#136)

* refactor: first rough attempt to use entityStore as the holder of initial state

* refactor: rough sketch to support ssr, ssg, server side components

* refactor: second pass over the rough sketch. sketch the client side rendering and define deprecated stuff

* test: migrate test from useEntityStore to useFetchExperience

* test: tests for entity store and createExperience

* feat: add fetchBy helper functions

* refactor: change response format of fetchers from useFetchExperience hook

* chore: update README

* refactor: address try catch suggestion

* refactor: rename fetchExperienceEntities to fetchReferencedEntities

* refactor: replace useLayoutEffect with useEffect

* chore: add semi: true to prettier to fix conflict between prettier and linter

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.6.0

* fix: ease exp entry validation [] (#147)

* chore: ease the experience entry validation

* chore: update README

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.6.1

* chore(deps): bump @babel/traverse from 7.21.4 to 7.23.2 (#139)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: initial setup for experience-builder-types [SPA-1395] (#145)

* fix(experience-builder-types): initial setup for experience-builder-types

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.6.2
 - @contentful/experience-builder-types@1.1.0

* Fix: selected component jumps around on scroll [ALT-62] (#150)

* fix: register onScroll listener only once

* chore: remove unused event from constants

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.6.3
 - @contentful/experience-builder-types@1.1.1

* feat: [SPA-1522] send also the margins with the coordinates (#149)

* feat: send also the margins with the coordinates

* feat: handle window not defined

* fix: window undefined check

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

---------

Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.7.0

* fix: correctly retrieve the url from the bound asset in preview/delivery (#152)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.7.1

* fix: minor change to empty container font color [ALT-59]

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.7.2

* fix: empty container highlight on hover

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.7.3

* feat: render design component within an experience [SPA-1583] (#151)

* feat: add used component entities to entity store

* feat: render design component within an experience

* fix: prevent unset of design components

* feat: prevent individual selection of children of design components

* feat: add category for design components

* feat: handle design component click

* feat: render design components on create

* feat: render design components in preview and delivery mode

* feat: prevent normal children to be added to design component blocks

* feat: handle design component block clicks

* chore: remove zindex from container

* chore: add comment

* chore: fix merge error

* chore: align with main

* chore: implement prefix feedback

* chore: rename event

* chore: implement feedback

* fix: failing tests

* chore: export utility function

* chore: implement feedback

* chore: extract type const

* chore: move style object outside of component

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.8.0
 - @contentful/experience-builder-types@1.2.0

* chore: test design components render [SPA-1583] (#158)

* chore: add test for composition block

* chore: add visual editor block test

* chore: add test for design component utils

* chore: test deserialize function

* chore: add component registry test

---------

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.8.1
 - @contentful/experience-builder-types@1.2.1

* fix(experience-builder-sdk): update rollup config to not include react in build (#155)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.8.2

* fix(experience-builder-sdk): export ExternalSDKMode and EntityStore types [] (#156)

* fix(experience-builder-sdk): export ExternalSDKMode type

* fix(experience-builder-sdk): adding EntityStore to exports

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.8.3

* refactor: sort files in related folders [] (#157)

* refactor: sort files in related folders

* refactor: move experience root to the root of the folder

* refactor: fix mocks paths and inject package version without vite

* chore: add script to inject version into sdkVersion file

* chore: remove constants mock

* chore: remove space before new line in bin script

* chore: remove unused type import

* chore: remove sdkVersion file from git to fix lerna publish flow (#160)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.8.4

* chore: supportd unbound and bound values in variable definitions (#162)

Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.8.5
 - @contentful/experience-builder-types@1.2.2

* feat: add watch command to npm build command for hot reload development

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@2.9.0

* feat: initialization code for injectable editor

* chore: fix xp root

* feat: allow users to drop new components onto canvas

* chore: move types to core

* feat: add core project and update deps

* chore: cleanup

* removing core

* chore: moving type files

* chore: adding other core files

* lint

* chore: lint temp workarounds for new projects

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>
Co-authored-by: Daniel Vasylenko <connect.danv@gmail.com>
Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>
Co-authored-by: ChidinmaOrajiaku <30434146+ChidinmaOrajiaku@users.noreply.github.com>
Co-authored-by: Andreas Egger <93705529+andreascful@users.noreply.github.com>
Co-authored-by: Sofia Margariti <sofia.margariti@contentful.com>
Co-authored-by: Lorenz Weiß <34910067+loweisz@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitry Kireyenkoff <113918657+dimitrycf@users.noreply.github.com>
Co-authored-by: Anwar Ahmad <anwaar.lance@gmail.com>
Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>
Co-authored-by: Dimitry Kireyenkoff <dimitry.kireyenkoff@contentful.com>
Co-authored-by: Thomas Kellermeier <thomas.kellermeier@contentful.com>
Co-authored-by: Chris Helgert <chrishelgert@users.noreply.github.com>
Co-authored-by: contentful-automation[bot] <100587065+contentful-automation[bot]@users.noreply.github.com>
Co-authored-by: Adrian Meyer <8539634+primeinteger@users.noreply.github.com>
Co-authored-by: ryunsong-contentful <ryun.song@contentful.com>
Co-authored-by: ryunsong-contentful <124832189+ryunsong-contentful@users.noreply.github.com>
Co-authored-by: Chase Poirier <chase.poirier@contentful.com>
Co-authored-by: Chase Poirier <chase@chasepoirier.com>

* fix: remove initialTree prop from older VER

* chore: build pre release for hybrid feature branch

* feat(experience-builder-sdk): use visual editor package (#169)

* chore: package tweaks

* chore: add VisualEditorContext back in

* chore: updated visual-editor package to pre release

* chore: fix lock file

* fix(test-app): update sdk to v2.8.0 [ALT-104] (#46)

* chore: add new postmessage

* feat: update styling of dropzones

* fix: broken editor logic

* chore: fixing deps

* chore: fixing package

* chore: updating visual test app page to latest way of set up

* fix: image src variable

* feat: add toggle for staging domain

* feat: add toggle for staging domain

* feat: add header/footer for test-app

* chore: reverting some merge mistakes

* chore: reverting some merge mistakes

* chore: more merge fixes

* fix: exclude any node_modules from being included in the bundle

* fix: use entryMap instead of entitiesMap in the EntityStore

* fix: putting peerdeps back in temporarily to fix runtime issue

* fix: regenerating lock file to fix build

* chore: use rollup for sdk build

* chore: removing unneeded rollup peer deps plugin

* fix: fixing tests and EntityStore getValue fetch

* feat!: refactor components to be registered as default by SDK [ALT-115] (#48)

* Release@next []

* feat(storybook-addon): create scaffolding for experience-builder storybook add-on

* Commit forgotten files

* chore: making svgs work

* chore: add sb plugin to toolkit sb instances

* chore: rename storybook package

* fix(components): doc updates and slight changes to components

* chore: adding main readme

* chore: renaming readme

* chore: renaming readme back to uppercase

* chore: renaming readme back to uppercase

* chore: wip

* chore: adding readmes

* fix(components): doc updates and slight changes to components

* chore: cleanup

* chore: adding lang to code block

* chore: add docs for EB SB plugin

* chore: fix spelling

* chore: Update README.md

* fix(test-app): update sdk to v2.8.0 [ALT-104] (#46)

* fix: recreate package-lock

* chore: adding .env.local to gitignore

* feat!: refactor components to be registered as default by SDK [ALT-115] (#48)

---------

Co-authored-by: Chase Poirier <chase.poirier@contentful.com>
Co-authored-by: Ely Lucas <ely@meta-tek.net>
Co-authored-by: Chase Poirier <chase@chasepoirier.com>

* Publish

 - @contentful/experience-builder-components@0.0.1-alpha.11
 - create-experience-builder@0.0.1-alpha.1
 - @contentful/experience-builder-storybook-addon@0.0.1-alpha.2

* feat: refactor visual-editor, add state mgmt, hover states

* chore: refactor visual-editor, add state mgmt, hover states

* feat: add better dropzone indicators

* chore: more cleanup

* fix(components): updating binding value of image from url to src

* Publish

 - @contentful/experience-builder-components@0.0.1-alpha.12

* chore: move contentful-container to components pkg

* feat!: register toolkit components and include wrap container by default [ALT-115] (#175)

BREAKING CHANGE: Registered components will be wrapped with a div container by default. The `wrapComponent` option can be used when registering components to opt-out of this behavior if necessary.

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.0.0
 - @contentful/experience-builder-types@2.0.0

* chore: updating visual-editor-app with latest changes

* fix(experience-builder-types): extend variables type on component definition [ALT-57] (#178)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.0.1
 - @contentful/experience-builder-types@2.0.1

* chore: merge with development

* chore: merge with main

* chore(components): adding missing postcss-import dep

* chore(test-app): building core lib for vercel build

* chore: trying to change name of action file to kick it off

* chore: renaming workflow back to yml

* chore: add postcss script to inject styleInject

* chore: add postcss script to inject styleInject

* chore(components): disable lint errors on some files

* chore(components): disable lint errors on ContentfulContainerAsHyperlink

* chore: reset lock file

* chore: making all lint commands uniform

* feat: change container defaults

* feat: refactor containers

* refactor: generalize the DesignTokenDefinition type

* feat(visual-editor): allow reordering components in same parent [ALT-131] (#59)

* chore: wip

* feat(visual-editor): allow reordering components in same parent

* chore: remove hardcoded isPreview value

* feat: Create main.yml

* chore: update main.yml

* chore: add temp job to main.yml

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.0.2
 - @contentful/experience-builder-types@2.0.2

* fix: strictly check for asset link type [SPA-1673] (#187)

* fix: strictly check for asset link type

* test: add basic tests

---------

Co-authored-by: Lorenz <lorenz.weis@gmail.com>

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.0.3

* fix: update styling of containers

* fix: replace component values with actual onces before rendering [] (#192)

* fix: replace component values with actual onces before rendering

* test: adjust existing test, refactor fixture, create new test for dataSource

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.0.4

* chore: fix lint changes to get build to pass

* chore: updating to latest pre packages

* fix: inject script for Visual Editor [ALT-169] (#193)

* fix: inject script for Visual Editor [ALT-169] (#60)

* feat: resolves the design token values

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.1.0

* fix: render component values in preview and resolve links properly [] (#194)

* fix: replace component values and links properly

* fix: remove left over console log

* fix: remove old comment that doesnt fit

* test: adjust tests to consider new resolve logic

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.1.1

* fix: small fix to design token registry resolving design token values

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.1.2

* chore: fixing tests

* chore: removing accidental .only on spec

* chore: add styleInject workaround to components rollup config

* chore: updated to latest core and visual-editor packages

* feat: resolve design tokens for row and column gap

* fix: calculate component client rect via children (#196)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.1.3

* feat: initialize sustainable entity store (#200)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.2.0

* chore: refactor shared code into core lib [ALT-197] (#63)

* chore: moving EditorModelEntityStore and sendMessage to core

* chore: adding vitest for core unit tests and moving EditorModeStore test

* chore: removing unused error boundary

* chore: move constants.ts out of shared into types

* chore: moving domValues to core

* chore: move dragState out of shared and into utils

* chore: moving generate-id out of shared into utils

* chore: moving getItem out of shared and into util

* chore: oops on getItem drop

* chore: move getUnboundValues from shared to utils

* chore: move onDrop from shared to utils

* chore: move simulateMouseEvent from shared to utils

* chore: moving stylesUtils to core lib

* chore: move utils to core lib

* chore: moving zone.ts into utils

* chore: exporting types and constants from subfolders in core

* chore: removing types package

* chore: updating test apps to latest sdk lib

* chore: lint fixes

* chore: adding back in render.js output for visual-editor

* chore: refactor shared code into core lib [ALT-197] (#199)

* chore: moving EditorModelEntityStore and sendMessage to core

* chore: moving domValues to core

* chore: removing unused getUnboundValues.ts

* chore: moving stylesUtils to core lib

* chore: move utils to core lib

* chore: removing types package

* chore: update toolkit libs to latest

* chore: combining related imports

* feat: adds design token resultion for cfGap, cfWidth, cfHeight, and cfBackgroundColor

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.3.0

* chore: move toolkit pkgs to packages dir

* chore: migrate to npm, fix builds

* fix: ci build with npm

* chore: test ci without cli

* chore: move github actions

* chore: add scripts for gha

* fix: check.yml syntax

* chore: update scripts / publish branches

* chore: use coverage for unit tests

* chore: allow more branches for versioning

* chore: allow more branches for versioning

* chore: rename job, add test artifact upload

* chore: change hooks to use npx

* fix: test publish script after migration

* fix: change types reference to core

* chore: remove circle in favor of GHA

* chore: simplify circle in favor of GHA

* feat(experience-builder-sdk)!: make returned experience reactive to props [] (#161)

BREAKING CHANGES: useFetchExperience now requires mode, experienceTypeId, and localeCode parameters, and takes in either slug or id as optional params, though one of them is required.

You no longer need to use the exported `fetchBySlug` method to manually fetch a slug, though you can still use it if needed.

* feat(experience-builder-sdk)!: make returned experience reactive to props

* chore: typo fixes in test

* chore(experience-builder-sdk): pr feedback

* chore: updating test apps

* chore: merge in main

* fix: enable typography styles on the default Text component [ALT-144] (#202)

* chore: removing my immaturity

* chore(core): fix typings issue in (#203)

* chore: allow pre releases from feat/native-hybrid-editor branches

* fix: resolve breakpoint values correctly so that the ui doesn't crash

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.3.1

* feat: implement design components with hybrid editor

* feat: improve logs for example using a consistent prefix (#207)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.4.0

* fix: dont initialise entity store on every render by using state [SPA-1711] (#208)

* fix: dont initialise entity store on every render by using state

* test: adjust the test to not pass a fake ref to the component

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.4.1

* chore: refactor breakpoints to vanilla js in core pkg

* fix: design token logic breaks auto height for empty containers (#210)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.4.2

* fix: switching locale makes design components disappear [SPA-1711] (#209)

* fix: make design token logic aware of undefined values

* fix: more stabil loading order

* style: drop hacky piped function calls

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.4.3

* test: extend logs to detect loading issues [SPA-1711] (#211)

* test: add more information to warning logs

* test: add one more debug log to see whether entity fetchign was successful

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.4.4

* feat: increase the timeout for editor entity store to avoid data loss (#212)

* chore(release): updated release notes and package versions [ci skip]

 - @contentful/experience-builder@3.5.0

* chore: build tweaks

* fix: update font weight validations (#213)

* fix: update font weight style options [ALT-222]

* fix: change font weight validations [ALT-222]

* fix: update text transform label and import builtInStyles from core package [ALT-227] (#214)

* fix: entity store issues with design components

* chore: fix package name

* fix: change lerna config to allow publishing feat/native-visual-editor (#216)

* fix: tests and linting

* fix: linter

* chore: sync development with main

* chore: merge in next

* feat: add useFetchBySlug, useFetchById hooks and plain js fetchBySlug and fetchById methods (#206)

* feat: add useFetchBySlug, useFetchById hooks and plain js fetchBySlug and fetchById methods

* chore: fix test

* chore: renaming isFetching to isLoading

* chore: fix tests

* chore: changing types name to match style guide

* chore: lint fixes

* chore: update readme with example of useFetchBySlug

* chore: rename DropZone to Dropzone

* chore: Update packages/core/src/fetchers/fetchBySlug.ts

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* Update packages/core/src/fetchers/fetchReferencedEntities.ts

Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>

* fix: typing errors

* fix: import EntityStore from visual-sdk

* Revert "fix: import EntityStore from visual-sdk"

This reverts commit 48fa94e7f8994480b381689f25124d2d077200f4.

* Revert "fix: typing errors"

This reverts commit 3ed935aa57a9b43be2dc8b6dd2fca5e51061a87c.

* Revert "chore: Update packages/core/src/fetchers/fetchBySlug.ts"

This reverts commit ce153020881dca6f0fa5a54fe2a22283f623efc5.

* fix: case name of typing

* chore: fix error handling in core tests

* chore: derp removing .only

* chore: fix typo in fetchExperienceEntry filename

* feat(test-app): update test-app to hybrid editor and add ability to configure ctfl env vars via localStorage [] (#215)

* chore: wip

* chore: wip

* feat(test-app): add ability to configure ctfl env vars via localStorage

* chore(visual-editor-app): removing visual-editor-app package

* chore: package-lock fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ely Lucas <ely@meta-tek.net>
Co-authored-by: elylucas <elylucas@users.noreply.github.com>
Co-authored-by: Chidinma orajiaku <corajiaku96@gmail.com>
Co-authored-by: Daniel Vasylenko <connect.danv@gmail.com>
Co-authored-by: Daniel Vasylenko <Spring3@users.noreply.github.com>
Co-authored-by: ChidinmaOrajiaku <30434146+ChidinmaOrajiaku@users.noreply.github.com>
Co-authored-by: Andreas Egger <93705529+andreascful@users.noreply.github.com>
Co-authored-by: Sofia Margariti <sofia.margariti@contentful.com>
Co-authored-by: Lorenz Weiß <34910067+loweisz@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitry Kireyenkoff <113918657+dimitrycf@users.noreply.github.com>
Co-authored-by: Anwar Ahmad <anwaar.lance@gmail.com>
Co-authored-by: Thomas Kellermeier <Chaoste@users.noreply.github.com>
Co-authored-by: Dimitry Kireyenkoff <dimitry.kireyenkoff@contentful.com>
Co-authored-by: Thomas Kellermeier <thomas.kellermeier@contentful.com>
Co-authored-by: Chris Helgert <chrishelgert@users.noreply.github.com>
Co-authored-by: contentful-automation[bot] <100587065+contentful-automation[bot]@users.noreply.github.com>
Co-authored-by: Adrian Meyer <8539634+primeinteger@users.noreply.github.com>
Co-authored-by: ryunsong-contentful <ryun.song@contentful.com>
Co-authored-by: ryunsong-contentful <124832189+ryunsong-contentful@users.noreply.github.com>
Co-authored-by: primeinteger <primeinteger@users.noreply.github.com>
Co-authored-by: Lorenz <lorenz.weis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants