Skip to content

Releases

content-sharing 2.5.4

Choose a tag to compare

@smonier smonier released this 23 Nov 18:28
4a87e6f

Fixed

  • jContent's right-click and row menus stayed on grey placeholders on every content item where
    Share for external review is not offered, such as a content folder: the action hid itself in a
    way jContent's menus wait for forever. It now hides like jContent's own actions, and the menus
    open at once. Everyone on 2.5.0 to 2.5.3 should upgrade.

content-sharing 2.5.3

Choose a tag to compare

@smonier smonier released this 16 Nov 18:18
2b96e0e

Fixed

  • Site Settings > Shared links fits a 1280 px window with the administration menu open: the table
    scrolled sideways and its Revoke and Publish buttons were off the right edge. Each link's kind
    and language now sit under the content's name instead of in two columns of their own.

Changed

  • The module description names where the Shared links list is: Site Settings, not jContent.
  • yarn lint runs ESLint 9 with the rules the SonarQube check of pull requests fails on
    (eslint.config.mjs), in place of the old ESLint 8 configuration. The few places it reported
    are rewritten with the same behaviour.

content-sharing 2.5.2

Choose a tag to compare

@smonier smonier released this 16 Nov 16:18
6a3ab9b

Fixed

  • The review dialog names the language in full when jContent runs in a regional language
    (Brazilian Portuguese, Chinese): it showed the language code.

Changed

  • The module manager and the Store describe the module (they showed a placeholder text), and the
    repository carries its MIT license.
  • Dependencies updated: Vitest 4 and copy-webpack-plugin 14 for the build and the tests, and
    react-i18next declared as any 11.x release, the version jContent provides. The module no longer
    imports Apache Commons Lang; nothing changes for editors or reviewers.

Already on 2.5.x: deploy this jar, nothing else to run. From 2.4: deploy it, then run migration/3-review-links-2.5.groovy (see UPGRADE.md).

The jar was built by the CI run on the tag.

content-sharing 2.5.1

Choose a tag to compare

@smonier smonier released this 06 Nov 09:43
029f5ab

Fixed

  • Reload in the Shared links panel now reads everything again. It re-read the links only: a
    language added to the site, or the module switched off, showed after reopening the panel. It now
    asks the server for the site's languages and settings, then for every link, never from a cache,
    and the button shows that it is busy while the table stays on screen.

Added

  • migration/3-review-links-2.5.groovy moves review links made before 2.5.0 to the 2.5 storage,
    keeping their keys, so their addresses keep working. See UPGRADE.md.

Upgrading from 2.4: deploy this jar, then run migration/3-review-links-2.5.groovy (see UPGRADE.md). Already on 2.5.0: deploy the jar, nothing else to run.

The jar was built by the CI run on the tag.

content-sharing 2.5.0

Choose a tag to compare

@smonier smonier released this 05 Nov 21:52
3ce5f8b

Share a draft with someone without an account straight from the Preview menu, and review links no longer touch the content's publication. Upgrade from any 2.3.x or 2.4.x.

Added

  • Share for external review, in the menu next to Preview on a page (Page Builder and page header), and in the More options and right-click menus of a content item with its own URL or a file. A dialog creates the review link for the language being edited, valid from 1 day to 30 days, then shows it: copy it, open it as a reviewer, change its expiry, revoke it.

Changed

  • Review links are kept out of the content's publication. A link is now a node of its own under the content, never published and not listed in jContent. Creating, changing or revoking one leaves a page Published, and the key never reaches live. A content item or a file shows as modified once, with its first link. A link copied with its page opens nothing, and the Shared links panel says so.
  • The review field is no longer shown in Content Editor. The field for sharing published content is unchanged.

After upgrading

Review links made with earlier versions keep working, and the Shared links panel lists and revokes them. To move them to the new storage with their keys, so that the addresses already handed out keep working, run migration/3-review-links-2.5.groovy (dry run first): see UPGRADE.md. It writes the authoring workspace only and publishes nothing.

Verified

