@tecof/theme-editor 0.0.35 → 0.0.37

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.
package/dist/index.d.mts CHANGED
@@ -246,35 +246,18 @@ interface TecofContextValue {
246
246
  declare const TecofProvider: ({ apiUrl, secretKey, cdnUrl, children }: TecofProviderProps) => react_jsx_runtime.JSX.Element;
247
247
  declare function useTecof(): TecofContextValue;
248
248
 
249
- /**
250
- * TecofEditor — Puck CMS page editor.
251
- *
252
- * - Fetches page by ID via secretKey auth
253
- * - Saves draft via API (taslak kaydet)
254
- * - Supports iframe postMessage:
255
- * - puck:save → triggers draft save
256
- * - puck:undo → undo
257
- * - puck:redo → redo
258
- * - puck:viewport → resize preview
259
- * - Sends to parent:
260
- * - puck:saved → draft saved successfully
261
- * - puck:changed → data changed
262
- * - puck:itemSelected → item selected { item, id }
263
- *
264
- * Requires `<TecofProvider>` ancestor for API client.
265
- */
266
- declare const TecofEditor: ({ pageId, config, accessToken, onSave, onChange, overrides, plugins: extraPlugins, className, }: TecofEditorProps) => react_jsx_runtime.JSX.Element;
249
+ declare const TecofEditor: ({ pageId, config, accessToken, onSave, onChange, className, }: TecofEditorProps) => react_jsx_runtime.JSX.Element;
267
250
 
268
251
  declare const TecofStudio: ({ pageId, config, accessToken, onSave, onChange, className, }: TecofEditorProps) => react_jsx_runtime.JSX.Element;
269
252
 
270
253
  /**
271
- * TecofRender — Puck page renderer.
254
+ * TecofRender — Puck-compatible native page renderer.
272
255
  *
273
256
  * Pass `data` (PuckPageData) and `config` (Puck Config) directly.
274
257
  * Optionally pass `cmsData` to make CMS item data available to all
275
- * Puck components via `puck.metadata.cmsData`.
258
+ * components via `puck.metadata.cmsData`.
276
259
  *
277
- * No API fetch, no provider required.
260
+ * No API fetch, no provider required, zero @puckeditor/core dependency.
278
261
  */
279
262
  declare const TecofRender: ({ data, config, className, cmsData }: TecofRenderProps) => react_jsx_runtime.JSX.Element | null;
280
263
 
package/dist/index.d.ts CHANGED
@@ -246,35 +246,18 @@ interface TecofContextValue {
246
246
  declare const TecofProvider: ({ apiUrl, secretKey, cdnUrl, children }: TecofProviderProps) => react_jsx_runtime.JSX.Element;
247
247
  declare function useTecof(): TecofContextValue;
248
248
 
249
- /**
250
- * TecofEditor — Puck CMS page editor.
251
- *
252
- * - Fetches page by ID via secretKey auth
253
- * - Saves draft via API (taslak kaydet)
254
- * - Supports iframe postMessage:
255
- * - puck:save → triggers draft save
256
- * - puck:undo → undo
257
- * - puck:redo → redo
258
- * - puck:viewport → resize preview
259
- * - Sends to parent:
260
- * - puck:saved → draft saved successfully
261
- * - puck:changed → data changed
262
- * - puck:itemSelected → item selected { item, id }
263
- *
264
- * Requires `<TecofProvider>` ancestor for API client.
265
- */
266
- declare const TecofEditor: ({ pageId, config, accessToken, onSave, onChange, overrides, plugins: extraPlugins, className, }: TecofEditorProps) => react_jsx_runtime.JSX.Element;
249
+ declare const TecofEditor: ({ pageId, config, accessToken, onSave, onChange, className, }: TecofEditorProps) => react_jsx_runtime.JSX.Element;
267
250
 
268
251
  declare const TecofStudio: ({ pageId, config, accessToken, onSave, onChange, className, }: TecofEditorProps) => react_jsx_runtime.JSX.Element;
269
252
 
270
253
  /**
271
- * TecofRender — Puck page renderer.
254
+ * TecofRender — Puck-compatible native page renderer.
272
255
  *
273
256
  * Pass `data` (PuckPageData) and `config` (Puck Config) directly.
274
257
  * Optionally pass `cmsData` to make CMS item data available to all
275
- * Puck components via `puck.metadata.cmsData`.
258
+ * components via `puck.metadata.cmsData`.
276
259
  *
277
- * No API fetch, no provider required.
260
+ * No API fetch, no provider required, zero @puckeditor/core dependency.
278
261
  */
279
262
  declare const TecofRender: ({ data, config, className, cmsData }: TecofRenderProps) => react_jsx_runtime.JSX.Element | null;
280
263