Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gyldendal/kobber-scene

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gyldendal/kobber-scene - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

package.json
{
"name": "@gyldendal/kobber-scene",
"version": "0.3.2",
"version": "0.3.3",
"license": "MIT",

@@ -34,4 +34,4 @@ "type": "module",

"type": "git",
"url": "https://github.com/GyldendalDigital/kobber"
"url": "https://github.com/GyldendalDigital/kobber/tree/main/packages/kobber-scene"
}
}
# Kobber scene
Components for rendering scene objects from CMS.
Components for rendering scene objects from Gyldendal's CMS.
See [Scene.stories.tsx](./src/Scene.stories.tsx) for examples.
See [Scene.stories.tsx](src/Scene.stories.tsx) for examples.

@@ -14,7 +14,7 @@ Can be imported as web components or react components:

Enums that match data from CMS are defined in [types.ts](./src/types.ts)
Enums that match data from CMS are defined in [types.ts](src/types.ts)
## Calculate padding
Pass CMS-data and other variables through the [`calculatePadding`](./src/calculatePadding.ts)-function and pass it to `kobber-scene-boundary` to apply css paddings.
Pass CMS-data and other variables through the [`calculatePadding`](src/calculatePadding.ts)-function and pass it to `kobber-scene-boundary` to apply css paddings.

@@ -47,3 +47,3 @@ ```javascript

To apply the same rules, pass `scene.rows` through [groupRowsByPresentation](./src/groupRowsByPresentation.ts) and render each `rowGroup` as [in Skolestudio](https://gyldendaldigital.visualstudio.com/Skolestudio/_git/Skolestudio/?path=%2Fclient%2Fapps%2Fapp%2Fsrc%2Fcommon%2Fscene%2FScene.tsx&version=GBmaster&_a=contents).
To apply the same rules, pass `scene.rows` through [groupRowsByPresentation](src/groupRowsByPresentation.ts) and render each `rowGroup` as [in Skolestudio](https://gyldendaldigital.visualstudio.com/Skolestudio/_git/Skolestudio/?path=%2Fclient%2Fapps%2Fapp%2Fsrc%2Fcommon%2Fscene%2FScene.tsx&version=GBmaster&_a=contents).

@@ -50,0 +50,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc