# apostrophe-area-structure

> ### A tool for visualizing a page's area structure

Latest version **1.1.1** (published 2020-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install apostrophe-area-structure
pnpm add apostrophe-area-structure
yarn add apostrophe-area-structure
bun add apostrophe-area-structure
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-08-26 |
| First published | 2019-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.5 MB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | P'unk Avenue, LLC |
| Maintainers | alexbea, alexgilbert, austinstarin, bgantick, bobclewell, boutell, breyell, falkodev, grdunn, gregvanbrug, mtthwmnc, ngranahan, stuartromanek |
| Keywords | apostrophecms, apostrophe |

## Links

- npm: https://www.npmjs.com/package/apostrophe-area-structure
- Repository: https://github.com/apostrophecms/apostrophe-area-structure
- Homepage: https://github.com/apostrophecms/apostrophe-area-structure#readme
- Issues: https://github.com/apostrophecms/apostrophe-area-structure/issues
- npm.io page: https://npm.io/package/apostrophe-area-structure

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3

## Recent versions

- 1.1.1 (latest) — 2020-08-26
- 1.1.0 — 2020-08-12
- 1.0.3 — 2019-06-25
- 1.0.1 — 2019-06-24
- 1.0.0 — 2019-06-24

## README

# apostrophe-area-structure

### A tool for visualizing a page's area structure

![A demo of the apostrophe-area-structure module](demo/apostrophe-area-structure-demo.gif)

This module adds a `Page Area Structure` menu item to your Page Settings menu that unspools the current page's DOM for all areas and their widgets (and those widget's areas and _their_ widgets, etc) and nests them in a way that makes it simple to see their structure, without widget players/CSS obscuring them.

The menu displays the area's `name` (key the area is stored in on the document) as well as what the parent document's title/slug.

From this menu you can delete a widget (which will delete all of its child areas, etc., just as it would if you clicked the delete button for that widget on the page).

You can also edit a widget. This will close the Page Area Structure dialog box and scroll to the widget, before activating the appropriate editor dialog box or in the case of rich text, triggering a click to initiate the on-page editor.

## Installation
In your Apostrophe project:
- `npm i apostrophe-area-structure`
- In your `app.js`
```javascript
const apos = require('apostrophe')({
  shortName: 'my-project',
  modules: {
    // ... other configuration
    'apostrophe-area-structure': {}
  }
});
```

---
_Source: https://npm.io/package/apostrophe-area-structure · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
