sample-piral 0.14.4 → 0.14.5-beta.3339

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/app/index.d.ts CHANGED
@@ -964,6 +964,7 @@ declare module "sample-piral" {
964
964
  export interface ComponentContext {
965
965
  router: ReactRouter.RouteComponentProps;
966
966
  state: LibreAtom.Atom<GlobalState>;
967
+ readState: PiralActions["readState"];
967
968
  }
968
969
 
969
970
  /**
@@ -1043,6 +1044,138 @@ declare module "sample-piral" {
1043
1044
  provider?: React.ComponentType;
1044
1045
  }
1045
1046
 
1047
+ /**
1048
+ * The globally defined actions.
1049
+ */
1050
+ export interface PiralActions extends PiralCustomActions {
1051
+ /**
1052
+ * Initializes the application shell.
1053
+ * @param loading The current loading state.
1054
+ * @param error The application error, if any.
1055
+ * @param modules The loaded pilets.
1056
+ */
1057
+ initialize(loading: boolean, error: Error | undefined, modules: Array<Pilet>): void;
1058
+ /**
1059
+ * Injects a pilet at runtime - removes the pilet from registry first if available.
1060
+ * @param pilet The pilet to be injected.
1061
+ */
1062
+ injectPilet(pilet: Pilet): void;
1063
+ /**
1064
+ * Defines a single action for Piral.
1065
+ * @param actionName The name of the action to define.
1066
+ * @param action The action to include.
1067
+ */
1068
+ defineAction<T extends keyof PiralActions>(actionName: T, action: PiralAction<PiralActions[T]>): void;
1069
+ /**
1070
+ * Defines a set of actions for Piral.
1071
+ * @param actions The actions to define.
1072
+ */
1073
+ defineActions(actions: PiralDefineActions): void;
1074
+ /**
1075
+ * Reads the value of a shared data item.
1076
+ * @param name The name of the shared item.
1077
+ */
1078
+ readDataValue(name: string): any;
1079
+ /**
1080
+ * Tries to write a shared data item. The write access is only
1081
+ * possible if the name belongs to the provided owner or has not
1082
+ * been taken yet.
1083
+ * Setting the value to null will release it.
1084
+ * @param name The name of the shared data item.
1085
+ * @param value The value of the shared data item.
1086
+ * @param owner The owner of the shared data item.
1087
+ * @param target The target storage locatation.
1088
+ * @param expiration The time for when to dispose the shared item.
1089
+ */
1090
+ tryWriteDataItem(name: string, value: any, owner: string, target: DataStoreTarget, expiration: number): boolean;
1091
+ /**
1092
+ * Performs a layout change.
1093
+ * @param current The layout to take.
1094
+ */
1095
+ changeLayout(current: LayoutType): void;
1096
+ /**
1097
+ * Registers a new route to be resolved.
1098
+ * @param route The route to register.
1099
+ * @param value The page to be rendered on the route.
1100
+ */
1101
+ registerPage(route: string, value: PageRegistration): void;
1102
+ /**
1103
+ * Unregisters an existing route.
1104
+ * @param route The route to be removed.
1105
+ */
1106
+ unregisterPage(route: string): void;
1107
+ /**
1108
+ * Registers a new extension.
1109
+ * @param name The name of the extension category.
1110
+ * @param value The extension registration.
1111
+ */
1112
+ registerExtension(name: string, value: ExtensionRegistration): void;
1113
+ /**
1114
+ * Unregisters an existing extension.
1115
+ * @param name The name of the extension category.
1116
+ * @param value The extension that will be removed.
1117
+ */
1118
+ unregisterExtension(name: string, reference: any): void;
1119
+ /**
1120
+ * Sets the common component to render.
1121
+ * @param name The name of the component.
1122
+ * @param component The component to use for rendering.
1123
+ */
1124
+ setComponent<TKey extends keyof ComponentsState>(name: TKey, component: ComponentsState[TKey]): void;
1125
+ /**
1126
+ * Sets the error component to render.
1127
+ * @param type The type of the error.
1128
+ * @param component The component to use for rendering.
1129
+ */
1130
+ setErrorComponent<TKey extends keyof ErrorComponentsState>(type: TKey, component: ErrorComponentsState[TKey]): void;
1131
+ /**
1132
+ * Sets the common routes to render.
1133
+ * @param path The name of the component.
1134
+ * @param component The component to use for rendering.
1135
+ */
1136
+ setRoute<T = {}>(path: string, component: React.ComponentType<ReactRouter.RouteComponentProps<T>>): void;
1137
+ /**
1138
+ * Includes a new provider as a sub-provider to the current provider.
1139
+ * @param provider The provider to include.
1140
+ */
1141
+ includeProvider(provider: JSX.Element): void;
1142
+ /**
1143
+ * Destroys (i.e., resets) the given portal instance.
1144
+ * @param id The id of the portal to destroy.
1145
+ */
1146
+ destroyPortal(id: string): void;
1147
+ /**
1148
+ * Includes the provided portal in the rendering pipeline.
1149
+ * @param id The id of the portal to use.
1150
+ * @param entry The child to render.
1151
+ */
1152
+ showPortal(id: string, entry: React.ReactPortal): void;
1153
+ /**
1154
+ * Hides the provided portal in the rendering pipeline.
1155
+ * @param id The id of the portal to use.
1156
+ * @param entry The child to remove.
1157
+ */
1158
+ hidePortal(id: string, entry: React.ReactPortal): void;
1159
+ /**
1160
+ * Updates the provided portal in the rendering pipeline.
1161
+ * @param id The id of the portal to use.
1162
+ * @param current The currently displayed child.
1163
+ * @param next The updated child that should be displayed.
1164
+ */
1165
+ updatePortal(id: string, current: React.ReactPortal, next: React.ReactPortal): void;
1166
+ /**
1167
+ * Dispatches a state change.
1168
+ * @param update The update function creating a new state.
1169
+ */
1170
+ dispatch(update: (state: GlobalState) => GlobalState): void;
1171
+ /**
1172
+ * Reads the selected part of the global state.
1173
+ * @param select The selector for getting the desired part.
1174
+ * @returns The desired part.
1175
+ */
1176
+ readState<S>(select: (state: GlobalState) => S): S;
1177
+ }
1178
+
1046
1179
  /**
1047
1180
  * Custom state extensions defined outside of piral-core.
1048
1181
  */
@@ -1104,6 +1237,10 @@ declare module "sample-piral" {
1104
1237
  * Gets an unrecoverable application error, if any.
1105
1238
  */
1106
1239
  error: Error | undefined;
1240
+ /**
1241
+ * Gets the public path of the application.
1242
+ */
1243
+ publicPath: string;
1107
1244
  }
1108
1245
 
1109
1246
  export type ErrorComponentsState = {
@@ -1178,6 +1315,199 @@ declare module "sample-piral" {
1178
1315
  expires: number;
1179
1316
  }
1180
1317
 
1318
+ /**
1319
+ * Custom actions defined outside of piral-core.
1320
+ */
1321
+ export interface PiralCustomActions {
1322
+ /**
1323
+ * Changes the selected language.
1324
+ * @param selected The selected language.
1325
+ */
1326
+ selectLanguage(selected: string): void;
1327
+ /**
1328
+ * Gets the translation for the given key at the current
1329
+ * language.
1330
+ */
1331
+ translate(tag: string, variables?: Record<string, string>): string;
1332
+ /**
1333
+ * Sets the translations (both global and local) for
1334
+ * the given language.
1335
+ * @param language The language to set the translations for.
1336
+ * @param data The global and local translations.
1337
+ */
1338
+ setTranslations(language: string, data: LanguageData): void;
1339
+ /**
1340
+ * Gets the translations (both global and local) for
1341
+ * the given language.
1342
+ * @param language The language to get the translations for.
1343
+ * @result The global and local translations.
1344
+ */
1345
+ getTranslations(language: string): LanguageData;
1346
+ /**
1347
+ * Registers a new tile.
1348
+ * @param name The name of the tile.
1349
+ * @param value The tile registration.
1350
+ */
1351
+ registerTile(name: string, value: TileRegistration): void;
1352
+ /**
1353
+ * Unregisters an existing tile.
1354
+ * @param name The name of the tile to be removed.
1355
+ */
1356
+ unregisterTile(name: string): void;
1357
+ /**
1358
+ * Registers a new menu item.
1359
+ * @param name The name of the menu item.
1360
+ * @param value The menu registration.
1361
+ */
1362
+ registerMenuItem(name: string, value: MenuItemRegistration): void;
1363
+ /**
1364
+ * Unregisters an existing menu item.
1365
+ * @param name The name of the menu item to be removed.
1366
+ */
1367
+ unregisterMenuItem(name: string): void;
1368
+ /**
1369
+ * Opens the given notification.
1370
+ * @param notification The notification to show.
1371
+ */
1372
+ openNotification(notification: OpenNotification): void;
1373
+ /**
1374
+ * Closes the given notification.
1375
+ * @param notification The notification to hide.
1376
+ */
1377
+ closeNotification(notification: OpenNotification): void;
1378
+ /**
1379
+ * Opens the provided dialog.
1380
+ * @param dialog The dialog to show.
1381
+ */
1382
+ openModal(dialog: OpenModalDialog): void;
1383
+ /**
1384
+ * Closes the provided dialog.
1385
+ * @param dialog The dialog to hide.
1386
+ */
1387
+ closeModal(dialog: OpenModalDialog): void;
1388
+ /**
1389
+ * Registers a new modal dialog.
1390
+ * @param name The name of the modal.
1391
+ * @param value The modal registration.
1392
+ */
1393
+ registerModal(name: string, value: ModalRegistration): void;
1394
+ /**
1395
+ * Unregisters an existing modal dialog.
1396
+ * @param name The name of the modal to be removed.
1397
+ */
1398
+ unregisterModal(name: string): void;
1399
+ /**
1400
+ * Creates a new (empty) feed.
1401
+ * @param id The id of the feed.
1402
+ */
1403
+ createFeed(id: string): void;
1404
+ /**
1405
+ * Destroys an existing feed.
1406
+ * @param id The id of the feed.
1407
+ */
1408
+ destroyFeed(id: string): void;
1409
+ /**
1410
+ * Loads the feed via the provided details.
1411
+ * @param feed The feed details to use for loading.
1412
+ */
1413
+ loadFeed<TData, TItem>(feed: ConnectorDetails<TData, TItem>): void;
1414
+ /**
1415
+ * Updates an existing feed.
1416
+ * @param id The id of the feed.
1417
+ * @param item The item to pass on to the reducer.
1418
+ * @param reducer The reducer to use.
1419
+ */
1420
+ updateFeed<TData, TItem>(id: string, item: TItem, reducer: FeedReducer<TData, TItem>): void;
1421
+ /**
1422
+ * Registers a new search provider.
1423
+ * @param name The name of the search provider.
1424
+ * @param value The value representing the provider.
1425
+ */
1426
+ registerSearchProvider(name: string, value: SearchProviderRegistration): void;
1427
+ /**
1428
+ * Unregisters an existing search provider.
1429
+ * @param name The name of the search provider.
1430
+ */
1431
+ unregisterSearchProvider(name: string): void;
1432
+ /**
1433
+ * Sets the current search input.
1434
+ * @param input The input to set.
1435
+ */
1436
+ setSearchInput(input: string): void;
1437
+ /**
1438
+ * Resets the search results.
1439
+ * @param input The input to set.
1440
+ * @param loading Determines if further results are currently loading.
1441
+ */
1442
+ resetSearchResults(input: string, loading: boolean): void;
1443
+ /**
1444
+ * Appends more results to the existing results.
1445
+ * @param items The items to append.
1446
+ * @param done Determines if more results are pending.
1447
+ */
1448
+ appendSearchResults(items: Array<React.ReactChild>, done: boolean): void;
1449
+ /**
1450
+ * Prepends more results to the existing results.
1451
+ * @param items The items to prepend.
1452
+ * @param done Determines if more results are pending.
1453
+ */
1454
+ prependSearchResults(items: Array<React.ReactChild>, done: boolean): void;
1455
+ /**
1456
+ * Triggers the search explicitly.
1457
+ * @param input Optionally sets the query to look for. Otherwise the current input is taken.
1458
+ * @param immediate Optionally, determins if the search was invoked immediately.
1459
+ */
1460
+ triggerSearch(input?: string, immediate?: boolean): Disposable;
1461
+ /**
1462
+ * Sets the currently logged in user.
1463
+ * @param user The current user or undefined is anonymous.
1464
+ * @param features The features for the current user, if any.
1465
+ * @param permissions The permissions of the current user, if any.
1466
+ */
1467
+ setUser(user: UserInfo, features: UserFeatures, permissions: UserPermissions): void;
1468
+ }
1469
+
1470
+ /**
1471
+ * An evaluated pilet, i.e., a full pilet: functionality and metadata.
1472
+ */
1473
+ export type Pilet = SinglePilet | MultiPilet;
1474
+
1475
+ /**
1476
+ * The shape of an app action in Piral.
1477
+ */
1478
+ export interface PiralAction<T extends (...args: any) => any> {
1479
+ (ctx: GlobalStateContext, ...args: Parameters<T>): ReturnType<T>;
1480
+ }
1481
+
1482
+ /**
1483
+ * A subset of the available app actions in Piral.
1484
+ */
1485
+ export type PiralDefineActions = Partial<{
1486
+ [P in keyof PiralActions]: PiralAction<PiralActions[P]>;
1487
+ }>;
1488
+
1489
+ /**
1490
+ * The different known layout types.
1491
+ */
1492
+ export type LayoutType = "mobile" | "tablet" | "desktop";
1493
+
1494
+ /**
1495
+ * The interface modeling the registration of a pilet page component.
1496
+ */
1497
+ export interface PageRegistration extends BaseRegistration {
1498
+ component: WrappedComponent<PageComponentProps>;
1499
+ meta: PiralPageMeta;
1500
+ }
1501
+
1502
+ /**
1503
+ * The interface modeling the registration of a pilet extension component.
1504
+ */
1505
+ export interface ExtensionRegistration extends BaseRegistration {
1506
+ component: WrappedComponent<ExtensionComponentProps<string>>;
1507
+ reference: any;
1508
+ defaults: any;
1509
+ }
1510
+
1181
1511
  export interface OpenNotification {
1182
1512
  id: string;
1183
1513
  component: React.ComponentType<BareNotificationProps>;
@@ -1232,11 +1562,6 @@ declare module "sample-piral" {
1232
1562
  };
1233
1563
  }
1234
1564
 
1235
- /**
1236
- * The different known layout types.
1237
- */
1238
- export type LayoutType = "mobile" | "tablet" | "desktop";
1239
-
1240
1565
  /**
1241
1566
  * Map of all error types to their respective props.
1242
1567
  */
@@ -1364,23 +1689,90 @@ declare module "sample-piral" {
1364
1689
  searchProviders: Dict<SearchProviderRegistration>;
1365
1690
  }
1366
1691
 
1692
+ export interface LanguageData {
1693
+ global: Translations;
1694
+ locals: Array<{
1695
+ name: string;
1696
+ value: Translations;
1697
+ }>;
1698
+ }
1699
+
1700
+ export interface TileRegistration extends BaseRegistration {
1701
+ component: WrappedComponent<TileComponentProps>;
1702
+ preferences: TilePreferences;
1703
+ }
1704
+
1705
+ export interface MenuItemRegistration extends BaseRegistration {
1706
+ component: WrappedComponent<MenuComponentProps>;
1707
+ settings: MenuSettings;
1708
+ }
1709
+
1710
+ export interface ModalRegistration extends BaseRegistration {
1711
+ name: string;
1712
+ component: WrappedComponent<ModalComponentProps<any>>;
1713
+ defaults: any;
1714
+ }
1715
+
1716
+ export interface ConnectorDetails<TData, TItem, TReducers extends FeedConnectorReducers<TData> = {}> extends FeedConnectorOptions<TData, TItem, TReducers> {
1717
+ /**
1718
+ * The ID of the connector.
1719
+ */
1720
+ id: string;
1721
+ /**
1722
+ * The dispose function if active.
1723
+ */
1724
+ dispose?(): void;
1725
+ }
1726
+
1727
+ export interface SearchProviderRegistration extends BaseRegistration {
1728
+ search: SearchHandler;
1729
+ cancel(): void;
1730
+ clear(): void;
1731
+ onlyImmediate: boolean;
1732
+ }
1733
+
1367
1734
  /**
1368
- * The interface modeling the registration of a pilet page component.
1735
+ * An evaluated single pilet.
1369
1736
  */
1370
- export interface PageRegistration extends BaseRegistration {
1371
- component: WrappedComponent<PageComponentProps>;
1372
- meta: PiralPageMeta;
1737
+ export type SinglePilet = SinglePiletApp & SinglePiletMetadata;
1738
+
1739
+ /**
1740
+ * An evaluated multi pilet.
1741
+ */
1742
+ export type MultiPilet = MultiPiletApp & MultiPiletMetadata;
1743
+
1744
+ /**
1745
+ * The Piral app instance context.
1746
+ */
1747
+ export interface GlobalStateContext extends PiralActions, EventEmitter {
1748
+ /**
1749
+ * The global state context atom.
1750
+ * Changes to the state should always be dispatched via the `dispatch` action.
1751
+ */
1752
+ state: LibreAtom.Atom<GlobalState>;
1753
+ /**
1754
+ * The API objects created for the loaded pilets.
1755
+ */
1756
+ apis: PiletsBag;
1757
+ /**
1758
+ * The available component converters.
1759
+ */
1760
+ converters: ComponentConverters<any>;
1761
+ /**
1762
+ * The initial options.
1763
+ */
1764
+ options: LoadPiletsOptions;
1373
1765
  }
1374
1766
 
1375
1767
  /**
1376
- * The interface modeling the registration of a pilet extension component.
1768
+ * The base type for pilet component registration in the global state context.
1377
1769
  */
1378
- export interface ExtensionRegistration extends BaseRegistration {
1379
- component: WrappedComponent<ExtensionComponentProps<string>>;
1380
- reference: any;
1381
- defaults: any;
1770
+ export interface BaseRegistration {
1771
+ pilet: string;
1382
1772
  }
1383
1773
 
1774
+ export type WrappedComponent<TProps> = React.ComponentType<Without<TProps, keyof BaseComponentProps>>;
1775
+
1384
1776
  export interface FeedDataState {
1385
1777
  /**
1386
1778
  * Determines if the feed data is currently loading.
@@ -1561,37 +1953,86 @@ declare module "sample-piral" {
1561
1953
  [K in keyof T]: T[K];
1562
1954
  }[keyof T];
1563
1955
 
1564
- export interface TileRegistration extends BaseRegistration {
1565
- component: WrappedComponent<TileComponentProps>;
1566
- preferences: TilePreferences;
1956
+ export interface SearchHandler {
1957
+ (options: SearchOptions): Promise<Array<React.ReactChild>>;
1567
1958
  }
1568
1959
 
1569
- export interface MenuItemRegistration extends BaseRegistration {
1570
- component: WrappedComponent<MenuComponentProps>;
1571
- settings: MenuSettings;
1960
+ /**
1961
+ * The pilet app, i.e., the functional exports.
1962
+ */
1963
+ export interface SinglePiletApp {
1964
+ /**
1965
+ * Integrates the evaluated pilet into the application.
1966
+ * @param api The API to access the application.
1967
+ */
1968
+ setup(api: PiletApi): void | Promise<void>;
1969
+ /**
1970
+ * Optional function for cleanup.
1971
+ * @param api The API to access the application.
1972
+ */
1973
+ teardown?(api: PiletApi): void;
1572
1974
  }
1573
1975
 
1574
- export interface ModalRegistration extends BaseRegistration {
1575
- name: string;
1576
- component: WrappedComponent<ModalComponentProps<any>>;
1577
- defaults: any;
1976
+ /**
1977
+ * The pilet app, i.e., the functional exports.
1978
+ */
1979
+ export interface MultiPiletApp {
1980
+ /**
1981
+ * Integrates the evaluated pilet into the application.
1982
+ * @param api The API to access the application.
1983
+ */
1984
+ setup(apiFactory: PiletApiCreator): void | Promise<void>;
1578
1985
  }
1579
1986
 
1580
- export interface SearchProviderRegistration extends BaseRegistration {
1581
- search: SearchHandler;
1582
- cancel(): void;
1583
- clear(): void;
1584
- onlyImmediate: boolean;
1987
+ /**
1988
+ * Represents the dictionary of the loaded pilets and their APIs.
1989
+ */
1990
+ export interface PiletsBag {
1991
+ [name: string]: PiletApi;
1585
1992
  }
1586
1993
 
1587
1994
  /**
1588
- * The base type for pilet component registration in the global state context.
1995
+ * The options for loading pilets.
1589
1996
  */
1590
- export interface BaseRegistration {
1591
- pilet: string;
1997
+ export interface LoadPiletsOptions {
1998
+ /**
1999
+ * The callback function for creating an API object.
2000
+ * The API object is passed on to a specific pilet.
2001
+ */
2002
+ createApi: PiletApiCreator;
2003
+ /**
2004
+ * The callback for fetching the dynamic pilets.
2005
+ */
2006
+ fetchPilets: PiletRequester;
2007
+ /**
2008
+ * Optionally, some already existing evaluated pilets, e.g.,
2009
+ * helpful when debugging or in SSR scenarios.
2010
+ */
2011
+ pilets?: Array<Pilet>;
2012
+ /**
2013
+ * Optionally, configures the default loader.
2014
+ */
2015
+ config?: DefaultLoaderConfig;
2016
+ /**
2017
+ * Optionally, defines the default way how to load a pilet.
2018
+ */
2019
+ loadPilet?: PiletLoader;
2020
+ /**
2021
+ * Optionally, defines loaders for custom specifications.
2022
+ */
2023
+ loaders?: CustomSpecLoaders;
2024
+ /**
2025
+ * Gets the map of globally available dependencies with their names
2026
+ * as keys and their evaluated pilet content as value.
2027
+ */
2028
+ dependencies?: AvailableDependencies;
2029
+ /**
2030
+ * Optionally, defines the loading strategy to use.
2031
+ */
2032
+ strategy?: PiletLoadingStrategy;
1592
2033
  }
1593
2034
 
1594
- export type WrappedComponent<TProps> = React.ComponentType<Without<TProps, keyof BaseComponentProps>>;
2035
+ export type Without<T, K> = Pick<T, Exclude<keyof T, K>>;
1595
2036
 
1596
2037
  export interface TileErrorInfoProps {
1597
2038
  /**
@@ -1662,9 +2103,62 @@ declare module "sample-piral" {
1662
2103
  error: any;
1663
2104
  }
1664
2105
 
1665
- export interface SearchHandler {
1666
- (options: SearchOptions): Promise<Array<React.ReactChild>>;
2106
+ /**
2107
+ * The creator function for the pilet API.
2108
+ */
2109
+ export interface PiletApiCreator {
2110
+ (target: PiletMetadata): PiletApi;
1667
2111
  }
1668
2112
 
1669
- export type Without<T, K> = Pick<T, Exclude<keyof T, K>>;
2113
+ /**
2114
+ * The interface describing a function capable of fetching pilets.
2115
+ */
2116
+ export interface PiletRequester {
2117
+ (): Promise<Array<PiletMetadata>>;
2118
+ }
2119
+
2120
+ /**
2121
+ * Additional configuration options for the default loader.
2122
+ */
2123
+ export interface DefaultLoaderConfig {
2124
+ /**
2125
+ * Sets the cross-origin attribute of potential script tags.
2126
+ * For pilets v1 this may be useful. Otherwise, only pilets that
2127
+ * have an integrity defined will be set to "anonymous".
2128
+ */
2129
+ crossOrigin?: string;
2130
+ }
2131
+
2132
+ /**
2133
+ * The callback to be used to load a single pilet.
2134
+ */
2135
+ export interface PiletLoader {
2136
+ (meta: PiletMetadata): Promise<Pilet>;
2137
+ }
2138
+
2139
+ /**
2140
+ * Defines the spec identifiers for custom loading.
2141
+ */
2142
+ export type CustomSpecLoaders = Record<string, PiletLoader>;
2143
+
2144
+ /**
2145
+ * The record containing all available dependencies.
2146
+ */
2147
+ export interface AvailableDependencies {
2148
+ [name: string]: any;
2149
+ }
2150
+
2151
+ /**
2152
+ * The strategy for how pilets are loaded at runtime.
2153
+ */
2154
+ export interface PiletLoadingStrategy {
2155
+ (options: LoadPiletsOptions, pilets: PiletsLoaded): PromiseLike<void>;
2156
+ }
2157
+
2158
+ /**
2159
+ * The callback to be used when pilets have been loaded.
2160
+ */
2161
+ export interface PiletsLoaded {
2162
+ (error: Error | undefined, pilets: Array<Pilet>): void;
2163
+ }
1670
2164
  }
package/app/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <title>Piral Sample</title>
6
6
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
7
7
 
8
- <script defer src="/index.1449bd.js"></script></head>
8
+ <script defer src="/index.a7f28d.js"></script></head>
9
9
  <body>
10
10
  <div id="app">
11
11
  <div class="pi-center">
package/app/index.js CHANGED
@@ -2,7 +2,7 @@ if (process.env.NODE_ENV === 'test') {
2
2
  // behavior for the test environment, we'll try to make it work
3
3
 
4
4
  if (typeof window !== 'undefined') {
5
- require('.//index.1449bd.js');
5
+ require('.//index.a7f28d.js');
6
6
  const ctx = window['dbg:piral'];
7
7
  const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
8
8
  module.exports = dependencies['sample-piral'] || {};
package/files.tar CHANGED
Binary file
package/files_once.tar CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sample-piral",
3
3
  "description": "Example project illustrating the use of the piral and piral-cli packages.",
4
- "version": "0.14.4",
4
+ "version": "0.14.5-beta.3339",
5
5
  "license": "MIT",
6
6
  "homepage": "https://piral.io",
7
7
  "keywords": [