@creopse/vue 0.0.23 → 0.0.24

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/dist/style.css CHANGED
@@ -1 +1 @@
1
- .reset-styles[data-v-9e4f90fa]{all:unset!important}.fade-enter-active[data-v-30b5e62e],.fade-leave-active[data-v-30b5e62e]{transition:opacity .5s ease}.fade-enter-from[data-v-30b5e62e],.fade-leave-to[data-v-30b5e62e]{opacity:0}.slide-fade-enter-active[data-v-30b5e62e]{transition:all .3s ease-out}.slide-fade-leave-active[data-v-30b5e62e]{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-30b5e62e],.slide-fade-leave-to[data-v-30b5e62e]{transform:translate(20px);opacity:0}.bounce-enter-active[data-v-30b5e62e]{animation:bounce-in-30b5e62e .5s}.bounce-leave-active[data-v-30b5e62e]{animation:bounce-in-30b5e62e .5s reverse}@keyframes bounce-in-30b5e62e{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}
1
+ .reset-styles[data-v-8173c491]{all:unset!important}.fade-enter-active[data-v-30b5e62e],.fade-leave-active[data-v-30b5e62e]{transition:opacity .5s ease}.fade-enter-from[data-v-30b5e62e],.fade-leave-to[data-v-30b5e62e]{opacity:0}.slide-fade-enter-active[data-v-30b5e62e]{transition:all .3s ease-out}.slide-fade-leave-active[data-v-30b5e62e]{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from[data-v-30b5e62e],.slide-fade-leave-to[data-v-30b5e62e]{transform:translate(20px);opacity:0}.bounce-enter-active[data-v-30b5e62e]{animation:bounce-in-30b5e62e .5s}.bounce-leave-active[data-v-30b5e62e]{animation:bounce-in-30b5e62e .5s reverse}@keyframes bounce-in-30b5e62e{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creopse/vue",
3
3
  "description": "Creopse Vue Toolkit",
4
- "version": "0.0.23",
4
+ "version": "0.0.24",
5
5
  "private": false,
6
6
  "author": "Noé Gnanih <noegnanih@gmail.com>",
7
7
  "license": "MIT",
@@ -1,5 +1,4 @@
1
1
  import type { AppInformationKey, ContentModelItemModel, ContentModelModel, MenuItemGroupModel, MenuItemModel, MenuModel, NewsArticleModel, NewsCategoryModel, NewsTagModel, PageModel, SectionModel, SettingType, SharedProps } from '@creopse/utils';
2
- import type { ErrorBag, Errors, PageProps } from '@inertiajs/core';
3
2
  /**
4
3
  * A composable that provides a set of functions and properties for
5
4
  * easily accessing and manipulating page data, content models, menus,
@@ -16,9 +15,6 @@ export declare const useContent: () => {
16
15
  newsCategory: NewsCategoryModel | undefined;
17
16
  newsTag: NewsTagModel | undefined;
18
17
  contentModelItem: ContentModelItemModel | undefined;
19
- getProps: () => PageProps & SharedProps & {
20
- errors: Errors & ErrorBag;
21
- };
22
18
  getMenu: (name: string, filterByIsActive?: boolean) => MenuModel | undefined;
23
19
  getMenuByLocation: (name: string, filterByIsActive?: boolean) => MenuModel | undefined;
24
20
  getMenuItems: (name: string, filterByIsVisible?: boolean) => MenuItemModel[] | undefined;
@@ -1,11 +1,10 @@
1
+ import type { Props } from '@/types/plugin';
1
2
  /**
2
3
  * A composable that returns the props of the page.
3
4
  *
4
5
  * It injects the PropsManager symbol and returns the props of the page.
5
6
  *
6
7
  * @throws {Error} if the plugin is not installed
7
- * @returns {Record<string, any>} the props of the page
8
+ * @returns {T} the props of the page
8
9
  */
9
- export declare const useProps: () => {
10
- readonly [x: string]: any;
11
- };
10
+ export declare const useProps: <T extends Props = Props>() => T;