@process.co/ui 0.0.21 → 0.0.23

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.
@@ -26,6 +26,18 @@ interface SlotDragHandleProps {
26
26
  }
27
27
  declare const SlotDragHandle: (props: SlotDragHandleProps) => React.JSX.Element;
28
28
 
29
+ /**
30
+ * Hook to subscribe to the slot enabled and active states by slot id.
31
+ *
32
+ * When used within a DevProvider, uses the dev context's slot enabled state.
33
+ * When used within a production provider, uses the real store.
34
+ * Returns undefined when not inside any provider.
35
+ */
36
+ declare function useSlotContext(slotId: string): {
37
+ active: boolean;
38
+ enabled: boolean;
39
+ } | undefined;
40
+
29
41
  declare const index_ExportManager: typeof ExportManager;
30
42
  type index_ExportManagerProps = ExportManagerProps;
31
43
  declare const index_SlotDelete: typeof SlotDelete;
@@ -36,8 +48,9 @@ declare const index_SlotElements: typeof SlotElements;
36
48
  type index_SlotElementsProps = SlotElementsProps;
37
49
  declare const index_SlotEnable: typeof SlotEnable;
38
50
  type index_SlotEnableProps = SlotEnableProps;
51
+ declare const index_useSlotContext: typeof useSlotContext;
39
52
  declare namespace index {
40
- export { index_ExportManager as ExportManager, type index_ExportManagerProps as ExportManagerProps, index_SlotDelete as SlotDelete, type index_SlotDeleteProps as SlotDeleteProps, index_SlotDragHandle as SlotDragHandle, type index_SlotDragHandleProps as SlotDragHandleProps, index_SlotElements as SlotElements, type index_SlotElementsProps as SlotElementsProps, index_SlotEnable as SlotEnable, type index_SlotEnableProps as SlotEnableProps };
53
+ export { index_ExportManager as ExportManager, type index_ExportManagerProps as ExportManagerProps, index_SlotDelete as SlotDelete, type index_SlotDeleteProps as SlotDeleteProps, index_SlotDragHandle as SlotDragHandle, type index_SlotDragHandleProps as SlotDragHandleProps, index_SlotElements as SlotElements, type index_SlotElementsProps as SlotElementsProps, index_SlotEnable as SlotEnable, type index_SlotEnableProps as SlotEnableProps, index_useSlotContext as useSlotContext };
41
54
  }
42
55
 
43
- export { ExportManager as E, SlotElements as S, type SlotElementsProps as a, type ExportManagerProps as b, SlotEnable as c, type SlotEnableProps as d, SlotDelete as e, type SlotDeleteProps as f, SlotDragHandle as g, type SlotDragHandleProps as h, index as i };
56
+ export { ExportManager as E, SlotElements as S, type SlotElementsProps as a, type ExportManagerProps as b, SlotEnable as c, type SlotEnableProps as d, SlotDelete as e, type SlotDeleteProps as f, SlotDragHandle as g, type SlotDragHandleProps as h, index as i, useSlotContext as u };
@@ -26,6 +26,18 @@ interface SlotDragHandleProps {
26
26
  }
27
27
  declare const SlotDragHandle: (props: SlotDragHandleProps) => React.JSX.Element;
28
28
 
29
+ /**
30
+ * Hook to subscribe to the slot enabled and active states by slot id.
31
+ *
32
+ * When used within a DevProvider, uses the dev context's slot enabled state.
33
+ * When used within a production provider, uses the real store.
34
+ * Returns undefined when not inside any provider.
35
+ */
36
+ declare function useSlotContext(slotId: string): {
37
+ active: boolean;
38
+ enabled: boolean;
39
+ } | undefined;
40
+
29
41
  declare const index_ExportManager: typeof ExportManager;
30
42
  type index_ExportManagerProps = ExportManagerProps;
31
43
  declare const index_SlotDelete: typeof SlotDelete;
@@ -36,8 +48,9 @@ declare const index_SlotElements: typeof SlotElements;
36
48
  type index_SlotElementsProps = SlotElementsProps;
37
49
  declare const index_SlotEnable: typeof SlotEnable;
38
50
  type index_SlotEnableProps = SlotEnableProps;
51
+ declare const index_useSlotContext: typeof useSlotContext;
39
52
  declare namespace index {
40
- export { index_ExportManager as ExportManager, type index_ExportManagerProps as ExportManagerProps, index_SlotDelete as SlotDelete, type index_SlotDeleteProps as SlotDeleteProps, index_SlotDragHandle as SlotDragHandle, type index_SlotDragHandleProps as SlotDragHandleProps, index_SlotElements as SlotElements, type index_SlotElementsProps as SlotElementsProps, index_SlotEnable as SlotEnable, type index_SlotEnableProps as SlotEnableProps };
53
+ export { index_ExportManager as ExportManager, type index_ExportManagerProps as ExportManagerProps, index_SlotDelete as SlotDelete, type index_SlotDeleteProps as SlotDeleteProps, index_SlotDragHandle as SlotDragHandle, type index_SlotDragHandleProps as SlotDragHandleProps, index_SlotElements as SlotElements, type index_SlotElementsProps as SlotElementsProps, index_SlotEnable as SlotEnable, type index_SlotEnableProps as SlotEnableProps, index_useSlotContext as useSlotContext };
41
54
  }
42
55
 
43
- export { ExportManager as E, SlotElements as S, type SlotElementsProps as a, type ExportManagerProps as b, SlotEnable as c, type SlotEnableProps as d, SlotDelete as e, type SlotDeleteProps as f, SlotDragHandle as g, type SlotDragHandleProps as h, index as i };
56
+ export { ExportManager as E, SlotElements as S, type SlotElementsProps as a, type ExportManagerProps as b, SlotEnable as c, type SlotEnableProps as d, SlotDelete as e, type SlotDeleteProps as f, SlotDragHandle as g, type SlotDragHandleProps as h, index as i, useSlotContext as u };