plug-code 1.1.3 → 1.1.4
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/package.json +1 -1
- package/types/plug-code.d.ts +2 -2
package/package.json
CHANGED
package/types/plug-code.d.ts
CHANGED
|
@@ -52,12 +52,12 @@ export declare class PlcAPI<S extends ObjectType> {
|
|
|
52
52
|
* @param name Identificador único para debugging y prevención de duplicados.
|
|
53
53
|
* @param setupFn Función de configuración donde registras slots, comandos, etc.
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
createFeature(name: string, setupFn: (api: PlcAPI<S>) => void): PlcAPI<S>;
|
|
56
56
|
|
|
57
57
|
// --- Gestión de UI (Slots & Rendering) ---
|
|
58
58
|
|
|
59
59
|
register(slot: string, node: () => React.ReactNode): void;
|
|
60
|
-
register<K extends string>(slot: string, node: (data:
|
|
60
|
+
register<K extends string>(slot: string, node: (data: keyof S) => React.ReactNode, dependencyKey: K): void;
|
|
61
61
|
|
|
62
62
|
/** Envuelve un slot existente (Decorador/Wrapper) */
|
|
63
63
|
wrap(slot: string, fn: (next: () => React.ReactNode) => () => React.ReactNode): void;
|