@linagora/lin-pulsar-core 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -21
- package/README.md +5 -5
- package/dist/lin-pulsar-core.es.js +868 -861
- package/dist/lin-pulsar-core.umd.js +13 -13
- package/dist/package.json +4 -4
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useScopedI18n.d.ts +1 -1
- package/dist/types/src/filters/linPulsarFilter.d.ts +3 -3
- package/dist/types/src/filters/linPulsarFilterSet.d.ts +3 -3
- package/dist/types/src/lifecycle/linPulsarModuleFederation.d.ts +0 -23
- package/dist/types/src/types/linPulsarApi.d.ts +1 -1
- package/dist/types/src/types/linPulsarConfiguration.d.ts +1 -1
- package/package.json +4 -4
|
@@ -24,7 +24,7 @@ export declare function useScopedI18n(scope: string): {
|
|
|
24
24
|
/**
|
|
25
25
|
* Retrieves the raw translation message for a scoped key without formatting.
|
|
26
26
|
* @param key - Translation key (string or number) relative to the scoped namespace.
|
|
27
|
-
* @returns The raw message associated with the key, or
|
|
27
|
+
* @returns The raw message associated with the key, or an empty object if the key does not exist.
|
|
28
28
|
*/
|
|
29
29
|
tm: (key: string | number) => ReturnType<ComposerTranslation>;
|
|
30
30
|
/**
|
|
@@ -44,9 +44,9 @@ export declare class LinPulsarFilter<T = Record<string, unknown>> {
|
|
|
44
44
|
constructor(name: string, type: LinPulsarFilterType, options: T, values: LinPulsarFilterValue[], dynamicLabelOptions?: LinPulsarFilterDynamicLabelOptions);
|
|
45
45
|
/**
|
|
46
46
|
* Parses a value expression (e.g. `paris|not_lk_lyon`, as produced by
|
|
47
|
-
* {@link
|
|
48
|
-
* bare value expression only, never the `name=` query
|
|
49
|
-
*
|
|
47
|
+
* {@link LinPulsarFilter.toString}) into a new {@link LinPulsarFilter} instance — `input` is the
|
|
48
|
+
* bare value expression only, never prefixed by the `name=` of a query string or of a
|
|
49
|
+
* `LinPulsarFilterSet` string.
|
|
50
50
|
*
|
|
51
51
|
* `type`, `options` and `dynamicLabelOptions` aren't derivable from `input`: pass the filter
|
|
52
52
|
* `definition` declared in the configuration to carry them over, so that a filter restored from
|
|
@@ -2,9 +2,9 @@ import { LinPulsarFilter } from './linPulsarFilter';
|
|
|
2
2
|
/**
|
|
3
3
|
* Represents a saved filter set (favorite search), combining a user-defined label with the list
|
|
4
4
|
* of `LinPulsarFilter` it is made of. It converts to and parses from a `&`-separated list of
|
|
5
|
-
* `name=value` query parameter pairs —
|
|
6
|
-
* `LinPulsarFilter.toString` — so it can be stored as-is in user preferences and reused
|
|
7
|
-
* a query string against APIs powered by
|
|
5
|
+
* `name=value` query parameter pairs — each pair joining the filter name to the value expression
|
|
6
|
+
* produced by `LinPulsarFilter.toString` — so it can be stored as-is in user preferences and reused
|
|
7
|
+
* directly as a query string against APIs powered by
|
|
8
8
|
* [`spring-query-filter`](https://github.com/Zorin95670/spring-query-filter).
|
|
9
9
|
*/
|
|
10
10
|
export declare class LinPulsarFilterSet {
|
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
import type { RouteRecordRaw } from 'vue-router';
|
|
2
1
|
import type { LinPulsarModuleFederationInitOptions } from '../types/linPulsarModuleFederation';
|
|
3
|
-
import type { LinPulsarRoute } from '../types/linPulsarRoute';
|
|
4
|
-
import type { ModuleHostConfig } from '../types/module';
|
|
5
|
-
/**
|
|
6
|
-
* Converts a LinPulsarRoute to a Vue Router RouteRecordRaw.
|
|
7
|
-
*
|
|
8
|
-
* Applies Nunjucks templating to paths and loads components asynchronously, either via Module Federation or from the
|
|
9
|
-
* locally registered components.
|
|
10
|
-
* @param route - The LinPulsarRoute to convert.
|
|
11
|
-
* @param config - Module host configuration for templating.
|
|
12
|
-
* @returns The Vue Router route record.
|
|
13
|
-
*/
|
|
14
|
-
export declare function toRouteRecordRaw(route: LinPulsarRoute, config: ModuleHostConfig<unknown>): RouteRecordRaw;
|
|
15
|
-
/**
|
|
16
|
-
* Recursively renders all string values in an object or array using Nunjucks templating.
|
|
17
|
-
*
|
|
18
|
-
* This is useful for processing route `meta` objects so that template variables (like `{{ config.basePath }}`) are
|
|
19
|
-
* replaced with actual values from the module host configuration.
|
|
20
|
-
* @param obj - The object, array, or string to render. Can be nested.
|
|
21
|
-
* @param config - The ModuleHostConfig object used as the template context.
|
|
22
|
-
* @returns A new object/array/string with all strings rendered using Nunjucks.
|
|
23
|
-
*/
|
|
24
|
-
export declare function renderMeta(obj: unknown, config: ModuleHostConfig<unknown>): unknown;
|
|
25
2
|
/**
|
|
26
3
|
* Initializes Module Federation and all federated modules declared by the host application.
|
|
27
4
|
*
|
|
@@ -17,7 +17,7 @@ export interface LinPulsarAttributeConfiguration<T = Record<string, unknown>> {
|
|
|
17
17
|
* entity (e.g., "extraParameters.login").
|
|
18
18
|
*/
|
|
19
19
|
name: string;
|
|
20
|
-
/** The backend type of the attribute (e.g., "
|
|
20
|
+
/** The backend type of the attribute (e.g., "String", "Integer"). */
|
|
21
21
|
type: string;
|
|
22
22
|
/** Whether the attribute is required. */
|
|
23
23
|
required: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linagora/lin-pulsar-core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Core library of LinPulsar, the component catalog of
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Core library of LinPulsar, the component catalog of LinOpenFactory. Provides shared types, services, components, and utilities for front-end and plugin, enabling consistent integration across the LinOpenFactory ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"lint": "eslint . --max-warnings 0",
|
|
93
93
|
"lint:fix": "eslint . --fix",
|
|
94
94
|
"lint:sonarjs": "eslint . --max-warnings 0 --config eslint.sonarjs.config.js",
|
|
95
|
-
"format": "prettier --write \"src/**/*.{js,ts,vue,json,css,scss,md}\" \"docs/**/*.md\" README.md CONTRIBUTING.md",
|
|
96
|
-
"format:check": "prettier --check \"src/**/*.{js,ts,vue,json,css,scss,md}\" \"docs/**/*.md\" README.md CONTRIBUTING.md",
|
|
95
|
+
"format": "prettier --write \"src/**/*.{js,ts,vue,json,css,scss,md}\" \"tests/**/*.js\" \"docs/**/*.md\" README.md CONTRIBUTING.md",
|
|
96
|
+
"format:check": "prettier --check \"src/**/*.{js,ts,vue,json,css,scss,md}\" \"tests/**/*.js\" \"docs/**/*.md\" README.md CONTRIBUTING.md",
|
|
97
97
|
"type-check": "vue-tsc --noEmit",
|
|
98
98
|
"validate": "pnpm type-check && pnpm lint && pnpm format:check && pnpm lint:sonarjs"
|
|
99
99
|
}
|