On Jahia 8.2.3.2 with jContent 3.8.1: creating, re-dating and revoking a page's link left it Published; the reviewer got the draft, and a revoked address answered 404. A copied page's link opened nothing. A news item turned modified once with its first link, then stayed Published. The migration moved valid links with their keys (both addresses kept opening), cleared expired and undated ones, and reported nothing on a second run.

The tag's CI run shows a failed secret scan: its one finding is a made-up key in a unit test, ignored on main from the next build on. The jar attached here was built by that run and checked: version 2.5.0, no local build path, front end and styles included.

content-sharing 2.4.2

Choose a tag to compare

@smonier smonier released this 04 Nov 20:46
d38a87a

Revoking a link now removes it entirely, and no share key is ever made without a click. Upgrade from any 2.3.x or 2.4.x.

Fixed

  • Revoke left sharing switched on. It cleared the key only: the mixin and the expiry date stayed on the node, so Content Editor still showed the link as active. Revoke now removes the key and its expiry date in that language, and the mixin once the node has no other link of the same kind in any language.
  • Opening a page could bring a revoked link back. The Content Editor field made a new key whenever it opened empty, which also marked the form as changed: saving the page for any reason re-activated the link, with its old expiry date. The field now makes a key only when Create new URL is clicked.

After upgrading

A link revoked with an earlier version may have left its mixin on the node, with no key behind it. Content Editor shows that sharing switch as on with an empty field: switch it off and save to remove it. The field no longer fills it in on its own, so leaving it is harmless.

Known limitations, now documented

  • A review link's key is published with its node. The endpoint only accepts review keys from the authoring workspace, so the copy in live opens nothing by itself, but while the link is active it is the same key, readable by whoever can read that node's properties in live.
  • Publish on a Revoked, still live row publishes the node in that language, so other unpublished changes on that node and its sub-nodes go out with the revocation.

Verified

On Jahia 8.2.3.2 with jContent 3.8.1, through the Shared links panel on a page holding three links: revoking the only review link removed its key, expiry and mixin; revoking one language of a published link kept the mixin for the other; revoking the last one and publishing left no sharing mixin in either workspace. Content Editor on a node with the mixin and no key shows the Create new URL prompt and leaves the form untouched.

content-sharing 2.4.1

Choose a tag to compare

@smonier smonier released this 04 Nov 19:29
ff21928

The Shared links panel keeps one column per fact again, and each row expands to its link.

Site Settings, Shared links, in 2.4.1

Changed

  • Content, Kind, Language, Expiry, State and Action are columns again. The address each link opens, with Copy link, sits in a line under its row that spans the table: every row starts closed and expands on a click.
  • From the keyboard too: Enter or Space on a focused row opens and closes it, and the row tells assistive technology whether it is open. Moonstone's own expandable rows answer a mouse click only.
  • Shorter labels so six columns fit in every shipped language: an expired link reads Expired with its date underneath, a review link with no expiry date reads Missing with the reason underneath, and the action that publishes a revocation reads Publish (the state already says Revoked, still live).
  • A content path wraps after a slash rather than inside a page name.

At a 1440 px window nothing is cut; below about 1300 px the table scrolls sideways rather than cutting a label.

Verified

On Jahia 8.2.3.2 with jContent 3.8.1, with links seeded in every state: rows start closed; a click and Enter open a row, Space closes it; Copy link copies that row's address; every label fits its column in English, French, German and Spanish.

content-sharing 2.4.0

Choose a tag to compare

@smonier smonier released this 04 Nov 19:06
02f3f9f

The Shared links panel shows the address of every link, ready to copy. Upgrade from any 2.3.x.

Site Settings, Shared links, in 2.4.0

Each link's address, with Copy link

Under each link's content, the panel shows the address the link opens and a Copy link button. Until now an address could only be copied from the content it was created on.

  • The panel builds the address the way the Content Editor field does, from the same code, so both always show the same address.
  • For a link to published content it is the address visitors hold: the key the live workspace serves while there is one. A key regenerated in authoring and not yet published leaves the old address working, and that is the one shown.
  • Export CSV and Export JSON leave the addresses out on purpose: an export is a file that gets passed around, and every address in it would be a working link.

Fixed

  • Share addresses dropped Jahia's context path, so on an instance not served from the web root every generated link pointed to the wrong place. Addresses are now built under the context path, and a path given in the origin option of the field is kept. Instances served from the root see no change.

