@mission-studio/puck 1.0.15 → 1.0.16

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.
@@ -1,6 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
1
  type ColorValue = {
5
2
  color: string;
6
3
  opacity: number;
@@ -93,21 +90,6 @@ type ThemeableShadowValue = {
93
90
  value: string;
94
91
  };
95
92
 
96
- type ThemeContextValue = {
97
- theme: PageTheme;
98
- resolveColor: (key: ThemeColorKey) => ColorValue;
99
- resolveSpacing: (key: ThemeSpacingKey) => number;
100
- resolveBorderRadius: (key: ThemeBorderKey) => number;
101
- resolveShadow: (key: ThemeShadowKey) => string;
102
- };
103
- declare function ThemeProvider({ theme, children, }: {
104
- theme: PageTheme | null;
105
- children: ReactNode;
106
- }): react_jsx_runtime.JSX.Element;
107
- declare function useTheme(): ThemeContextValue;
108
-
109
- declare const DEFAULT_THEME: PageTheme;
110
-
111
93
  type EntryContent = Record<string, string | number | boolean | null>;
112
94
  type Entry = {
113
95
  id: string;
@@ -126,10 +108,4 @@ type EntryBoundValue<T> = {
126
108
  value: T;
127
109
  };
128
110
 
129
- type ResponsiveVisibility = {
130
- mobile: boolean;
131
- desktop: boolean;
132
- };
133
- declare function ResponsiveToggleField({ value, onChangeAction, disabled, label, }: CustomFieldProps<ResponsiveVisibility>): react_jsx_runtime.JSX.Element;
134
-
135
- export { type ColorValue as C, DEFAULT_THEME as D, type Entry as E, type PageTheme as P, type ResponsiveVisibility as R, type ThemeBorderKey as T, type ThemeBorders as a, type ThemeColorKey as b, type ThemeColors as c, ThemeProvider as d, type ThemeShadowKey as e, type ThemeShadows as f, type ThemeSpacing as g, type ThemeSpacingKey as h, type ThemeTypography as i, type ThemeableBorderRadiusValue as j, type ThemeableColorValue as k, type ThemeableShadowValue as l, type ThemeableSpacingValue as m, type EntryBoundValue as n, type CustomFieldProps as o, type EntryContent as p, ResponsiveToggleField as q, useTheme as u };
111
+ export type { ColorValue as C, Entry as E, PageTheme as P, ThemeBorderKey as T, ThemeBorders as a, ThemeColorKey as b, ThemeColors as c, ThemeShadowKey as d, ThemeShadows as e, ThemeSpacing as f, ThemeSpacingKey as g, ThemeTypography as h, ThemeableBorderRadiusValue as i, ThemeableColorValue as j, ThemeableShadowValue as k, ThemeableSpacingValue as l, CustomFieldProps as m, EntryBoundValue as n, EntryContent as o };
@@ -1,6 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
1
  type ColorValue = {
5
2
  color: string;
6
3
  opacity: number;
@@ -93,21 +90,6 @@ type ThemeableShadowValue = {
93
90
  value: string;
94
91
  };
95
92
 
96
- type ThemeContextValue = {
97
- theme: PageTheme;
98
- resolveColor: (key: ThemeColorKey) => ColorValue;
99
- resolveSpacing: (key: ThemeSpacingKey) => number;
100
- resolveBorderRadius: (key: ThemeBorderKey) => number;
101
- resolveShadow: (key: ThemeShadowKey) => string;
102
- };
103
- declare function ThemeProvider({ theme, children, }: {
104
- theme: PageTheme | null;
105
- children: ReactNode;
106
- }): react_jsx_runtime.JSX.Element;
107
- declare function useTheme(): ThemeContextValue;
108
-
109
- declare const DEFAULT_THEME: PageTheme;
110
-
111
93
  type EntryContent = Record<string, string | number | boolean | null>;
112
94
  type Entry = {
113
95
  id: string;
@@ -126,10 +108,4 @@ type EntryBoundValue<T> = {
126
108
  value: T;
127
109
  };
128
110
 
129
- type ResponsiveVisibility = {
130
- mobile: boolean;
131
- desktop: boolean;
132
- };
133
- declare function ResponsiveToggleField({ value, onChangeAction, disabled, label, }: CustomFieldProps<ResponsiveVisibility>): react_jsx_runtime.JSX.Element;
134
-
135
- export { type ColorValue as C, DEFAULT_THEME as D, type Entry as E, type PageTheme as P, type ResponsiveVisibility as R, type ThemeBorderKey as T, type ThemeBorders as a, type ThemeColorKey as b, type ThemeColors as c, ThemeProvider as d, type ThemeShadowKey as e, type ThemeShadows as f, type ThemeSpacing as g, type ThemeSpacingKey as h, type ThemeTypography as i, type ThemeableBorderRadiusValue as j, type ThemeableColorValue as k, type ThemeableShadowValue as l, type ThemeableSpacingValue as m, type EntryBoundValue as n, type CustomFieldProps as o, type EntryContent as p, ResponsiveToggleField as q, useTheme as u };
111
+ export type { ColorValue as C, Entry as E, PageTheme as P, ThemeBorderKey as T, ThemeBorders as a, ThemeColorKey as b, ThemeColors as c, ThemeShadowKey as d, ThemeShadows as e, ThemeSpacing as f, ThemeSpacingKey as g, ThemeTypography as h, ThemeableBorderRadiusValue as i, ThemeableColorValue as j, ThemeableShadowValue as k, ThemeableSpacingValue as l, CustomFieldProps as m, EntryBoundValue as n, EntryContent as o };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mission-studio/puck",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "A collection of puck components and configurations for internal use at Mission Studio.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,6 +37,11 @@
37
37
  "import": "./dist/config-entry.mjs",
38
38
  "require": "./dist/config-entry.js"
39
39
  },
40
+ "./config/server": {
41
+ "types": "./dist/config/server.d.ts",
42
+ "import": "./dist/config/server.mjs",
43
+ "require": "./dist/config/server.js"
44
+ },
40
45
  "./hooks": {
41
46
  "types": "./dist/hooks/index.d.ts",
42
47
  "import": "./dist/hooks/index.mjs",
@@ -47,6 +52,11 @@
47
52
  "import": "./dist/renderer.mjs",
48
53
  "require": "./dist/renderer.js"
49
54
  },
55
+ "./resolve": {
56
+ "types": "./dist/resolve/index.d.ts",
57
+ "import": "./dist/resolve/index.mjs",
58
+ "require": "./dist/resolve/index.js"
59
+ },
50
60
  "./styles.css": "./dist/styles.css"
51
61
  },
52
62
  "scripts": {