{"version":3,"file":"actions.mjs","names":[],"sources":["../../src/store/actions.js"],"sourcesContent":["import deprecated from '@wordpress/deprecated';\n\n/**\n * Returns a no-op thunk. This package is deprecated and converting reusable\n * blocks is now handled elsewhere, but the action remains for backward\n * compatibility.\n */\nexport const __experimentalConvertBlockToStatic = () => () => {\n\tdeprecated(\n\t\t\"wp.data.dispatch( 'core/reusable-blocks' ).__experimentalConvertBlockToStatic\",\n\t\t{\n\t\t\tsince: '7.1',\n\t\t}\n\t);\n};\n\n/**\n * Returns a no-op thunk. This package is deprecated and converting blocks into\n * patterns is now handled elsewhere, but the action remains for backward\n * compatibility.\n */\nexport const __experimentalConvertBlocksToReusable = () => async () => {\n\tdeprecated(\n\t\t\"wp.data.dispatch( 'core/reusable-blocks' ).__experimentalConvertBlocksToReusable\",\n\t\t{\n\t\t\tsince: '7.1',\n\t\t}\n\t);\n};\n\n/**\n * Returns a no-op thunk. This package is deprecated and deleting reusable\n * blocks is now handled elsewhere, but the action remains for backward\n * compatibility.\n */\nexport const __experimentalDeleteReusableBlock = () => async () => {\n\tdeprecated(\n\t\t\"wp.data.dispatch( 'core/reusable-blocks' ).__experimentalDeleteReusableBlock\",\n\t\t{\n\t\t\tsince: '7.1',\n\t\t}\n\t);\n};\n\n/**\n * Returns a no-op action object. This package is deprecated and tracking the\n * editing state of reusable blocks is no longer handled here, but the action\n * remains for backward compatibility.\n *\n * @param {string}  clientId  The clientID of the reusable block to target.\n * @param {boolean} isEditing Whether the block should be in editing state.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalSetEditingReusableBlock( clientId, isEditing ) {\n\tdeprecated(\n\t\t\"wp.data.dispatch( 'core/reusable-blocks' ).__experimentalSetEditingReusableBlock\",\n\t\t{\n\t\t\tsince: '7.1',\n\t\t}\n\t);\n\n\treturn {\n\t\ttype: 'SET_EDITING_REUSABLE_BLOCK',\n\t\tclientId,\n\t\tisEditing,\n\t};\n}\n"],"mappings":";;;;;;;AAOA,MAAa,iDAAiD;CAC7D,WACC,iFACA,EACC,OAAO,MACR,CACD;AACD;;;;;;AAOA,MAAa,8CAA8C,YAAY;CACtE,WACC,oFACA,EACC,OAAO,MACR,CACD;AACD;;;;;;AAOA,MAAa,0CAA0C,YAAY;CAClE,WACC,gFACA,EACC,OAAO,MACR,CACD;AACD;;;;;;;;;;;AAYA,SAAgB,sCAAuC,UAAU,WAAY;CAC5E,WACC,oFACA,EACC,OAAO,MACR,CACD;CAEA,OAAO;EACN,MAAM;EACN;EACA;CACD;AACD"}