@dotcms/uve 0.0.1-beta.2 → 0.0.1-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +321 -4
  2. package/index.cjs.d.ts +1 -1
  3. package/index.cjs.js +10 -54
  4. package/index.cjs2.js +1150 -0
  5. package/index.esm.d.ts +1 -1
  6. package/index.esm.js +2 -56
  7. package/index.esm2.js +1118 -0
  8. package/internal.cjs.d.ts +1 -0
  9. package/internal.cjs.default.js +1 -0
  10. package/internal.cjs.js +39 -0
  11. package/internal.cjs.mjs +2 -0
  12. package/internal.esm.d.ts +1 -0
  13. package/internal.esm.js +2 -0
  14. package/package.json +26 -7
  15. package/src/index.d.ts +2 -0
  16. package/src/internal/constants.d.ts +76 -0
  17. package/src/internal/events.d.ts +66 -0
  18. package/src/internal/index.d.ts +1 -0
  19. package/src/internal.d.ts +6 -0
  20. package/src/lib/{utils.d.ts → core/core.utils.d.ts} +20 -1
  21. package/src/lib/dom/dom.utils.d.ts +206 -0
  22. package/src/lib/editor/internal.d.ts +23 -0
  23. package/src/lib/editor/public.d.ts +62 -0
  24. package/src/lib/types/block-editor-renderer/internal.d.ts +46 -0
  25. package/src/lib/types/block-editor-renderer/public.d.ts +38 -0
  26. package/src/lib/types/editor/internal.d.ts +119 -0
  27. package/src/lib/types/editor/public.d.ts +225 -0
  28. package/src/lib/types/events/internal.d.ts +34 -0
  29. package/src/lib/types/events/public.d.ts +18 -0
  30. package/src/lib/types/page/public.d.ts +421 -0
  31. package/src/script/sdk-editor.d.ts +6 -0
  32. package/src/script/utils.d.ts +52 -0
  33. package/src/types.d.ts +4 -0
  34. package/types.cjs.d.ts +1 -1
  35. package/types.cjs.js +97 -4
  36. package/types.esm.d.ts +1 -1
  37. package/types.esm.js +98 -5
  38. package/src/lib/types.d.ts +0 -33
  39. package/src/public/index.d.ts +0 -2
  40. package/src/public/types.d.ts +0 -2
@@ -1,33 +0,0 @@
1
- /**
2
- * Represents the state of the Universal Visual Editor (UVE)
3
- * @interface
4
- * @property {UVE_MODE} mode - The current mode of operation for UVE (EDIT, PREVIEW, LIVE, or UNKNOWN)
5
- * @property {string | null} persona - The selected persona for content personalization
6
- * @property {string | null} variantName - The name of the current content variant
7
- * @property {string | null} experimentId - The identifier for the current A/B testing experiment
8
- * @property {string | null} publishDate - The scheduled publish date for content
9
- * @property {string | null} languageId - The identifier for the current language selection
10
- */
11
- export interface UVEState {
12
- mode: UVE_MODE;
13
- persona: string | null;
14
- variantName: string | null;
15
- experimentId: string | null;
16
- publishDate: string | null;
17
- languageId: string | null;
18
- }
19
- /**
20
- * Possible modes of UVE (Universal Visual Editor)
21
- * @enum {string}
22
- *
23
- * @property {string} LIVE - Shows published and future content
24
- * @property {string} PREVIEW - Shows published and working content
25
- * @property {string} EDIT - Enables content editing functionality in UVE
26
- * @property {string} UNKNOWN - Error state, UVE should not remain in this mode
27
- */
28
- export declare enum UVE_MODE {
29
- EDIT = "EDIT_MODE",
30
- PREVIEW = "PREVIEW_MODE",
31
- LIVE = "LIVE",
32
- UNKNOWN = "UNKNOWN"
33
- }
@@ -1,2 +0,0 @@
1
- import { getUVEState } from '../lib/utils';
2
- export { getUVEState };
@@ -1,2 +0,0 @@
1
- import { UVE_MODE, UVEState } from '../lib/types';
2
- export { UVE_MODE, UVEState };