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

@gravity-ui/app-layout

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gravity-ui/app-layout - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

7

CHANGELOG.md
# Changelog
## [1.4.0](https://github.com/gravity-ui/app-layout/compare/v1.3.0...v1.4.0) (2023-11-15)
### Features
* add userParams prop in yaMetrika init ([#24](https://github.com/gravity-ui/app-layout/issues/24)) ([be125b1](https://github.com/gravity-ui/app-layout/commit/be125b1453b0855f745de68ae548753c6b338ee0))
## [1.3.0](https://github.com/gravity-ui/app-layout/compare/v1.2.0...v1.3.0) (2023-09-15)

@@ -4,0 +11,0 @@

2

dist/commonjs/index.d.ts
export { createRenderFunction, generateRenderContent } from './render.js';
export { createGoogleAnalyticsPlugin, createYandexMetrikaPlugin, createLayoutPlugin, createDefaultPlugins, } from './plugins/index.js';
export type { Plugin, Icon, Link, Script, Stylesheet, Meta, RenderFunction, RenderHelpers, RenderParams, } from './types.js';
export type { MetrikaCounter, MetrikaPluginOptions } from './plugins/yandex-metrika/index.js';
export type { MetrikaCounter, MetrikaPluginOptions, UserParams, } from './plugins/yandex-metrika/index.js';
export type { GoogleAnalyticsCounter, GoogleAnalyticsPluginOptions, } from './plugins/google-analytics/index.js';
export type { LayoutPluginOptions } from './plugins/layout/index.js';
import type { Plugin, RenderHelpers } from '../../types.js';
import type { MetrikaPluginOptions } from './types.js';
export type { MetrikaCounter, MetrikaPluginOptions } from './types.js';
export type { MetrikaCounter, MetrikaPluginOptions, UserParams } from './types.js';
export declare function createYandexMetrikaPlugin(): Plugin<MetrikaPluginOptions, 'yandexMetrika'>;
export declare function renderMetrika(params: MetrikaPluginOptions, utils: RenderHelpers): string;

@@ -64,2 +64,3 @@ "use strict";

experiments: "${config.encryptedExperiments || ''}"
userParams: ${JSON.stringify(config.userParams || {})}
});

@@ -66,0 +67,0 @@ `)

@@ -0,1 +1,4 @@

export type UserParams = {
[x: string]: boolean | string | number | null | UserParams;
};
export interface MetrikaCounter {

@@ -23,2 +26,4 @@ id: number;

type?: number;
/** @default {} */
userParams?: UserParams;
}

@@ -25,0 +30,0 @@ export type MetrikaPluginOptions = {

export { createRenderFunction, generateRenderContent } from './render.js';
export { createGoogleAnalyticsPlugin, createYandexMetrikaPlugin, createLayoutPlugin, createDefaultPlugins, } from './plugins/index.js';
export type { Plugin, Icon, Link, Script, Stylesheet, Meta, RenderFunction, RenderHelpers, RenderParams, } from './types.js';
export type { MetrikaCounter, MetrikaPluginOptions } from './plugins/yandex-metrika/index.js';
export type { MetrikaCounter, MetrikaPluginOptions, UserParams, } from './plugins/yandex-metrika/index.js';
export type { GoogleAnalyticsCounter, GoogleAnalyticsPluginOptions, } from './plugins/google-analytics/index.js';
export type { LayoutPluginOptions } from './plugins/layout/index.js';
import type { Plugin, RenderHelpers } from '../../types.js';
import type { MetrikaPluginOptions } from './types.js';
export type { MetrikaCounter, MetrikaPluginOptions } from './types.js';
export type { MetrikaCounter, MetrikaPluginOptions, UserParams } from './types.js';
export declare function createYandexMetrikaPlugin(): Plugin<MetrikaPluginOptions, 'yandexMetrika'>;
export declare function renderMetrika(params: MetrikaPluginOptions, utils: RenderHelpers): string;

@@ -60,2 +60,3 @@ export function createYandexMetrikaPlugin() {

experiments: "${config.encryptedExperiments || ''}"
userParams: ${JSON.stringify(config.userParams || {})}
});

@@ -62,0 +63,0 @@ `)

@@ -0,1 +1,4 @@

export type UserParams = {
[x: string]: boolean | string | number | null | UserParams;
};
export interface MetrikaCounter {

@@ -23,2 +26,4 @@ id: number;

type?: number;
/** @default {} */
userParams?: UserParams;
}

@@ -25,0 +30,0 @@ export type MetrikaPluginOptions = {

{
"name": "@gravity-ui/app-layout",
"version": "1.3.0",
"version": "1.4.0",
"description": "",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -331,3 +331,3 @@ # @gravity-ui/app-layout &middot; [![npm package](https://img.shields.io/npm/v/@gravity-ui/app-layout)](https://www.npmjs.com/package/@gravity-ui/app-layout) [![CI](https://img.shields.io/github/actions/workflow/status/gravity-ui/app-layout/.github/workflows/ci.yml?label=CI&logo=github)](https://github.com/gravity-ui/app-layout/actions/workflows/ci.yml?query=branch:main)

pluginsOptions: {
yandexMetrica: {
yandexMetrika: {
counter: {

@@ -350,2 +350,6 @@ id: 123123123,

```typescript
export type UserParams = {
[x: string]: boolean | string | number | null | UserParams;
};
export interface MetrikaCounter {

@@ -364,2 +368,3 @@ id: number;

type?: number;
userParams?: UserParams;
}

@@ -366,0 +371,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