Verified

On Jahia 8.2.3.2 with jContent 3.8.1, with links seeded in every state: the panel's addresses equal the editor field's; a copied address opens for a visitor with no session; a link revoked but still live opens and one not yet published does not; no cell overflows at 1440 or 1280 px.

content-sharing 2.3.3

Choose a tag to compare

@smonier smonier released this 04 Nov 18:31
c494346

Fixes the look of the Shared links panel and of the Content Editor field. Upgrade from 2.3.0, 2.3.1 or 2.3.2.

Site Settings, Shared links, in 2.3.3

The module's own styles now reach the page

From 2.3.0 to 2.3.2, every style the module ships was dropped on the way to the browser: the front-end build exported each stylesheet's classes one by one, while both components read them as one object. Only Moonstone's own look remained, which is why the layout fixes listed for 2.3.1 and 2.3.2 (paths wrapping in the panel, among others) never took effect. The build now exports them the way the components read them, and the pull-request workflow refuses a package in which they would be dropped again.

Shared links panel

  • A review link with no expiry date showed a warning cut off after a few words, and Publish revocation ran past the edge of its column. The warning is now a short label with its explanation underneath.
  • Each column holding a label is as wide as its longest label in the four shipped languages, measured on the running jContent. The kind of link and its language sit under the content path rather than in columns of their own, which left the content too little room.
  • No label is cut in a 1440 or 1280 px window; below the width the table needs, it scrolls instead.

Content Editor field

  • The link was written in a grey the host draws at 40% opacity, too faint to read comfortably. It is now in the regular text colour, inside a box with its padding.
  • Copy the URL passed a property Moonstone does not read, so it could never be disabled.

Documentation

The README shows the module as it is today: both link fields in Content Editor, the Shared links panel, and the notice a reviewer sees.

Verified

On Jahia 8.2.3.2 with jContent 3.8.1, with links seeded in every state the panel reports, measured at 1440, 1280 and 1180 px windows: no cell overflows, and the table scrolls below its minimum width.

content-sharing 2.3.2

Choose a tag to compare

@smonier smonier released this 04 Nov 16:22
c8cc969

Adds a Shared links panel to Site Settings, and fixes what the first cut of it got wrong.

Shared links, in Site Settings

Every link that lets someone without an account reach content of the site, in one place: both kinds, every language, with the content each one points at, its expiry date and the workspace it is served from. Until now a link could only be found by opening the content it was created on, so a site had no way to answer "what is shared right now?".

Each row carries the action it needs, and the panel runs every read and every change as the person using it — the repository decides who may revoke what, and the module gains no new privileged code.

State What it means Action
Live Served from the live workspace; the link works Revoke
Revoked, still live The key is gone from authoring, live still serves it Publish revocation
Not published yet Set in authoring, never published; the link does not work yet Revoke
Authoring A review link, always served from the authoring workspace Revoke

A link to published content is served from live, so clearing its key only takes effect once that change is published. The panel reads both workspaces and keeps such a link listed rather than hiding it at the one moment it is both unwanted and working. It also flags a review link with no expiry date, which the endpoint refuses — a visitor cannot tell any of these from a working link.

Export CSV and Export JSON build the list in the browser; nothing leaves the page.

Verified on a running instance

Driven on Jahia 8.2.3.2 with jContent 3.8.1, with links seeded in each state: publishing a revocation took its link from 200 to 404 while an untouched link stayed 200; revoking a review link did the same in authoring; both exports were captured and checked.

Fixed since 2.3.0

  • The panel listed nothing. Keys were read from the node's jnt:translation children, which come back empty through GraphQL on this version, with no error — every link was found and then dropped. Each key is now read with an explicit language.
  • The panel no longer reads through the shared Apollo cache, where one node under two workspaces shares an identifier and the live answer overwrote the authoring one.
  • Two sets of pagination controls; a long content path cut off instead of wrapping; the report sitting on the page's grey background instead of a white sheet.

Upgrading

Drop-in from 2.2.x. No content or configuration change. The panel appears under Site Settings on every site that has the module enabled.