The hidden folder backing a password protected folder is listed under Shares > Shared via link, but its entry linked to the folder in the owner personal space, so activating it opened the content without ever asking for the link password. Expose the link shares on outgoing share resources and, for the hidden folder of a password protected folder, link to its password protected public link instead. If no link can be determined, the entry is rendered without a link at all rather than falling back to the folder itself.
web-pkg
web-pkg is a package that provides utilities, most importantly a variety of components and composables, that can be useful when developing apps and extensions for ownCloud Web.
Installation
Depending on your package manager, run one of the following commands:
$ npm install @ownclouders/web-pkg --save-dev
$ pnpm add -D @ownclouders/web-pkg
$ yarn add @ownclouders/web-pkg --dev
It's recommended to install this package as a dev dependency because it's only really needed for providing autocompletion in your IDE and unit tests. In a runtime context, the ownCloud Web runtime provides the actual implementation.