(self, block)
Feed the exporter with a single block dict.

        Args:
            block: single block dict from the story.
Feed the exporter with a single block dict.
Feed the exporter with a single block dict .
def from_block_dict(self, block):
        """Feed the exporter with a single block dict.

        Args:
            block: single block dict from the story.
        """
        component = block.get('componentName', 'N/A')
        properties = block.get('componentProps', {})

        if not self._data_fetcher:
            return

        if not component:
            self._data_lines.append(
                {'type': 'text', 'value': block.get('content', '')})
        elif component == 'TsViewEventList':
            self._data_lines.append({
                'type': 'dataframe',
                'value': self._data_fetcher.get_view(properties.get('view'))})
        elif component == 'TsAggregationCompact':
            self._data_lines.append({
                'type': 'aggregation',
                'value': self._data_fetcher.get_aggregation(
                    properties.get('aggregation'))})
        elif component == 'TsAggregationGroupCompact':
            self._data_lines.append({
                'type': 'chart',
                'value': self._data_fetcher.get_aggregation_group(
                    properties.get('aggregation_group'))})
def from_block_dict ( self , block ) : component = block . get ( 'componentName' , 'N/A' ) properties = block . get ( 'componentProps' , { } ) if not self . _data_fetcher : return if not component : self . _data_lines . append ( { 'type' : 'text' , 'value' : block . get ( 'content' , '' ) } ) elif component == 'TsViewEventList' : self . _data_lines . append ( { 'type' : 'dataframe' , 'value' : self . _data_fetcher . get_view ( properties . get ( 'view' ) ) } ) elif component == 'TsAggregationCompact' : self . _data_lines . append ( { 'type' : 'aggregation' , 'value' : self . _data_fetcher . get_aggregation ( properties . get ( 'aggregation' ) ) } ) elif component == 'TsAggregationGroupCompact' : self . _data_lines . append ( { 'type' : 'chart' , 'value' : self . _data_fetcher . get_aggregation_group ( properties . get ( 'aggregation_group' ) ) } )