@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 974 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/navigation-link/variations.js"],
"sourcesContent": ["import { __ } from '@wordpress/i18n';\nimport { customLink as linkIcon } from '@wordpress/icons';\n\nconst variations = [\n\t{\n\t\tname: 'custom-link',\n\t\ttitle: __( 'Custom Link' ),\n\t\tdescription: __( 'Add a custom link to your navigation.' ),\n\t\ticon: linkIcon,\n\t\tattributes: {\n\t\t\tkind: 'custom',\n\t\t},\n\t\tisActive: ( blockAttributes ) => blockAttributes.kind === 'custom',\n\t\tisDefault: true,\n\t\tscope: [ 'inserter' ],\n\t},\n];\n\nexport default variations;\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAmB;AACnB,mBAAuC;AAEvC,IAAM,aAAa;AAAA,EAClB;AAAA,IACC,MAAM;AAAA,IACN,WAAO,gBAAI,aAAc;AAAA,IACzB,iBAAa,gBAAI,uCAAwC;AAAA,IACzD,MAAM,aAAAA;AAAA,IACN,YAAY;AAAA,MACX,MAAM;AAAA,IACP;AAAA,IACA,UAAU,CAAE,oBAAqB,gBAAgB,SAAS;AAAA,IAC1D,WAAW;AAAA,IACX,OAAO,CAAE,UAAW;AAAA,EACrB;AACD;AAEA,IAAO,qBAAQ;",
"names": ["linkIcon"]
}