{"version":3,"file":"saved-views.cjs","names":["extendFeature","SAVED_VIEWS","slotRender","savedViews","core","SavedViewsMenu","options","props"],"sources":["../src/saved-views.tsx"],"sourcesContent":["import {\n  extendFeature,\n  SAVED_VIEWS,\n  slotRender,\n  type StaticTableFeature,\n} from \"@adapttable/react/adapter\";\nimport {\n  savedViews as core,\n  type UseSavedViewsOptions,\n} from \"@adapttable/react/features\";\n\nimport { SavedViewsMenu } from \"./components/SavedViewsMenu\";\n\n/**\n * Named snapshots of the table's URL state, drawn with MUI's own menu.\n *\n * The menu calls `useSavedViews`; a table that never imports this entry\n * never carries that hook.\n *\n * @public\n */\nexport function savedViews(options: UseSavedViewsOptions): StaticTableFeature {\n  return extendFeature(core(options), [\n    slotRender(SAVED_VIEWS, (props) => <SavedViewsMenu {...props} />),\n  ]);\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,SAAgBG,WAAWG,SAAmD;CAC5E,QAAA,GAAON,0BAAAA,cAAAA,EAAAA,GAAcI,2BAAAA,WAAAA,CAAKE,OAAO,GAAG,EAAA,GAClCJ,0BAAAA,WAAAA,CAAWD,0BAAAA,cAAcM,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAA,gBAAD,EAAgB,GAAIA,MAAM,CAAA,CAAG,CAAC,CAClE;AACH"}